]>
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 | |
1bd55598 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
d55e5bfc | 996 | |
1bd55598 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1000 | |
1bd55598 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1004 | |
1bd55598 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1008 | |
1bd55598 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1012 | |
d55e5bfc | 1013 | |
1bd55598 | 1014 | /* Runtime API */ |
d55e5bfc | 1015 | |
1bd55598 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1019 | |
1bd55598 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
32fe5131 | 1025 | |
d55e5bfc | 1026 | |
1bd55598 | 1027 | /* Runtime API implementation */ |
d55e5bfc | 1028 | |
1bd55598 | 1029 | /* Error manipulation */ |
d55e5bfc | 1030 | |
1bd55598 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c370783e | 1037 | } |
d55e5bfc | 1038 | |
1bd55598 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1044 | } |
1045 | ||
1bd55598 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1047 | |
1bd55598 | 1048 | /* Set a constant value */ |
d55e5bfc | 1049 | |
1bd55598 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
c370783e | 1054 | } |
d55e5bfc | 1055 | |
1bd55598 | 1056 | /* Append a value to the result obj */ |
d55e5bfc | 1057 | |
1bd55598 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
36ed4f51 | 1084 | } else { |
1bd55598 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
c370783e | 1096 | } |
1bd55598 RD |
1097 | return result; |
1098 | #endif | |
c370783e RD |
1099 | } |
1100 | ||
1bd55598 | 1101 | /* Unpack the argument tuple */ |
d55e5bfc | 1102 | |
1bd55598 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
36ed4f51 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
36ed4f51 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
36ed4f51 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
1bd55598 | 1612 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1613 | static int type_init = 0; |
36ed4f51 | 1614 | if (!type_init) { |
1bd55598 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
36ed4f51 | 1628 | #endif |
1bd55598 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
36ed4f51 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
1bd55598 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1670 | 0, /* tp_del */ |
36ed4f51 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1674 | #endif |
1bd55598 | 1675 | }; |
32fe5131 | 1676 | pyswigobject_type = tmp; |
1bd55598 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1678 | type_init = 1; |
1679 | } | |
32fe5131 | 1680 | return &pyswigobject_type; |
36ed4f51 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
1bd55598 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c370783e | 1685 | { |
1bd55598 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
32fe5131 | 1692 | } |
1bd55598 | 1693 | return (PyObject *)sobj; |
36ed4f51 | 1694 | } |
d55e5bfc | 1695 | |
36ed4f51 RD |
1696 | /* ----------------------------------------------------------------------------- |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1699 | |
36ed4f51 RD |
1700 | typedef struct { |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
1bd55598 | 1703 | swig_type_info *ty; |
36ed4f51 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
c370783e | 1706 | |
36ed4f51 | 1707 | SWIGRUNTIME int |
1bd55598 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
d55e5bfc | 1709 | { |
36ed4f51 RD |
1710 | char result[SWIG_BUFFER_SIZE]; |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
1715 | } | |
1bd55598 | 1716 | fputs(v->ty->name,fp); |
36ed4f51 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
1720 | ||
1721 | SWIGRUNTIME PyObject * | |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1bd55598 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
36ed4f51 | 1727 | } else { |
1bd55598 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
36ed4f51 | 1729 | } |
d55e5bfc RD |
1730 | } |
1731 | ||
36ed4f51 RD |
1732 | SWIGRUNTIME PyObject * |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1bd55598 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
36ed4f51 | 1738 | } else { |
1bd55598 | 1739 | return PyString_FromString(v->ty->name); |
36ed4f51 RD |
1740 | } |
1741 | } | |
d55e5bfc | 1742 | |
36ed4f51 RD |
1743 | SWIGRUNTIME int |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1745 | { |
1bd55598 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c370783e RD |
1750 | } |
1751 | ||
1bd55598 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1753 | |
36ed4f51 | 1754 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1755 | PySwigPacked_type(void) { |
1bd55598 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
36ed4f51 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
1bd55598 | 1833 | 0, /* tp_del */ |
36ed4f51 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
1bd55598 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
36ed4f51 | 1837 | #endif |
1bd55598 | 1838 | }; |
32fe5131 | 1839 | pyswigpacked_type = tmp; |
1bd55598 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
36ed4f51 RD |
1841 | type_init = 1; |
1842 | } | |
32fe5131 | 1843 | return &pyswigpacked_type; |
36ed4f51 | 1844 | } |
d55e5bfc | 1845 | |
36ed4f51 | 1846 | SWIGRUNTIME PyObject * |
1bd55598 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
36ed4f51 | 1848 | { |
1bd55598 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
36ed4f51 | 1851 | void *pack = malloc(size); |
32fe5131 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
1bd55598 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
32fe5131 | 1860 | } |
36ed4f51 | 1861 | } |
1bd55598 | 1862 | return (PyObject *) sobj; |
36ed4f51 | 1863 | } |
d55e5bfc | 1864 | |
1bd55598 | 1865 | SWIGRUNTIME swig_type_info * |
36ed4f51 RD |
1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1867 | { | |
1bd55598 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
36ed4f51 | 1876 | } |
d55e5bfc | 1877 | |
36ed4f51 | 1878 | /* ----------------------------------------------------------------------------- |
1bd55598 | 1879 | * pointers/data manipulation |
36ed4f51 | 1880 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1881 | |
1bd55598 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
d55e5bfc | 1887 | |
1bd55598 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
d55e5bfc | 1894 | |
1bd55598 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1896 | |
1bd55598 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
36ed4f51 | 1899 | { |
1bd55598 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
36ed4f51 | 1922 | } else { |
1bd55598 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
36ed4f51 | 1925 | } |
36ed4f51 | 1926 | } |
1bd55598 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
36ed4f51 RD |
1943 | } |
1944 | } | |
d55e5bfc | 1945 | |
1bd55598 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
36ed4f51 | 1957 | } |
1bd55598 | 1958 | return 0; |
36ed4f51 | 1959 | } |
d55e5bfc | 1960 | |
1bd55598 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
36ed4f51 | 1963 | SWIGRUNTIME int |
1bd55598 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
36ed4f51 | 1988 | } else { |
1bd55598 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
36ed4f51 | 1991 | } |
36ed4f51 | 1992 | } |
1bd55598 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
36ed4f51 RD |
2038 | } |
2039 | } | |
d55e5bfc | 2040 | |
1bd55598 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
36ed4f51 | 2043 | SWIGRUNTIME int |
1bd55598 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
36ed4f51 | 2047 | } else { |
1bd55598 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
36ed4f51 RD |
2065 | } |
2066 | } | |
d55e5bfc | 2067 | |
1bd55598 | 2068 | /* Convert a packed value value */ |
d55e5bfc | 2069 | |
36ed4f51 | 2070 | SWIGRUNTIME int |
1bd55598 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
36ed4f51 | 2080 | } |
1bd55598 RD |
2081 | return SWIG_OK; |
2082 | } | |
d55e5bfc | 2083 | |
1bd55598 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2087 | |
1bd55598 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
d55e5bfc | 2092 | |
1bd55598 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
36ed4f51 | 2111 | } |
1bd55598 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
36ed4f51 | 2116 | } |
1bd55598 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
36ed4f51 | 2122 | } |
1bd55598 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
36ed4f51 | 2136 | } |
1bd55598 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
36ed4f51 | 2143 | } |
1bd55598 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
36ed4f51 | 2154 | } |
d55e5bfc | 2155 | |
1bd55598 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
36ed4f51 | 2171 | #endif |
1bd55598 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
d55e5bfc | 2176 | |
1bd55598 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
36ed4f51 | 2187 | } else { |
1bd55598 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
36ed4f51 | 2189 | } |
1bd55598 | 2190 | return SWIG_Py_Void(); |
36ed4f51 | 2191 | } |
1bd55598 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
36ed4f51 | 2195 | |
36ed4f51 | 2196 | SWIGRUNTIME PyObject * |
1bd55598 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
36ed4f51 | 2198 | if (!ptr) { |
1bd55598 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
36ed4f51 | 2209 | } |
36ed4f51 | 2210 | } |
1bd55598 | 2211 | return robj; |
36ed4f51 | 2212 | } |
36ed4f51 RD |
2213 | } |
2214 | ||
1bd55598 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
36ed4f51 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
1bd55598 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
36ed4f51 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
32fe5131 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
36ed4f51 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
36ed4f51 | 2244 | #endif |
32fe5131 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
36ed4f51 RD |
2247 | } |
2248 | ||
32fe5131 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1bd55598 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
1bd55598 | 2259 | return SWIG_ERROR; |
32fe5131 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
1bd55598 | 2264 | return SWIG_ERROR; |
32fe5131 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
1bd55598 | 2272 | return SWIG_ERROR; |
32fe5131 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
1bd55598 | 2275 | return SWIG_ERROR; |
32fe5131 | 2276 | Py_DECREF(o); |
1bd55598 | 2277 | return SWIG_OK; |
36ed4f51 | 2278 | } |
32fe5131 | 2279 | #endif |
36ed4f51 | 2280 | |
1bd55598 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
32fe5131 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
1bd55598 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1bd55598 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
32fe5131 RD |
2308 | } |
2309 | } | |
36ed4f51 | 2310 | |
1bd55598 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
36ed4f51 | 2316 | } |
36ed4f51 | 2317 | |
1bd55598 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2131d850 RD |
2462 | #define SWIGTYPE_p_bool swig_types[0] |
2463 | #define SWIGTYPE_p_char swig_types[1] | |
2464 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
2465 | #define SWIGTYPE_p_int swig_types[3] | |
2466 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2468 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2469 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2470 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2471 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2472 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
2473 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2474 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2475 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
2476 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
2477 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15] | |
2478 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[16] | |
2479 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[17] | |
2480 | #define SWIGTYPE_p_wxCloseEvent swig_types[18] | |
2481 | #define SWIGTYPE_p_wxColour swig_types[19] | |
2482 | #define SWIGTYPE_p_wxColourData swig_types[20] | |
2483 | #define SWIGTYPE_p_wxColourDialog swig_types[21] | |
2484 | #define SWIGTYPE_p_wxCommandEvent swig_types[22] | |
2485 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[23] | |
2486 | #define SWIGTYPE_p_wxControl swig_types[24] | |
2487 | #define SWIGTYPE_p_wxControlWithItems swig_types[25] | |
2488 | #define SWIGTYPE_p_wxDC swig_types[26] | |
2489 | #define SWIGTYPE_p_wxDateEvent swig_types[27] | |
2490 | #define SWIGTYPE_p_wxDialog swig_types[28] | |
2491 | #define SWIGTYPE_p_wxDirDialog swig_types[29] | |
2492 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30] | |
2493 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxDuplexMode swig_types[32] | |
2495 | #define SWIGTYPE_p_wxEraseEvent swig_types[33] | |
2496 | #define SWIGTYPE_p_wxEvent swig_types[34] | |
2497 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
2498 | #define SWIGTYPE_p_wxFSFile swig_types[36] | |
2499 | #define SWIGTYPE_p_wxFileDialog swig_types[37] | |
2500 | #define SWIGTYPE_p_wxFileSystem swig_types[38] | |
2501 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[39] | |
2502 | #define SWIGTYPE_p_wxFindReplaceData swig_types[40] | |
2503 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41] | |
2504 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2505 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2506 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2507 | #define SWIGTYPE_p_wxFontData swig_types[45] | |
2508 | #define SWIGTYPE_p_wxFontDialog swig_types[46] | |
2509 | #define SWIGTYPE_p_wxFrame swig_types[47] | |
2510 | #define SWIGTYPE_p_wxGBSizerItem swig_types[48] | |
2511 | #define SWIGTYPE_p_wxGIFHandler swig_types[49] | |
2512 | #define SWIGTYPE_p_wxGridBagSizer swig_types[50] | |
2513 | #define SWIGTYPE_p_wxGridSizer swig_types[51] | |
2514 | #define SWIGTYPE_p_wxHtmlLinkInfo swig_types[52] | |
2515 | #define SWIGTYPE_p_wxICOHandler swig_types[53] | |
2516 | #define SWIGTYPE_p_wxIcon swig_types[54] | |
2517 | #define SWIGTYPE_p_wxIconBundle swig_types[55] | |
2518 | #define SWIGTYPE_p_wxIconizeEvent swig_types[56] | |
2519 | #define SWIGTYPE_p_wxIdleEvent swig_types[57] | |
2520 | #define SWIGTYPE_p_wxImage swig_types[58] | |
2521 | #define SWIGTYPE_p_wxImageHandler swig_types[59] | |
2522 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60] | |
2523 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[61] | |
2524 | #define SWIGTYPE_p_wxJPEGHandler swig_types[62] | |
2525 | #define SWIGTYPE_p_wxKeyEvent swig_types[63] | |
2526 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[64] | |
2527 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[65] | |
2528 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[66] | |
2529 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[67] | |
2530 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[68] | |
2531 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[69] | |
2532 | #define SWIGTYPE_p_wxMenu swig_types[70] | |
2533 | #define SWIGTYPE_p_wxMenuBar swig_types[71] | |
2534 | #define SWIGTYPE_p_wxMenuEvent swig_types[72] | |
2535 | #define SWIGTYPE_p_wxMenuItem swig_types[73] | |
2536 | #define SWIGTYPE_p_wxMessageDialog swig_types[74] | |
2537 | #define SWIGTYPE_p_wxMiniFrame swig_types[75] | |
2538 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76] | |
2539 | #define SWIGTYPE_p_wxMouseEvent swig_types[77] | |
2540 | #define SWIGTYPE_p_wxMoveEvent swig_types[78] | |
2541 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[79] | |
2542 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[80] | |
2543 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[81] | |
2544 | #define SWIGTYPE_p_wxNotifyEvent swig_types[82] | |
2545 | #define SWIGTYPE_p_wxObject swig_types[83] | |
2546 | #define SWIGTYPE_p_wxPCXHandler swig_types[84] | |
2547 | #define SWIGTYPE_p_wxPNGHandler swig_types[85] | |
2548 | #define SWIGTYPE_p_wxPNMHandler swig_types[86] | |
2549 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[87] | |
2550 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[88] | |
2551 | #define SWIGTYPE_p_wxPaintEvent swig_types[89] | |
2552 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[90] | |
2553 | #define SWIGTYPE_p_wxPanel swig_types[91] | |
2554 | #define SWIGTYPE_p_wxPaperSize swig_types[92] | |
2555 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[93] | |
2556 | #define SWIGTYPE_p_wxPoint swig_types[94] | |
2557 | #define SWIGTYPE_p_wxPopupWindow swig_types[95] | |
2558 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[96] | |
2559 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPreviewFrame swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPrintData swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPrintDialog swig_types[100] | |
2563 | #define SWIGTYPE_p_wxPrintDialogData swig_types[101] | |
2564 | #define SWIGTYPE_p_wxPrintPreview swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPrinter swig_types[103] | |
2566 | #define SWIGTYPE_p_wxProgressDialog swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
2569 | #define SWIGTYPE_p_wxPyEvent swig_types[107] | |
2570 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[108] | |
2571 | #define SWIGTYPE_p_wxPyImageHandler swig_types[109] | |
2572 | #define SWIGTYPE_p_wxPyPanel swig_types[110] | |
2573 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[111] | |
2574 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[112] | |
2575 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[113] | |
2576 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[114] | |
2577 | #define SWIGTYPE_p_wxPyPrintout swig_types[115] | |
2578 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[116] | |
2579 | #define SWIGTYPE_p_wxPySizer swig_types[117] | |
2580 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[118] | |
2581 | #define SWIGTYPE_p_wxPyVListBox swig_types[119] | |
2582 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[120] | |
2583 | #define SWIGTYPE_p_wxPyValidator swig_types[121] | |
2584 | #define SWIGTYPE_p_wxPyWindow swig_types[122] | |
2585 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[123] | |
2586 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[124] | |
2587 | #define SWIGTYPE_p_wxRect swig_types[125] | |
2588 | #define SWIGTYPE_p_wxRegion swig_types[126] | |
2589 | #define SWIGTYPE_p_wxSashEvent swig_types[127] | |
2590 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[128] | |
2591 | #define SWIGTYPE_p_wxSashWindow swig_types[129] | |
2592 | #define SWIGTYPE_p_wxScrollEvent swig_types[130] | |
2593 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[131] | |
2594 | #define SWIGTYPE_p_wxScrolledWindow swig_types[132] | |
2595 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[133] | |
2596 | #define SWIGTYPE_p_wxShowEvent swig_types[134] | |
2597 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[135] | |
2598 | #define SWIGTYPE_p_wxSize swig_types[136] | |
2599 | #define SWIGTYPE_p_wxSizeEvent swig_types[137] | |
2600 | #define SWIGTYPE_p_wxSizer swig_types[138] | |
2601 | #define SWIGTYPE_p_wxSizerItem swig_types[139] | |
2602 | #define SWIGTYPE_p_wxSplashScreen swig_types[140] | |
2603 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[141] | |
2604 | #define SWIGTYPE_p_wxSplitterEvent swig_types[142] | |
2605 | #define SWIGTYPE_p_wxSplitterWindow swig_types[143] | |
2606 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[144] | |
2607 | #define SWIGTYPE_p_wxStatusBar swig_types[145] | |
2608 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146] | |
2609 | #define SWIGTYPE_p_wxString swig_types[147] | |
2610 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[148] | |
2611 | #define SWIGTYPE_p_wxTIFFHandler swig_types[149] | |
2612 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[150] | |
2613 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[151] | |
2614 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[152] | |
2615 | #define SWIGTYPE_p_wxTipWindow swig_types[153] | |
2616 | #define SWIGTYPE_p_wxToolBar swig_types[154] | |
2617 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[155] | |
2618 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[156] | |
2619 | #define SWIGTYPE_p_wxValidator swig_types[157] | |
2620 | #define SWIGTYPE_p_wxVisualAttributes swig_types[158] | |
2621 | #define SWIGTYPE_p_wxWindow swig_types[159] | |
2622 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160] | |
2623 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161] | |
2624 | #define SWIGTYPE_p_wxXPMHandler swig_types[162] | |
2625 | static swig_type_info *swig_types[164]; | |
2626 | static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0}; | |
32fe5131 RD |
2627 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2628 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
36ed4f51 RD |
2629 | |
2630 | /* -------- TYPES TABLE (END) -------- */ | |
2631 | ||
1bd55598 RD |
2632 | #if (PY_VERSION_HEX <= 0x02000000) |
2633 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2634 | # error "This python version requires to use swig with the '-classic' option" | |
2635 | # endif | |
2636 | #endif | |
2637 | #if (PY_VERSION_HEX <= 0x02020000) | |
2638 | # error "This python version requires to use swig with the '-nomodern' option" | |
2639 | #endif | |
2640 | #if (PY_VERSION_HEX <= 0x02020000) | |
2641 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2642 | #endif | |
2643 | #ifndef METH_O | |
2644 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2645 | #endif | |
36ed4f51 RD |
2646 | |
2647 | /*----------------------------------------------- | |
2648 | @(target):= _windows_.so | |
2649 | ------------------------------------------------*/ | |
2650 | #define SWIG_init init_windows_ | |
2651 | ||
2652 | #define SWIG_name "_windows_" | |
2653 | ||
1bd55598 | 2654 | #define SWIGVERSION 0x010329 |
36ed4f51 | 2655 | |
36ed4f51 | 2656 | |
1bd55598 RD |
2657 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2658 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
36ed4f51 RD |
2659 | |
2660 | ||
1bd55598 | 2661 | #include <stdexcept> |
36ed4f51 RD |
2662 | |
2663 | ||
1bd55598 RD |
2664 | namespace swig { |
2665 | class PyObject_ptr { | |
2666 | protected: | |
2667 | PyObject *_obj; | |
36ed4f51 | 2668 | |
1bd55598 RD |
2669 | public: |
2670 | PyObject_ptr() :_obj(0) | |
2671 | { | |
2672 | } | |
36ed4f51 | 2673 | |
1bd55598 RD |
2674 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2675 | { | |
2676 | Py_XINCREF(_obj); | |
36ed4f51 | 2677 | } |
1bd55598 RD |
2678 | |
2679 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2680 | { | |
2681 | if (initial_ref) Py_XINCREF(_obj); | |
36ed4f51 | 2682 | } |
1bd55598 RD |
2683 | |
2684 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2685 | { | |
2686 | Py_XINCREF(item._obj); | |
2687 | Py_XDECREF(_obj); | |
2688 | _obj = item._obj; | |
2689 | return *this; | |
2690 | } | |
2691 | ||
2692 | ~PyObject_ptr() | |
2693 | { | |
2694 | Py_XDECREF(_obj); | |
2695 | } | |
2696 | ||
2697 | operator PyObject *() const | |
2698 | { | |
2699 | return _obj; | |
2700 | } | |
2701 | ||
2702 | PyObject *operator->() const | |
2703 | { | |
2704 | return _obj; | |
2705 | } | |
2706 | }; | |
36ed4f51 RD |
2707 | } |
2708 | ||
2709 | ||
1bd55598 RD |
2710 | namespace swig { |
2711 | struct PyObject_var : PyObject_ptr { | |
2712 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2713 | ||
2714 | PyObject_var & operator = (PyObject* obj) | |
2715 | { | |
2716 | Py_XDECREF(_obj); | |
2717 | _obj = obj; | |
2718 | return *this; | |
36ed4f51 | 2719 | } |
1bd55598 | 2720 | }; |
36ed4f51 | 2721 | } |
36ed4f51 RD |
2722 | |
2723 | ||
1bd55598 RD |
2724 | #include "wx/wxPython/wxPython.h" |
2725 | #include "wx/wxPython/pyclasses.h" | |
2726 | ||
36ed4f51 | 2727 | |
1bd55598 RD |
2728 | static const wxString wxPyEmptyString(wxEmptyString); |
2729 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
36ed4f51 | 2730 | |
36ed4f51 | 2731 | |
1bd55598 RD |
2732 | |
2733 | #include <limits.h> | |
2734 | #ifndef LLONG_MIN | |
2735 | # define LLONG_MIN LONG_LONG_MIN | |
2736 | #endif | |
2737 | #ifndef LLONG_MAX | |
2738 | # define LLONG_MAX LONG_LONG_MAX | |
2739 | #endif | |
2740 | #ifndef ULLONG_MAX | |
2741 | # define ULLONG_MAX ULONG_LONG_MAX | |
2742 | #endif | |
2743 | ||
2744 | ||
2745 | SWIGINTERN int | |
2746 | SWIG_AsVal_long (PyObject* obj, long* val) | |
36ed4f51 | 2747 | { |
1bd55598 RD |
2748 | if (PyNumber_Check(obj)) { |
2749 | if (val) *val = PyInt_AsLong(obj); | |
2750 | return SWIG_OK; | |
2751 | } | |
2752 | return SWIG_TypeError; | |
36ed4f51 RD |
2753 | } |
2754 | ||
1bd55598 RD |
2755 | |
2756 | SWIGINTERN int | |
2757 | SWIG_AsVal_int (PyObject * obj, int *val) | |
36ed4f51 | 2758 | { |
1bd55598 RD |
2759 | long v; |
2760 | int res = SWIG_AsVal_long (obj, &v); | |
2761 | if (SWIG_IsOK(res)) { | |
2762 | if ((v < INT_MIN || v > INT_MAX)) { | |
2763 | return SWIG_OverflowError; | |
2764 | } else { | |
2765 | if (val) *val = static_cast< int >(v); | |
2766 | } | |
2767 | } | |
2768 | return res; | |
36ed4f51 RD |
2769 | } |
2770 | ||
2771 | ||
2772 | SWIGINTERN int | |
1bd55598 | 2773 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
36ed4f51 RD |
2774 | { |
2775 | if (obj == Py_True) { | |
2776 | if (val) *val = true; | |
1bd55598 RD |
2777 | return SWIG_OK; |
2778 | } else if (obj == Py_False) { | |
36ed4f51 | 2779 | if (val) *val = false; |
1bd55598 | 2780 | return SWIG_OK; |
36ed4f51 | 2781 | } else { |
1bd55598 RD |
2782 | long v = 0; |
2783 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2784 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2785 | return res; | |
36ed4f51 | 2786 | } |
36ed4f51 RD |
2787 | } |
2788 | ||
2789 | ||
1bd55598 | 2790 | #define SWIG_From_long PyInt_FromLong |
36ed4f51 RD |
2791 | |
2792 | ||
1bd55598 RD |
2793 | SWIGINTERNINLINE PyObject * |
2794 | SWIG_From_int (int value) | |
2795 | { | |
2796 | return SWIG_From_long (value); | |
2797 | } | |
36ed4f51 RD |
2798 | |
2799 | ||
2800 | SWIGINTERN int | |
1bd55598 | 2801 | SWIG_AsVal_double (PyObject *obj, double* val) |
36ed4f51 RD |
2802 | { |
2803 | if (PyNumber_Check(obj)) { | |
2804 | if (val) *val = PyFloat_AsDouble(obj); | |
1bd55598 | 2805 | return SWIG_OK; |
36ed4f51 | 2806 | } |
1bd55598 | 2807 | return SWIG_TypeError; |
36ed4f51 RD |
2808 | } |
2809 | ||
2810 | ||
1bd55598 | 2811 | #define SWIG_From_double PyFloat_FromDouble |
36ed4f51 RD |
2812 | |
2813 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2814 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2815 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2816 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
1bd55598 RD |
2817 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ |
2818 | int style = self->GetExtraStyle(); | |
2819 | if ( on ) | |
2820 | style |= wxFRAME_EX_METAL; | |
2821 | else | |
2822 | style &= ~wxFRAME_EX_METAL; | |
2823 | self->SetExtraStyle(style); | |
2824 | } | |
36ed4f51 | 2825 | |
36ed4f51 | 2826 | |
1bd55598 | 2827 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
36ed4f51 RD |
2828 | wxRect r; |
2829 | self->GetFieldRect(i, r); | |
2830 | return r; | |
2831 | } | |
2832 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2833 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2834 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2835 | ||
2836 | #include <wx/popupwin.h> | |
2837 | ||
2838 | ||
2839 | class wxPopupWindow : public wxWindow { | |
2840 | public: | |
2841 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
2842 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
2843 | }; | |
2844 | ||
2845 | class wxPyPopupTransientWindow : public wxPopupWindow | |
2846 | { | |
2847 | public: | |
2848 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
2849 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
2850 | }; | |
2851 | ||
2852 | ||
2853 | #include <wx/tipwin.h> | |
2854 | ||
1bd55598 | 2855 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
36ed4f51 RD |
2856 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2857 | } | |
2858 | ||
2859 | #include <wx/tipwin.h> | |
2860 | ||
2861 | ||
2862 | #include <wx/vscroll.h> | |
2863 | ||
2864 | ||
2865 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2866 | { | |
32fe5131 | 2867 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
36ed4f51 RD |
2868 | public: |
2869 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2870 | ||
2871 | wxPyVScrolledWindow(wxWindow *parent, | |
2872 | wxWindowID id = wxID_ANY, | |
2873 | const wxPoint& pos = wxDefaultPosition, | |
2874 | const wxSize& size = wxDefaultSize, | |
2875 | long style = 0, | |
2876 | const wxString& name = wxPyPanelNameStr) | |
2877 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2878 | {} | |
2879 | ||
2880 | // Overridable virtuals | |
2881 | ||
2882 | // this function must be overridden in the derived class and it should | |
2883 | // return the height of the given line in pixels | |
2884 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2885 | ||
2886 | ||
2887 | // this function doesn't have to be overridden but it may be useful to do | |
2888 | // it if calculating the lines heights is a relatively expensive operation | |
2889 | // as it gives the user code a possibility to calculate several of them at | |
2890 | // once | |
2891 | // | |
2892 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2893 | // shouldn't rely on the latter being called for all lines in the interval | |
2894 | // specified here. It is also possible that OnGetLineHeight() will be | |
2895 | // called for the lines outside of this interval, so this is really just a | |
2896 | // hint, not a promise. | |
2897 | // | |
2898 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2899 | // usual | |
2900 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2901 | ||
2902 | ||
2903 | // when the number of lines changes, we try to estimate the total height | |
2904 | // of all lines which is a rather expensive operation in terms of lines | |
2905 | // access, so if the user code may estimate the average height | |
2906 | // better/faster than we do, it should override this function to implement | |
2907 | // its own logic | |
2908 | // | |
2909 | // this function should return the best guess for the total height it may | |
2910 | // make | |
2911 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2912 | ||
2913 | ||
2914 | // Also expose some other interesting protected methods | |
2915 | ||
2916 | ||
2917 | // find the index of the line we need to show at the top of the window such | |
2918 | // that the last (fully or partially) visible line is the given one | |
2919 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2920 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2921 | ||
2922 | // get the total height of the lines between lineMin (inclusive) and | |
2923 | // lineMax (exclusive) | |
2924 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2925 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
2926 | ||
2131d850 RD |
2927 | // update the thumb size shown by the scrollbar |
2928 | void UpdateScrollbar() { wxVScrolledWindow::UpdateScrollbar(); } | |
2929 | ||
2930 | // remove the scrollbar completely because we don't need it | |
2931 | void RemoveScrollbar() { wxVScrolledWindow::RemoveScrollbar(); } | |
36ed4f51 RD |
2932 | |
2933 | PYPRIVATE; | |
2934 | }; | |
2935 | ||
2936 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
d55e5bfc RD |
2937 | |
2938 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2939 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2940 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2941 | ||
2942 | ||
36ed4f51 | 2943 | SWIGINTERN int |
1bd55598 | 2944 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
d55e5bfc | 2945 | { |
c370783e RD |
2946 | long v = 0; |
2947 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1bd55598 | 2948 | return SWIG_TypeError; |
d55e5bfc | 2949 | } |
c370783e RD |
2950 | else if (val) |
2951 | *val = (unsigned long)v; | |
1bd55598 | 2952 | return SWIG_OK; |
d55e5bfc RD |
2953 | } |
2954 | ||
2955 | ||
32fe5131 | 2956 | SWIGINTERNINLINE int |
1bd55598 | 2957 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c370783e | 2958 | { |
1bd55598 RD |
2959 | unsigned long v; |
2960 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2961 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2962 | return res; | |
d55e5bfc RD |
2963 | } |
2964 | ||
2965 | ||
32fe5131 | 2966 | SWIGINTERNINLINE PyObject* |
1bd55598 | 2967 | SWIG_From_unsigned_SS_long (unsigned long value) |
d55e5bfc RD |
2968 | { |
2969 | return (value > LONG_MAX) ? | |
1bd55598 RD |
2970 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2971 | } | |
2972 | ||
2973 | ||
2974 | SWIGINTERNINLINE PyObject * | |
2975 | SWIG_From_size_t (size_t value) | |
2976 | { | |
2977 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
d55e5bfc RD |
2978 | } |
2979 | ||
2980 | ||
2981 | #include <wx/vlbox.h> | |
2982 | ||
2983 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
2984 | ||
2985 | class wxPyVListBox : public wxVListBox | |
2986 | { | |
32fe5131 | 2987 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d55e5bfc RD |
2988 | public: |
2989 | wxPyVListBox() : wxVListBox() {} | |
2990 | ||
2991 | wxPyVListBox(wxWindow *parent, | |
2992 | wxWindowID id = wxID_ANY, | |
2993 | const wxPoint& pos = wxDefaultPosition, | |
2994 | const wxSize& size = wxDefaultSize, | |
2995 | long style = 0, | |
2996 | const wxString& name = wxPyVListBoxNameStr) | |
2997 | : wxVListBox(parent, id, pos, size, style, name) | |
2998 | {} | |
2999 | ||
3000 | // Overridable virtuals | |
3001 | ||
3002 | // the derived class must implement this function to actually draw the item | |
3003 | // with the given index on the provided DC | |
3004 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
3005 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
3006 | ||
3007 | ||
3008 | // the derived class must implement this method to return the height of the | |
3009 | // specified item | |
3010 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3011 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3012 | ||
3013 | ||
3014 | // this method may be used to draw separators between the lines; note that | |
3015 | // the rectangle may be modified, typically to deflate it a bit before | |
3016 | // passing to OnDrawItem() | |
3017 | // | |
3018 | // the base class version doesn't do anything | |
3019 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
1c71765a | 3020 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d55e5bfc RD |
3021 | |
3022 | ||
3023 | // this method is used to draw the items background and, maybe, a border | |
3024 | // around it | |
3025 | // | |
3026 | // the base class version implements a reasonable default behaviour which | |
3027 | // consists in drawing the selected item with the standard background | |
3028 | // colour and drawing a border around the item if it is either selected or | |
3029 | // current | |
3030 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3031 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3032 | ||
3033 | ||
3034 | PYPRIVATE; | |
3035 | }; | |
3036 | ||
3037 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3038 | ||
3039 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3040 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
1c71765a | 3041 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d55e5bfc RD |
3042 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3043 | ||
3044 | ||
1bd55598 | 3045 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3046 | unsigned long cookie = 0; |
3047 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3048 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3049 | PyObject* tup = PyTuple_New(2); |
3050 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3051 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3052 | wxPyEndBlockThreads(blocked); | |
3053 | return tup; | |
3054 | } | |
1bd55598 | 3055 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3056 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3057 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3058 | PyObject* tup = PyTuple_New(2); |
3059 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3060 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3061 | wxPyEndBlockThreads(blocked); | |
3062 | return tup; | |
3063 | } | |
d55e5bfc RD |
3064 | |
3065 | #include <wx/htmllbox.h> | |
3066 | ||
3067 | ||
3068 | class wxPyHtmlListBox : public wxHtmlListBox | |
3069 | { | |
32fe5131 | 3070 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d55e5bfc RD |
3071 | public: |
3072 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3073 | ||
3074 | wxPyHtmlListBox(wxWindow *parent, | |
3075 | wxWindowID id = wxID_ANY, | |
3076 | const wxPoint& pos = wxDefaultPosition, | |
3077 | const wxSize& size = wxDefaultSize, | |
3078 | long style = 0, | |
3079 | const wxString& name = wxPyVListBoxNameStr) | |
3080 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3081 | {} | |
3082 | ||
3083 | // Overridable virtuals | |
3084 | ||
3085 | // this method must be implemented in the derived class and should return | |
3086 | // the body (i.e. without <html>) of the HTML for the given item | |
3087 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3088 | ||
3089 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3090 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3091 | ||
1c71765a RD |
3092 | // These are from wxVListBox |
3093 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3094 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3095 | ||
d55e5bfc RD |
3096 | // TODO: |
3097 | // // this method allows to customize the selection appearance: it may be used | |
3098 | // // to specify the colour of the text which normally has the given colour | |
3099 | // // colFg when it is inside the selection | |
3100 | // // | |
3101 | // // by default, the original colour is not used at all and all text has the | |
3102 | // // same (default for this system) colour inside selection | |
3103 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3104 | ||
3105 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3106 | // // background colour -- this is even more rarely used as you can change it | |
3107 | // // globally using SetSelectionBackground() | |
3108 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3109 | ||
e9d6f3a4 RD |
3110 | |
3111 | // This method may be overriden to handle clicking on a link in | |
3112 | // the listbox. By default, clicking links is ignored. | |
3113 | virtual void OnLinkClicked(size_t n, | |
3114 | const wxHtmlLinkInfo& link); | |
d55e5bfc RD |
3115 | |
3116 | PYPRIVATE; | |
3117 | }; | |
3118 | ||
3119 | ||
3120 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3121 | ||
3122 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3123 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
1c71765a RD |
3124 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3125 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d55e5bfc RD |
3126 | |
3127 | ||
e9d6f3a4 RD |
3128 | void wxPyHtmlListBox::OnLinkClicked(size_t n, |
3129 | const wxHtmlLinkInfo& link) { | |
3130 | bool found; | |
3131 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3132 | if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) { | |
3133 | PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0); | |
3134 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", n, obj)); | |
3135 | Py_DECREF(obj); | |
3136 | } | |
3137 | wxPyEndBlockThreads(blocked); | |
3138 | if (! found) | |
3139 | wxPyHtmlListBox::OnLinkClicked(n, link); | |
3140 | } | |
3141 | ||
3142 | ||
d55e5bfc RD |
3143 | |
3144 | ||
3145 | ||
b411df4a RD |
3146 | #ifndef wxHAS_TASK_BAR_ICON |
3147 | // implement dummy classes for platforms that don't have it | |
d55e5bfc RD |
3148 | |
3149 | class wxTaskBarIcon : public wxEvtHandler | |
3150 | { | |
3151 | public: | |
3152 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
3153 | }; | |
09c21d3b | 3154 | |
d55e5bfc RD |
3155 | |
3156 | class wxTaskBarIconEvent : public wxEvent | |
3157 | { | |
3158 | public: | |
3159 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
3160 | { wxPyRaiseNotImplemented(); } | |
3161 | virtual wxEvent* Clone() const { return NULL; } | |
b411df4a RD |
3162 | bool IsOk() const { return false; } |
3163 | bool IsIconInstalled() const { return false; } | |
3164 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3165 | bool RemoveIcon() { return false; } | |
3166 | bool PopupMenu(wxMenu *menu) { return false; } | |
d55e5bfc RD |
3167 | }; |
3168 | ||
3169 | enum { | |
3170 | wxEVT_TASKBAR_MOVE = 0, | |
3171 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3172 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3173 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3174 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3175 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3176 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3177 | }; | |
09c21d3b RD |
3178 | |
3179 | ||
3180 | #else | |
5e483524 RD |
3181 | // Otherwise make a class that can virtualize CreatePopupMenu |
3182 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3183 | { | |
32fe5131 | 3184 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3185 | public: |
3186 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3187 | {} | |
09c21d3b | 3188 | |
5e483524 RD |
3189 | wxMenu* CreatePopupMenu() { |
3190 | wxMenu *rval = NULL; | |
3191 | bool found; | |
5a446332 | 3192 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3193 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3194 | PyObject* ro; | |
3195 | wxMenu* ptr; | |
3196 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3197 | if (ro) { | |
3198 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3199 | rval = ptr; | |
3200 | Py_DECREF(ro); | |
3201 | } | |
3202 | } | |
3203 | wxPyEndBlockThreads(blocked); | |
3204 | if (! found) | |
3205 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3206 | return rval; | |
3207 | } | |
d55e5bfc | 3208 | |
5e483524 RD |
3209 | PYPRIVATE; |
3210 | }; | |
d55e5bfc | 3211 | |
5e483524 | 3212 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); |
d55e5bfc | 3213 | |
5e483524 RD |
3214 | #endif |
3215 | ||
1bd55598 | 3216 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
5e483524 RD |
3217 | self->RemoveIcon(); |
3218 | delete self; | |
d55e5bfc RD |
3219 | } |
3220 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3221 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3222 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3223 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3224 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3225 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
b02396e8 RD |
3226 | |
3227 | // for compatibility only | |
3228 | #define wxHIDE_READONLY 0 | |
3229 | ||
1bd55598 | 3230 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d55e5bfc RD |
3231 | wxArrayString arr; |
3232 | self->GetFilenames(arr); | |
3233 | return wxArrayString2PyList_helper(arr); | |
3234 | } | |
1bd55598 | 3235 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d55e5bfc RD |
3236 | wxArrayString arr; |
3237 | self->GetPaths(arr); | |
3238 | return wxArrayString2PyList_helper(arr); | |
3239 | } | |
1bd55598 | 3240 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d55e5bfc RD |
3241 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3242 | } | |
1bd55598 | 3243 | 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 |
3244 | return new wxSingleChoiceDialog(parent, message, caption, |
3245 | choices, choices_array, NULL, style, pos); | |
3246 | } | |
070c48b4 | 3247 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d55e5bfc | 3248 | |
2131d850 RD |
3249 | SWIGINTERNINLINE PyObject* |
3250 | SWIG_From_bool (bool value) | |
3251 | { | |
3252 | return PyBool_FromLong(value ? 1 : 0); | |
3253 | } | |
3254 | ||
3255 | ||
d55e5bfc RD |
3256 | #include <wx/mdi.h> |
3257 | ||
3258 | // C++ version of Python aware wxWindow | |
3259 | class wxPyWindow : public wxWindow | |
3260 | { | |
3261 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3262 | public: | |
3263 | wxPyWindow() : wxWindow() {} | |
3264 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3265 | const wxPoint& pos = wxDefaultPosition, | |
3266 | const wxSize& size = wxDefaultSize, | |
3267 | long style = 0, | |
3268 | const wxString& name = wxPyPanelNameStr) | |
3269 | : wxWindow(parent, id, pos, size, style, name) {} | |
3270 | ||
a5ee0656 | 3271 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc | 3272 | |
976dbff5 RD |
3273 | bool DoEraseBackground(wxDC* dc) { |
3274 | #ifdef __WXMSW__ | |
3275 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3276 | #else | |
3277 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3278 | dc->Clear(); | |
3279 | return true; | |
3280 | #endif | |
3281 | } | |
3282 | ||
d55e5bfc RD |
3283 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3284 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3285 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3286 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3287 | ||
3288 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3289 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3290 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3291 | ||
3292 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3293 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3294 | ||
3295 | DEC_PYCALLBACK__(InitDialog); | |
3296 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3297 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3298 | DEC_PYCALLBACK_BOOL_(Validate); | |
3299 | ||
3300 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3301 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3302 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3303 | ||
3304 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3305 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3306 | ||
a5ee0656 | 3307 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3308 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3309 | |
51b83b37 RD |
3310 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3311 | ||
8d38bd1d RD |
3312 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3313 | ||
d55e5bfc RD |
3314 | PYPRIVATE; |
3315 | }; | |
3316 | ||
3317 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3318 | ||
3319 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3320 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3321 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3322 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3323 | ||
3324 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3325 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3326 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3327 | ||
3328 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3329 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3330 | ||
3331 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3332 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3333 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3334 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3335 | ||
3336 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3337 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3338 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3339 | ||
3340 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3341 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3342 | ||
a5ee0656 | 3343 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
a5ee0656 | 3344 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3345 | |
3346 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d55e5bfc | 3347 | |
8d38bd1d RD |
3348 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3349 | ||
d55e5bfc RD |
3350 | // C++ version of Python aware wxPanel |
3351 | class wxPyPanel : public wxPanel | |
3352 | { | |
3353 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3354 | public: | |
3355 | wxPyPanel() : wxPanel() {} | |
3356 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3357 | const wxPoint& pos = wxDefaultPosition, | |
3358 | const wxSize& size = wxDefaultSize, | |
3359 | long style = 0, | |
3360 | const wxString& name = wxPyPanelNameStr) | |
3361 | : wxPanel(parent, id, pos, size, style, name) {} | |
3362 | ||
a5ee0656 | 3363 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
976dbff5 RD |
3364 | bool DoEraseBackground(wxDC* dc) { |
3365 | #ifdef __WXMSW__ | |
3366 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3367 | #else | |
3368 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3369 | dc->Clear(); | |
3370 | return true; | |
3371 | #endif | |
3372 | } | |
a5ee0656 | 3373 | |
d55e5bfc RD |
3374 | |
3375 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3376 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3377 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3378 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3379 | ||
3380 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3381 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3382 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3383 | ||
3384 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3385 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3386 | ||
3387 | DEC_PYCALLBACK__(InitDialog); | |
3388 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3389 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3390 | DEC_PYCALLBACK_BOOL_(Validate); | |
3391 | ||
3392 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3393 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3394 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3395 | ||
3396 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3397 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3398 | ||
a5ee0656 | 3399 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3400 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3401 | |
51b83b37 RD |
3402 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3403 | ||
8d38bd1d RD |
3404 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3405 | ||
d55e5bfc RD |
3406 | PYPRIVATE; |
3407 | }; | |
3408 | ||
3409 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3410 | ||
3411 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3412 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3413 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3414 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3415 | ||
3416 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3417 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3418 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3419 | ||
3420 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3421 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3422 | ||
3423 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3424 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3425 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3426 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3427 | ||
3428 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3429 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3430 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3431 | ||
3432 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3433 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3434 | ||
a5ee0656 | 3435 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
a5ee0656 | 3436 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 3437 | |
51b83b37 RD |
3438 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3439 | ||
8d38bd1d RD |
3440 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3441 | ||
d55e5bfc RD |
3442 | // C++ version of Python aware wxScrolledWindow |
3443 | class wxPyScrolledWindow : public wxScrolledWindow | |
3444 | { | |
3445 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3446 | public: | |
3447 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3448 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3449 | const wxPoint& pos = wxDefaultPosition, | |
3450 | const wxSize& size = wxDefaultSize, | |
3451 | long style = 0, | |
3452 | const wxString& name = wxPyPanelNameStr) | |
3453 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3454 | ||
a5ee0656 | 3455 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
976dbff5 RD |
3456 | bool DoEraseBackground(wxDC* dc) { |
3457 | #ifdef __WXMSW__ | |
3458 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3459 | #else | |
3460 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3461 | dc->Clear(); | |
3462 | return true; | |
3463 | #endif | |
3464 | } | |
d55e5bfc RD |
3465 | |
3466 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3467 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3468 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3469 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3470 | ||
3471 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3472 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3473 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3474 | ||
3475 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3476 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3477 | ||
3478 | DEC_PYCALLBACK__(InitDialog); | |
3479 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3480 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3481 | DEC_PYCALLBACK_BOOL_(Validate); | |
3482 | ||
3483 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3484 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3485 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3486 | ||
3487 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3488 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3489 | ||
a5ee0656 | 3490 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 3491 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3492 | |
51b83b37 RD |
3493 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3494 | ||
8d38bd1d RD |
3495 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3496 | ||
d55e5bfc RD |
3497 | PYPRIVATE; |
3498 | }; | |
3499 | ||
3500 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3501 | ||
3502 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3503 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3504 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3505 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3506 | ||
3507 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3508 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3509 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3510 | ||
3511 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3512 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3513 | ||
3514 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3515 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3516 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3517 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3518 | ||
3519 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3520 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3521 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3522 | ||
3523 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3524 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3525 | ||
a5ee0656 | 3526 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
a5ee0656 RD |
3527 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3528 | ||
51b83b37 | 3529 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d55e5bfc | 3530 | |
8d38bd1d RD |
3531 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3532 | ||
d55e5bfc RD |
3533 | |
3534 | #include "wx/wxPython/printfw.h" | |
3535 | ||
3536 | ||
3537 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
3538 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1bd55598 | 3539 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
7fbf8399 | 3540 | PyObject* data; |
5a446332 | 3541 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7fbf8399 RD |
3542 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3543 | self->GetPrivDataLen()); | |
3544 | wxPyEndBlockThreads(blocked); | |
3545 | return data; | |
3546 | } | |
1bd55598 | 3547 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
7fbf8399 RD |
3548 | if (! PyString_Check(data)) { |
3549 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3550 | "Expected string object")); | |
3551 | return /* NULL */ ; | |
3552 | } | |
3553 | ||
5a446332 | 3554 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
7fbf8399 RD |
3555 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3556 | wxPyEndBlockThreads(blocked); | |
3557 | } | |
d55e5bfc RD |
3558 | |
3559 | ||
070c48b4 | 3560 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d55e5bfc RD |
3561 | |
3562 | // Since this one would be tough and ugly to do with the Macros... | |
3563 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
b411df4a | 3564 | bool hadErr = false; |
d55e5bfc RD |
3565 | bool found; |
3566 | ||
5a446332 | 3567 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3568 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3569 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3570 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3571 | PyObject* val; | |
3572 | ||
3573 | val = PyTuple_GetItem(result, 0); | |
3574 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
b411df4a | 3575 | else hadErr = true; |
d55e5bfc RD |
3576 | |
3577 | val = PyTuple_GetItem(result, 1); | |
3578 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
b411df4a | 3579 | else hadErr = true; |
d55e5bfc RD |
3580 | |
3581 | val = PyTuple_GetItem(result, 2); | |
3582 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
b411df4a | 3583 | else hadErr = true; |
d55e5bfc RD |
3584 | |
3585 | val = PyTuple_GetItem(result, 3); | |
3586 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
b411df4a | 3587 | else hadErr = true; |
d55e5bfc RD |
3588 | } |
3589 | else | |
b411df4a | 3590 | hadErr = true; |
d55e5bfc RD |
3591 | |
3592 | if (hadErr) { | |
3593 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3594 | PyErr_Print(); | |
3595 | } | |
3596 | Py_DECREF(result); | |
3597 | } | |
3598 | wxPyEndBlockThreads(blocked); | |
3599 | if (! found) | |
3600 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3601 | } | |
3602 | ||
d55e5bfc RD |
3603 | |
3604 | ||
3605 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3606 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3607 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3608 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3609 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3610 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3611 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3612 | ||
3613 | ||
3614 | ||
3615 | ||
3616 | ||
b411df4a | 3617 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
7f7aa166 | 3618 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d55e5bfc RD |
3619 | |
3620 | ||
b411df4a RD |
3621 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3622 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3623 | bool rval=false; \ | |
3624 | bool found; \ | |
32fe5131 | 3625 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
b411df4a RD |
3626 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3627 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3628 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3629 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3630 | Py_DECREF(win); \ | |
3631 | Py_DECREF(dc); \ | |
3632 | } \ | |
3633 | wxPyEndBlockThreads(blocked); \ | |
3634 | if (! found) \ | |
3635 | rval = PCLASS::CBNAME(a, b); \ | |
3636 | return rval; \ | |
7f7aa166 | 3637 | } |
d55e5bfc RD |
3638 | |
3639 | ||
3640 | ||
3641 | ||
3642 | class wxPyPrintPreview : public wxPrintPreview | |
3643 | { | |
3644 | DECLARE_CLASS(wxPyPrintPreview) | |
3645 | public: | |
3646 | wxPyPrintPreview(wxPyPrintout* printout, | |
3647 | wxPyPrintout* printoutForPrinting, | |
3648 | wxPrintDialogData* data=NULL) | |
3649 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3650 | {} | |
3651 | wxPyPrintPreview(wxPyPrintout* printout, | |
3652 | wxPyPrintout* printoutForPrinting, | |
32fe5131 | 3653 | wxPrintData* data) |
d55e5bfc RD |
3654 | : wxPrintPreview(printout, printoutForPrinting, data) |
3655 | {} | |
3656 | ||
3657 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3658 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3659 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3660 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3661 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3662 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3663 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3664 | ||
3665 | PYPRIVATE; | |
3666 | }; | |
3667 | ||
3668 | // Stupid renamed classes... Fix this in 2.5... | |
3669 | #if defined(__WXMSW__) | |
3670 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3671 | #elif defined(__WXMAC__) | |
3672 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3673 | #else | |
3674 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3675 | #endif | |
3676 | ||
3677 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3678 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3679 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3680 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3681 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3682 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3683 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3684 | ||
3685 | ||
3686 | class wxPyPreviewFrame : public wxPreviewFrame | |
3687 | { | |
32fe5131 | 3688 | DECLARE_CLASS(wxPyPreviewFrame) |
d55e5bfc RD |
3689 | public: |
3690 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3691 | const wxString& title, | |
3692 | const wxPoint& pos = wxDefaultPosition, | |
3693 | const wxSize& size = wxDefaultSize, | |
3694 | long style = wxDEFAULT_FRAME_STYLE, | |
3695 | const wxString& name = wxPyFrameNameStr) | |
3696 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3697 | {} | |
3698 | ||
3699 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3700 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3701 | ||
3702 | DEC_PYCALLBACK_VOID_(Initialize); | |
3703 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3704 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3705 | ||
3706 | PYPRIVATE; | |
3707 | }; | |
3708 | ||
3709 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3710 | ||
3711 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3712 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3713 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3714 | ||
3715 | ||
3716 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3717 | { | |
32fe5131 | 3718 | DECLARE_CLASS(wxPyPreviewControlBar) |
d55e5bfc RD |
3719 | public: |
3720 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3721 | long buttons, | |
3722 | wxWindow *parent, | |
3723 | const wxPoint& pos = wxDefaultPosition, | |
3724 | const wxSize& size = wxDefaultSize, | |
3725 | long style = 0, | |
3726 | const wxString& name = wxPyPanelNameStr) | |
3727 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3728 | {} | |
3729 | ||
3730 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3731 | ||
3732 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3733 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3734 | ||
3735 | PYPRIVATE; | |
3736 | }; | |
3737 | ||
3738 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3739 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3740 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3741 | ||
3742 | #ifdef __cplusplus | |
3743 | extern "C" { | |
3744 | #endif | |
1bd55598 RD |
3745 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3746 | PyObject *resultobj = 0; | |
3747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3748 | int arg2 = (int) (int)-1 ; | |
3749 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3750 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3751 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3752 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3753 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3754 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3755 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3756 | wxPanel *result = 0 ; | |
3757 | void *argp1 = 0 ; | |
3758 | int res1 = 0 ; | |
3759 | int val2 ; | |
3760 | int ecode2 = 0 ; | |
3761 | wxPoint temp3 ; | |
3762 | wxSize temp4 ; | |
3763 | long val5 ; | |
3764 | int ecode5 = 0 ; | |
3765 | bool temp6 = false ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | PyObject * obj2 = 0 ; | |
3769 | PyObject * obj3 = 0 ; | |
3770 | PyObject * obj4 = 0 ; | |
3771 | PyObject * obj5 = 0 ; | |
3772 | char * kwnames[] = { | |
3773 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3774 | }; | |
3775 | ||
3776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3778 | if (!SWIG_IsOK(res1)) { | |
3779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3780 | } | |
3781 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3782 | if (obj1) { | |
3783 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3784 | if (!SWIG_IsOK(ecode2)) { | |
3785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3786 | } | |
3787 | arg2 = static_cast< int >(val2); | |
3788 | } | |
3789 | if (obj2) { | |
d55e5bfc | 3790 | { |
1bd55598 RD |
3791 | arg3 = &temp3; |
3792 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 3793 | } |
1bd55598 RD |
3794 | } |
3795 | if (obj3) { | |
d55e5bfc | 3796 | { |
1bd55598 RD |
3797 | arg4 = &temp4; |
3798 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3799 | } |
1bd55598 RD |
3800 | } |
3801 | if (obj4) { | |
3802 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3803 | if (!SWIG_IsOK(ecode5)) { | |
3804 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3805 | } | |
3806 | arg5 = static_cast< long >(val5); | |
3807 | } | |
3808 | if (obj5) { | |
d55e5bfc | 3809 | { |
1bd55598 RD |
3810 | arg6 = wxString_in_helper(obj5); |
3811 | if (arg6 == NULL) SWIG_fail; | |
3812 | temp6 = true; | |
3813 | } | |
3814 | } | |
3815 | { | |
3816 | if (!wxPyCheckForApp()) SWIG_fail; | |
3817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3818 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
3822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3823 | { | |
3824 | if (temp6) | |
3825 | delete arg6; | |
3826 | } | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | { | |
3830 | if (temp6) | |
3831 | delete arg6; | |
3832 | } | |
3833 | return NULL; | |
d55e5bfc RD |
3834 | } |
3835 | ||
3836 | ||
1bd55598 RD |
3837 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3838 | PyObject *resultobj = 0; | |
3839 | wxPanel *result = 0 ; | |
3840 | ||
3841 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3842 | { | |
3843 | if (!wxPyCheckForApp()) SWIG_fail; | |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | result = (wxPanel *)new wxPanel(); | |
3846 | wxPyEndAllowThreads(__tstate); | |
3847 | if (PyErr_Occurred()) SWIG_fail; | |
3848 | } | |
3849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3850 | return resultobj; | |
3851 | fail: | |
3852 | return NULL; | |
3853 | } | |
3854 | ||
3855 | ||
3856 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3857 | PyObject *resultobj = 0; | |
3858 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3859 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3860 | int arg3 = (int) (int)-1 ; | |
3861 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3862 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3863 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3864 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3865 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3866 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3867 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3868 | bool result; | |
3869 | void *argp1 = 0 ; | |
3870 | int res1 = 0 ; | |
3871 | void *argp2 = 0 ; | |
3872 | int res2 = 0 ; | |
3873 | int val3 ; | |
3874 | int ecode3 = 0 ; | |
3875 | wxPoint temp4 ; | |
3876 | wxSize temp5 ; | |
3877 | long val6 ; | |
3878 | int ecode6 = 0 ; | |
3879 | bool temp7 = false ; | |
3880 | PyObject * obj0 = 0 ; | |
3881 | PyObject * obj1 = 0 ; | |
3882 | PyObject * obj2 = 0 ; | |
3883 | PyObject * obj3 = 0 ; | |
3884 | PyObject * obj4 = 0 ; | |
3885 | PyObject * obj5 = 0 ; | |
3886 | PyObject * obj6 = 0 ; | |
3887 | char * kwnames[] = { | |
3888 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3889 | }; | |
3890 | ||
3891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3893 | if (!SWIG_IsOK(res1)) { | |
3894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3895 | } | |
3896 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3897 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3898 | if (!SWIG_IsOK(res2)) { | |
3899 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3900 | } | |
3901 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3902 | if (obj2) { | |
3903 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3904 | if (!SWIG_IsOK(ecode3)) { | |
3905 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3906 | } | |
3907 | arg3 = static_cast< int >(val3); | |
3908 | } | |
3909 | if (obj3) { | |
d55e5bfc | 3910 | { |
1bd55598 RD |
3911 | arg4 = &temp4; |
3912 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3913 | } |
1bd55598 RD |
3914 | } |
3915 | if (obj4) { | |
d55e5bfc | 3916 | { |
1bd55598 RD |
3917 | arg5 = &temp5; |
3918 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3919 | } |
1bd55598 RD |
3920 | } |
3921 | if (obj5) { | |
3922 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3923 | if (!SWIG_IsOK(ecode6)) { | |
3924 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3925 | } | |
3926 | arg6 = static_cast< long >(val6); | |
3927 | } | |
3928 | if (obj6) { | |
d55e5bfc | 3929 | { |
1bd55598 RD |
3930 | arg7 = wxString_in_helper(obj6); |
3931 | if (arg7 == NULL) SWIG_fail; | |
3932 | temp7 = true; | |
d55e5bfc | 3933 | } |
1bd55598 RD |
3934 | } |
3935 | { | |
3936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3937 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3938 | wxPyEndAllowThreads(__tstate); | |
3939 | if (PyErr_Occurred()) SWIG_fail; | |
3940 | } | |
3941 | { | |
3942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3943 | } | |
3944 | { | |
3945 | if (temp7) | |
3946 | delete arg7; | |
3947 | } | |
3948 | return resultobj; | |
3949 | fail: | |
3950 | { | |
3951 | if (temp7) | |
3952 | delete arg7; | |
3953 | } | |
3954 | return NULL; | |
5cbf236d RD |
3955 | } |
3956 | ||
3957 | ||
1bd55598 RD |
3958 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3959 | PyObject *resultobj = 0; | |
3960 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3961 | void *argp1 = 0 ; | |
3962 | int res1 = 0 ; | |
3963 | PyObject *swig_obj[1] ; | |
3964 | ||
3965 | if (!args) SWIG_fail; | |
3966 | swig_obj[0] = args; | |
3967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3968 | if (!SWIG_IsOK(res1)) { | |
3969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3970 | } | |
3971 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3972 | { | |
3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3974 | (arg1)->SetFocusIgnoringChildren(); | |
3975 | wxPyEndAllowThreads(__tstate); | |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
3977 | } | |
3978 | resultobj = SWIG_Py_Void(); | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | return NULL; | |
3982 | } | |
3983 | ||
3984 | ||
3985 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3986 | PyObject *resultobj = 0; | |
3987 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3988 | SwigValueWrapper<wxVisualAttributes > result; | |
3989 | int val1 ; | |
3990 | int ecode1 = 0 ; | |
3991 | PyObject * obj0 = 0 ; | |
3992 | char * kwnames[] = { | |
3993 | (char *) "variant", NULL | |
3994 | }; | |
3995 | ||
3996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3997 | if (obj0) { | |
3998 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3999 | if (!SWIG_IsOK(ecode1)) { | |
4000 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
4001 | } | |
4002 | arg1 = static_cast< wxWindowVariant >(val1); | |
4003 | } | |
4004 | { | |
4005 | if (!wxPyCheckForApp()) SWIG_fail; | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
4018 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4019 | PyObject *obj; | |
4020 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4021 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
4022 | return SWIG_Py_Void(); | |
4023 | } | |
4024 | ||
4025 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4026 | return SWIG_Python_InitShadowInstance(args); | |
4027 | } | |
4028 | ||
4029 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj = 0; | |
4031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4032 | int arg2 = (int) (int)-1 ; | |
4033 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4034 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4035 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4036 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4037 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
4038 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
4039 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4040 | wxScrolledWindow *result = 0 ; | |
4041 | void *argp1 = 0 ; | |
4042 | int res1 = 0 ; | |
4043 | int val2 ; | |
4044 | int ecode2 = 0 ; | |
4045 | wxPoint temp3 ; | |
4046 | wxSize temp4 ; | |
4047 | long val5 ; | |
4048 | int ecode5 = 0 ; | |
4049 | bool temp6 = false ; | |
4050 | PyObject * obj0 = 0 ; | |
4051 | PyObject * obj1 = 0 ; | |
4052 | PyObject * obj2 = 0 ; | |
4053 | PyObject * obj3 = 0 ; | |
4054 | PyObject * obj4 = 0 ; | |
4055 | PyObject * obj5 = 0 ; | |
4056 | char * kwnames[] = { | |
4057 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4058 | }; | |
4059 | ||
4060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4062 | if (!SWIG_IsOK(res1)) { | |
4063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4064 | } | |
4065 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4066 | if (obj1) { | |
4067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4068 | if (!SWIG_IsOK(ecode2)) { | |
4069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4070 | } | |
4071 | arg2 = static_cast< int >(val2); | |
4072 | } | |
4073 | if (obj2) { | |
5cbf236d | 4074 | { |
1bd55598 RD |
4075 | arg3 = &temp3; |
4076 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 4077 | } |
1bd55598 RD |
4078 | } |
4079 | if (obj3) { | |
f20a2e1f | 4080 | { |
1bd55598 RD |
4081 | arg4 = &temp4; |
4082 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 4083 | } |
1bd55598 RD |
4084 | } |
4085 | if (obj4) { | |
4086 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4087 | if (!SWIG_IsOK(ecode5)) { | |
4088 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4089 | } | |
4090 | arg5 = static_cast< long >(val5); | |
4091 | } | |
4092 | if (obj5) { | |
f20a2e1f | 4093 | { |
1bd55598 RD |
4094 | arg6 = wxString_in_helper(obj5); |
4095 | if (arg6 == NULL) SWIG_fail; | |
4096 | temp6 = true; | |
f20a2e1f | 4097 | } |
1bd55598 RD |
4098 | } |
4099 | { | |
4100 | if (!wxPyCheckForApp()) SWIG_fail; | |
4101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4102 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4103 | wxPyEndAllowThreads(__tstate); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
4105 | } | |
4106 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4107 | { | |
4108 | if (temp6) | |
4109 | delete arg6; | |
4110 | } | |
4111 | return resultobj; | |
4112 | fail: | |
4113 | { | |
4114 | if (temp6) | |
4115 | delete arg6; | |
4116 | } | |
4117 | return NULL; | |
f20a2e1f RD |
4118 | } |
4119 | ||
4120 | ||
1bd55598 RD |
4121 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4122 | PyObject *resultobj = 0; | |
4123 | wxScrolledWindow *result = 0 ; | |
4124 | ||
4125 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4126 | { | |
4127 | if (!wxPyCheckForApp()) SWIG_fail; | |
4128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4129 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4130 | wxPyEndAllowThreads(__tstate); | |
4131 | if (PyErr_Occurred()) SWIG_fail; | |
4132 | } | |
4133 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4134 | return resultobj; | |
4135 | fail: | |
4136 | return NULL; | |
4137 | } | |
4138 | ||
4139 | ||
4140 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4141 | PyObject *resultobj = 0; | |
4142 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4143 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4144 | int arg3 = (int) (int)-1 ; | |
4145 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4146 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4147 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4148 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4149 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4150 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4151 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4152 | bool result; | |
4153 | void *argp1 = 0 ; | |
4154 | int res1 = 0 ; | |
4155 | void *argp2 = 0 ; | |
4156 | int res2 = 0 ; | |
4157 | int val3 ; | |
4158 | int ecode3 = 0 ; | |
4159 | wxPoint temp4 ; | |
4160 | wxSize temp5 ; | |
4161 | long val6 ; | |
4162 | int ecode6 = 0 ; | |
4163 | bool temp7 = false ; | |
4164 | PyObject * obj0 = 0 ; | |
4165 | PyObject * obj1 = 0 ; | |
4166 | PyObject * obj2 = 0 ; | |
4167 | PyObject * obj3 = 0 ; | |
4168 | PyObject * obj4 = 0 ; | |
4169 | PyObject * obj5 = 0 ; | |
4170 | PyObject * obj6 = 0 ; | |
4171 | char * kwnames[] = { | |
4172 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4173 | }; | |
4174 | ||
4175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4177 | if (!SWIG_IsOK(res1)) { | |
4178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4179 | } | |
4180 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4181 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4182 | if (!SWIG_IsOK(res2)) { | |
4183 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4184 | } | |
4185 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4186 | if (obj2) { | |
4187 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4188 | if (!SWIG_IsOK(ecode3)) { | |
4189 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4190 | } | |
4191 | arg3 = static_cast< int >(val3); | |
4192 | } | |
4193 | if (obj3) { | |
d55e5bfc | 4194 | { |
1bd55598 RD |
4195 | arg4 = &temp4; |
4196 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 4197 | } |
1bd55598 RD |
4198 | } |
4199 | if (obj4) { | |
d55e5bfc | 4200 | { |
1bd55598 RD |
4201 | arg5 = &temp5; |
4202 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4203 | } |
1bd55598 RD |
4204 | } |
4205 | if (obj5) { | |
4206 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4207 | if (!SWIG_IsOK(ecode6)) { | |
4208 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4209 | } | |
4210 | arg6 = static_cast< long >(val6); | |
4211 | } | |
4212 | if (obj6) { | |
d55e5bfc | 4213 | { |
1bd55598 RD |
4214 | arg7 = wxString_in_helper(obj6); |
4215 | if (arg7 == NULL) SWIG_fail; | |
4216 | temp7 = true; | |
4217 | } | |
4218 | } | |
4219 | { | |
4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4221 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | { | |
4226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4227 | } | |
4228 | { | |
4229 | if (temp7) | |
4230 | delete arg7; | |
4231 | } | |
4232 | return resultobj; | |
4233 | fail: | |
4234 | { | |
4235 | if (temp7) | |
4236 | delete arg7; | |
4237 | } | |
4238 | return NULL; | |
4239 | } | |
4240 | ||
4241 | ||
4242 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4243 | PyObject *resultobj = 0; | |
4244 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4245 | int arg2 ; | |
4246 | int arg3 ; | |
4247 | int arg4 ; | |
4248 | int arg5 ; | |
4249 | int arg6 = (int) 0 ; | |
4250 | int arg7 = (int) 0 ; | |
4251 | bool arg8 = (bool) false ; | |
4252 | void *argp1 = 0 ; | |
4253 | int res1 = 0 ; | |
4254 | int val2 ; | |
4255 | int ecode2 = 0 ; | |
4256 | int val3 ; | |
4257 | int ecode3 = 0 ; | |
4258 | int val4 ; | |
4259 | int ecode4 = 0 ; | |
4260 | int val5 ; | |
4261 | int ecode5 = 0 ; | |
4262 | int val6 ; | |
4263 | int ecode6 = 0 ; | |
4264 | int val7 ; | |
4265 | int ecode7 = 0 ; | |
4266 | bool val8 ; | |
4267 | int ecode8 = 0 ; | |
4268 | PyObject * obj0 = 0 ; | |
4269 | PyObject * obj1 = 0 ; | |
4270 | PyObject * obj2 = 0 ; | |
4271 | PyObject * obj3 = 0 ; | |
4272 | PyObject * obj4 = 0 ; | |
4273 | PyObject * obj5 = 0 ; | |
4274 | PyObject * obj6 = 0 ; | |
4275 | PyObject * obj7 = 0 ; | |
4276 | char * kwnames[] = { | |
4277 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4278 | }; | |
4279 | ||
4280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4282 | if (!SWIG_IsOK(res1)) { | |
4283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4284 | } | |
4285 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4286 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4287 | if (!SWIG_IsOK(ecode2)) { | |
4288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4289 | } | |
4290 | arg2 = static_cast< int >(val2); | |
4291 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4292 | if (!SWIG_IsOK(ecode3)) { | |
4293 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4294 | } | |
4295 | arg3 = static_cast< int >(val3); | |
4296 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4297 | if (!SWIG_IsOK(ecode4)) { | |
4298 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4299 | } | |
4300 | arg4 = static_cast< int >(val4); | |
4301 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4302 | if (!SWIG_IsOK(ecode5)) { | |
4303 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4304 | } | |
4305 | arg5 = static_cast< int >(val5); | |
4306 | if (obj5) { | |
4307 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4308 | if (!SWIG_IsOK(ecode6)) { | |
4309 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4310 | } | |
4311 | arg6 = static_cast< int >(val6); | |
4312 | } | |
4313 | if (obj6) { | |
4314 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4315 | if (!SWIG_IsOK(ecode7)) { | |
4316 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4317 | } | |
4318 | arg7 = static_cast< int >(val7); | |
4319 | } | |
4320 | if (obj7) { | |
4321 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4322 | if (!SWIG_IsOK(ecode8)) { | |
4323 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4324 | } | |
4325 | arg8 = static_cast< bool >(val8); | |
4326 | } | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4330 | wxPyEndAllowThreads(__tstate); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | resultobj = SWIG_Py_Void(); | |
4334 | return resultobj; | |
4335 | fail: | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj = 0; | |
4342 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4343 | int arg2 ; | |
4344 | int arg3 ; | |
4345 | void *argp1 = 0 ; | |
4346 | int res1 = 0 ; | |
4347 | int val2 ; | |
4348 | int ecode2 = 0 ; | |
4349 | int val3 ; | |
4350 | int ecode3 = 0 ; | |
4351 | PyObject * obj0 = 0 ; | |
4352 | PyObject * obj1 = 0 ; | |
4353 | PyObject * obj2 = 0 ; | |
4354 | char * kwnames[] = { | |
4355 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4356 | }; | |
4357 | ||
4358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4360 | if (!SWIG_IsOK(res1)) { | |
4361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4362 | } | |
4363 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4364 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4365 | if (!SWIG_IsOK(ecode2)) { | |
4366 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4367 | } | |
4368 | arg2 = static_cast< int >(val2); | |
4369 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4370 | if (!SWIG_IsOK(ecode3)) { | |
4371 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4372 | } | |
4373 | arg3 = static_cast< int >(val3); | |
4374 | { | |
4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4376 | (arg1)->Scroll(arg2,arg3); | |
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | resultobj = SWIG_Py_Void(); | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | return NULL; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4388 | PyObject *resultobj = 0; | |
4389 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4390 | int arg2 ; | |
4391 | int result; | |
4392 | void *argp1 = 0 ; | |
4393 | int res1 = 0 ; | |
4394 | int val2 ; | |
4395 | int ecode2 = 0 ; | |
4396 | PyObject * obj0 = 0 ; | |
4397 | PyObject * obj1 = 0 ; | |
4398 | char * kwnames[] = { | |
4399 | (char *) "self",(char *) "orient", NULL | |
4400 | }; | |
4401 | ||
4402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4404 | if (!SWIG_IsOK(res1)) { | |
4405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4406 | } | |
4407 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4408 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4409 | if (!SWIG_IsOK(ecode2)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4411 | } | |
4412 | arg2 = static_cast< int >(val2); | |
4413 | { | |
4414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4415 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4416 | wxPyEndAllowThreads(__tstate); | |
4417 | if (PyErr_Occurred()) SWIG_fail; | |
4418 | } | |
4419 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4420 | return resultobj; | |
4421 | fail: | |
4422 | return NULL; | |
4423 | } | |
4424 | ||
4425 | ||
4426 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4427 | PyObject *resultobj = 0; | |
4428 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4429 | int arg2 ; | |
4430 | int arg3 ; | |
4431 | void *argp1 = 0 ; | |
4432 | int res1 = 0 ; | |
4433 | int val2 ; | |
4434 | int ecode2 = 0 ; | |
4435 | int val3 ; | |
4436 | int ecode3 = 0 ; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | PyObject * obj1 = 0 ; | |
4439 | PyObject * obj2 = 0 ; | |
4440 | char * kwnames[] = { | |
4441 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4442 | }; | |
4443 | ||
4444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4446 | if (!SWIG_IsOK(res1)) { | |
4447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4448 | } | |
4449 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4451 | if (!SWIG_IsOK(ecode2)) { | |
4452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4453 | } | |
4454 | arg2 = static_cast< int >(val2); | |
4455 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4456 | if (!SWIG_IsOK(ecode3)) { | |
4457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4458 | } | |
4459 | arg3 = static_cast< int >(val3); | |
4460 | { | |
4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4462 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4463 | wxPyEndAllowThreads(__tstate); | |
4464 | if (PyErr_Occurred()) SWIG_fail; | |
4465 | } | |
4466 | resultobj = SWIG_Py_Void(); | |
4467 | return resultobj; | |
4468 | fail: | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj = 0; | |
4475 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4476 | int arg2 ; | |
4477 | int arg3 ; | |
4478 | void *argp1 = 0 ; | |
4479 | int res1 = 0 ; | |
4480 | int val2 ; | |
4481 | int ecode2 = 0 ; | |
4482 | int val3 ; | |
4483 | int ecode3 = 0 ; | |
4484 | PyObject * obj0 = 0 ; | |
4485 | PyObject * obj1 = 0 ; | |
4486 | PyObject * obj2 = 0 ; | |
4487 | char * kwnames[] = { | |
4488 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4489 | }; | |
4490 | ||
4491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4493 | if (!SWIG_IsOK(res1)) { | |
4494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4495 | } | |
4496 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4497 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4498 | if (!SWIG_IsOK(ecode2)) { | |
4499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4500 | } | |
4501 | arg2 = static_cast< int >(val2); | |
4502 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4503 | if (!SWIG_IsOK(ecode3)) { | |
4504 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4505 | } | |
4506 | arg3 = static_cast< int >(val3); | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | (arg1)->SetScrollRate(arg2,arg3); | |
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
4513 | resultobj = SWIG_Py_Void(); | |
4514 | return resultobj; | |
4515 | fail: | |
4516 | return NULL; | |
4517 | } | |
4518 | ||
4519 | ||
4520 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4521 | PyObject *resultobj = 0; | |
4522 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4523 | int *arg2 = (int *) 0 ; | |
4524 | int *arg3 = (int *) 0 ; | |
4525 | void *argp1 = 0 ; | |
4526 | int res1 = 0 ; | |
4527 | int temp2 ; | |
4528 | int res2 = SWIG_TMPOBJ ; | |
4529 | int temp3 ; | |
4530 | int res3 = SWIG_TMPOBJ ; | |
4531 | PyObject *swig_obj[1] ; | |
4532 | ||
4533 | arg2 = &temp2; | |
4534 | arg3 = &temp3; | |
4535 | if (!args) SWIG_fail; | |
4536 | swig_obj[0] = args; | |
4537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4538 | if (!SWIG_IsOK(res1)) { | |
4539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4540 | } | |
4541 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4542 | { | |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
4548 | resultobj = SWIG_Py_Void(); | |
4549 | if (SWIG_IsTmpObj(res2)) { | |
4550 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4551 | } else { | |
4552 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4553 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4554 | } | |
4555 | if (SWIG_IsTmpObj(res3)) { | |
4556 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4557 | } else { | |
4558 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4559 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4560 | } | |
4561 | return resultobj; | |
4562 | fail: | |
4563 | return NULL; | |
4564 | } | |
4565 | ||
4566 | ||
4567 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4568 | PyObject *resultobj = 0; | |
4569 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4570 | bool arg2 ; | |
4571 | bool arg3 ; | |
4572 | void *argp1 = 0 ; | |
4573 | int res1 = 0 ; | |
4574 | bool val2 ; | |
4575 | int ecode2 = 0 ; | |
4576 | bool val3 ; | |
4577 | int ecode3 = 0 ; | |
4578 | PyObject * obj0 = 0 ; | |
4579 | PyObject * obj1 = 0 ; | |
4580 | PyObject * obj2 = 0 ; | |
4581 | char * kwnames[] = { | |
4582 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4583 | }; | |
4584 | ||
4585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4587 | if (!SWIG_IsOK(res1)) { | |
4588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4589 | } | |
4590 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4591 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4592 | if (!SWIG_IsOK(ecode2)) { | |
4593 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4594 | } | |
4595 | arg2 = static_cast< bool >(val2); | |
4596 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4597 | if (!SWIG_IsOK(ecode3)) { | |
4598 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4599 | } | |
4600 | arg3 = static_cast< bool >(val3); | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | (arg1)->EnableScrolling(arg2,arg3); | |
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
4607 | resultobj = SWIG_Py_Void(); | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
4614 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4615 | PyObject *resultobj = 0; | |
4616 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4617 | int *arg2 = (int *) 0 ; | |
4618 | int *arg3 = (int *) 0 ; | |
4619 | void *argp1 = 0 ; | |
4620 | int res1 = 0 ; | |
4621 | int temp2 ; | |
4622 | int res2 = SWIG_TMPOBJ ; | |
4623 | int temp3 ; | |
4624 | int res3 = SWIG_TMPOBJ ; | |
4625 | PyObject *swig_obj[1] ; | |
4626 | ||
4627 | arg2 = &temp2; | |
4628 | arg3 = &temp3; | |
4629 | if (!args) SWIG_fail; | |
4630 | swig_obj[0] = args; | |
4631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4632 | if (!SWIG_IsOK(res1)) { | |
4633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4634 | } | |
4635 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4636 | { | |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4639 | wxPyEndAllowThreads(__tstate); | |
4640 | if (PyErr_Occurred()) SWIG_fail; | |
4641 | } | |
4642 | resultobj = SWIG_Py_Void(); | |
4643 | if (SWIG_IsTmpObj(res2)) { | |
4644 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4645 | } else { | |
4646 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4647 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4648 | } | |
4649 | if (SWIG_IsTmpObj(res3)) { | |
4650 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4651 | } else { | |
4652 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4653 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4654 | } | |
4655 | return resultobj; | |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
4661 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4662 | PyObject *resultobj = 0; | |
4663 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4664 | double arg2 ; | |
4665 | double arg3 ; | |
4666 | void *argp1 = 0 ; | |
4667 | int res1 = 0 ; | |
4668 | double val2 ; | |
4669 | int ecode2 = 0 ; | |
4670 | double val3 ; | |
4671 | int ecode3 = 0 ; | |
4672 | PyObject * obj0 = 0 ; | |
4673 | PyObject * obj1 = 0 ; | |
4674 | PyObject * obj2 = 0 ; | |
4675 | char * kwnames[] = { | |
4676 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4677 | }; | |
4678 | ||
4679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4681 | if (!SWIG_IsOK(res1)) { | |
4682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4683 | } | |
4684 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4685 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4686 | if (!SWIG_IsOK(ecode2)) { | |
4687 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4688 | } | |
4689 | arg2 = static_cast< double >(val2); | |
4690 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4691 | if (!SWIG_IsOK(ecode3)) { | |
4692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4693 | } | |
4694 | arg3 = static_cast< double >(val3); | |
4695 | { | |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4697 | (arg1)->SetScale(arg2,arg3); | |
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | resultobj = SWIG_Py_Void(); | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
d55e5bfc RD |
4705 | } |
4706 | ||
4707 | ||
1bd55598 RD |
4708 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4709 | PyObject *resultobj = 0; | |
4710 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4711 | double result; | |
4712 | void *argp1 = 0 ; | |
4713 | int res1 = 0 ; | |
4714 | PyObject *swig_obj[1] ; | |
4715 | ||
4716 | if (!args) SWIG_fail; | |
4717 | swig_obj[0] = args; | |
4718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4719 | if (!SWIG_IsOK(res1)) { | |
4720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4721 | } | |
4722 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4723 | { | |
4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4725 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4730 | return resultobj; | |
4731 | fail: | |
4732 | return NULL; | |
d55e5bfc RD |
4733 | } |
4734 | ||
4735 | ||
1bd55598 RD |
4736 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4737 | PyObject *resultobj = 0; | |
4738 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4739 | double result; | |
4740 | void *argp1 = 0 ; | |
4741 | int res1 = 0 ; | |
4742 | PyObject *swig_obj[1] ; | |
4743 | ||
4744 | if (!args) SWIG_fail; | |
4745 | swig_obj[0] = args; | |
4746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4747 | if (!SWIG_IsOK(res1)) { | |
4748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4749 | } | |
4750 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4757 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4758 | return resultobj; | |
4759 | fail: | |
4760 | return NULL; | |
d55e5bfc RD |
4761 | } |
4762 | ||
4763 | ||
1bd55598 RD |
4764 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4765 | PyObject *resultobj = 0; | |
4766 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4767 | wxPoint *arg2 = 0 ; | |
4768 | wxPoint result; | |
4769 | void *argp1 = 0 ; | |
4770 | int res1 = 0 ; | |
4771 | wxPoint temp2 ; | |
4772 | ||
4773 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4775 | if (!SWIG_IsOK(res1)) { | |
4776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4777 | } | |
4778 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4779 | { | |
4780 | arg2 = &temp2; | |
4781 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4782 | } | |
4783 | { | |
4784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4785 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4786 | wxPyEndAllowThreads(__tstate); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
4789 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4790 | return resultobj; | |
4791 | fail: | |
4792 | return NULL; | |
4793 | } | |
4794 | ||
4795 | ||
4796 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4797 | PyObject *resultobj = 0; | |
4798 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4799 | int arg2 ; | |
4800 | int arg3 ; | |
4801 | int *arg4 = (int *) 0 ; | |
4802 | int *arg5 = (int *) 0 ; | |
4803 | void *argp1 = 0 ; | |
4804 | int res1 = 0 ; | |
4805 | int val2 ; | |
4806 | int ecode2 = 0 ; | |
4807 | int val3 ; | |
4808 | int ecode3 = 0 ; | |
4809 | int temp4 ; | |
4810 | int res4 = SWIG_TMPOBJ ; | |
4811 | int temp5 ; | |
4812 | int res5 = SWIG_TMPOBJ ; | |
4813 | ||
4814 | arg4 = &temp4; | |
4815 | arg5 = &temp5; | |
4816 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4818 | if (!SWIG_IsOK(res1)) { | |
4819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4820 | } | |
4821 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4822 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4823 | if (!SWIG_IsOK(ecode2)) { | |
4824 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4825 | } | |
4826 | arg2 = static_cast< int >(val2); | |
4827 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4828 | if (!SWIG_IsOK(ecode3)) { | |
4829 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4830 | } | |
4831 | arg3 = static_cast< int >(val3); | |
4832 | { | |
4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4834 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4835 | wxPyEndAllowThreads(__tstate); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | resultobj = SWIG_Py_Void(); | |
4839 | if (SWIG_IsTmpObj(res4)) { | |
4840 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4841 | } else { | |
4842 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4843 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4844 | } | |
4845 | if (SWIG_IsTmpObj(res5)) { | |
4846 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4847 | } else { | |
4848 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4849 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4850 | } | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
d55e5bfc RD |
4854 | } |
4855 | ||
4856 | ||
1bd55598 RD |
4857 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4858 | int argc; | |
4859 | PyObject *argv[4]; | |
4860 | ||
4861 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4862 | --argc; | |
4863 | if (argc == 2) { | |
4864 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4865 | } | |
4866 | if (argc == 3) { | |
4867 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4868 | } | |
4869 | ||
4870 | fail: | |
4871 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4872 | return NULL; | |
d55e5bfc RD |
4873 | } |
4874 | ||
4875 | ||
1bd55598 RD |
4876 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4877 | PyObject *resultobj = 0; | |
4878 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4879 | wxPoint *arg2 = 0 ; | |
4880 | wxPoint result; | |
4881 | void *argp1 = 0 ; | |
4882 | int res1 = 0 ; | |
4883 | wxPoint temp2 ; | |
4884 | ||
4885 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4887 | if (!SWIG_IsOK(res1)) { | |
4888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4889 | } | |
4890 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4891 | { | |
4892 | arg2 = &temp2; | |
4893 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4894 | } | |
4895 | { | |
4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4897 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4902 | return resultobj; | |
4903 | fail: | |
4904 | return NULL; | |
4905 | } | |
4906 | ||
4907 | ||
4908 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4909 | PyObject *resultobj = 0; | |
4910 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4911 | int arg2 ; | |
4912 | int arg3 ; | |
4913 | int *arg4 = (int *) 0 ; | |
4914 | int *arg5 = (int *) 0 ; | |
4915 | void *argp1 = 0 ; | |
4916 | int res1 = 0 ; | |
4917 | int val2 ; | |
4918 | int ecode2 = 0 ; | |
4919 | int val3 ; | |
4920 | int ecode3 = 0 ; | |
4921 | int temp4 ; | |
4922 | int res4 = SWIG_TMPOBJ ; | |
4923 | int temp5 ; | |
4924 | int res5 = SWIG_TMPOBJ ; | |
4925 | ||
4926 | arg4 = &temp4; | |
4927 | arg5 = &temp5; | |
4928 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4930 | if (!SWIG_IsOK(res1)) { | |
4931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4932 | } | |
4933 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4934 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4935 | if (!SWIG_IsOK(ecode2)) { | |
4936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4937 | } | |
4938 | arg2 = static_cast< int >(val2); | |
4939 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4940 | if (!SWIG_IsOK(ecode3)) { | |
4941 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4942 | } | |
4943 | arg3 = static_cast< int >(val3); | |
4944 | { | |
4945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4946 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4947 | wxPyEndAllowThreads(__tstate); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | resultobj = SWIG_Py_Void(); | |
4951 | if (SWIG_IsTmpObj(res4)) { | |
4952 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4953 | } else { | |
4954 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4955 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4956 | } | |
4957 | if (SWIG_IsTmpObj(res5)) { | |
4958 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4959 | } else { | |
4960 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4961 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4962 | } | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
d55e5bfc RD |
4966 | } |
4967 | ||
4968 | ||
1bd55598 RD |
4969 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4970 | int argc; | |
4971 | PyObject *argv[4]; | |
4972 | ||
4973 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4974 | --argc; | |
4975 | if (argc == 2) { | |
4976 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4977 | } | |
4978 | if (argc == 3) { | |
4979 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4980 | } | |
4981 | ||
4982 | fail: | |
4983 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4984 | return NULL; | |
d55e5bfc RD |
4985 | } |
4986 | ||
4987 | ||
1bd55598 RD |
4988 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4989 | PyObject *resultobj = 0; | |
4990 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4991 | void *argp1 = 0 ; | |
4992 | int res1 = 0 ; | |
4993 | PyObject *swig_obj[1] ; | |
4994 | ||
4995 | if (!args) SWIG_fail; | |
4996 | swig_obj[0] = args; | |
4997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4998 | if (!SWIG_IsOK(res1)) { | |
4999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5000 | } | |
5001 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | (arg1)->AdjustScrollbars(); | |
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | resultobj = SWIG_Py_Void(); | |
5009 | return resultobj; | |
5010 | fail: | |
5011 | return NULL; | |
5012 | } | |
5013 | ||
5014 | ||
5015 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5016 | PyObject *resultobj = 0; | |
5017 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5018 | wxScrollWinEvent *arg2 = 0 ; | |
5019 | int result; | |
5020 | void *argp1 = 0 ; | |
5021 | int res1 = 0 ; | |
5022 | void *argp2 = 0 ; | |
5023 | int res2 = 0 ; | |
5024 | PyObject * obj0 = 0 ; | |
5025 | PyObject * obj1 = 0 ; | |
5026 | char * kwnames[] = { | |
5027 | (char *) "self",(char *) "event", NULL | |
5028 | }; | |
5029 | ||
5030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
5031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5032 | if (!SWIG_IsOK(res1)) { | |
5033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5034 | } | |
5035 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5036 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
5037 | if (!SWIG_IsOK(res2)) { | |
5038 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5039 | } | |
5040 | if (!argp2) { | |
5041 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5042 | } | |
5043 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
5044 | { | |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5046 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5047 | wxPyEndAllowThreads(__tstate); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
5050 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5051 | return resultobj; | |
5052 | fail: | |
5053 | return NULL; | |
5054 | } | |
5055 | ||
5056 | ||
5057 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5058 | PyObject *resultobj = 0; | |
5059 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5060 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5061 | void *argp1 = 0 ; | |
5062 | int res1 = 0 ; | |
5063 | void *argp2 = 0 ; | |
5064 | int res2 = 0 ; | |
5065 | PyObject * obj0 = 0 ; | |
5066 | PyObject * obj1 = 0 ; | |
5067 | char * kwnames[] = { | |
5068 | (char *) "self",(char *) "target", NULL | |
5069 | }; | |
5070 | ||
5071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5073 | if (!SWIG_IsOK(res1)) { | |
5074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5075 | } | |
5076 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5077 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5078 | if (!SWIG_IsOK(res2)) { | |
5079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5080 | } | |
5081 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5082 | { | |
5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5084 | (arg1)->SetTargetWindow(arg2); | |
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | resultobj = SWIG_Py_Void(); | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | return NULL; | |
d55e5bfc RD |
5092 | } |
5093 | ||
5094 | ||
1bd55598 RD |
5095 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5096 | PyObject *resultobj = 0; | |
5097 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5098 | wxWindow *result = 0 ; | |
5099 | void *argp1 = 0 ; | |
5100 | int res1 = 0 ; | |
5101 | PyObject *swig_obj[1] ; | |
5102 | ||
5103 | if (!args) SWIG_fail; | |
5104 | swig_obj[0] = args; | |
5105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5106 | if (!SWIG_IsOK(res1)) { | |
5107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5108 | } | |
5109 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5110 | { | |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5113 | wxPyEndAllowThreads(__tstate); | |
5114 | if (PyErr_Occurred()) SWIG_fail; | |
5115 | } | |
5116 | { | |
5117 | resultobj = wxPyMake_wxObject(result, 0); | |
5118 | } | |
5119 | return resultobj; | |
5120 | fail: | |
5121 | return NULL; | |
5122 | } | |
5123 | ||
5124 | ||
5125 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj = 0; | |
5127 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5128 | wxRect *arg2 = 0 ; | |
5129 | void *argp1 = 0 ; | |
5130 | int res1 = 0 ; | |
5131 | wxRect temp2 ; | |
5132 | PyObject * obj0 = 0 ; | |
5133 | PyObject * obj1 = 0 ; | |
5134 | char * kwnames[] = { | |
5135 | (char *) "self",(char *) "rect", NULL | |
5136 | }; | |
5137 | ||
5138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
5139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5140 | if (!SWIG_IsOK(res1)) { | |
5141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5142 | } | |
5143 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5144 | { | |
5145 | arg2 = &temp2; | |
5146 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5147 | } | |
5148 | { | |
5149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5150 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
5154 | resultobj = SWIG_Py_Void(); | |
5155 | return resultobj; | |
5156 | fail: | |
5157 | return NULL; | |
d55e5bfc RD |
5158 | } |
5159 | ||
5160 | ||
1bd55598 RD |
5161 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5162 | PyObject *resultobj = 0; | |
5163 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5164 | wxRect result; | |
5165 | void *argp1 = 0 ; | |
5166 | int res1 = 0 ; | |
5167 | PyObject *swig_obj[1] ; | |
5168 | ||
5169 | if (!args) SWIG_fail; | |
5170 | swig_obj[0] = args; | |
5171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5172 | if (!SWIG_IsOK(res1)) { | |
5173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5174 | } | |
5175 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
5179 | wxPyEndAllowThreads(__tstate); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | } | |
5182 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
5183 | return resultobj; | |
5184 | fail: | |
5185 | return NULL; | |
5186 | } | |
5187 | ||
5188 | ||
5189 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5190 | PyObject *resultobj = 0; | |
5191 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5192 | wxDC *arg2 = 0 ; | |
5193 | void *argp1 = 0 ; | |
5194 | int res1 = 0 ; | |
5195 | void *argp2 = 0 ; | |
5196 | int res2 = 0 ; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | PyObject * obj1 = 0 ; | |
5199 | char * kwnames[] = { | |
5200 | (char *) "self",(char *) "dc", NULL | |
5201 | }; | |
5202 | ||
5203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5205 | if (!SWIG_IsOK(res1)) { | |
5206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5207 | } | |
5208 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5209 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5210 | if (!SWIG_IsOK(res2)) { | |
5211 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5212 | } | |
5213 | if (!argp2) { | |
5214 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5215 | } | |
5216 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | (arg1)->DoPrepareDC(*arg2); | |
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
5223 | resultobj = SWIG_Py_Void(); | |
5224 | return resultobj; | |
5225 | fail: | |
5226 | return NULL; | |
5227 | } | |
5228 | ||
5229 | ||
5230 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5231 | PyObject *resultobj = 0; | |
5232 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5233 | SwigValueWrapper<wxVisualAttributes > result; | |
5234 | int val1 ; | |
5235 | int ecode1 = 0 ; | |
5236 | PyObject * obj0 = 0 ; | |
5237 | char * kwnames[] = { | |
5238 | (char *) "variant", NULL | |
5239 | }; | |
5240 | ||
5241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5242 | if (obj0) { | |
5243 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5244 | if (!SWIG_IsOK(ecode1)) { | |
5245 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5246 | } | |
5247 | arg1 = static_cast< wxWindowVariant >(val1); | |
5248 | } | |
5249 | { | |
5250 | if (!wxPyCheckForApp()) SWIG_fail; | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5253 | wxPyEndAllowThreads(__tstate); | |
5254 | if (PyErr_Occurred()) SWIG_fail; | |
5255 | } | |
5256 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5257 | return resultobj; | |
5258 | fail: | |
5259 | return NULL; | |
d55e5bfc RD |
5260 | } |
5261 | ||
5262 | ||
1bd55598 RD |
5263 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5264 | PyObject *obj; | |
5265 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5266 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5267 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5268 | } |
5269 | ||
1bd55598 RD |
5270 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5271 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
5272 | } |
5273 | ||
1bd55598 RD |
5274 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5275 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5276 | return 1; | |
d55e5bfc RD |
5277 | } |
5278 | ||
5279 | ||
1bd55598 RD |
5280 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5281 | PyObject *pyobj = 0; | |
5282 | ||
5283 | { | |
5284 | #if wxUSE_UNICODE | |
5285 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5286 | #else | |
5287 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5288 | #endif | |
5289 | } | |
5290 | return pyobj; | |
d55e5bfc RD |
5291 | } |
5292 | ||
5293 | ||
1bd55598 RD |
5294 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5295 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5296 | return 1; | |
d55e5bfc RD |
5297 | } |
5298 | ||
5299 | ||
1bd55598 RD |
5300 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5301 | PyObject *pyobj = 0; | |
5302 | ||
5303 | { | |
5304 | #if wxUSE_UNICODE | |
5305 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5306 | #else | |
5307 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5308 | #endif | |
5309 | } | |
5310 | return pyobj; | |
d55e5bfc RD |
5311 | } |
5312 | ||
5313 | ||
1bd55598 RD |
5314 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5315 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5316 | return 1; | |
d55e5bfc RD |
5317 | } |
5318 | ||
5319 | ||
1bd55598 RD |
5320 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5321 | PyObject *pyobj = 0; | |
5322 | ||
5323 | { | |
5324 | #if wxUSE_UNICODE | |
5325 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5326 | #else | |
5327 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5328 | #endif | |
5329 | } | |
5330 | return pyobj; | |
d55e5bfc RD |
5331 | } |
5332 | ||
5333 | ||
1bd55598 RD |
5334 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5335 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5336 | return 1; | |
d55e5bfc RD |
5337 | } |
5338 | ||
5339 | ||
1bd55598 RD |
5340 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5341 | PyObject *pyobj = 0; | |
5342 | ||
5343 | { | |
5344 | #if wxUSE_UNICODE | |
5345 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5346 | #else | |
5347 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5348 | #endif | |
5349 | } | |
5350 | return pyobj; | |
5351 | } | |
5352 | ||
5353 | ||
5354 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5355 | PyObject *resultobj = 0; | |
5356 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5357 | bool arg2 = (bool) true ; | |
5358 | void *argp1 = 0 ; | |
5359 | int res1 = 0 ; | |
5360 | bool val2 ; | |
5361 | int ecode2 = 0 ; | |
5362 | PyObject * obj0 = 0 ; | |
5363 | PyObject * obj1 = 0 ; | |
5364 | char * kwnames[] = { | |
5365 | (char *) "self",(char *) "maximize", NULL | |
5366 | }; | |
5367 | ||
5368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5370 | if (!SWIG_IsOK(res1)) { | |
5371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5372 | } | |
5373 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5374 | if (obj1) { | |
5375 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5376 | if (!SWIG_IsOK(ecode2)) { | |
5377 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5378 | } | |
5379 | arg2 = static_cast< bool >(val2); | |
5380 | } | |
5381 | { | |
5382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5383 | (arg1)->Maximize(arg2); | |
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | resultobj = SWIG_Py_Void(); | |
5388 | return resultobj; | |
5389 | fail: | |
5390 | return NULL; | |
d55e5bfc RD |
5391 | } |
5392 | ||
5393 | ||
1bd55598 RD |
5394 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5395 | PyObject *resultobj = 0; | |
5396 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5397 | void *argp1 = 0 ; | |
5398 | int res1 = 0 ; | |
5399 | PyObject *swig_obj[1] ; | |
5400 | ||
5401 | if (!args) SWIG_fail; | |
5402 | swig_obj[0] = args; | |
5403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5404 | if (!SWIG_IsOK(res1)) { | |
5405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5406 | } | |
5407 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5408 | { | |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | (arg1)->Restore(); | |
5411 | wxPyEndAllowThreads(__tstate); | |
5412 | if (PyErr_Occurred()) SWIG_fail; | |
5413 | } | |
5414 | resultobj = SWIG_Py_Void(); | |
5415 | return resultobj; | |
5416 | fail: | |
5417 | return NULL; | |
5418 | } | |
5419 | ||
5420 | ||
5421 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5422 | PyObject *resultobj = 0; | |
5423 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5424 | bool arg2 = (bool) true ; | |
5425 | void *argp1 = 0 ; | |
5426 | int res1 = 0 ; | |
5427 | bool val2 ; | |
5428 | int ecode2 = 0 ; | |
5429 | PyObject * obj0 = 0 ; | |
5430 | PyObject * obj1 = 0 ; | |
5431 | char * kwnames[] = { | |
5432 | (char *) "self",(char *) "iconize", NULL | |
5433 | }; | |
5434 | ||
5435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5437 | if (!SWIG_IsOK(res1)) { | |
5438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5439 | } | |
5440 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5441 | if (obj1) { | |
5442 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5443 | if (!SWIG_IsOK(ecode2)) { | |
5444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5445 | } | |
5446 | arg2 = static_cast< bool >(val2); | |
5447 | } | |
5448 | { | |
5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5450 | (arg1)->Iconize(arg2); | |
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
5454 | resultobj = SWIG_Py_Void(); | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | return NULL; | |
d55e5bfc RD |
5458 | } |
5459 | ||
5460 | ||
1bd55598 RD |
5461 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5462 | PyObject *resultobj = 0; | |
5463 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5464 | bool result; | |
5465 | void *argp1 = 0 ; | |
5466 | int res1 = 0 ; | |
5467 | PyObject *swig_obj[1] ; | |
5468 | ||
5469 | if (!args) SWIG_fail; | |
5470 | swig_obj[0] = args; | |
5471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5472 | if (!SWIG_IsOK(res1)) { | |
5473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5474 | } | |
5475 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5476 | { | |
5477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5478 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5479 | wxPyEndAllowThreads(__tstate); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
5482 | { | |
5483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5484 | } | |
5485 | return resultobj; | |
5486 | fail: | |
5487 | return NULL; | |
d55e5bfc RD |
5488 | } |
5489 | ||
5490 | ||
2131d850 RD |
5491 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsAlwaysMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5492 | PyObject *resultobj = 0; | |
5493 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5494 | bool result; | |
5495 | void *argp1 = 0 ; | |
5496 | int res1 = 0 ; | |
5497 | PyObject *swig_obj[1] ; | |
5498 | ||
5499 | if (!args) SWIG_fail; | |
5500 | swig_obj[0] = args; | |
5501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5502 | if (!SWIG_IsOK(res1)) { | |
5503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsAlwaysMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5504 | } | |
5505 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5506 | { | |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | result = (bool)((wxTopLevelWindow const *)arg1)->IsAlwaysMaximized(); | |
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | { | |
5513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5514 | } | |
5515 | return resultobj; | |
5516 | fail: | |
5517 | return NULL; | |
5518 | } | |
5519 | ||
5520 | ||
1bd55598 RD |
5521 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5522 | PyObject *resultobj = 0; | |
5523 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5524 | bool result; | |
5525 | void *argp1 = 0 ; | |
5526 | int res1 = 0 ; | |
5527 | PyObject *swig_obj[1] ; | |
5528 | ||
5529 | if (!args) SWIG_fail; | |
5530 | swig_obj[0] = args; | |
5531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5532 | if (!SWIG_IsOK(res1)) { | |
5533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5534 | } | |
5535 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5536 | { | |
5537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5538 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5539 | wxPyEndAllowThreads(__tstate); | |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
5541 | } | |
5542 | { | |
5543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5544 | } | |
5545 | return resultobj; | |
5546 | fail: | |
5547 | return NULL; | |
f5b96ee1 RD |
5548 | } |
5549 | ||
5550 | ||
1bd55598 RD |
5551 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5552 | PyObject *resultobj = 0; | |
5553 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5554 | wxIcon result; | |
5555 | void *argp1 = 0 ; | |
5556 | int res1 = 0 ; | |
5557 | PyObject *swig_obj[1] ; | |
5558 | ||
5559 | if (!args) SWIG_fail; | |
5560 | swig_obj[0] = args; | |
5561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5562 | if (!SWIG_IsOK(res1)) { | |
5563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5564 | } | |
5565 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5566 | { | |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5569 | wxPyEndAllowThreads(__tstate); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | } | |
5572 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
5576 | } | |
5577 | ||
5578 | ||
5579 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5580 | PyObject *resultobj = 0; | |
5581 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5582 | wxIcon *arg2 = 0 ; | |
5583 | void *argp1 = 0 ; | |
5584 | int res1 = 0 ; | |
5585 | void *argp2 = 0 ; | |
5586 | int res2 = 0 ; | |
5587 | PyObject * obj0 = 0 ; | |
5588 | PyObject * obj1 = 0 ; | |
5589 | char * kwnames[] = { | |
5590 | (char *) "self",(char *) "icon", NULL | |
5591 | }; | |
5592 | ||
5593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5595 | if (!SWIG_IsOK(res1)) { | |
5596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5597 | } | |
5598 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5599 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5600 | if (!SWIG_IsOK(res2)) { | |
5601 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5602 | } | |
5603 | if (!argp2) { | |
5604 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5605 | } | |
5606 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5607 | { | |
5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5609 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5610 | wxPyEndAllowThreads(__tstate); | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | resultobj = SWIG_Py_Void(); | |
5614 | return resultobj; | |
5615 | fail: | |
5616 | return NULL; | |
5617 | } | |
5618 | ||
5619 | ||
5620 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5621 | PyObject *resultobj = 0; | |
5622 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5623 | wxIconBundle *arg2 = 0 ; | |
5624 | void *argp1 = 0 ; | |
5625 | int res1 = 0 ; | |
5626 | void *argp2 = 0 ; | |
5627 | int res2 = 0 ; | |
5628 | PyObject * obj0 = 0 ; | |
5629 | PyObject * obj1 = 0 ; | |
5630 | char * kwnames[] = { | |
5631 | (char *) "self",(char *) "icons", NULL | |
5632 | }; | |
5633 | ||
5634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5636 | if (!SWIG_IsOK(res1)) { | |
5637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5638 | } | |
5639 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5640 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5641 | if (!SWIG_IsOK(res2)) { | |
5642 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5643 | } | |
5644 | if (!argp2) { | |
5645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5646 | } | |
5647 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5648 | { | |
5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5650 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5651 | wxPyEndAllowThreads(__tstate); | |
5652 | if (PyErr_Occurred()) SWIG_fail; | |
5653 | } | |
5654 | resultobj = SWIG_Py_Void(); | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | return NULL; | |
5658 | } | |
5659 | ||
5660 | ||
5661 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5662 | PyObject *resultobj = 0; | |
5663 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5664 | bool arg2 ; | |
5665 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5666 | bool result; | |
5667 | void *argp1 = 0 ; | |
5668 | int res1 = 0 ; | |
5669 | bool val2 ; | |
5670 | int ecode2 = 0 ; | |
5671 | long val3 ; | |
5672 | int ecode3 = 0 ; | |
5673 | PyObject * obj0 = 0 ; | |
5674 | PyObject * obj1 = 0 ; | |
5675 | PyObject * obj2 = 0 ; | |
5676 | char * kwnames[] = { | |
5677 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5678 | }; | |
5679 | ||
5680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5682 | if (!SWIG_IsOK(res1)) { | |
5683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5684 | } | |
5685 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5686 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5687 | if (!SWIG_IsOK(ecode2)) { | |
5688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5689 | } | |
5690 | arg2 = static_cast< bool >(val2); | |
5691 | if (obj2) { | |
5692 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5693 | if (!SWIG_IsOK(ecode3)) { | |
5694 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5695 | } | |
5696 | arg3 = static_cast< long >(val3); | |
5697 | } | |
5698 | { | |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
5704 | { | |
5705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5706 | } | |
5707 | return resultobj; | |
5708 | fail: | |
5709 | return NULL; | |
f20a2e1f RD |
5710 | } |
5711 | ||
5712 | ||
1bd55598 RD |
5713 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5714 | PyObject *resultobj = 0; | |
5715 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5716 | bool result; | |
5717 | void *argp1 = 0 ; | |
5718 | int res1 = 0 ; | |
5719 | PyObject *swig_obj[1] ; | |
5720 | ||
5721 | if (!args) SWIG_fail; | |
5722 | swig_obj[0] = args; | |
5723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5724 | if (!SWIG_IsOK(res1)) { | |
5725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5726 | } | |
5727 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5728 | { | |
5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5730 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | { | |
5735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5736 | } | |
5737 | return resultobj; | |
5738 | fail: | |
5739 | return NULL; | |
5740 | } | |
5741 | ||
5742 | ||
5743 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5744 | PyObject *resultobj = 0; | |
5745 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5746 | wxString *arg2 = 0 ; | |
5747 | void *argp1 = 0 ; | |
5748 | int res1 = 0 ; | |
5749 | bool temp2 = false ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | char * kwnames[] = { | |
5753 | (char *) "self",(char *) "title", NULL | |
5754 | }; | |
5755 | ||
5756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5758 | if (!SWIG_IsOK(res1)) { | |
5759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5760 | } | |
5761 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5762 | { | |
5763 | arg2 = wxString_in_helper(obj1); | |
5764 | if (arg2 == NULL) SWIG_fail; | |
5765 | temp2 = true; | |
5766 | } | |
5767 | { | |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | (arg1)->SetTitle((wxString const &)*arg2); | |
5770 | wxPyEndAllowThreads(__tstate); | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | } | |
5773 | resultobj = SWIG_Py_Void(); | |
5774 | { | |
5775 | if (temp2) | |
5776 | delete arg2; | |
5777 | } | |
5778 | return resultobj; | |
5779 | fail: | |
5780 | { | |
5781 | if (temp2) | |
5782 | delete arg2; | |
5783 | } | |
5784 | return NULL; | |
d55e5bfc RD |
5785 | } |
5786 | ||
5787 | ||
1bd55598 RD |
5788 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5789 | PyObject *resultobj = 0; | |
5790 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5791 | wxString result; | |
5792 | void *argp1 = 0 ; | |
5793 | int res1 = 0 ; | |
5794 | PyObject *swig_obj[1] ; | |
5795 | ||
5796 | if (!args) SWIG_fail; | |
5797 | swig_obj[0] = args; | |
5798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5799 | if (!SWIG_IsOK(res1)) { | |
5800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5801 | } | |
5802 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5803 | { | |
5804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5805 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5806 | wxPyEndAllowThreads(__tstate); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
5809 | { | |
d55e5bfc | 5810 | #if wxUSE_UNICODE |
1bd55598 | 5811 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5812 | #else |
1bd55598 | 5813 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 5814 | #endif |
1bd55598 RD |
5815 | } |
5816 | return resultobj; | |
5817 | fail: | |
5818 | return NULL; | |
5819 | } | |
5820 | ||
5821 | ||
5822 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5823 | PyObject *resultobj = 0; | |
5824 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5825 | wxRegion *arg2 = 0 ; | |
5826 | bool result; | |
5827 | void *argp1 = 0 ; | |
5828 | int res1 = 0 ; | |
5829 | void *argp2 = 0 ; | |
5830 | int res2 = 0 ; | |
5831 | PyObject * obj0 = 0 ; | |
5832 | PyObject * obj1 = 0 ; | |
5833 | char * kwnames[] = { | |
5834 | (char *) "self",(char *) "region", NULL | |
5835 | }; | |
5836 | ||
5837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5839 | if (!SWIG_IsOK(res1)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5841 | } | |
5842 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5843 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5844 | if (!SWIG_IsOK(res2)) { | |
5845 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5846 | } | |
5847 | if (!argp2) { | |
5848 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5849 | } | |
5850 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5851 | { | |
5852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5853 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | { | |
5858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5859 | } | |
5860 | return resultobj; | |
5861 | fail: | |
5862 | return NULL; | |
5863 | } | |
5864 | ||
5865 | ||
5866 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5867 | PyObject *resultobj = 0; | |
5868 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5869 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5870 | void *argp1 = 0 ; | |
5871 | int res1 = 0 ; | |
5872 | int val2 ; | |
5873 | int ecode2 = 0 ; | |
5874 | PyObject * obj0 = 0 ; | |
5875 | PyObject * obj1 = 0 ; | |
5876 | char * kwnames[] = { | |
5877 | (char *) "self",(char *) "flags", NULL | |
5878 | }; | |
5879 | ||
5880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5882 | if (!SWIG_IsOK(res1)) { | |
5883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5884 | } | |
5885 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5886 | if (obj1) { | |
5887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5888 | if (!SWIG_IsOK(ecode2)) { | |
5889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5890 | } | |
5891 | arg2 = static_cast< int >(val2); | |
5892 | } | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | (arg1)->RequestUserAttention(arg2); | |
5896 | wxPyEndAllowThreads(__tstate); | |
5897 | if (PyErr_Occurred()) SWIG_fail; | |
5898 | } | |
5899 | resultobj = SWIG_Py_Void(); | |
5900 | return resultobj; | |
5901 | fail: | |
5902 | return NULL; | |
d55e5bfc RD |
5903 | } |
5904 | ||
5905 | ||
1bd55598 RD |
5906 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5907 | PyObject *resultobj = 0; | |
5908 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5909 | bool result; | |
5910 | void *argp1 = 0 ; | |
5911 | int res1 = 0 ; | |
5912 | PyObject *swig_obj[1] ; | |
5913 | ||
5914 | if (!args) SWIG_fail; | |
5915 | swig_obj[0] = args; | |
5916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5917 | if (!SWIG_IsOK(res1)) { | |
5918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5919 | } | |
5920 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5921 | { | |
5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5923 | result = (bool)(arg1)->IsActive(); | |
5924 | wxPyEndAllowThreads(__tstate); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | } | |
5927 | { | |
5928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5929 | } | |
5930 | return resultobj; | |
5931 | fail: | |
5932 | return NULL; | |
5933 | } | |
5934 | ||
5935 | ||
5936 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5937 | PyObject *resultobj = 0; | |
5938 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5939 | bool arg2 ; | |
5940 | void *argp1 = 0 ; | |
5941 | int res1 = 0 ; | |
5942 | bool val2 ; | |
5943 | int ecode2 = 0 ; | |
5944 | PyObject * obj0 = 0 ; | |
5945 | PyObject * obj1 = 0 ; | |
5946 | char * kwnames[] = { | |
5947 | (char *) "self",(char *) "on", NULL | |
5948 | }; | |
5949 | ||
5950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5952 | if (!SWIG_IsOK(res1)) { | |
5953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5954 | } | |
5955 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5956 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5957 | if (!SWIG_IsOK(ecode2)) { | |
5958 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5959 | } | |
5960 | arg2 = static_cast< bool >(val2); | |
5961 | { | |
5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5963 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5964 | wxPyEndAllowThreads(__tstate); | |
5965 | if (PyErr_Occurred()) SWIG_fail; | |
5966 | } | |
5967 | resultobj = SWIG_Py_Void(); | |
5968 | return resultobj; | |
5969 | fail: | |
5970 | return NULL; | |
d55e5bfc RD |
5971 | } |
5972 | ||
5973 | ||
1bd55598 RD |
5974 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5975 | PyObject *resultobj = 0; | |
5976 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5977 | bool result; | |
5978 | void *argp1 = 0 ; | |
5979 | int res1 = 0 ; | |
5980 | PyObject *swig_obj[1] ; | |
5981 | ||
5982 | if (!args) SWIG_fail; | |
5983 | swig_obj[0] = args; | |
5984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5985 | if (!SWIG_IsOK(res1)) { | |
5986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5987 | } | |
5988 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5989 | { | |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); | |
5992 | wxPyEndAllowThreads(__tstate); | |
5993 | if (PyErr_Occurred()) SWIG_fail; | |
5994 | } | |
5995 | { | |
5996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5997 | } | |
5998 | return resultobj; | |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
6004 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6005 | PyObject *resultobj = 0; | |
6006 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6007 | int arg2 = (int) wxBOTH ; | |
6008 | void *argp1 = 0 ; | |
6009 | int res1 = 0 ; | |
6010 | int val2 ; | |
6011 | int ecode2 = 0 ; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | PyObject * obj1 = 0 ; | |
6014 | char * kwnames[] = { | |
6015 | (char *) "self",(char *) "dir", NULL | |
6016 | }; | |
6017 | ||
6018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
6019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6020 | if (!SWIG_IsOK(res1)) { | |
6021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6022 | } | |
6023 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6024 | if (obj1) { | |
6025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6026 | if (!SWIG_IsOK(ecode2)) { | |
6027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
6028 | } | |
6029 | arg2 = static_cast< int >(val2); | |
6030 | } | |
6031 | { | |
6032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6033 | (arg1)->CenterOnScreen(arg2); | |
6034 | wxPyEndAllowThreads(__tstate); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | } | |
6037 | resultobj = SWIG_Py_Void(); | |
6038 | return resultobj; | |
6039 | fail: | |
6040 | return NULL; | |
6041 | } | |
6042 | ||
6043 | ||
6044 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6045 | PyObject *obj; | |
6046 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6047 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
6048 | return SWIG_Py_Void(); | |
6049 | } | |
6050 | ||
6051 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6052 | PyObject *resultobj = 0; | |
6053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6054 | int arg2 = (int) (int)-1 ; | |
6055 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6056 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6057 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6058 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6059 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6060 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6061 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6062 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6063 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6064 | wxFrame *result = 0 ; | |
6065 | void *argp1 = 0 ; | |
6066 | int res1 = 0 ; | |
6067 | int val2 ; | |
6068 | int ecode2 = 0 ; | |
6069 | bool temp3 = false ; | |
6070 | wxPoint temp4 ; | |
6071 | wxSize temp5 ; | |
6072 | long val6 ; | |
6073 | int ecode6 = 0 ; | |
6074 | bool temp7 = false ; | |
6075 | PyObject * obj0 = 0 ; | |
6076 | PyObject * obj1 = 0 ; | |
6077 | PyObject * obj2 = 0 ; | |
6078 | PyObject * obj3 = 0 ; | |
6079 | PyObject * obj4 = 0 ; | |
6080 | PyObject * obj5 = 0 ; | |
6081 | PyObject * obj6 = 0 ; | |
6082 | char * kwnames[] = { | |
6083 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6084 | }; | |
6085 | ||
6086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6088 | if (!SWIG_IsOK(res1)) { | |
6089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6090 | } | |
6091 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6092 | if (obj1) { | |
6093 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6094 | if (!SWIG_IsOK(ecode2)) { | |
6095 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6096 | } | |
6097 | arg2 = static_cast< int >(val2); | |
6098 | } | |
6099 | if (obj2) { | |
d55e5bfc | 6100 | { |
1bd55598 RD |
6101 | arg3 = wxString_in_helper(obj2); |
6102 | if (arg3 == NULL) SWIG_fail; | |
6103 | temp3 = true; | |
d55e5bfc | 6104 | } |
1bd55598 RD |
6105 | } |
6106 | if (obj3) { | |
d55e5bfc | 6107 | { |
1bd55598 RD |
6108 | arg4 = &temp4; |
6109 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 6110 | } |
1bd55598 RD |
6111 | } |
6112 | if (obj4) { | |
d55e5bfc | 6113 | { |
1bd55598 RD |
6114 | arg5 = &temp5; |
6115 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 6116 | } |
1bd55598 RD |
6117 | } |
6118 | if (obj5) { | |
6119 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6120 | if (!SWIG_IsOK(ecode6)) { | |
6121 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6122 | } | |
6123 | arg6 = static_cast< long >(val6); | |
6124 | } | |
6125 | if (obj6) { | |
d55e5bfc | 6126 | { |
1bd55598 RD |
6127 | arg7 = wxString_in_helper(obj6); |
6128 | if (arg7 == NULL) SWIG_fail; | |
6129 | temp7 = true; | |
6130 | } | |
6131 | } | |
6132 | { | |
6133 | if (!wxPyCheckForApp()) SWIG_fail; | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6140 | { | |
6141 | if (temp3) | |
6142 | delete arg3; | |
6143 | } | |
6144 | { | |
6145 | if (temp7) | |
6146 | delete arg7; | |
6147 | } | |
6148 | return resultobj; | |
6149 | fail: | |
6150 | { | |
6151 | if (temp3) | |
6152 | delete arg3; | |
6153 | } | |
6154 | { | |
6155 | if (temp7) | |
6156 | delete arg7; | |
6157 | } | |
6158 | return NULL; | |
d55e5bfc RD |
6159 | } |
6160 | ||
6161 | ||
1bd55598 RD |
6162 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6163 | PyObject *resultobj = 0; | |
6164 | wxFrame *result = 0 ; | |
6165 | ||
6166 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6167 | { | |
6168 | if (!wxPyCheckForApp()) SWIG_fail; | |
6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6170 | result = (wxFrame *)new wxFrame(); | |
6171 | wxPyEndAllowThreads(__tstate); | |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
6173 | } | |
6174 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6175 | return resultobj; | |
6176 | fail: | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj = 0; | |
6183 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6184 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6185 | int arg3 = (int) (int)-1 ; | |
6186 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6187 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6188 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6189 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6190 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6191 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6192 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6193 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6194 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6195 | bool result; | |
6196 | void *argp1 = 0 ; | |
6197 | int res1 = 0 ; | |
6198 | void *argp2 = 0 ; | |
6199 | int res2 = 0 ; | |
6200 | int val3 ; | |
6201 | int ecode3 = 0 ; | |
6202 | bool temp4 = false ; | |
6203 | wxPoint temp5 ; | |
6204 | wxSize temp6 ; | |
6205 | long val7 ; | |
6206 | int ecode7 = 0 ; | |
6207 | bool temp8 = false ; | |
6208 | PyObject * obj0 = 0 ; | |
6209 | PyObject * obj1 = 0 ; | |
6210 | PyObject * obj2 = 0 ; | |
6211 | PyObject * obj3 = 0 ; | |
6212 | PyObject * obj4 = 0 ; | |
6213 | PyObject * obj5 = 0 ; | |
6214 | PyObject * obj6 = 0 ; | |
6215 | PyObject * obj7 = 0 ; | |
6216 | char * kwnames[] = { | |
6217 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6218 | }; | |
6219 | ||
6220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6222 | if (!SWIG_IsOK(res1)) { | |
6223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6224 | } | |
6225 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6226 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6227 | if (!SWIG_IsOK(res2)) { | |
6228 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6229 | } | |
6230 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6231 | if (obj2) { | |
6232 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6233 | if (!SWIG_IsOK(ecode3)) { | |
6234 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6235 | } | |
6236 | arg3 = static_cast< int >(val3); | |
6237 | } | |
6238 | if (obj3) { | |
d55e5bfc | 6239 | { |
1bd55598 RD |
6240 | arg4 = wxString_in_helper(obj3); |
6241 | if (arg4 == NULL) SWIG_fail; | |
6242 | temp4 = true; | |
d55e5bfc | 6243 | } |
1bd55598 RD |
6244 | } |
6245 | if (obj4) { | |
d55e5bfc | 6246 | { |
1bd55598 RD |
6247 | arg5 = &temp5; |
6248 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6249 | } | |
6250 | } | |
6251 | if (obj5) { | |
d55e5bfc | 6252 | { |
1bd55598 RD |
6253 | arg6 = &temp6; |
6254 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 6255 | } |
1bd55598 RD |
6256 | } |
6257 | if (obj6) { | |
6258 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6259 | if (!SWIG_IsOK(ecode7)) { | |
6260 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6261 | } | |
6262 | arg7 = static_cast< long >(val7); | |
6263 | } | |
6264 | if (obj7) { | |
d55e5bfc | 6265 | { |
1bd55598 RD |
6266 | arg8 = wxString_in_helper(obj7); |
6267 | if (arg8 == NULL) SWIG_fail; | |
6268 | temp8 = true; | |
d55e5bfc | 6269 | } |
1bd55598 RD |
6270 | } |
6271 | { | |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6274 | wxPyEndAllowThreads(__tstate); | |
6275 | if (PyErr_Occurred()) SWIG_fail; | |
6276 | } | |
6277 | { | |
6278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6279 | } | |
6280 | { | |
6281 | if (temp4) | |
6282 | delete arg4; | |
6283 | } | |
6284 | { | |
6285 | if (temp8) | |
6286 | delete arg8; | |
6287 | } | |
6288 | return resultobj; | |
6289 | fail: | |
6290 | { | |
6291 | if (temp4) | |
6292 | delete arg4; | |
6293 | } | |
6294 | { | |
6295 | if (temp8) | |
6296 | delete arg8; | |
6297 | } | |
6298 | return NULL; | |
d55e5bfc RD |
6299 | } |
6300 | ||
6301 | ||
1bd55598 RD |
6302 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6303 | PyObject *resultobj = 0; | |
6304 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6305 | void *argp1 = 0 ; | |
6306 | int res1 = 0 ; | |
6307 | PyObject *swig_obj[1] ; | |
6308 | ||
6309 | if (!args) SWIG_fail; | |
6310 | swig_obj[0] = args; | |
6311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6312 | if (!SWIG_IsOK(res1)) { | |
6313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6314 | } | |
6315 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6316 | { | |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | (arg1)->SendSizeEvent(); | |
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | resultobj = SWIG_Py_Void(); | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj = 0; | |
6331 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6332 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6333 | void *argp1 = 0 ; | |
6334 | int res1 = 0 ; | |
6335 | void *argp2 = 0 ; | |
6336 | int res2 = 0 ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | PyObject * obj1 = 0 ; | |
6339 | char * kwnames[] = { | |
6340 | (char *) "self",(char *) "menubar", NULL | |
6341 | }; | |
6342 | ||
6343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6345 | if (!SWIG_IsOK(res1)) { | |
6346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6347 | } | |
6348 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6349 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6350 | if (!SWIG_IsOK(res2)) { | |
6351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6352 | } | |
6353 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6354 | { | |
6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6356 | (arg1)->SetMenuBar(arg2); | |
6357 | wxPyEndAllowThreads(__tstate); | |
6358 | if (PyErr_Occurred()) SWIG_fail; | |
6359 | } | |
6360 | resultobj = SWIG_Py_Void(); | |
6361 | return resultobj; | |
6362 | fail: | |
6363 | return NULL; | |
d55e5bfc RD |
6364 | } |
6365 | ||
6366 | ||
1bd55598 RD |
6367 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6368 | PyObject *resultobj = 0; | |
6369 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6370 | wxMenuBar *result = 0 ; | |
6371 | void *argp1 = 0 ; | |
6372 | int res1 = 0 ; | |
6373 | PyObject *swig_obj[1] ; | |
6374 | ||
6375 | if (!args) SWIG_fail; | |
6376 | swig_obj[0] = args; | |
6377 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6378 | if (!SWIG_IsOK(res1)) { | |
6379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6380 | } | |
6381 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6382 | { | |
6383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6384 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
6388 | { | |
6389 | resultobj = wxPyMake_wxObject(result, 0); | |
6390 | } | |
6391 | return resultobj; | |
6392 | fail: | |
6393 | return NULL; | |
6394 | } | |
6395 | ||
6396 | ||
6397 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6398 | PyObject *resultobj = 0; | |
6399 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6400 | int arg2 ; | |
6401 | bool result; | |
6402 | void *argp1 = 0 ; | |
6403 | int res1 = 0 ; | |
6404 | int val2 ; | |
6405 | int ecode2 = 0 ; | |
6406 | PyObject * obj0 = 0 ; | |
6407 | PyObject * obj1 = 0 ; | |
6408 | char * kwnames[] = { | |
6409 | (char *) "self",(char *) "winid", NULL | |
6410 | }; | |
6411 | ||
6412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6414 | if (!SWIG_IsOK(res1)) { | |
6415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6416 | } | |
6417 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6418 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6419 | if (!SWIG_IsOK(ecode2)) { | |
6420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6421 | } | |
6422 | arg2 = static_cast< int >(val2); | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | } | |
6429 | { | |
6430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6431 | } | |
6432 | return resultobj; | |
6433 | fail: | |
6434 | return NULL; | |
6435 | } | |
6436 | ||
6437 | ||
6438 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6439 | PyObject *resultobj = 0; | |
6440 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6441 | int arg2 = (int) 1 ; | |
6442 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6443 | int arg4 = (int) 0 ; | |
6444 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6445 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6446 | wxStatusBar *result = 0 ; | |
6447 | void *argp1 = 0 ; | |
6448 | int res1 = 0 ; | |
6449 | int val2 ; | |
6450 | int ecode2 = 0 ; | |
6451 | long val3 ; | |
6452 | int ecode3 = 0 ; | |
6453 | int val4 ; | |
6454 | int ecode4 = 0 ; | |
6455 | bool temp5 = false ; | |
6456 | PyObject * obj0 = 0 ; | |
6457 | PyObject * obj1 = 0 ; | |
6458 | PyObject * obj2 = 0 ; | |
6459 | PyObject * obj3 = 0 ; | |
6460 | PyObject * obj4 = 0 ; | |
6461 | char * kwnames[] = { | |
6462 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6463 | }; | |
6464 | ||
6465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6467 | if (!SWIG_IsOK(res1)) { | |
6468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6469 | } | |
6470 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6471 | if (obj1) { | |
6472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6473 | if (!SWIG_IsOK(ecode2)) { | |
6474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6475 | } | |
6476 | arg2 = static_cast< int >(val2); | |
6477 | } | |
6478 | if (obj2) { | |
6479 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6480 | if (!SWIG_IsOK(ecode3)) { | |
6481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6482 | } | |
6483 | arg3 = static_cast< long >(val3); | |
6484 | } | |
6485 | if (obj3) { | |
6486 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6487 | if (!SWIG_IsOK(ecode4)) { | |
6488 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6489 | } | |
6490 | arg4 = static_cast< int >(val4); | |
6491 | } | |
6492 | if (obj4) { | |
d55e5bfc | 6493 | { |
1bd55598 RD |
6494 | arg5 = wxString_in_helper(obj4); |
6495 | if (arg5 == NULL) SWIG_fail; | |
6496 | temp5 = true; | |
d55e5bfc | 6497 | } |
1bd55598 RD |
6498 | } |
6499 | { | |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6502 | wxPyEndAllowThreads(__tstate); | |
6503 | if (PyErr_Occurred()) SWIG_fail; | |
6504 | } | |
6505 | { | |
6506 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6507 | } | |
6508 | { | |
6509 | if (temp5) | |
6510 | delete arg5; | |
6511 | } | |
6512 | return resultobj; | |
6513 | fail: | |
6514 | { | |
6515 | if (temp5) | |
6516 | delete arg5; | |
6517 | } | |
6518 | return NULL; | |
d55e5bfc RD |
6519 | } |
6520 | ||
6521 | ||
1bd55598 RD |
6522 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6523 | PyObject *resultobj = 0; | |
6524 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6525 | wxStatusBar *result = 0 ; | |
6526 | void *argp1 = 0 ; | |
6527 | int res1 = 0 ; | |
6528 | PyObject *swig_obj[1] ; | |
6529 | ||
6530 | if (!args) SWIG_fail; | |
6531 | swig_obj[0] = args; | |
6532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6533 | if (!SWIG_IsOK(res1)) { | |
6534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6535 | } | |
6536 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6537 | { | |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6540 | wxPyEndAllowThreads(__tstate); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | } | |
6543 | { | |
6544 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6545 | } | |
6546 | return resultobj; | |
6547 | fail: | |
6548 | return NULL; | |
6549 | } | |
6550 | ||
6551 | ||
6552 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6553 | PyObject *resultobj = 0; | |
6554 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6555 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6556 | void *argp1 = 0 ; | |
6557 | int res1 = 0 ; | |
6558 | void *argp2 = 0 ; | |
6559 | int res2 = 0 ; | |
6560 | PyObject * obj0 = 0 ; | |
6561 | PyObject * obj1 = 0 ; | |
6562 | char * kwnames[] = { | |
6563 | (char *) "self",(char *) "statBar", NULL | |
6564 | }; | |
6565 | ||
6566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6568 | if (!SWIG_IsOK(res1)) { | |
6569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6570 | } | |
6571 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6572 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6573 | if (!SWIG_IsOK(res2)) { | |
6574 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6575 | } | |
6576 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | (arg1)->SetStatusBar(arg2); | |
6580 | wxPyEndAllowThreads(__tstate); | |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
6582 | } | |
6583 | resultobj = SWIG_Py_Void(); | |
6584 | return resultobj; | |
6585 | fail: | |
6586 | return NULL; | |
6587 | } | |
6588 | ||
6589 | ||
6590 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6591 | PyObject *resultobj = 0; | |
6592 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6593 | wxString *arg2 = 0 ; | |
6594 | int arg3 = (int) 0 ; | |
6595 | void *argp1 = 0 ; | |
6596 | int res1 = 0 ; | |
6597 | bool temp2 = false ; | |
6598 | int val3 ; | |
6599 | int ecode3 = 0 ; | |
6600 | PyObject * obj0 = 0 ; | |
6601 | PyObject * obj1 = 0 ; | |
6602 | PyObject * obj2 = 0 ; | |
6603 | char * kwnames[] = { | |
6604 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6605 | }; | |
6606 | ||
6607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6609 | if (!SWIG_IsOK(res1)) { | |
6610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6611 | } | |
6612 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6613 | { | |
6614 | arg2 = wxString_in_helper(obj1); | |
6615 | if (arg2 == NULL) SWIG_fail; | |
6616 | temp2 = true; | |
6617 | } | |
6618 | if (obj2) { | |
6619 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6620 | if (!SWIG_IsOK(ecode3)) { | |
6621 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6622 | } | |
6623 | arg3 = static_cast< int >(val3); | |
6624 | } | |
6625 | { | |
6626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6627 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6628 | wxPyEndAllowThreads(__tstate); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | resultobj = SWIG_Py_Void(); | |
6632 | { | |
6633 | if (temp2) | |
6634 | delete arg2; | |
6635 | } | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | { | |
6639 | if (temp2) | |
6640 | delete arg2; | |
6641 | } | |
6642 | return NULL; | |
d55e5bfc RD |
6643 | } |
6644 | ||
6645 | ||
1bd55598 RD |
6646 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6647 | PyObject *resultobj = 0; | |
6648 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6649 | int arg2 ; | |
6650 | int *arg3 = (int *) 0 ; | |
6651 | void *argp1 = 0 ; | |
6652 | int res1 = 0 ; | |
6653 | PyObject * obj0 = 0 ; | |
6654 | PyObject * obj1 = 0 ; | |
6655 | char * kwnames[] = { | |
6656 | (char *) "self",(char *) "widths", NULL | |
6657 | }; | |
6658 | ||
6659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6661 | if (!SWIG_IsOK(res1)) { | |
6662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6663 | } | |
6664 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6665 | { | |
6666 | arg2 = PyList_Size(obj1); | |
6667 | arg3 = int_LIST_helper(obj1); | |
6668 | if (arg3 == NULL) SWIG_fail; | |
6669 | } | |
6670 | { | |
6671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6672 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6673 | wxPyEndAllowThreads(__tstate); | |
6674 | if (PyErr_Occurred()) SWIG_fail; | |
6675 | } | |
6676 | resultobj = SWIG_Py_Void(); | |
6677 | { | |
6678 | if (arg3) delete [] arg3; | |
6679 | } | |
6680 | return resultobj; | |
6681 | fail: | |
6682 | { | |
6683 | if (arg3) delete [] arg3; | |
6684 | } | |
6685 | return NULL; | |
6686 | } | |
6687 | ||
6688 | ||
6689 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6690 | PyObject *resultobj = 0; | |
6691 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6692 | wxString *arg2 = 0 ; | |
6693 | int arg3 = (int) 0 ; | |
6694 | void *argp1 = 0 ; | |
6695 | int res1 = 0 ; | |
6696 | bool temp2 = false ; | |
6697 | int val3 ; | |
6698 | int ecode3 = 0 ; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | PyObject * obj1 = 0 ; | |
6701 | PyObject * obj2 = 0 ; | |
6702 | char * kwnames[] = { | |
6703 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6704 | }; | |
6705 | ||
6706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6708 | if (!SWIG_IsOK(res1)) { | |
6709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6710 | } | |
6711 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6712 | { | |
6713 | arg2 = wxString_in_helper(obj1); | |
6714 | if (arg2 == NULL) SWIG_fail; | |
6715 | temp2 = true; | |
6716 | } | |
6717 | if (obj2) { | |
6718 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6719 | if (!SWIG_IsOK(ecode3)) { | |
6720 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6721 | } | |
6722 | arg3 = static_cast< int >(val3); | |
6723 | } | |
6724 | { | |
6725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6726 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | resultobj = SWIG_Py_Void(); | |
6731 | { | |
6732 | if (temp2) | |
6733 | delete arg2; | |
6734 | } | |
6735 | return resultobj; | |
6736 | fail: | |
6737 | { | |
6738 | if (temp2) | |
6739 | delete arg2; | |
6740 | } | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
6745 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6746 | PyObject *resultobj = 0; | |
6747 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6748 | int arg2 = (int) 0 ; | |
6749 | void *argp1 = 0 ; | |
6750 | int res1 = 0 ; | |
6751 | int val2 ; | |
6752 | int ecode2 = 0 ; | |
6753 | PyObject * obj0 = 0 ; | |
6754 | PyObject * obj1 = 0 ; | |
6755 | char * kwnames[] = { | |
6756 | (char *) "self",(char *) "number", NULL | |
6757 | }; | |
6758 | ||
6759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6761 | if (!SWIG_IsOK(res1)) { | |
6762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6763 | } | |
6764 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6765 | if (obj1) { | |
6766 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6767 | if (!SWIG_IsOK(ecode2)) { | |
6768 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6769 | } | |
6770 | arg2 = static_cast< int >(val2); | |
6771 | } | |
6772 | { | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | (arg1)->PopStatusText(arg2); | |
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | resultobj = SWIG_Py_Void(); | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | return NULL; | |
6782 | } | |
6783 | ||
6784 | ||
6785 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6786 | PyObject *resultobj = 0; | |
6787 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6788 | int arg2 ; | |
6789 | void *argp1 = 0 ; | |
6790 | int res1 = 0 ; | |
6791 | int val2 ; | |
6792 | int ecode2 = 0 ; | |
6793 | PyObject * obj0 = 0 ; | |
6794 | PyObject * obj1 = 0 ; | |
6795 | char * kwnames[] = { | |
6796 | (char *) "self",(char *) "n", NULL | |
6797 | }; | |
6798 | ||
6799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6801 | if (!SWIG_IsOK(res1)) { | |
6802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6803 | } | |
6804 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6805 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6806 | if (!SWIG_IsOK(ecode2)) { | |
6807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6808 | } | |
6809 | arg2 = static_cast< int >(val2); | |
6810 | { | |
6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6812 | (arg1)->SetStatusBarPane(arg2); | |
6813 | wxPyEndAllowThreads(__tstate); | |
6814 | if (PyErr_Occurred()) SWIG_fail; | |
6815 | } | |
6816 | resultobj = SWIG_Py_Void(); | |
6817 | return resultobj; | |
6818 | fail: | |
6819 | return NULL; | |
d55e5bfc RD |
6820 | } |
6821 | ||
6822 | ||
1bd55598 RD |
6823 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6824 | PyObject *resultobj = 0; | |
6825 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6826 | int result; | |
6827 | void *argp1 = 0 ; | |
6828 | int res1 = 0 ; | |
6829 | PyObject *swig_obj[1] ; | |
6830 | ||
6831 | if (!args) SWIG_fail; | |
6832 | swig_obj[0] = args; | |
6833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6834 | if (!SWIG_IsOK(res1)) { | |
6835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6836 | } | |
6837 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6838 | { | |
6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6840 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj = 0; | |
6853 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6854 | long arg2 = (long) -1 ; | |
6855 | int arg3 = (int) -1 ; | |
6856 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
6857 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6858 | wxToolBar *result = 0 ; | |
6859 | void *argp1 = 0 ; | |
6860 | int res1 = 0 ; | |
6861 | long val2 ; | |
6862 | int ecode2 = 0 ; | |
6863 | int val3 ; | |
6864 | int ecode3 = 0 ; | |
6865 | bool temp4 = false ; | |
6866 | PyObject * obj0 = 0 ; | |
6867 | PyObject * obj1 = 0 ; | |
6868 | PyObject * obj2 = 0 ; | |
6869 | PyObject * obj3 = 0 ; | |
6870 | char * kwnames[] = { | |
6871 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6872 | }; | |
6873 | ||
6874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6876 | if (!SWIG_IsOK(res1)) { | |
6877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6878 | } | |
6879 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6880 | if (obj1) { | |
6881 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6882 | if (!SWIG_IsOK(ecode2)) { | |
6883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
6884 | } | |
6885 | arg2 = static_cast< long >(val2); | |
6886 | } | |
6887 | if (obj2) { | |
6888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6889 | if (!SWIG_IsOK(ecode3)) { | |
6890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
6891 | } | |
6892 | arg3 = static_cast< int >(val3); | |
6893 | } | |
6894 | if (obj3) { | |
d55e5bfc | 6895 | { |
1bd55598 RD |
6896 | arg4 = wxString_in_helper(obj3); |
6897 | if (arg4 == NULL) SWIG_fail; | |
6898 | temp4 = true; | |
d55e5bfc | 6899 | } |
1bd55598 RD |
6900 | } |
6901 | { | |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6903 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
6907 | { | |
6908 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6909 | } | |
6910 | { | |
6911 | if (temp4) | |
6912 | delete arg4; | |
6913 | } | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | { | |
6917 | if (temp4) | |
6918 | delete arg4; | |
6919 | } | |
6920 | return NULL; | |
d55e5bfc RD |
6921 | } |
6922 | ||
6923 | ||
1bd55598 RD |
6924 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6925 | PyObject *resultobj = 0; | |
6926 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6927 | wxToolBar *result = 0 ; | |
6928 | void *argp1 = 0 ; | |
6929 | int res1 = 0 ; | |
6930 | PyObject *swig_obj[1] ; | |
6931 | ||
6932 | if (!args) SWIG_fail; | |
6933 | swig_obj[0] = args; | |
6934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6935 | if (!SWIG_IsOK(res1)) { | |
6936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6937 | } | |
6938 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | { | |
6946 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6947 | } | |
6948 | return resultobj; | |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
6954 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6955 | PyObject *resultobj = 0; | |
6956 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6957 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
6958 | void *argp1 = 0 ; | |
6959 | int res1 = 0 ; | |
6960 | void *argp2 = 0 ; | |
6961 | int res2 = 0 ; | |
6962 | PyObject * obj0 = 0 ; | |
6963 | PyObject * obj1 = 0 ; | |
6964 | char * kwnames[] = { | |
6965 | (char *) "self",(char *) "toolbar", NULL | |
6966 | }; | |
6967 | ||
6968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6970 | if (!SWIG_IsOK(res1)) { | |
6971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6972 | } | |
6973 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6974 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
6975 | if (!SWIG_IsOK(res2)) { | |
6976 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
6977 | } | |
6978 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | (arg1)->SetToolBar(arg2); | |
6982 | wxPyEndAllowThreads(__tstate); | |
6983 | if (PyErr_Occurred()) SWIG_fail; | |
6984 | } | |
6985 | resultobj = SWIG_Py_Void(); | |
6986 | return resultobj; | |
6987 | fail: | |
6988 | return NULL; | |
6989 | } | |
6990 | ||
6991 | ||
6992 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6993 | PyObject *resultobj = 0; | |
6994 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6995 | wxString *arg2 = 0 ; | |
6996 | bool arg3 ; | |
6997 | void *argp1 = 0 ; | |
6998 | int res1 = 0 ; | |
6999 | bool temp2 = false ; | |
7000 | bool val3 ; | |
7001 | int ecode3 = 0 ; | |
7002 | PyObject * obj0 = 0 ; | |
7003 | PyObject * obj1 = 0 ; | |
7004 | PyObject * obj2 = 0 ; | |
7005 | char * kwnames[] = { | |
7006 | (char *) "self",(char *) "text",(char *) "show", NULL | |
7007 | }; | |
7008 | ||
7009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7011 | if (!SWIG_IsOK(res1)) { | |
7012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7013 | } | |
7014 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7015 | { | |
7016 | arg2 = wxString_in_helper(obj1); | |
7017 | if (arg2 == NULL) SWIG_fail; | |
7018 | temp2 = true; | |
7019 | } | |
7020 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7021 | if (!SWIG_IsOK(ecode3)) { | |
7022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
7023 | } | |
7024 | arg3 = static_cast< bool >(val3); | |
7025 | { | |
7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7027 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
7028 | wxPyEndAllowThreads(__tstate); | |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
7030 | } | |
7031 | resultobj = SWIG_Py_Void(); | |
7032 | { | |
7033 | if (temp2) | |
7034 | delete arg2; | |
7035 | } | |
7036 | return resultobj; | |
7037 | fail: | |
7038 | { | |
7039 | if (temp2) | |
7040 | delete arg2; | |
7041 | } | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
7046 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7047 | PyObject *resultobj = 0; | |
7048 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7049 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7050 | void *argp1 = 0 ; | |
7051 | int res1 = 0 ; | |
7052 | void *argp2 = 0 ; | |
7053 | int res2 = 0 ; | |
7054 | PyObject * obj0 = 0 ; | |
7055 | PyObject * obj1 = 0 ; | |
7056 | char * kwnames[] = { | |
7057 | (char *) "self",(char *) "menu", NULL | |
7058 | }; | |
7059 | ||
7060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7062 | if (!SWIG_IsOK(res1)) { | |
7063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7064 | } | |
7065 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7066 | if (obj1) { | |
7067 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7068 | if (!SWIG_IsOK(res2)) { | |
7069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d55e5bfc | 7070 | } |
1bd55598 RD |
7071 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7072 | } | |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | (arg1)->DoMenuUpdates(arg2); | |
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | resultobj = SWIG_Py_Void(); | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj = 0; | |
7088 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7089 | SwigValueWrapper<wxVisualAttributes > result; | |
7090 | int val1 ; | |
7091 | int ecode1 = 0 ; | |
7092 | PyObject * obj0 = 0 ; | |
7093 | char * kwnames[] = { | |
7094 | (char *) "variant", NULL | |
7095 | }; | |
7096 | ||
7097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7098 | if (obj0) { | |
7099 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7100 | if (!SWIG_IsOK(ecode1)) { | |
7101 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7102 | } | |
7103 | arg1 = static_cast< wxWindowVariant >(val1); | |
7104 | } | |
7105 | { | |
7106 | if (!wxPyCheckForApp()) SWIG_fail; | |
7107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7108 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7109 | wxPyEndAllowThreads(__tstate); | |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
7111 | } | |
7112 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7113 | return resultobj; | |
7114 | fail: | |
7115 | return NULL; | |
7116 | } | |
7117 | ||
7118 | ||
7119 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7120 | PyObject *obj; | |
7121 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7122 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7123 | return SWIG_Py_Void(); | |
7124 | } | |
7125 | ||
7126 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7127 | return SWIG_Python_InitShadowInstance(args); | |
7128 | } | |
7129 | ||
7130 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj = 0; | |
7132 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7133 | int arg2 = (int) (int)-1 ; | |
7134 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7135 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7136 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7137 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7138 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7139 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7140 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7141 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7142 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7143 | wxDialog *result = 0 ; | |
7144 | void *argp1 = 0 ; | |
7145 | int res1 = 0 ; | |
7146 | int val2 ; | |
7147 | int ecode2 = 0 ; | |
7148 | bool temp3 = false ; | |
7149 | wxPoint temp4 ; | |
7150 | wxSize temp5 ; | |
7151 | long val6 ; | |
7152 | int ecode6 = 0 ; | |
7153 | bool temp7 = false ; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | PyObject * obj1 = 0 ; | |
7156 | PyObject * obj2 = 0 ; | |
7157 | PyObject * obj3 = 0 ; | |
7158 | PyObject * obj4 = 0 ; | |
7159 | PyObject * obj5 = 0 ; | |
7160 | PyObject * obj6 = 0 ; | |
7161 | char * kwnames[] = { | |
7162 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7163 | }; | |
7164 | ||
7165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7167 | if (!SWIG_IsOK(res1)) { | |
7168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7169 | } | |
7170 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7171 | if (obj1) { | |
7172 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7173 | if (!SWIG_IsOK(ecode2)) { | |
7174 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7175 | } | |
7176 | arg2 = static_cast< int >(val2); | |
7177 | } | |
7178 | if (obj2) { | |
d55e5bfc | 7179 | { |
1bd55598 RD |
7180 | arg3 = wxString_in_helper(obj2); |
7181 | if (arg3 == NULL) SWIG_fail; | |
7182 | temp3 = true; | |
d55e5bfc | 7183 | } |
1bd55598 RD |
7184 | } |
7185 | if (obj3) { | |
d55e5bfc | 7186 | { |
1bd55598 RD |
7187 | arg4 = &temp4; |
7188 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7189 | } |
1bd55598 RD |
7190 | } |
7191 | if (obj4) { | |
d55e5bfc | 7192 | { |
1bd55598 RD |
7193 | arg5 = &temp5; |
7194 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7195 | } |
1bd55598 RD |
7196 | } |
7197 | if (obj5) { | |
7198 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7199 | if (!SWIG_IsOK(ecode6)) { | |
7200 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7201 | } | |
7202 | arg6 = static_cast< long >(val6); | |
7203 | } | |
7204 | if (obj6) { | |
d55e5bfc | 7205 | { |
1bd55598 RD |
7206 | arg7 = wxString_in_helper(obj6); |
7207 | if (arg7 == NULL) SWIG_fail; | |
7208 | temp7 = true; | |
d55e5bfc | 7209 | } |
1bd55598 RD |
7210 | } |
7211 | { | |
7212 | if (!wxPyCheckForApp()) SWIG_fail; | |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7214 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
7217 | } | |
7218 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7219 | { | |
7220 | if (temp3) | |
7221 | delete arg3; | |
7222 | } | |
7223 | { | |
7224 | if (temp7) | |
7225 | delete arg7; | |
7226 | } | |
7227 | return resultobj; | |
7228 | fail: | |
7229 | { | |
7230 | if (temp3) | |
7231 | delete arg3; | |
7232 | } | |
7233 | { | |
7234 | if (temp7) | |
7235 | delete arg7; | |
7236 | } | |
7237 | return NULL; | |
d55e5bfc RD |
7238 | } |
7239 | ||
7240 | ||
1bd55598 RD |
7241 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7242 | PyObject *resultobj = 0; | |
7243 | wxDialog *result = 0 ; | |
7244 | ||
7245 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7246 | { | |
7247 | if (!wxPyCheckForApp()) SWIG_fail; | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (wxDialog *)new wxDialog(); | |
7250 | wxPyEndAllowThreads(__tstate); | |
7251 | if (PyErr_Occurred()) SWIG_fail; | |
7252 | } | |
7253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | return NULL; | |
7257 | } | |
7258 | ||
7259 | ||
7260 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7261 | PyObject *resultobj = 0; | |
7262 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7263 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7264 | int arg3 = (int) (int)-1 ; | |
7265 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7266 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7267 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7268 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7269 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7270 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7271 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7272 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7273 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7274 | bool result; | |
7275 | void *argp1 = 0 ; | |
7276 | int res1 = 0 ; | |
7277 | void *argp2 = 0 ; | |
7278 | int res2 = 0 ; | |
7279 | int val3 ; | |
7280 | int ecode3 = 0 ; | |
7281 | bool temp4 = false ; | |
7282 | wxPoint temp5 ; | |
7283 | wxSize temp6 ; | |
7284 | long val7 ; | |
7285 | int ecode7 = 0 ; | |
7286 | bool temp8 = false ; | |
7287 | PyObject * obj0 = 0 ; | |
7288 | PyObject * obj1 = 0 ; | |
7289 | PyObject * obj2 = 0 ; | |
7290 | PyObject * obj3 = 0 ; | |
7291 | PyObject * obj4 = 0 ; | |
7292 | PyObject * obj5 = 0 ; | |
7293 | PyObject * obj6 = 0 ; | |
7294 | PyObject * obj7 = 0 ; | |
7295 | char * kwnames[] = { | |
7296 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7297 | }; | |
7298 | ||
7299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7301 | if (!SWIG_IsOK(res1)) { | |
7302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7303 | } | |
7304 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7305 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7306 | if (!SWIG_IsOK(res2)) { | |
7307 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7308 | } | |
7309 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7310 | if (obj2) { | |
7311 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7312 | if (!SWIG_IsOK(ecode3)) { | |
7313 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7314 | } | |
7315 | arg3 = static_cast< int >(val3); | |
7316 | } | |
7317 | if (obj3) { | |
d55e5bfc | 7318 | { |
1bd55598 RD |
7319 | arg4 = wxString_in_helper(obj3); |
7320 | if (arg4 == NULL) SWIG_fail; | |
7321 | temp4 = true; | |
d55e5bfc | 7322 | } |
1bd55598 RD |
7323 | } |
7324 | if (obj4) { | |
36ed4f51 | 7325 | { |
1bd55598 RD |
7326 | arg5 = &temp5; |
7327 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7328 | } |
1bd55598 RD |
7329 | } |
7330 | if (obj5) { | |
d55e5bfc | 7331 | { |
1bd55598 RD |
7332 | arg6 = &temp6; |
7333 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7334 | } |
1bd55598 RD |
7335 | } |
7336 | if (obj6) { | |
7337 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7338 | if (!SWIG_IsOK(ecode7)) { | |
7339 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7340 | } | |
7341 | arg7 = static_cast< long >(val7); | |
7342 | } | |
7343 | if (obj7) { | |
d55e5bfc | 7344 | { |
1bd55598 RD |
7345 | arg8 = wxString_in_helper(obj7); |
7346 | if (arg8 == NULL) SWIG_fail; | |
7347 | temp8 = true; | |
d55e5bfc | 7348 | } |
1bd55598 RD |
7349 | } |
7350 | { | |
7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7352 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
7356 | { | |
7357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7358 | } | |
7359 | { | |
7360 | if (temp4) | |
7361 | delete arg4; | |
7362 | } | |
7363 | { | |
7364 | if (temp8) | |
7365 | delete arg8; | |
7366 | } | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | { | |
7370 | if (temp4) | |
7371 | delete arg4; | |
7372 | } | |
7373 | { | |
7374 | if (temp8) | |
7375 | delete arg8; | |
7376 | } | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj = 0; | |
7383 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7384 | int arg2 ; | |
7385 | void *argp1 = 0 ; | |
7386 | int res1 = 0 ; | |
7387 | int val2 ; | |
7388 | int ecode2 = 0 ; | |
7389 | PyObject * obj0 = 0 ; | |
7390 | PyObject * obj1 = 0 ; | |
7391 | char * kwnames[] = { | |
7392 | (char *) "self",(char *) "returnCode", NULL | |
7393 | }; | |
7394 | ||
7395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7397 | if (!SWIG_IsOK(res1)) { | |
7398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7399 | } | |
7400 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7402 | if (!SWIG_IsOK(ecode2)) { | |
7403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7404 | } | |
7405 | arg2 = static_cast< int >(val2); | |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | (arg1)->SetReturnCode(arg2); | |
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | resultobj = SWIG_Py_Void(); | |
7413 | return resultobj; | |
7414 | fail: | |
7415 | return NULL; | |
c370783e RD |
7416 | } |
7417 | ||
7418 | ||
1bd55598 RD |
7419 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7420 | PyObject *resultobj = 0; | |
7421 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7422 | int result; | |
7423 | void *argp1 = 0 ; | |
7424 | int res1 = 0 ; | |
7425 | PyObject *swig_obj[1] ; | |
7426 | ||
7427 | if (!args) SWIG_fail; | |
7428 | swig_obj[0] = args; | |
7429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7430 | if (!SWIG_IsOK(res1)) { | |
7431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7432 | } | |
7433 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7434 | { | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7441 | return resultobj; | |
7442 | fail: | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
7447 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7448 | PyObject *resultobj = 0; | |
7449 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7450 | int arg2 ; | |
7451 | void *argp1 = 0 ; | |
7452 | int res1 = 0 ; | |
7453 | int val2 ; | |
7454 | int ecode2 = 0 ; | |
7455 | PyObject * obj0 = 0 ; | |
7456 | PyObject * obj1 = 0 ; | |
7457 | char * kwnames[] = { | |
7458 | (char *) "self",(char *) "affirmativeId", NULL | |
7459 | }; | |
7460 | ||
7461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7463 | if (!SWIG_IsOK(res1)) { | |
7464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7465 | } | |
7466 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7467 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7468 | if (!SWIG_IsOK(ecode2)) { | |
7469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7470 | } | |
7471 | arg2 = static_cast< int >(val2); | |
7472 | { | |
7473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7474 | (arg1)->SetAffirmativeId(arg2); | |
7475 | wxPyEndAllowThreads(__tstate); | |
7476 | if (PyErr_Occurred()) SWIG_fail; | |
7477 | } | |
7478 | resultobj = SWIG_Py_Void(); | |
7479 | return resultobj; | |
7480 | fail: | |
7481 | return NULL; | |
5e483524 RD |
7482 | } |
7483 | ||
7484 | ||
1bd55598 RD |
7485 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7486 | PyObject *resultobj = 0; | |
7487 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7488 | int result; | |
7489 | void *argp1 = 0 ; | |
7490 | int res1 = 0 ; | |
7491 | PyObject *swig_obj[1] ; | |
7492 | ||
7493 | if (!args) SWIG_fail; | |
7494 | swig_obj[0] = args; | |
7495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7496 | if (!SWIG_IsOK(res1)) { | |
7497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7498 | } | |
7499 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7500 | { | |
7501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7502 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7503 | wxPyEndAllowThreads(__tstate); | |
7504 | if (PyErr_Occurred()) SWIG_fail; | |
7505 | } | |
7506 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7507 | return resultobj; | |
7508 | fail: | |
7509 | return NULL; | |
7510 | } | |
7511 | ||
7512 | ||
7513 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7514 | PyObject *resultobj = 0; | |
7515 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7516 | int arg2 ; | |
7517 | void *argp1 = 0 ; | |
7518 | int res1 = 0 ; | |
7519 | int val2 ; | |
7520 | int ecode2 = 0 ; | |
7521 | PyObject * obj0 = 0 ; | |
7522 | PyObject * obj1 = 0 ; | |
7523 | char * kwnames[] = { | |
7524 | (char *) "self",(char *) "escapeId", NULL | |
7525 | }; | |
7526 | ||
7527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7529 | if (!SWIG_IsOK(res1)) { | |
7530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7531 | } | |
7532 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7533 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7534 | if (!SWIG_IsOK(ecode2)) { | |
7535 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7536 | } | |
7537 | arg2 = static_cast< int >(val2); | |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | (arg1)->SetEscapeId(arg2); | |
7541 | wxPyEndAllowThreads(__tstate); | |
7542 | if (PyErr_Occurred()) SWIG_fail; | |
7543 | } | |
7544 | resultobj = SWIG_Py_Void(); | |
7545 | return resultobj; | |
7546 | fail: | |
7547 | return NULL; | |
d55e5bfc RD |
7548 | } |
7549 | ||
7550 | ||
1bd55598 RD |
7551 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7552 | PyObject *resultobj = 0; | |
7553 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7554 | int result; | |
7555 | void *argp1 = 0 ; | |
7556 | int res1 = 0 ; | |
7557 | PyObject *swig_obj[1] ; | |
7558 | ||
7559 | if (!args) SWIG_fail; | |
7560 | swig_obj[0] = args; | |
7561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7562 | if (!SWIG_IsOK(res1)) { | |
7563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7564 | } | |
7565 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7566 | { | |
7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7568 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7573 | return resultobj; | |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
7579 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7580 | PyObject *resultobj = 0; | |
7581 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7582 | wxString *arg2 = 0 ; | |
7583 | wxSizer *result = 0 ; | |
7584 | void *argp1 = 0 ; | |
7585 | int res1 = 0 ; | |
7586 | bool temp2 = false ; | |
7587 | PyObject * obj0 = 0 ; | |
7588 | PyObject * obj1 = 0 ; | |
7589 | char * kwnames[] = { | |
7590 | (char *) "self",(char *) "message", NULL | |
7591 | }; | |
7592 | ||
7593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7595 | if (!SWIG_IsOK(res1)) { | |
7596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7597 | } | |
7598 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7599 | { | |
7600 | arg2 = wxString_in_helper(obj1); | |
7601 | if (arg2 == NULL) SWIG_fail; | |
7602 | temp2 = true; | |
7603 | } | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | { | |
7611 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7612 | } | |
7613 | { | |
7614 | if (temp2) | |
7615 | delete arg2; | |
7616 | } | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | { | |
7620 | if (temp2) | |
7621 | delete arg2; | |
7622 | } | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | SWIGINTERN PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj = 0; | |
7629 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7630 | long arg2 ; | |
7631 | bool arg3 = (bool) false ; | |
7632 | int arg4 = (int) 0 ; | |
7633 | wxSizer *result = 0 ; | |
7634 | void *argp1 = 0 ; | |
7635 | int res1 = 0 ; | |
7636 | long val2 ; | |
7637 | int ecode2 = 0 ; | |
7638 | bool val3 ; | |
7639 | int ecode3 = 0 ; | |
7640 | int val4 ; | |
7641 | int ecode4 = 0 ; | |
7642 | PyObject * obj0 = 0 ; | |
7643 | PyObject * obj1 = 0 ; | |
7644 | PyObject * obj2 = 0 ; | |
7645 | PyObject * obj3 = 0 ; | |
7646 | char * kwnames[] = { | |
7647 | (char *) "self",(char *) "flags",(char *) "separated",(char *) "distance", NULL | |
7648 | }; | |
7649 | ||
7650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7654 | } | |
7655 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7656 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7657 | if (!SWIG_IsOK(ecode2)) { | |
7658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7659 | } | |
7660 | arg2 = static_cast< long >(val2); | |
7661 | if (obj2) { | |
7662 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7663 | if (!SWIG_IsOK(ecode3)) { | |
7664 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "3"" of type '" "bool""'"); | |
7665 | } | |
7666 | arg3 = static_cast< bool >(val3); | |
7667 | } | |
7668 | if (obj3) { | |
7669 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7670 | if (!SWIG_IsOK(ecode4)) { | |
7671 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "4"" of type '" "int""'"); | |
7672 | } | |
7673 | arg4 = static_cast< int >(val4); | |
7674 | } | |
7675 | { | |
7676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7677 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2,arg3,arg4); | |
7678 | wxPyEndAllowThreads(__tstate); | |
7679 | if (PyErr_Occurred()) SWIG_fail; | |
7680 | } | |
7681 | { | |
7682 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7683 | } | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
7690 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7691 | PyObject *resultobj = 0; | |
7692 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7693 | long arg2 ; | |
7694 | wxStdDialogButtonSizer *result = 0 ; | |
7695 | void *argp1 = 0 ; | |
7696 | int res1 = 0 ; | |
7697 | long val2 ; | |
7698 | int ecode2 = 0 ; | |
7699 | PyObject * obj0 = 0 ; | |
7700 | PyObject * obj1 = 0 ; | |
7701 | char * kwnames[] = { | |
7702 | (char *) "self",(char *) "flags", NULL | |
7703 | }; | |
7704 | ||
7705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7707 | if (!SWIG_IsOK(res1)) { | |
7708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7709 | } | |
7710 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7711 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7712 | if (!SWIG_IsOK(ecode2)) { | |
7713 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7714 | } | |
7715 | arg2 = static_cast< long >(val2); | |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | return NULL; | |
d55e5bfc RD |
7726 | } |
7727 | ||
7728 | ||
1bd55598 RD |
7729 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7730 | PyObject *resultobj = 0; | |
7731 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7732 | bool result; | |
7733 | void *argp1 = 0 ; | |
7734 | int res1 = 0 ; | |
7735 | PyObject *swig_obj[1] ; | |
7736 | ||
7737 | if (!args) SWIG_fail; | |
7738 | swig_obj[0] = args; | |
7739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7740 | if (!SWIG_IsOK(res1)) { | |
7741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7742 | } | |
7743 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7744 | { | |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7747 | wxPyEndAllowThreads(__tstate); | |
7748 | if (PyErr_Occurred()) SWIG_fail; | |
7749 | } | |
7750 | { | |
7751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7752 | } | |
7753 | return resultobj; | |
7754 | fail: | |
7755 | return NULL; | |
b1fcee84 RD |
7756 | } |
7757 | ||
7758 | ||
1bd55598 RD |
7759 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7760 | PyObject *resultobj = 0; | |
7761 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7762 | int result; | |
7763 | void *argp1 = 0 ; | |
7764 | int res1 = 0 ; | |
7765 | PyObject *swig_obj[1] ; | |
7766 | ||
7767 | if (!args) SWIG_fail; | |
7768 | swig_obj[0] = args; | |
7769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7770 | if (!SWIG_IsOK(res1)) { | |
7771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7772 | } | |
7773 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7774 | { | |
7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7776 | result = (int)(arg1)->ShowModal(); | |
7777 | wxPyEndAllowThreads(__tstate); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
7779 | } | |
7780 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7781 | return resultobj; | |
7782 | fail: | |
7783 | return NULL; | |
7784 | } | |
7785 | ||
7786 | ||
7787 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7788 | PyObject *resultobj = 0; | |
7789 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7790 | int arg2 ; | |
7791 | void *argp1 = 0 ; | |
7792 | int res1 = 0 ; | |
7793 | int val2 ; | |
7794 | int ecode2 = 0 ; | |
7795 | PyObject * obj0 = 0 ; | |
7796 | PyObject * obj1 = 0 ; | |
7797 | char * kwnames[] = { | |
7798 | (char *) "self",(char *) "retCode", NULL | |
7799 | }; | |
7800 | ||
7801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7803 | if (!SWIG_IsOK(res1)) { | |
7804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7805 | } | |
7806 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7807 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7808 | if (!SWIG_IsOK(ecode2)) { | |
7809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7810 | } | |
7811 | arg2 = static_cast< int >(val2); | |
7812 | { | |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | (arg1)->EndModal(arg2); | |
7815 | wxPyEndAllowThreads(__tstate); | |
7816 | if (PyErr_Occurred()) SWIG_fail; | |
7817 | } | |
7818 | resultobj = SWIG_Py_Void(); | |
7819 | return resultobj; | |
7820 | fail: | |
7821 | return NULL; | |
7822 | } | |
7823 | ||
7824 | ||
7825 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7826 | PyObject *resultobj = 0; | |
7827 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7828 | SwigValueWrapper<wxVisualAttributes > result; | |
7829 | int val1 ; | |
7830 | int ecode1 = 0 ; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | char * kwnames[] = { | |
7833 | (char *) "variant", NULL | |
7834 | }; | |
7835 | ||
7836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7837 | if (obj0) { | |
7838 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7839 | if (!SWIG_IsOK(ecode1)) { | |
7840 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7841 | } | |
7842 | arg1 = static_cast< wxWindowVariant >(val1); | |
7843 | } | |
7844 | { | |
7845 | if (!wxPyCheckForApp()) SWIG_fail; | |
7846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7847 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7852 | return resultobj; | |
7853 | fail: | |
7854 | return NULL; | |
7855 | } | |
7856 | ||
7857 | ||
7858 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7859 | PyObject *obj; | |
7860 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7861 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
7862 | return SWIG_Py_Void(); | |
7863 | } | |
7864 | ||
7865 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7866 | return SWIG_Python_InitShadowInstance(args); | |
7867 | } | |
7868 | ||
7869 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7870 | PyObject *resultobj = 0; | |
7871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7872 | int arg2 = (int) (int)-1 ; | |
7873 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7874 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7875 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7876 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7877 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7878 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7879 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
7880 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
7881 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7882 | wxMiniFrame *result = 0 ; | |
7883 | void *argp1 = 0 ; | |
7884 | int res1 = 0 ; | |
7885 | int val2 ; | |
7886 | int ecode2 = 0 ; | |
7887 | bool temp3 = false ; | |
7888 | wxPoint temp4 ; | |
7889 | wxSize temp5 ; | |
7890 | long val6 ; | |
7891 | int ecode6 = 0 ; | |
7892 | bool temp7 = false ; | |
7893 | PyObject * obj0 = 0 ; | |
7894 | PyObject * obj1 = 0 ; | |
7895 | PyObject * obj2 = 0 ; | |
7896 | PyObject * obj3 = 0 ; | |
7897 | PyObject * obj4 = 0 ; | |
7898 | PyObject * obj5 = 0 ; | |
7899 | PyObject * obj6 = 0 ; | |
7900 | char * kwnames[] = { | |
7901 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7902 | }; | |
7903 | ||
7904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7906 | if (!SWIG_IsOK(res1)) { | |
7907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7908 | } | |
7909 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7910 | if (obj1) { | |
7911 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7912 | if (!SWIG_IsOK(ecode2)) { | |
7913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
7914 | } | |
7915 | arg2 = static_cast< int >(val2); | |
7916 | } | |
7917 | if (obj2) { | |
d55e5bfc | 7918 | { |
1bd55598 RD |
7919 | arg3 = wxString_in_helper(obj2); |
7920 | if (arg3 == NULL) SWIG_fail; | |
7921 | temp3 = true; | |
d55e5bfc | 7922 | } |
1bd55598 RD |
7923 | } |
7924 | if (obj3) { | |
d55e5bfc | 7925 | { |
1bd55598 RD |
7926 | arg4 = &temp4; |
7927 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7928 | } |
1bd55598 RD |
7929 | } |
7930 | if (obj4) { | |
d55e5bfc | 7931 | { |
1bd55598 RD |
7932 | arg5 = &temp5; |
7933 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7934 | } |
1bd55598 RD |
7935 | } |
7936 | if (obj5) { | |
7937 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7938 | if (!SWIG_IsOK(ecode6)) { | |
7939 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
7940 | } | |
7941 | arg6 = static_cast< long >(val6); | |
7942 | } | |
7943 | if (obj6) { | |
d55e5bfc | 7944 | { |
1bd55598 RD |
7945 | arg7 = wxString_in_helper(obj6); |
7946 | if (arg7 == NULL) SWIG_fail; | |
7947 | temp7 = true; | |
d55e5bfc | 7948 | } |
1bd55598 RD |
7949 | } |
7950 | { | |
7951 | if (!wxPyCheckForApp()) SWIG_fail; | |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
7958 | { | |
7959 | if (temp3) | |
7960 | delete arg3; | |
7961 | } | |
7962 | { | |
7963 | if (temp7) | |
7964 | delete arg7; | |
7965 | } | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | { | |
7969 | if (temp3) | |
7970 | delete arg3; | |
7971 | } | |
7972 | { | |
7973 | if (temp7) | |
7974 | delete arg7; | |
7975 | } | |
7976 | return NULL; | |
d55e5bfc RD |
7977 | } |
7978 | ||
7979 | ||
1bd55598 RD |
7980 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7981 | PyObject *resultobj = 0; | |
7982 | wxMiniFrame *result = 0 ; | |
7983 | ||
7984 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
7985 | { | |
7986 | if (!wxPyCheckForApp()) SWIG_fail; | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | result = (wxMiniFrame *)new wxMiniFrame(); | |
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
7992 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj = 0; | |
8001 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
8002 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8003 | int arg3 = (int) (int)-1 ; | |
8004 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8005 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8006 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8007 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8008 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8009 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8010 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
8011 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
8012 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8013 | bool result; | |
8014 | void *argp1 = 0 ; | |
8015 | int res1 = 0 ; | |
8016 | void *argp2 = 0 ; | |
8017 | int res2 = 0 ; | |
8018 | int val3 ; | |
8019 | int ecode3 = 0 ; | |
8020 | bool temp4 = false ; | |
8021 | wxPoint temp5 ; | |
8022 | wxSize temp6 ; | |
8023 | long val7 ; | |
8024 | int ecode7 = 0 ; | |
8025 | bool temp8 = false ; | |
8026 | PyObject * obj0 = 0 ; | |
8027 | PyObject * obj1 = 0 ; | |
8028 | PyObject * obj2 = 0 ; | |
8029 | PyObject * obj3 = 0 ; | |
8030 | PyObject * obj4 = 0 ; | |
8031 | PyObject * obj5 = 0 ; | |
8032 | PyObject * obj6 = 0 ; | |
8033 | PyObject * obj7 = 0 ; | |
8034 | char * kwnames[] = { | |
8035 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8036 | }; | |
8037 | ||
8038 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
8040 | if (!SWIG_IsOK(res1)) { | |
8041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
8042 | } | |
8043 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
8044 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8045 | if (!SWIG_IsOK(res2)) { | |
8046 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8047 | } | |
8048 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8049 | if (obj2) { | |
8050 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8051 | if (!SWIG_IsOK(ecode3)) { | |
8052 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8053 | } | |
8054 | arg3 = static_cast< int >(val3); | |
8055 | } | |
8056 | if (obj3) { | |
d55e5bfc | 8057 | { |
1bd55598 RD |
8058 | arg4 = wxString_in_helper(obj3); |
8059 | if (arg4 == NULL) SWIG_fail; | |
8060 | temp4 = true; | |
d55e5bfc | 8061 | } |
1bd55598 RD |
8062 | } |
8063 | if (obj4) { | |
d55e5bfc | 8064 | { |
1bd55598 RD |
8065 | arg5 = &temp5; |
8066 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8067 | } |
1bd55598 RD |
8068 | } |
8069 | if (obj5) { | |
d55e5bfc | 8070 | { |
1bd55598 RD |
8071 | arg6 = &temp6; |
8072 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8073 | } |
1bd55598 RD |
8074 | } |
8075 | if (obj6) { | |
8076 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8077 | if (!SWIG_IsOK(ecode7)) { | |
8078 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8079 | } | |
8080 | arg7 = static_cast< long >(val7); | |
8081 | } | |
8082 | if (obj7) { | |
d55e5bfc | 8083 | { |
1bd55598 RD |
8084 | arg8 = wxString_in_helper(obj7); |
8085 | if (arg8 == NULL) SWIG_fail; | |
8086 | temp8 = true; | |
d55e5bfc | 8087 | } |
1bd55598 RD |
8088 | } |
8089 | { | |
8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8091 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8097 | } | |
8098 | { | |
8099 | if (temp4) | |
8100 | delete arg4; | |
8101 | } | |
8102 | { | |
8103 | if (temp8) | |
8104 | delete arg8; | |
8105 | } | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | { | |
8109 | if (temp4) | |
8110 | delete arg4; | |
8111 | } | |
8112 | { | |
8113 | if (temp8) | |
8114 | delete arg8; | |
8115 | } | |
8116 | return NULL; | |
8117 | } | |
8118 | ||
8119 | ||
8120 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8121 | PyObject *obj; | |
8122 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8123 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8124 | return SWIG_Py_Void(); | |
8125 | } | |
8126 | ||
8127 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8128 | return SWIG_Python_InitShadowInstance(args); | |
8129 | } | |
8130 | ||
8131 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8132 | PyObject *resultobj = 0; | |
8133 | wxBitmap *arg1 = 0 ; | |
8134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8135 | int arg3 ; | |
8136 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8137 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8138 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8139 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8140 | long arg6 = (long) wxNO_BORDER ; | |
8141 | wxSplashScreenWindow *result = 0 ; | |
8142 | void *argp1 = 0 ; | |
8143 | int res1 = 0 ; | |
8144 | void *argp2 = 0 ; | |
8145 | int res2 = 0 ; | |
8146 | int val3 ; | |
8147 | int ecode3 = 0 ; | |
8148 | wxPoint temp4 ; | |
8149 | wxSize temp5 ; | |
8150 | long val6 ; | |
8151 | int ecode6 = 0 ; | |
8152 | PyObject * obj0 = 0 ; | |
8153 | PyObject * obj1 = 0 ; | |
8154 | PyObject * obj2 = 0 ; | |
8155 | PyObject * obj3 = 0 ; | |
8156 | PyObject * obj4 = 0 ; | |
8157 | PyObject * obj5 = 0 ; | |
8158 | char * kwnames[] = { | |
8159 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8160 | }; | |
8161 | ||
8162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8163 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8164 | if (!SWIG_IsOK(res1)) { | |
8165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8166 | } | |
8167 | if (!argp1) { | |
8168 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8169 | } | |
8170 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8171 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8172 | if (!SWIG_IsOK(res2)) { | |
8173 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8174 | } | |
8175 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8176 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8177 | if (!SWIG_IsOK(ecode3)) { | |
8178 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8179 | } | |
8180 | arg3 = static_cast< int >(val3); | |
8181 | if (obj3) { | |
d55e5bfc | 8182 | { |
1bd55598 RD |
8183 | arg4 = &temp4; |
8184 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8185 | } |
1bd55598 RD |
8186 | } |
8187 | if (obj4) { | |
d55e5bfc | 8188 | { |
1bd55598 RD |
8189 | arg5 = &temp5; |
8190 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8191 | } |
1bd55598 RD |
8192 | } |
8193 | if (obj5) { | |
8194 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8195 | if (!SWIG_IsOK(ecode6)) { | |
8196 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8197 | } | |
8198 | arg6 = static_cast< long >(val6); | |
8199 | } | |
8200 | { | |
8201 | if (!wxPyCheckForApp()) SWIG_fail; | |
8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8203 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8204 | wxPyEndAllowThreads(__tstate); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
8207 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8208 | return resultobj; | |
8209 | fail: | |
8210 | return NULL; | |
8211 | } | |
8212 | ||
8213 | ||
8214 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8215 | PyObject *resultobj = 0; | |
8216 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8217 | wxBitmap *arg2 = 0 ; | |
8218 | void *argp1 = 0 ; | |
8219 | int res1 = 0 ; | |
8220 | void *argp2 = 0 ; | |
8221 | int res2 = 0 ; | |
8222 | PyObject * obj0 = 0 ; | |
8223 | PyObject * obj1 = 0 ; | |
8224 | char * kwnames[] = { | |
8225 | (char *) "self",(char *) "bitmap", NULL | |
8226 | }; | |
8227 | ||
8228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8230 | if (!SWIG_IsOK(res1)) { | |
8231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8232 | } | |
8233 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8234 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8235 | if (!SWIG_IsOK(res2)) { | |
8236 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8237 | } | |
8238 | if (!argp2) { | |
8239 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8240 | } | |
8241 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8242 | { | |
8243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8244 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | resultobj = SWIG_Py_Void(); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
d55e5bfc RD |
8252 | } |
8253 | ||
8254 | ||
1bd55598 RD |
8255 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8256 | PyObject *resultobj = 0; | |
8257 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8258 | wxBitmap *result = 0 ; | |
8259 | void *argp1 = 0 ; | |
8260 | int res1 = 0 ; | |
8261 | PyObject *swig_obj[1] ; | |
8262 | ||
8263 | if (!args) SWIG_fail; | |
8264 | swig_obj[0] = args; | |
8265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8266 | if (!SWIG_IsOK(res1)) { | |
8267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8268 | } | |
8269 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | { | |
8273 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
8274 | result = (wxBitmap *) &_result_ref; | |
8275 | } | |
8276 | wxPyEndAllowThreads(__tstate); | |
8277 | if (PyErr_Occurred()) SWIG_fail; | |
8278 | } | |
8279 | { | |
8280 | wxBitmap* resultptr = new wxBitmap(*result); | |
8281 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8282 | } | |
8283 | return resultobj; | |
8284 | fail: | |
8285 | return NULL; | |
8286 | } | |
8287 | ||
8288 | ||
8289 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8290 | PyObject *obj; | |
8291 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8292 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8293 | return SWIG_Py_Void(); | |
8294 | } | |
8295 | ||
8296 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8297 | return SWIG_Python_InitShadowInstance(args); | |
8298 | } | |
8299 | ||
8300 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8301 | PyObject *resultobj = 0; | |
8302 | wxBitmap *arg1 = 0 ; | |
8303 | long arg2 ; | |
8304 | int arg3 ; | |
8305 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8306 | int arg5 = (int) -1 ; | |
8307 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8308 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8309 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8310 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8311 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8312 | wxSplashScreen *result = 0 ; | |
8313 | void *argp1 = 0 ; | |
8314 | int res1 = 0 ; | |
8315 | long val2 ; | |
8316 | int ecode2 = 0 ; | |
8317 | int val3 ; | |
8318 | int ecode3 = 0 ; | |
8319 | void *argp4 = 0 ; | |
8320 | int res4 = 0 ; | |
8321 | int val5 ; | |
8322 | int ecode5 = 0 ; | |
8323 | wxPoint temp6 ; | |
8324 | wxSize temp7 ; | |
8325 | long val8 ; | |
8326 | int ecode8 = 0 ; | |
8327 | PyObject * obj0 = 0 ; | |
8328 | PyObject * obj1 = 0 ; | |
8329 | PyObject * obj2 = 0 ; | |
8330 | PyObject * obj3 = 0 ; | |
8331 | PyObject * obj4 = 0 ; | |
8332 | PyObject * obj5 = 0 ; | |
8333 | PyObject * obj6 = 0 ; | |
8334 | PyObject * obj7 = 0 ; | |
8335 | char * kwnames[] = { | |
8336 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8337 | }; | |
8338 | ||
8339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8340 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8341 | if (!SWIG_IsOK(res1)) { | |
8342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8343 | } | |
8344 | if (!argp1) { | |
8345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8346 | } | |
8347 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8348 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8349 | if (!SWIG_IsOK(ecode2)) { | |
8350 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8351 | } | |
8352 | arg2 = static_cast< long >(val2); | |
8353 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8354 | if (!SWIG_IsOK(ecode3)) { | |
8355 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8356 | } | |
8357 | arg3 = static_cast< int >(val3); | |
8358 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8359 | if (!SWIG_IsOK(res4)) { | |
8360 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8361 | } | |
8362 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8363 | if (obj4) { | |
8364 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8365 | if (!SWIG_IsOK(ecode5)) { | |
8366 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8367 | } | |
8368 | arg5 = static_cast< int >(val5); | |
8369 | } | |
8370 | if (obj5) { | |
d55e5bfc | 8371 | { |
1bd55598 RD |
8372 | arg6 = &temp6; |
8373 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8374 | } |
1bd55598 RD |
8375 | } |
8376 | if (obj6) { | |
d55e5bfc | 8377 | { |
1bd55598 RD |
8378 | arg7 = &temp7; |
8379 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 8380 | } |
1bd55598 RD |
8381 | } |
8382 | if (obj7) { | |
8383 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8384 | if (!SWIG_IsOK(ecode8)) { | |
8385 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8386 | } | |
8387 | arg8 = static_cast< long >(val8); | |
8388 | } | |
8389 | { | |
8390 | if (!wxPyCheckForApp()) SWIG_fail; | |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | return NULL; | |
d55e5bfc RD |
8400 | } |
8401 | ||
8402 | ||
1bd55598 RD |
8403 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8404 | PyObject *resultobj = 0; | |
8405 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8406 | long result; | |
8407 | void *argp1 = 0 ; | |
8408 | int res1 = 0 ; | |
8409 | PyObject *swig_obj[1] ; | |
8410 | ||
8411 | if (!args) SWIG_fail; | |
8412 | swig_obj[0] = args; | |
8413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8414 | if (!SWIG_IsOK(res1)) { | |
8415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8416 | } | |
8417 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8418 | { | |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | return NULL; | |
d55e5bfc RD |
8428 | } |
8429 | ||
8430 | ||
1bd55598 RD |
8431 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8432 | PyObject *resultobj = 0; | |
8433 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8434 | wxSplashScreenWindow *result = 0 ; | |
8435 | void *argp1 = 0 ; | |
8436 | int res1 = 0 ; | |
8437 | PyObject *swig_obj[1] ; | |
8438 | ||
8439 | if (!args) SWIG_fail; | |
8440 | swig_obj[0] = args; | |
8441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8442 | if (!SWIG_IsOK(res1)) { | |
8443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8444 | } | |
8445 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8446 | { | |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8453 | return resultobj; | |
8454 | fail: | |
8455 | return NULL; | |
d55e5bfc RD |
8456 | } |
8457 | ||
8458 | ||
1bd55598 RD |
8459 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8460 | PyObject *resultobj = 0; | |
8461 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8462 | int result; | |
8463 | void *argp1 = 0 ; | |
8464 | int res1 = 0 ; | |
8465 | PyObject *swig_obj[1] ; | |
8466 | ||
8467 | if (!args) SWIG_fail; | |
8468 | swig_obj[0] = args; | |
8469 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8470 | if (!SWIG_IsOK(res1)) { | |
8471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8472 | } | |
8473 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8477 | wxPyEndAllowThreads(__tstate); | |
8478 | if (PyErr_Occurred()) SWIG_fail; | |
8479 | } | |
8480 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8481 | return resultobj; | |
8482 | fail: | |
8483 | return NULL; | |
8484 | } | |
8485 | ||
8486 | ||
8487 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8488 | PyObject *obj; | |
8489 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8490 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8491 | return SWIG_Py_Void(); | |
8492 | } | |
8493 | ||
8494 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8495 | return SWIG_Python_InitShadowInstance(args); | |
8496 | } | |
8497 | ||
8498 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8499 | PyObject *resultobj = 0; | |
8500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8501 | int arg2 = (int) -1 ; | |
8502 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8503 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8504 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8505 | wxStatusBar *result = 0 ; | |
8506 | void *argp1 = 0 ; | |
8507 | int res1 = 0 ; | |
8508 | int val2 ; | |
8509 | int ecode2 = 0 ; | |
8510 | long val3 ; | |
8511 | int ecode3 = 0 ; | |
8512 | bool temp4 = false ; | |
8513 | PyObject * obj0 = 0 ; | |
8514 | PyObject * obj1 = 0 ; | |
8515 | PyObject * obj2 = 0 ; | |
8516 | PyObject * obj3 = 0 ; | |
8517 | char * kwnames[] = { | |
8518 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8519 | }; | |
8520 | ||
8521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8523 | if (!SWIG_IsOK(res1)) { | |
8524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8525 | } | |
8526 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8527 | if (obj1) { | |
8528 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8529 | if (!SWIG_IsOK(ecode2)) { | |
8530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8531 | } | |
8532 | arg2 = static_cast< int >(val2); | |
8533 | } | |
8534 | if (obj2) { | |
8535 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8536 | if (!SWIG_IsOK(ecode3)) { | |
8537 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8538 | } | |
8539 | arg3 = static_cast< long >(val3); | |
8540 | } | |
8541 | if (obj3) { | |
d55e5bfc | 8542 | { |
1bd55598 RD |
8543 | arg4 = wxString_in_helper(obj3); |
8544 | if (arg4 == NULL) SWIG_fail; | |
8545 | temp4 = true; | |
d55e5bfc | 8546 | } |
1bd55598 RD |
8547 | } |
8548 | { | |
8549 | if (!wxPyCheckForApp()) SWIG_fail; | |
8550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8551 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8552 | wxPyEndAllowThreads(__tstate); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
8555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8556 | { | |
8557 | if (temp4) | |
8558 | delete arg4; | |
8559 | } | |
8560 | return resultobj; | |
8561 | fail: | |
8562 | { | |
8563 | if (temp4) | |
8564 | delete arg4; | |
8565 | } | |
8566 | return NULL; | |
d55e5bfc RD |
8567 | } |
8568 | ||
8569 | ||
1bd55598 RD |
8570 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8571 | PyObject *resultobj = 0; | |
8572 | wxStatusBar *result = 0 ; | |
8573 | ||
8574 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8575 | { | |
8576 | if (!wxPyCheckForApp()) SWIG_fail; | |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (wxStatusBar *)new wxStatusBar(); | |
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8583 | return resultobj; | |
8584 | fail: | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj = 0; | |
8591 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8593 | int arg3 = (int) -1 ; | |
8594 | long arg4 = (long) wxST_SIZEGRIP ; | |
8595 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8596 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8597 | bool result; | |
8598 | void *argp1 = 0 ; | |
8599 | int res1 = 0 ; | |
8600 | void *argp2 = 0 ; | |
8601 | int res2 = 0 ; | |
8602 | int val3 ; | |
8603 | int ecode3 = 0 ; | |
8604 | long val4 ; | |
8605 | int ecode4 = 0 ; | |
8606 | bool temp5 = false ; | |
8607 | PyObject * obj0 = 0 ; | |
8608 | PyObject * obj1 = 0 ; | |
8609 | PyObject * obj2 = 0 ; | |
8610 | PyObject * obj3 = 0 ; | |
8611 | PyObject * obj4 = 0 ; | |
8612 | char * kwnames[] = { | |
8613 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8614 | }; | |
8615 | ||
8616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8618 | if (!SWIG_IsOK(res1)) { | |
8619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8620 | } | |
8621 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8623 | if (!SWIG_IsOK(res2)) { | |
8624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8625 | } | |
8626 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8627 | if (obj2) { | |
8628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8629 | if (!SWIG_IsOK(ecode3)) { | |
8630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8631 | } | |
8632 | arg3 = static_cast< int >(val3); | |
8633 | } | |
8634 | if (obj3) { | |
8635 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8636 | if (!SWIG_IsOK(ecode4)) { | |
8637 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8638 | } | |
8639 | arg4 = static_cast< long >(val4); | |
8640 | } | |
8641 | if (obj4) { | |
d55e5bfc | 8642 | { |
1bd55598 RD |
8643 | arg5 = wxString_in_helper(obj4); |
8644 | if (arg5 == NULL) SWIG_fail; | |
8645 | temp5 = true; | |
d55e5bfc | 8646 | } |
1bd55598 RD |
8647 | } |
8648 | { | |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8651 | wxPyEndAllowThreads(__tstate); | |
8652 | if (PyErr_Occurred()) SWIG_fail; | |
8653 | } | |
8654 | { | |
8655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8656 | } | |
8657 | { | |
8658 | if (temp5) | |
8659 | delete arg5; | |
8660 | } | |
8661 | return resultobj; | |
8662 | fail: | |
8663 | { | |
8664 | if (temp5) | |
8665 | delete arg5; | |
8666 | } | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8672 | PyObject *resultobj = 0; | |
8673 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8674 | int arg2 = (int) 1 ; | |
8675 | void *argp1 = 0 ; | |
8676 | int res1 = 0 ; | |
8677 | int val2 ; | |
8678 | int ecode2 = 0 ; | |
8679 | PyObject * obj0 = 0 ; | |
8680 | PyObject * obj1 = 0 ; | |
8681 | char * kwnames[] = { | |
8682 | (char *) "self",(char *) "number", NULL | |
8683 | }; | |
8684 | ||
8685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8687 | if (!SWIG_IsOK(res1)) { | |
8688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8689 | } | |
8690 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8691 | if (obj1) { | |
8692 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8693 | if (!SWIG_IsOK(ecode2)) { | |
8694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8695 | } | |
8696 | arg2 = static_cast< int >(val2); | |
8697 | } | |
8698 | { | |
8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8700 | (arg1)->SetFieldsCount(arg2); | |
8701 | wxPyEndAllowThreads(__tstate); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
8704 | resultobj = SWIG_Py_Void(); | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | return NULL; | |
d55e5bfc RD |
8708 | } |
8709 | ||
8710 | ||
1bd55598 RD |
8711 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8712 | PyObject *resultobj = 0; | |
8713 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8714 | int result; | |
8715 | void *argp1 = 0 ; | |
8716 | int res1 = 0 ; | |
8717 | PyObject *swig_obj[1] ; | |
8718 | ||
8719 | if (!args) SWIG_fail; | |
8720 | swig_obj[0] = args; | |
8721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8722 | if (!SWIG_IsOK(res1)) { | |
8723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8724 | } | |
8725 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8726 | { | |
8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8728 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8729 | wxPyEndAllowThreads(__tstate); | |
8730 | if (PyErr_Occurred()) SWIG_fail; | |
8731 | } | |
8732 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8733 | return resultobj; | |
8734 | fail: | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8740 | PyObject *resultobj = 0; | |
8741 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8742 | wxString *arg2 = 0 ; | |
8743 | int arg3 = (int) 0 ; | |
8744 | void *argp1 = 0 ; | |
8745 | int res1 = 0 ; | |
8746 | bool temp2 = false ; | |
8747 | int val3 ; | |
8748 | int ecode3 = 0 ; | |
8749 | PyObject * obj0 = 0 ; | |
8750 | PyObject * obj1 = 0 ; | |
8751 | PyObject * obj2 = 0 ; | |
8752 | char * kwnames[] = { | |
8753 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8754 | }; | |
8755 | ||
8756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8758 | if (!SWIG_IsOK(res1)) { | |
8759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8760 | } | |
8761 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8762 | { | |
8763 | arg2 = wxString_in_helper(obj1); | |
8764 | if (arg2 == NULL) SWIG_fail; | |
8765 | temp2 = true; | |
8766 | } | |
8767 | if (obj2) { | |
8768 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8769 | if (!SWIG_IsOK(ecode3)) { | |
8770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8771 | } | |
8772 | arg3 = static_cast< int >(val3); | |
8773 | } | |
8774 | { | |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | resultobj = SWIG_Py_Void(); | |
8781 | { | |
8782 | if (temp2) | |
8783 | delete arg2; | |
8784 | } | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | { | |
8788 | if (temp2) | |
8789 | delete arg2; | |
8790 | } | |
8791 | return NULL; | |
8792 | } | |
8793 | ||
8794 | ||
8795 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8796 | PyObject *resultobj = 0; | |
8797 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8798 | int arg2 = (int) 0 ; | |
8799 | wxString result; | |
8800 | void *argp1 = 0 ; | |
8801 | int res1 = 0 ; | |
8802 | int val2 ; | |
8803 | int ecode2 = 0 ; | |
8804 | PyObject * obj0 = 0 ; | |
8805 | PyObject * obj1 = 0 ; | |
8806 | char * kwnames[] = { | |
8807 | (char *) "self",(char *) "number", NULL | |
8808 | }; | |
8809 | ||
8810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8812 | if (!SWIG_IsOK(res1)) { | |
8813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8814 | } | |
8815 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8816 | if (obj1) { | |
8817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8818 | if (!SWIG_IsOK(ecode2)) { | |
8819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8820 | } | |
8821 | arg2 = static_cast< int >(val2); | |
8822 | } | |
8823 | { | |
8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8825 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
8829 | { | |
8830 | #if wxUSE_UNICODE | |
8831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8832 | #else | |
8833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8834 | #endif | |
8835 | } | |
8836 | return resultobj; | |
8837 | fail: | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
8842 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8843 | PyObject *resultobj = 0; | |
8844 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8845 | wxString *arg2 = 0 ; | |
8846 | int arg3 = (int) 0 ; | |
8847 | void *argp1 = 0 ; | |
8848 | int res1 = 0 ; | |
8849 | bool temp2 = false ; | |
8850 | int val3 ; | |
8851 | int ecode3 = 0 ; | |
8852 | PyObject * obj0 = 0 ; | |
8853 | PyObject * obj1 = 0 ; | |
8854 | PyObject * obj2 = 0 ; | |
8855 | char * kwnames[] = { | |
8856 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8857 | }; | |
8858 | ||
8859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8861 | if (!SWIG_IsOK(res1)) { | |
8862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8863 | } | |
8864 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8865 | { | |
8866 | arg2 = wxString_in_helper(obj1); | |
8867 | if (arg2 == NULL) SWIG_fail; | |
8868 | temp2 = true; | |
8869 | } | |
8870 | if (obj2) { | |
8871 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8872 | if (!SWIG_IsOK(ecode3)) { | |
8873 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8874 | } | |
8875 | arg3 = static_cast< int >(val3); | |
8876 | } | |
8877 | { | |
8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8879 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) SWIG_fail; | |
8882 | } | |
8883 | resultobj = SWIG_Py_Void(); | |
8884 | { | |
8885 | if (temp2) | |
8886 | delete arg2; | |
8887 | } | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | { | |
8891 | if (temp2) | |
8892 | delete arg2; | |
8893 | } | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj = 0; | |
8900 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8901 | int arg2 = (int) 0 ; | |
8902 | void *argp1 = 0 ; | |
8903 | int res1 = 0 ; | |
8904 | int val2 ; | |
8905 | int ecode2 = 0 ; | |
8906 | PyObject * obj0 = 0 ; | |
8907 | PyObject * obj1 = 0 ; | |
8908 | char * kwnames[] = { | |
8909 | (char *) "self",(char *) "number", NULL | |
8910 | }; | |
8911 | ||
8912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8914 | if (!SWIG_IsOK(res1)) { | |
8915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8916 | } | |
8917 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8918 | if (obj1) { | |
8919 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8920 | if (!SWIG_IsOK(ecode2)) { | |
8921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8922 | } | |
8923 | arg2 = static_cast< int >(val2); | |
8924 | } | |
8925 | { | |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | (arg1)->PopStatusText(arg2); | |
8928 | wxPyEndAllowThreads(__tstate); | |
8929 | if (PyErr_Occurred()) SWIG_fail; | |
8930 | } | |
8931 | resultobj = SWIG_Py_Void(); | |
8932 | return resultobj; | |
8933 | fail: | |
8934 | return NULL; | |
8935 | } | |
8936 | ||
8937 | ||
8938 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8939 | PyObject *resultobj = 0; | |
8940 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8941 | int arg2 ; | |
8942 | int *arg3 = (int *) 0 ; | |
8943 | void *argp1 = 0 ; | |
8944 | int res1 = 0 ; | |
8945 | PyObject * obj0 = 0 ; | |
8946 | PyObject * obj1 = 0 ; | |
8947 | char * kwnames[] = { | |
8948 | (char *) "self",(char *) "widths", NULL | |
8949 | }; | |
8950 | ||
8951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
8952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8953 | if (!SWIG_IsOK(res1)) { | |
8954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8955 | } | |
8956 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8957 | { | |
8958 | arg2 = PyList_Size(obj1); | |
8959 | arg3 = int_LIST_helper(obj1); | |
8960 | if (arg3 == NULL) SWIG_fail; | |
8961 | } | |
8962 | { | |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | resultobj = SWIG_Py_Void(); | |
8969 | { | |
8970 | if (arg3) delete [] arg3; | |
8971 | } | |
8972 | return resultobj; | |
8973 | fail: | |
8974 | { | |
8975 | if (arg3) delete [] arg3; | |
8976 | } | |
8977 | return NULL; | |
d55e5bfc RD |
8978 | } |
8979 | ||
8980 | ||
1bd55598 RD |
8981 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8982 | PyObject *resultobj = 0; | |
8983 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8984 | int arg2 ; | |
8985 | int *arg3 = (int *) 0 ; | |
8986 | void *argp1 = 0 ; | |
8987 | int res1 = 0 ; | |
8988 | PyObject * obj0 = 0 ; | |
8989 | PyObject * obj1 = 0 ; | |
8990 | char * kwnames[] = { | |
8991 | (char *) "self",(char *) "styles", NULL | |
8992 | }; | |
8993 | ||
8994 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
8995 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8996 | if (!SWIG_IsOK(res1)) { | |
8997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8998 | } | |
8999 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9000 | { | |
9001 | arg2 = PyList_Size(obj1); | |
9002 | arg3 = int_LIST_helper(obj1); | |
9003 | if (arg3 == NULL) SWIG_fail; | |
9004 | } | |
9005 | { | |
9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9007 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
9008 | wxPyEndAllowThreads(__tstate); | |
9009 | if (PyErr_Occurred()) SWIG_fail; | |
9010 | } | |
9011 | resultobj = SWIG_Py_Void(); | |
9012 | { | |
9013 | if (arg3) delete [] arg3; | |
9014 | } | |
9015 | return resultobj; | |
9016 | fail: | |
9017 | { | |
9018 | if (arg3) delete [] arg3; | |
9019 | } | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj = 0; | |
9026 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9027 | int arg2 ; | |
9028 | wxRect result; | |
9029 | void *argp1 = 0 ; | |
9030 | int res1 = 0 ; | |
9031 | int val2 ; | |
9032 | int ecode2 = 0 ; | |
9033 | PyObject * obj0 = 0 ; | |
9034 | PyObject * obj1 = 0 ; | |
9035 | char * kwnames[] = { | |
9036 | (char *) "self",(char *) "i", NULL | |
9037 | }; | |
9038 | ||
9039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9041 | if (!SWIG_IsOK(res1)) { | |
9042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9043 | } | |
9044 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9046 | if (!SWIG_IsOK(ecode2)) { | |
9047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
9048 | } | |
9049 | arg2 = static_cast< int >(val2); | |
9050 | { | |
9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9052 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9057 | return resultobj; | |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
9063 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9064 | PyObject *resultobj = 0; | |
9065 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9066 | int arg2 ; | |
9067 | void *argp1 = 0 ; | |
9068 | int res1 = 0 ; | |
9069 | int val2 ; | |
9070 | int ecode2 = 0 ; | |
9071 | PyObject * obj0 = 0 ; | |
9072 | PyObject * obj1 = 0 ; | |
9073 | char * kwnames[] = { | |
9074 | (char *) "self",(char *) "height", NULL | |
9075 | }; | |
9076 | ||
9077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9079 | if (!SWIG_IsOK(res1)) { | |
9080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9081 | } | |
9082 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9083 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9084 | if (!SWIG_IsOK(ecode2)) { | |
9085 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9086 | } | |
9087 | arg2 = static_cast< int >(val2); | |
9088 | { | |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | (arg1)->SetMinHeight(arg2); | |
9091 | wxPyEndAllowThreads(__tstate); | |
9092 | if (PyErr_Occurred()) SWIG_fail; | |
9093 | } | |
9094 | resultobj = SWIG_Py_Void(); | |
9095 | return resultobj; | |
9096 | fail: | |
9097 | return NULL; | |
d55e5bfc RD |
9098 | } |
9099 | ||
9100 | ||
1bd55598 RD |
9101 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9102 | PyObject *resultobj = 0; | |
9103 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9104 | int result; | |
9105 | void *argp1 = 0 ; | |
9106 | int res1 = 0 ; | |
9107 | PyObject *swig_obj[1] ; | |
9108 | ||
9109 | if (!args) SWIG_fail; | |
9110 | swig_obj[0] = args; | |
9111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9112 | if (!SWIG_IsOK(res1)) { | |
9113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9114 | } | |
9115 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9116 | { | |
9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9118 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
9122 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9123 | return resultobj; | |
9124 | fail: | |
9125 | return NULL; | |
d55e5bfc RD |
9126 | } |
9127 | ||
9128 | ||
1bd55598 RD |
9129 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9130 | PyObject *resultobj = 0; | |
9131 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9132 | int result; | |
9133 | void *argp1 = 0 ; | |
9134 | int res1 = 0 ; | |
9135 | PyObject *swig_obj[1] ; | |
9136 | ||
9137 | if (!args) SWIG_fail; | |
9138 | swig_obj[0] = args; | |
9139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9140 | if (!SWIG_IsOK(res1)) { | |
9141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9142 | } | |
9143 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9144 | { | |
9145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9146 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9147 | wxPyEndAllowThreads(__tstate); | |
9148 | if (PyErr_Occurred()) SWIG_fail; | |
9149 | } | |
9150 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9151 | return resultobj; | |
9152 | fail: | |
9153 | return NULL; | |
9154 | } | |
9155 | ||
9156 | ||
9157 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9158 | PyObject *resultobj = 0; | |
9159 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9160 | SwigValueWrapper<wxVisualAttributes > result; | |
9161 | int val1 ; | |
9162 | int ecode1 = 0 ; | |
9163 | PyObject * obj0 = 0 ; | |
9164 | char * kwnames[] = { | |
9165 | (char *) "variant", NULL | |
9166 | }; | |
9167 | ||
9168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9169 | if (obj0) { | |
9170 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9171 | if (!SWIG_IsOK(ecode1)) { | |
9172 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9173 | } | |
9174 | arg1 = static_cast< wxWindowVariant >(val1); | |
9175 | } | |
9176 | { | |
9177 | if (!wxPyCheckForApp()) SWIG_fail; | |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9180 | wxPyEndAllowThreads(__tstate); | |
9181 | if (PyErr_Occurred()) SWIG_fail; | |
9182 | } | |
9183 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9184 | return resultobj; | |
9185 | fail: | |
9186 | return NULL; | |
d55e5bfc RD |
9187 | } |
9188 | ||
9189 | ||
1bd55598 RD |
9190 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9191 | PyObject *obj; | |
9192 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9193 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9194 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9195 | } |
9196 | ||
1bd55598 RD |
9197 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9198 | return SWIG_Python_InitShadowInstance(args); | |
9199 | } | |
d55e5bfc | 9200 | |
1bd55598 RD |
9201 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9202 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9203 | return 1; | |
d55e5bfc RD |
9204 | } |
9205 | ||
9206 | ||
1bd55598 RD |
9207 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9208 | PyObject *pyobj = 0; | |
9209 | ||
9210 | { | |
9211 | #if wxUSE_UNICODE | |
9212 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9213 | #else | |
9214 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9215 | #endif | |
9216 | } | |
9217 | return pyobj; | |
9218 | } | |
9219 | ||
9220 | ||
9221 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9222 | PyObject *resultobj = 0; | |
9223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9224 | int arg2 = (int) -1 ; | |
9225 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9226 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9227 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9228 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9229 | long arg5 = (long) wxSP_3D ; | |
9230 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9231 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9232 | wxSplitterWindow *result = 0 ; | |
9233 | void *argp1 = 0 ; | |
9234 | int res1 = 0 ; | |
9235 | int val2 ; | |
9236 | int ecode2 = 0 ; | |
9237 | wxPoint temp3 ; | |
9238 | wxSize temp4 ; | |
9239 | long val5 ; | |
9240 | int ecode5 = 0 ; | |
9241 | bool temp6 = false ; | |
9242 | PyObject * obj0 = 0 ; | |
9243 | PyObject * obj1 = 0 ; | |
9244 | PyObject * obj2 = 0 ; | |
9245 | PyObject * obj3 = 0 ; | |
9246 | PyObject * obj4 = 0 ; | |
9247 | PyObject * obj5 = 0 ; | |
9248 | char * kwnames[] = { | |
9249 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9250 | }; | |
9251 | ||
9252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9254 | if (!SWIG_IsOK(res1)) { | |
9255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9256 | } | |
9257 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9258 | if (obj1) { | |
9259 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9260 | if (!SWIG_IsOK(ecode2)) { | |
9261 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9262 | } | |
9263 | arg2 = static_cast< int >(val2); | |
9264 | } | |
9265 | if (obj2) { | |
36ed4f51 | 9266 | { |
1bd55598 RD |
9267 | arg3 = &temp3; |
9268 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 9269 | } |
1bd55598 RD |
9270 | } |
9271 | if (obj3) { | |
d55e5bfc | 9272 | { |
1bd55598 RD |
9273 | arg4 = &temp4; |
9274 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9275 | } |
1bd55598 RD |
9276 | } |
9277 | if (obj4) { | |
9278 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9279 | if (!SWIG_IsOK(ecode5)) { | |
9280 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9281 | } | |
9282 | arg5 = static_cast< long >(val5); | |
9283 | } | |
9284 | if (obj5) { | |
36ed4f51 | 9285 | { |
1bd55598 RD |
9286 | arg6 = wxString_in_helper(obj5); |
9287 | if (arg6 == NULL) SWIG_fail; | |
9288 | temp6 = true; | |
36ed4f51 | 9289 | } |
1bd55598 RD |
9290 | } |
9291 | { | |
9292 | if (!wxPyCheckForApp()) SWIG_fail; | |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9294 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9299 | { | |
9300 | if (temp6) | |
9301 | delete arg6; | |
9302 | } | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | { | |
9306 | if (temp6) | |
9307 | delete arg6; | |
9308 | } | |
9309 | return NULL; | |
d55e5bfc RD |
9310 | } |
9311 | ||
9312 | ||
1bd55598 RD |
9313 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9314 | PyObject *resultobj = 0; | |
9315 | wxSplitterWindow *result = 0 ; | |
9316 | ||
9317 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9318 | { | |
9319 | if (!wxPyCheckForApp()) SWIG_fail; | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9322 | wxPyEndAllowThreads(__tstate); | |
9323 | if (PyErr_Occurred()) SWIG_fail; | |
9324 | } | |
9325 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9326 | return resultobj; | |
9327 | fail: | |
9328 | return NULL; | |
9329 | } | |
9330 | ||
9331 | ||
9332 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9333 | PyObject *resultobj = 0; | |
9334 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9335 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9336 | int arg3 = (int) -1 ; | |
9337 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9338 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9339 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9340 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9341 | long arg6 = (long) wxSP_3D ; | |
9342 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9343 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9344 | bool result; | |
9345 | void *argp1 = 0 ; | |
9346 | int res1 = 0 ; | |
9347 | void *argp2 = 0 ; | |
9348 | int res2 = 0 ; | |
9349 | int val3 ; | |
9350 | int ecode3 = 0 ; | |
9351 | wxPoint temp4 ; | |
9352 | wxSize temp5 ; | |
9353 | long val6 ; | |
9354 | int ecode6 = 0 ; | |
9355 | bool temp7 = false ; | |
9356 | PyObject * obj0 = 0 ; | |
9357 | PyObject * obj1 = 0 ; | |
9358 | PyObject * obj2 = 0 ; | |
9359 | PyObject * obj3 = 0 ; | |
9360 | PyObject * obj4 = 0 ; | |
9361 | PyObject * obj5 = 0 ; | |
9362 | PyObject * obj6 = 0 ; | |
9363 | char * kwnames[] = { | |
9364 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9365 | }; | |
9366 | ||
9367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9369 | if (!SWIG_IsOK(res1)) { | |
9370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9371 | } | |
9372 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9373 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9374 | if (!SWIG_IsOK(res2)) { | |
9375 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9376 | } | |
9377 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9378 | if (obj2) { | |
9379 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9380 | if (!SWIG_IsOK(ecode3)) { | |
9381 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9382 | } | |
9383 | arg3 = static_cast< int >(val3); | |
9384 | } | |
9385 | if (obj3) { | |
d55e5bfc | 9386 | { |
1bd55598 RD |
9387 | arg4 = &temp4; |
9388 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9389 | } |
1bd55598 RD |
9390 | } |
9391 | if (obj4) { | |
d55e5bfc | 9392 | { |
1bd55598 RD |
9393 | arg5 = &temp5; |
9394 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9395 | } |
1bd55598 RD |
9396 | } |
9397 | if (obj5) { | |
9398 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9399 | if (!SWIG_IsOK(ecode6)) { | |
9400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9401 | } | |
9402 | arg6 = static_cast< long >(val6); | |
9403 | } | |
9404 | if (obj6) { | |
d55e5bfc | 9405 | { |
1bd55598 RD |
9406 | arg7 = wxString_in_helper(obj6); |
9407 | if (arg7 == NULL) SWIG_fail; | |
9408 | temp7 = true; | |
d55e5bfc | 9409 | } |
1bd55598 RD |
9410 | } |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9414 | wxPyEndAllowThreads(__tstate); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | } | |
9417 | { | |
9418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9419 | } | |
9420 | { | |
9421 | if (temp7) | |
9422 | delete arg7; | |
9423 | } | |
9424 | return resultobj; | |
9425 | fail: | |
9426 | { | |
9427 | if (temp7) | |
9428 | delete arg7; | |
9429 | } | |
9430 | return NULL; | |
d55e5bfc RD |
9431 | } |
9432 | ||
9433 | ||
1bd55598 RD |
9434 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9435 | PyObject *resultobj = 0; | |
9436 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9437 | wxWindow *result = 0 ; | |
9438 | void *argp1 = 0 ; | |
9439 | int res1 = 0 ; | |
9440 | PyObject *swig_obj[1] ; | |
9441 | ||
9442 | if (!args) SWIG_fail; | |
9443 | swig_obj[0] = args; | |
9444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9445 | if (!SWIG_IsOK(res1)) { | |
9446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9447 | } | |
9448 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
9455 | { | |
9456 | resultobj = wxPyMake_wxObject(result, 0); | |
9457 | } | |
9458 | return resultobj; | |
9459 | fail: | |
9460 | return NULL; | |
d55e5bfc RD |
9461 | } |
9462 | ||
9463 | ||
1bd55598 RD |
9464 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9465 | PyObject *resultobj = 0; | |
9466 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9467 | wxWindow *result = 0 ; | |
9468 | void *argp1 = 0 ; | |
9469 | int res1 = 0 ; | |
9470 | PyObject *swig_obj[1] ; | |
9471 | ||
9472 | if (!args) SWIG_fail; | |
9473 | swig_obj[0] = args; | |
9474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9475 | if (!SWIG_IsOK(res1)) { | |
9476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9477 | } | |
9478 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9479 | { | |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9481 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | { | |
9486 | resultobj = wxPyMake_wxObject(result, 0); | |
9487 | } | |
9488 | return resultobj; | |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj = 0; | |
9496 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9497 | int arg2 ; | |
9498 | void *argp1 = 0 ; | |
9499 | int res1 = 0 ; | |
9500 | int val2 ; | |
9501 | int ecode2 = 0 ; | |
9502 | PyObject * obj0 = 0 ; | |
9503 | PyObject * obj1 = 0 ; | |
9504 | char * kwnames[] = { | |
9505 | (char *) "self",(char *) "mode", NULL | |
9506 | }; | |
9507 | ||
9508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9510 | if (!SWIG_IsOK(res1)) { | |
9511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9512 | } | |
9513 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9514 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9515 | if (!SWIG_IsOK(ecode2)) { | |
9516 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9517 | } | |
9518 | arg2 = static_cast< int >(val2); | |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9521 | (arg1)->SetSplitMode(arg2); | |
9522 | wxPyEndAllowThreads(__tstate); | |
9523 | if (PyErr_Occurred()) SWIG_fail; | |
9524 | } | |
9525 | resultobj = SWIG_Py_Void(); | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | return NULL; | |
d55e5bfc RD |
9529 | } |
9530 | ||
9531 | ||
1bd55598 RD |
9532 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9533 | PyObject *resultobj = 0; | |
9534 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9535 | wxSplitMode result; | |
9536 | void *argp1 = 0 ; | |
9537 | int res1 = 0 ; | |
9538 | PyObject *swig_obj[1] ; | |
9539 | ||
9540 | if (!args) SWIG_fail; | |
9541 | swig_obj[0] = args; | |
9542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9543 | if (!SWIG_IsOK(res1)) { | |
9544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9545 | } | |
9546 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9547 | { | |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9550 | wxPyEndAllowThreads(__tstate); | |
9551 | if (PyErr_Occurred()) SWIG_fail; | |
9552 | } | |
9553 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9554 | return resultobj; | |
9555 | fail: | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
9560 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9561 | PyObject *resultobj = 0; | |
9562 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9563 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9564 | void *argp1 = 0 ; | |
9565 | int res1 = 0 ; | |
9566 | void *argp2 = 0 ; | |
9567 | int res2 = 0 ; | |
9568 | PyObject * obj0 = 0 ; | |
9569 | PyObject * obj1 = 0 ; | |
9570 | char * kwnames[] = { | |
9571 | (char *) "self",(char *) "window", NULL | |
9572 | }; | |
9573 | ||
9574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9576 | if (!SWIG_IsOK(res1)) { | |
9577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9578 | } | |
9579 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9580 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9581 | if (!SWIG_IsOK(res2)) { | |
9582 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9583 | } | |
9584 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9587 | (arg1)->Initialize(arg2); | |
9588 | wxPyEndAllowThreads(__tstate); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
9591 | resultobj = SWIG_Py_Void(); | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj = 0; | |
9600 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9601 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9602 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9603 | int arg4 = (int) 0 ; | |
9604 | bool result; | |
9605 | void *argp1 = 0 ; | |
9606 | int res1 = 0 ; | |
9607 | void *argp2 = 0 ; | |
9608 | int res2 = 0 ; | |
9609 | void *argp3 = 0 ; | |
9610 | int res3 = 0 ; | |
9611 | int val4 ; | |
9612 | int ecode4 = 0 ; | |
9613 | PyObject * obj0 = 0 ; | |
9614 | PyObject * obj1 = 0 ; | |
9615 | PyObject * obj2 = 0 ; | |
9616 | PyObject * obj3 = 0 ; | |
9617 | char * kwnames[] = { | |
9618 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9619 | }; | |
9620 | ||
9621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9623 | if (!SWIG_IsOK(res1)) { | |
9624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9625 | } | |
9626 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9627 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9628 | if (!SWIG_IsOK(res2)) { | |
9629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9630 | } | |
9631 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9632 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9633 | if (!SWIG_IsOK(res3)) { | |
9634 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9635 | } | |
9636 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9637 | if (obj3) { | |
9638 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9639 | if (!SWIG_IsOK(ecode4)) { | |
9640 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9641 | } | |
9642 | arg4 = static_cast< int >(val4); | |
9643 | } | |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
9650 | { | |
9651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9652 | } | |
9653 | return resultobj; | |
9654 | fail: | |
9655 | return NULL; | |
9656 | } | |
9657 | ||
9658 | ||
9659 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9660 | PyObject *resultobj = 0; | |
9661 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9663 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9664 | int arg4 = (int) 0 ; | |
9665 | bool result; | |
9666 | void *argp1 = 0 ; | |
9667 | int res1 = 0 ; | |
9668 | void *argp2 = 0 ; | |
9669 | int res2 = 0 ; | |
9670 | void *argp3 = 0 ; | |
9671 | int res3 = 0 ; | |
9672 | int val4 ; | |
9673 | int ecode4 = 0 ; | |
9674 | PyObject * obj0 = 0 ; | |
9675 | PyObject * obj1 = 0 ; | |
9676 | PyObject * obj2 = 0 ; | |
9677 | PyObject * obj3 = 0 ; | |
9678 | char * kwnames[] = { | |
9679 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9680 | }; | |
9681 | ||
9682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9684 | if (!SWIG_IsOK(res1)) { | |
9685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9686 | } | |
9687 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9688 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9689 | if (!SWIG_IsOK(res2)) { | |
9690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9691 | } | |
9692 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9693 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9694 | if (!SWIG_IsOK(res3)) { | |
9695 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9696 | } | |
9697 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9698 | if (obj3) { | |
9699 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9700 | if (!SWIG_IsOK(ecode4)) { | |
9701 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9702 | } | |
9703 | arg4 = static_cast< int >(val4); | |
9704 | } | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | { | |
9712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9713 | } | |
9714 | return resultobj; | |
9715 | fail: | |
9716 | return NULL; | |
9717 | } | |
9718 | ||
9719 | ||
9720 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9721 | PyObject *resultobj = 0; | |
9722 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9723 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9724 | bool result; | |
9725 | void *argp1 = 0 ; | |
9726 | int res1 = 0 ; | |
9727 | void *argp2 = 0 ; | |
9728 | int res2 = 0 ; | |
9729 | PyObject * obj0 = 0 ; | |
9730 | PyObject * obj1 = 0 ; | |
9731 | char * kwnames[] = { | |
9732 | (char *) "self",(char *) "toRemove", NULL | |
9733 | }; | |
9734 | ||
9735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9737 | if (!SWIG_IsOK(res1)) { | |
9738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9739 | } | |
9740 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9741 | if (obj1) { | |
9742 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9743 | if (!SWIG_IsOK(res2)) { | |
9744 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
f20a2e1f | 9745 | } |
1bd55598 RD |
9746 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9747 | } | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (bool)(arg1)->Unsplit(arg2); | |
9751 | wxPyEndAllowThreads(__tstate); | |
9752 | if (PyErr_Occurred()) SWIG_fail; | |
9753 | } | |
9754 | { | |
9755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9756 | } | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj = 0; | |
9765 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9766 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9767 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9768 | bool result; | |
9769 | void *argp1 = 0 ; | |
9770 | int res1 = 0 ; | |
9771 | void *argp2 = 0 ; | |
9772 | int res2 = 0 ; | |
9773 | void *argp3 = 0 ; | |
9774 | int res3 = 0 ; | |
9775 | PyObject * obj0 = 0 ; | |
9776 | PyObject * obj1 = 0 ; | |
9777 | PyObject * obj2 = 0 ; | |
9778 | char * kwnames[] = { | |
9779 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9780 | }; | |
9781 | ||
9782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) 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_ReplaceWindow" "', 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_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9791 | } | |
9792 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9793 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9794 | if (!SWIG_IsOK(res3)) { | |
9795 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9796 | } | |
9797 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9798 | { | |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9801 | wxPyEndAllowThreads(__tstate); | |
9802 | if (PyErr_Occurred()) SWIG_fail; | |
9803 | } | |
9804 | { | |
9805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9806 | } | |
9807 | return resultobj; | |
9808 | fail: | |
9809 | return NULL; | |
f20a2e1f RD |
9810 | } |
9811 | ||
9812 | ||
1bd55598 RD |
9813 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9814 | PyObject *resultobj = 0; | |
9815 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9816 | void *argp1 = 0 ; | |
9817 | int res1 = 0 ; | |
9818 | PyObject *swig_obj[1] ; | |
9819 | ||
9820 | if (!args) SWIG_fail; | |
9821 | swig_obj[0] = args; | |
9822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9823 | if (!SWIG_IsOK(res1)) { | |
9824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9825 | } | |
9826 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9827 | { | |
9828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9829 | (arg1)->UpdateSize(); | |
9830 | wxPyEndAllowThreads(__tstate); | |
9831 | if (PyErr_Occurred()) SWIG_fail; | |
9832 | } | |
9833 | resultobj = SWIG_Py_Void(); | |
9834 | return resultobj; | |
9835 | fail: | |
9836 | return NULL; | |
d55e5bfc RD |
9837 | } |
9838 | ||
9839 | ||
1bd55598 RD |
9840 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9841 | PyObject *resultobj = 0; | |
9842 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9843 | bool result; | |
9844 | void *argp1 = 0 ; | |
9845 | int res1 = 0 ; | |
9846 | PyObject *swig_obj[1] ; | |
9847 | ||
9848 | if (!args) SWIG_fail; | |
9849 | swig_obj[0] = args; | |
9850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9851 | if (!SWIG_IsOK(res1)) { | |
9852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9853 | } | |
9854 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9855 | { | |
9856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9857 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
9861 | { | |
9862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9863 | } | |
9864 | return resultobj; | |
9865 | fail: | |
9866 | return NULL; | |
9867 | } | |
9868 | ||
9869 | ||
9870 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9871 | PyObject *resultobj = 0; | |
9872 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9873 | int arg2 ; | |
9874 | void *argp1 = 0 ; | |
9875 | int res1 = 0 ; | |
9876 | int val2 ; | |
9877 | int ecode2 = 0 ; | |
9878 | PyObject * obj0 = 0 ; | |
9879 | PyObject * obj1 = 0 ; | |
9880 | char * kwnames[] = { | |
9881 | (char *) "self",(char *) "width", NULL | |
9882 | }; | |
9883 | ||
9884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9886 | if (!SWIG_IsOK(res1)) { | |
9887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9888 | } | |
9889 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9890 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9891 | if (!SWIG_IsOK(ecode2)) { | |
9892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
9893 | } | |
9894 | arg2 = static_cast< int >(val2); | |
9895 | { | |
9896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9897 | (arg1)->SetSashSize(arg2); | |
9898 | wxPyEndAllowThreads(__tstate); | |
9899 | if (PyErr_Occurred()) SWIG_fail; | |
9900 | } | |
9901 | resultobj = SWIG_Py_Void(); | |
9902 | return resultobj; | |
9903 | fail: | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
9908 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9909 | PyObject *resultobj = 0; | |
9910 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9911 | int arg2 ; | |
9912 | void *argp1 = 0 ; | |
9913 | int res1 = 0 ; | |
9914 | int val2 ; | |
9915 | int ecode2 = 0 ; | |
9916 | PyObject * obj0 = 0 ; | |
9917 | PyObject * obj1 = 0 ; | |
9918 | char * kwnames[] = { | |
9919 | (char *) "self",(char *) "width", NULL | |
9920 | }; | |
9921 | ||
9922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9924 | if (!SWIG_IsOK(res1)) { | |
9925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9926 | } | |
9927 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9928 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9929 | if (!SWIG_IsOK(ecode2)) { | |
9930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
9931 | } | |
9932 | arg2 = static_cast< int >(val2); | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | (arg1)->SetBorderSize(arg2); | |
9936 | wxPyEndAllowThreads(__tstate); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
9939 | resultobj = SWIG_Py_Void(); | |
9940 | return resultobj; | |
9941 | fail: | |
9942 | return NULL; | |
d55e5bfc RD |
9943 | } |
9944 | ||
9945 | ||
1bd55598 RD |
9946 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9947 | PyObject *resultobj = 0; | |
9948 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9949 | int result; | |
9950 | void *argp1 = 0 ; | |
9951 | int res1 = 0 ; | |
9952 | PyObject *swig_obj[1] ; | |
9953 | ||
9954 | if (!args) SWIG_fail; | |
9955 | swig_obj[0] = args; | |
9956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9957 | if (!SWIG_IsOK(res1)) { | |
9958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9959 | } | |
9960 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9961 | { | |
9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9963 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
9964 | wxPyEndAllowThreads(__tstate); | |
9965 | if (PyErr_Occurred()) SWIG_fail; | |
9966 | } | |
9967 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9968 | return resultobj; | |
9969 | fail: | |
9970 | return NULL; | |
d55e5bfc RD |
9971 | } |
9972 | ||
9973 | ||
1bd55598 RD |
9974 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9975 | PyObject *resultobj = 0; | |
9976 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9977 | int result; | |
9978 | void *argp1 = 0 ; | |
9979 | int res1 = 0 ; | |
9980 | PyObject *swig_obj[1] ; | |
9981 | ||
9982 | if (!args) SWIG_fail; | |
9983 | swig_obj[0] = args; | |
9984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9985 | if (!SWIG_IsOK(res1)) { | |
9986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9987 | } | |
9988 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
9995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9996 | return resultobj; | |
9997 | fail: | |
9998 | return NULL; | |
9999 | } | |
10000 | ||
10001 | ||
10002 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10003 | PyObject *resultobj = 0; | |
10004 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10005 | int arg2 ; | |
10006 | bool arg3 = (bool) true ; | |
10007 | void *argp1 = 0 ; | |
10008 | int res1 = 0 ; | |
10009 | int val2 ; | |
10010 | int ecode2 = 0 ; | |
10011 | bool val3 ; | |
10012 | int ecode3 = 0 ; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | PyObject * obj1 = 0 ; | |
10015 | PyObject * obj2 = 0 ; | |
10016 | char * kwnames[] = { | |
10017 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
10018 | }; | |
10019 | ||
10020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10022 | if (!SWIG_IsOK(res1)) { | |
10023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10024 | } | |
10025 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10027 | if (!SWIG_IsOK(ecode2)) { | |
10028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10029 | } | |
10030 | arg2 = static_cast< int >(val2); | |
10031 | if (obj2) { | |
10032 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10033 | if (!SWIG_IsOK(ecode3)) { | |
10034 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
10035 | } | |
10036 | arg3 = static_cast< bool >(val3); | |
10037 | } | |
10038 | { | |
10039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10040 | (arg1)->SetSashPosition(arg2,arg3); | |
10041 | wxPyEndAllowThreads(__tstate); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
10044 | resultobj = SWIG_Py_Void(); | |
10045 | return resultobj; | |
10046 | fail: | |
10047 | return NULL; | |
d55e5bfc RD |
10048 | } |
10049 | ||
10050 | ||
1bd55598 RD |
10051 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10052 | PyObject *resultobj = 0; | |
10053 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10054 | int result; | |
10055 | void *argp1 = 0 ; | |
10056 | int res1 = 0 ; | |
10057 | PyObject *swig_obj[1] ; | |
10058 | ||
10059 | if (!args) SWIG_fail; | |
10060 | swig_obj[0] = args; | |
10061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10062 | if (!SWIG_IsOK(res1)) { | |
10063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10064 | } | |
10065 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10066 | { | |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
10072 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10073 | return resultobj; | |
10074 | fail: | |
10075 | return NULL; | |
10076 | } | |
10077 | ||
10078 | ||
10079 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10080 | PyObject *resultobj = 0; | |
10081 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10082 | double arg2 ; | |
10083 | void *argp1 = 0 ; | |
10084 | int res1 = 0 ; | |
10085 | double val2 ; | |
10086 | int ecode2 = 0 ; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | PyObject * obj1 = 0 ; | |
10089 | char * kwnames[] = { | |
10090 | (char *) "self",(char *) "gravity", NULL | |
10091 | }; | |
10092 | ||
10093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10095 | if (!SWIG_IsOK(res1)) { | |
10096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10097 | } | |
10098 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10099 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10100 | if (!SWIG_IsOK(ecode2)) { | |
10101 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10102 | } | |
10103 | arg2 = static_cast< double >(val2); | |
10104 | { | |
10105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10106 | (arg1)->SetSashGravity(arg2); | |
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
10110 | resultobj = SWIG_Py_Void(); | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | return NULL; | |
d55e5bfc RD |
10114 | } |
10115 | ||
10116 | ||
1bd55598 RD |
10117 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10118 | PyObject *resultobj = 0; | |
10119 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10120 | double result; | |
10121 | void *argp1 = 0 ; | |
10122 | int res1 = 0 ; | |
10123 | PyObject *swig_obj[1] ; | |
10124 | ||
10125 | if (!args) SWIG_fail; | |
10126 | swig_obj[0] = args; | |
10127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10128 | if (!SWIG_IsOK(res1)) { | |
10129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10130 | } | |
10131 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10139 | return resultobj; | |
10140 | fail: | |
10141 | return NULL; | |
10142 | } | |
10143 | ||
10144 | ||
10145 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10146 | PyObject *resultobj = 0; | |
10147 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10148 | int arg2 ; | |
10149 | void *argp1 = 0 ; | |
10150 | int res1 = 0 ; | |
10151 | int val2 ; | |
10152 | int ecode2 = 0 ; | |
10153 | PyObject * obj0 = 0 ; | |
10154 | PyObject * obj1 = 0 ; | |
10155 | char * kwnames[] = { | |
10156 | (char *) "self",(char *) "min", NULL | |
10157 | }; | |
10158 | ||
10159 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10160 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10161 | if (!SWIG_IsOK(res1)) { | |
10162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10163 | } | |
10164 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10166 | if (!SWIG_IsOK(ecode2)) { | |
10167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10168 | } | |
10169 | arg2 = static_cast< int >(val2); | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | (arg1)->SetMinimumPaneSize(arg2); | |
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | resultobj = SWIG_Py_Void(); | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
b1fcee84 RD |
10180 | } |
10181 | ||
10182 | ||
1bd55598 RD |
10183 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10184 | PyObject *resultobj = 0; | |
10185 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10186 | int result; | |
10187 | void *argp1 = 0 ; | |
10188 | int res1 = 0 ; | |
10189 | PyObject *swig_obj[1] ; | |
10190 | ||
10191 | if (!args) SWIG_fail; | |
10192 | swig_obj[0] = args; | |
10193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10194 | if (!SWIG_IsOK(res1)) { | |
10195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10196 | } | |
10197 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10198 | { | |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
10204 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10205 | return resultobj; | |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10212 | PyObject *resultobj = 0; | |
10213 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10214 | int arg2 ; | |
10215 | int arg3 ; | |
10216 | int arg4 = (int) 5 ; | |
10217 | bool result; | |
10218 | void *argp1 = 0 ; | |
10219 | int res1 = 0 ; | |
10220 | int val2 ; | |
10221 | int ecode2 = 0 ; | |
10222 | int val3 ; | |
10223 | int ecode3 = 0 ; | |
10224 | int val4 ; | |
10225 | int ecode4 = 0 ; | |
10226 | PyObject * obj0 = 0 ; | |
10227 | PyObject * obj1 = 0 ; | |
10228 | PyObject * obj2 = 0 ; | |
10229 | PyObject * obj3 = 0 ; | |
10230 | char * kwnames[] = { | |
10231 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10232 | }; | |
10233 | ||
10234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10236 | if (!SWIG_IsOK(res1)) { | |
10237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10238 | } | |
10239 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10241 | if (!SWIG_IsOK(ecode2)) { | |
10242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10243 | } | |
10244 | arg2 = static_cast< int >(val2); | |
10245 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10246 | if (!SWIG_IsOK(ecode3)) { | |
10247 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10248 | } | |
10249 | arg3 = static_cast< int >(val3); | |
10250 | if (obj3) { | |
10251 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10252 | if (!SWIG_IsOK(ecode4)) { | |
10253 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10254 | } | |
10255 | arg4 = static_cast< int >(val4); | |
10256 | } | |
10257 | { | |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10260 | wxPyEndAllowThreads(__tstate); | |
10261 | if (PyErr_Occurred()) SWIG_fail; | |
10262 | } | |
10263 | { | |
10264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10265 | } | |
10266 | return resultobj; | |
10267 | fail: | |
10268 | return NULL; | |
b1fcee84 RD |
10269 | } |
10270 | ||
10271 | ||
1bd55598 RD |
10272 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10273 | PyObject *resultobj = 0; | |
10274 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10275 | void *argp1 = 0 ; | |
10276 | int res1 = 0 ; | |
10277 | PyObject *swig_obj[1] ; | |
10278 | ||
10279 | if (!args) SWIG_fail; | |
10280 | swig_obj[0] = args; | |
10281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10282 | if (!SWIG_IsOK(res1)) { | |
10283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10284 | } | |
10285 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10286 | { | |
10287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10288 | (arg1)->SizeWindows(); | |
10289 | wxPyEndAllowThreads(__tstate); | |
10290 | if (PyErr_Occurred()) SWIG_fail; | |
10291 | } | |
10292 | resultobj = SWIG_Py_Void(); | |
10293 | return resultobj; | |
10294 | fail: | |
10295 | return NULL; | |
10296 | } | |
10297 | ||
10298 | ||
10299 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10300 | PyObject *resultobj = 0; | |
10301 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10302 | bool arg2 ; | |
10303 | void *argp1 = 0 ; | |
10304 | int res1 = 0 ; | |
10305 | bool val2 ; | |
10306 | int ecode2 = 0 ; | |
10307 | PyObject * obj0 = 0 ; | |
10308 | PyObject * obj1 = 0 ; | |
10309 | char * kwnames[] = { | |
10310 | (char *) "self",(char *) "needUpdating", NULL | |
10311 | }; | |
10312 | ||
10313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10315 | if (!SWIG_IsOK(res1)) { | |
10316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10317 | } | |
10318 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10319 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10320 | if (!SWIG_IsOK(ecode2)) { | |
10321 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10322 | } | |
10323 | arg2 = static_cast< bool >(val2); | |
10324 | { | |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | (arg1)->SetNeedUpdating(arg2); | |
10327 | wxPyEndAllowThreads(__tstate); | |
10328 | if (PyErr_Occurred()) SWIG_fail; | |
10329 | } | |
10330 | resultobj = SWIG_Py_Void(); | |
10331 | return resultobj; | |
10332 | fail: | |
10333 | return NULL; | |
b1fcee84 RD |
10334 | } |
10335 | ||
10336 | ||
1bd55598 RD |
10337 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10338 | PyObject *resultobj = 0; | |
10339 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10340 | bool result; | |
10341 | void *argp1 = 0 ; | |
10342 | int res1 = 0 ; | |
10343 | PyObject *swig_obj[1] ; | |
10344 | ||
10345 | if (!args) SWIG_fail; | |
10346 | swig_obj[0] = args; | |
10347 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10348 | if (!SWIG_IsOK(res1)) { | |
10349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10350 | } | |
10351 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | { | |
10359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10360 | } | |
10361 | return resultobj; | |
10362 | fail: | |
10363 | return NULL; | |
b1fcee84 RD |
10364 | } |
10365 | ||
10366 | ||
1bd55598 RD |
10367 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10368 | PyObject *resultobj = 0; | |
10369 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10370 | SwigValueWrapper<wxVisualAttributes > result; | |
10371 | int val1 ; | |
10372 | int ecode1 = 0 ; | |
10373 | PyObject * obj0 = 0 ; | |
10374 | char * kwnames[] = { | |
10375 | (char *) "variant", NULL | |
10376 | }; | |
10377 | ||
10378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10379 | if (obj0) { | |
10380 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10381 | if (!SWIG_IsOK(ecode1)) { | |
10382 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10383 | } | |
10384 | arg1 = static_cast< wxWindowVariant >(val1); | |
10385 | } | |
10386 | { | |
10387 | if (!wxPyCheckForApp()) SWIG_fail; | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10394 | return resultobj; | |
10395 | fail: | |
10396 | return NULL; | |
d55e5bfc RD |
10397 | } |
10398 | ||
10399 | ||
1bd55598 RD |
10400 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10401 | PyObject *obj; | |
10402 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10403 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10404 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10405 | } |
10406 | ||
1bd55598 RD |
10407 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10408 | return SWIG_Python_InitShadowInstance(args); | |
62d32a5f RD |
10409 | } |
10410 | ||
1bd55598 RD |
10411 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10412 | PyObject *resultobj = 0; | |
10413 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10414 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10415 | wxSplitterEvent *result = 0 ; | |
10416 | int val1 ; | |
10417 | int ecode1 = 0 ; | |
10418 | void *argp2 = 0 ; | |
10419 | int res2 = 0 ; | |
10420 | PyObject * obj0 = 0 ; | |
10421 | PyObject * obj1 = 0 ; | |
10422 | char * kwnames[] = { | |
10423 | (char *) "type",(char *) "splitter", NULL | |
10424 | }; | |
10425 | ||
10426 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10427 | if (obj0) { | |
10428 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10429 | if (!SWIG_IsOK(ecode1)) { | |
10430 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10431 | } | |
10432 | arg1 = static_cast< wxEventType >(val1); | |
10433 | } | |
10434 | if (obj1) { | |
10435 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10436 | if (!SWIG_IsOK(res2)) { | |
10437 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
d55e5bfc | 10438 | } |
1bd55598 RD |
10439 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10440 | } | |
10441 | { | |
10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10443 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10444 | wxPyEndAllowThreads(__tstate); | |
10445 | if (PyErr_Occurred()) SWIG_fail; | |
10446 | } | |
10447 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10448 | return resultobj; | |
10449 | fail: | |
10450 | return NULL; | |
10451 | } | |
10452 | ||
10453 | ||
10454 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10455 | PyObject *resultobj = 0; | |
10456 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10457 | int arg2 ; | |
10458 | void *argp1 = 0 ; | |
10459 | int res1 = 0 ; | |
10460 | int val2 ; | |
10461 | int ecode2 = 0 ; | |
10462 | PyObject * obj0 = 0 ; | |
10463 | PyObject * obj1 = 0 ; | |
10464 | char * kwnames[] = { | |
10465 | (char *) "self",(char *) "pos", NULL | |
10466 | }; | |
10467 | ||
10468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10470 | if (!SWIG_IsOK(res1)) { | |
10471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10472 | } | |
10473 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10475 | if (!SWIG_IsOK(ecode2)) { | |
10476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10477 | } | |
10478 | arg2 = static_cast< int >(val2); | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | (arg1)->SetSashPosition(arg2); | |
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
10485 | resultobj = SWIG_Py_Void(); | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
d55e5bfc RD |
10489 | } |
10490 | ||
10491 | ||
1bd55598 RD |
10492 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10493 | PyObject *resultobj = 0; | |
10494 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10495 | int result; | |
10496 | void *argp1 = 0 ; | |
10497 | int res1 = 0 ; | |
10498 | PyObject *swig_obj[1] ; | |
10499 | ||
10500 | if (!args) SWIG_fail; | |
10501 | swig_obj[0] = args; | |
10502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10503 | if (!SWIG_IsOK(res1)) { | |
10504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10505 | } | |
10506 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10510 | wxPyEndAllowThreads(__tstate); | |
10511 | if (PyErr_Occurred()) SWIG_fail; | |
10512 | } | |
10513 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10514 | return resultobj; | |
10515 | fail: | |
10516 | return NULL; | |
d55e5bfc RD |
10517 | } |
10518 | ||
10519 | ||
1bd55598 RD |
10520 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10521 | PyObject *resultobj = 0; | |
10522 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10523 | wxWindow *result = 0 ; | |
10524 | void *argp1 = 0 ; | |
10525 | int res1 = 0 ; | |
10526 | PyObject *swig_obj[1] ; | |
10527 | ||
10528 | if (!args) SWIG_fail; | |
10529 | swig_obj[0] = args; | |
10530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10531 | if (!SWIG_IsOK(res1)) { | |
10532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10533 | } | |
10534 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
10541 | { | |
10542 | resultobj = wxPyMake_wxObject(result, 0); | |
10543 | } | |
10544 | return resultobj; | |
10545 | fail: | |
10546 | return NULL; | |
d55e5bfc RD |
10547 | } |
10548 | ||
10549 | ||
1bd55598 RD |
10550 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10551 | PyObject *resultobj = 0; | |
10552 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10553 | int result; | |
10554 | void *argp1 = 0 ; | |
10555 | int res1 = 0 ; | |
10556 | PyObject *swig_obj[1] ; | |
10557 | ||
10558 | if (!args) SWIG_fail; | |
10559 | swig_obj[0] = args; | |
10560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10561 | if (!SWIG_IsOK(res1)) { | |
10562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10563 | } | |
10564 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10565 | { | |
10566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10567 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10568 | wxPyEndAllowThreads(__tstate); | |
10569 | if (PyErr_Occurred()) SWIG_fail; | |
10570 | } | |
10571 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10572 | return resultobj; | |
10573 | fail: | |
10574 | return NULL; | |
f20a2e1f RD |
10575 | } |
10576 | ||
10577 | ||
1bd55598 RD |
10578 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10579 | PyObject *resultobj = 0; | |
10580 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10581 | int result; | |
10582 | void *argp1 = 0 ; | |
10583 | int res1 = 0 ; | |
10584 | PyObject *swig_obj[1] ; | |
10585 | ||
10586 | if (!args) SWIG_fail; | |
10587 | swig_obj[0] = args; | |
10588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10589 | if (!SWIG_IsOK(res1)) { | |
10590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10591 | } | |
10592 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10593 | { | |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10595 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
d55e5bfc RD |
10603 | } |
10604 | ||
10605 | ||
1bd55598 RD |
10606 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10607 | PyObject *obj; | |
10608 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10609 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10610 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10611 | } |
10612 | ||
1bd55598 RD |
10613 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10614 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
10615 | } |
10616 | ||
1bd55598 RD |
10617 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10618 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10619 | return 1; | |
d55e5bfc RD |
10620 | } |
10621 | ||
10622 | ||
1bd55598 RD |
10623 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10624 | PyObject *pyobj = 0; | |
10625 | ||
10626 | { | |
10627 | #if wxUSE_UNICODE | |
10628 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10629 | #else | |
10630 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10631 | #endif | |
10632 | } | |
10633 | return pyobj; | |
d55e5bfc RD |
10634 | } |
10635 | ||
10636 | ||
1bd55598 RD |
10637 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10638 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10639 | return 1; | |
d55e5bfc RD |
10640 | } |
10641 | ||
10642 | ||
1bd55598 RD |
10643 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10644 | PyObject *pyobj = 0; | |
10645 | ||
10646 | { | |
10647 | #if wxUSE_UNICODE | |
10648 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10649 | #else | |
10650 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10651 | #endif | |
10652 | } | |
10653 | return pyobj; | |
10654 | } | |
10655 | ||
10656 | ||
10657 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10658 | PyObject *resultobj = 0; | |
10659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10660 | int arg2 = (int) -1 ; | |
10661 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10662 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10663 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10664 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10665 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10666 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10667 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10668 | wxSashWindow *result = 0 ; | |
10669 | void *argp1 = 0 ; | |
10670 | int res1 = 0 ; | |
10671 | int val2 ; | |
10672 | int ecode2 = 0 ; | |
10673 | wxPoint temp3 ; | |
10674 | wxSize temp4 ; | |
10675 | long val5 ; | |
10676 | int ecode5 = 0 ; | |
10677 | bool temp6 = false ; | |
10678 | PyObject * obj0 = 0 ; | |
10679 | PyObject * obj1 = 0 ; | |
10680 | PyObject * obj2 = 0 ; | |
10681 | PyObject * obj3 = 0 ; | |
10682 | PyObject * obj4 = 0 ; | |
10683 | PyObject * obj5 = 0 ; | |
10684 | char * kwnames[] = { | |
10685 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10686 | }; | |
10687 | ||
10688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10690 | if (!SWIG_IsOK(res1)) { | |
10691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10692 | } | |
10693 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10694 | if (obj1) { | |
10695 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10696 | if (!SWIG_IsOK(ecode2)) { | |
10697 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10698 | } | |
10699 | arg2 = static_cast< int >(val2); | |
10700 | } | |
10701 | if (obj2) { | |
36ed4f51 | 10702 | { |
1bd55598 RD |
10703 | arg3 = &temp3; |
10704 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 10705 | } |
1bd55598 RD |
10706 | } |
10707 | if (obj3) { | |
36ed4f51 | 10708 | { |
1bd55598 RD |
10709 | arg4 = &temp4; |
10710 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 10711 | } |
1bd55598 RD |
10712 | } |
10713 | if (obj4) { | |
10714 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10715 | if (!SWIG_IsOK(ecode5)) { | |
10716 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10717 | } | |
10718 | arg5 = static_cast< long >(val5); | |
10719 | } | |
10720 | if (obj5) { | |
36ed4f51 | 10721 | { |
1bd55598 RD |
10722 | arg6 = wxString_in_helper(obj5); |
10723 | if (arg6 == NULL) SWIG_fail; | |
10724 | temp6 = true; | |
d55e5bfc | 10725 | } |
1bd55598 RD |
10726 | } |
10727 | { | |
10728 | if (!wxPyCheckForApp()) SWIG_fail; | |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10735 | { | |
10736 | if (temp6) | |
10737 | delete arg6; | |
10738 | } | |
10739 | return resultobj; | |
10740 | fail: | |
10741 | { | |
10742 | if (temp6) | |
10743 | delete arg6; | |
10744 | } | |
10745 | return NULL; | |
d55e5bfc RD |
10746 | } |
10747 | ||
10748 | ||
1bd55598 RD |
10749 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10750 | PyObject *resultobj = 0; | |
10751 | wxSashWindow *result = 0 ; | |
10752 | ||
10753 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10754 | { | |
10755 | if (!wxPyCheckForApp()) SWIG_fail; | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (wxSashWindow *)new wxSashWindow(); | |
10758 | wxPyEndAllowThreads(__tstate); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
10761 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10762 | return resultobj; | |
10763 | fail: | |
10764 | return NULL; | |
10765 | } | |
10766 | ||
10767 | ||
10768 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10769 | PyObject *resultobj = 0; | |
10770 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10771 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10772 | int arg3 = (int) -1 ; | |
10773 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10774 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10775 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10776 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10777 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10778 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10779 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10780 | bool result; | |
10781 | void *argp1 = 0 ; | |
10782 | int res1 = 0 ; | |
10783 | void *argp2 = 0 ; | |
10784 | int res2 = 0 ; | |
10785 | int val3 ; | |
10786 | int ecode3 = 0 ; | |
10787 | wxPoint temp4 ; | |
10788 | wxSize temp5 ; | |
10789 | long val6 ; | |
10790 | int ecode6 = 0 ; | |
10791 | bool temp7 = false ; | |
10792 | PyObject * obj0 = 0 ; | |
10793 | PyObject * obj1 = 0 ; | |
10794 | PyObject * obj2 = 0 ; | |
10795 | PyObject * obj3 = 0 ; | |
10796 | PyObject * obj4 = 0 ; | |
10797 | PyObject * obj5 = 0 ; | |
10798 | PyObject * obj6 = 0 ; | |
10799 | char * kwnames[] = { | |
10800 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10801 | }; | |
10802 | ||
10803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10805 | if (!SWIG_IsOK(res1)) { | |
10806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10807 | } | |
10808 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10809 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10810 | if (!SWIG_IsOK(res2)) { | |
10811 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10812 | } | |
10813 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10814 | if (obj2) { | |
10815 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10816 | if (!SWIG_IsOK(ecode3)) { | |
10817 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
10818 | } | |
10819 | arg3 = static_cast< int >(val3); | |
10820 | } | |
10821 | if (obj3) { | |
d55e5bfc | 10822 | { |
1bd55598 RD |
10823 | arg4 = &temp4; |
10824 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10825 | } |
1bd55598 RD |
10826 | } |
10827 | if (obj4) { | |
36ed4f51 | 10828 | { |
1bd55598 RD |
10829 | arg5 = &temp5; |
10830 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 10831 | } |
1bd55598 RD |
10832 | } |
10833 | if (obj5) { | |
10834 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10835 | if (!SWIG_IsOK(ecode6)) { | |
10836 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
10837 | } | |
10838 | arg6 = static_cast< long >(val6); | |
10839 | } | |
10840 | if (obj6) { | |
d55e5bfc | 10841 | { |
1bd55598 RD |
10842 | arg7 = wxString_in_helper(obj6); |
10843 | if (arg7 == NULL) SWIG_fail; | |
10844 | temp7 = true; | |
36ed4f51 | 10845 | } |
1bd55598 RD |
10846 | } |
10847 | { | |
10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10849 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10850 | wxPyEndAllowThreads(__tstate); | |
10851 | if (PyErr_Occurred()) SWIG_fail; | |
10852 | } | |
10853 | { | |
10854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10855 | } | |
10856 | { | |
10857 | if (temp7) | |
10858 | delete arg7; | |
10859 | } | |
10860 | return resultobj; | |
10861 | fail: | |
10862 | { | |
10863 | if (temp7) | |
10864 | delete arg7; | |
10865 | } | |
10866 | return NULL; | |
10867 | } | |
10868 | ||
10869 | ||
10870 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10871 | PyObject *resultobj = 0; | |
10872 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10873 | wxSashEdgePosition arg2 ; | |
10874 | bool arg3 ; | |
10875 | void *argp1 = 0 ; | |
10876 | int res1 = 0 ; | |
10877 | int val2 ; | |
10878 | int ecode2 = 0 ; | |
10879 | bool val3 ; | |
10880 | int ecode3 = 0 ; | |
10881 | PyObject * obj0 = 0 ; | |
10882 | PyObject * obj1 = 0 ; | |
10883 | PyObject * obj2 = 0 ; | |
10884 | char * kwnames[] = { | |
10885 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
10886 | }; | |
10887 | ||
10888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10890 | if (!SWIG_IsOK(res1)) { | |
10891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10892 | } | |
10893 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10894 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10895 | if (!SWIG_IsOK(ecode2)) { | |
10896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10897 | } | |
10898 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10899 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10900 | if (!SWIG_IsOK(ecode3)) { | |
10901 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
10902 | } | |
10903 | arg3 = static_cast< bool >(val3); | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | (arg1)->SetSashVisible(arg2,arg3); | |
10907 | wxPyEndAllowThreads(__tstate); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
10910 | resultobj = SWIG_Py_Void(); | |
10911 | return resultobj; | |
10912 | fail: | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10918 | PyObject *resultobj = 0; | |
10919 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10920 | wxSashEdgePosition arg2 ; | |
10921 | bool result; | |
10922 | void *argp1 = 0 ; | |
10923 | int res1 = 0 ; | |
10924 | int val2 ; | |
10925 | int ecode2 = 0 ; | |
10926 | PyObject * obj0 = 0 ; | |
10927 | PyObject * obj1 = 0 ; | |
10928 | char * kwnames[] = { | |
10929 | (char *) "self",(char *) "edge", NULL | |
10930 | }; | |
10931 | ||
10932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
10933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10934 | if (!SWIG_IsOK(res1)) { | |
10935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10936 | } | |
10937 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10938 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10939 | if (!SWIG_IsOK(ecode2)) { | |
10940 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10941 | } | |
10942 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | { | |
10950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10951 | } | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
10958 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10959 | PyObject *resultobj = 0; | |
10960 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10961 | wxSashEdgePosition arg2 ; | |
10962 | bool arg3 ; | |
10963 | void *argp1 = 0 ; | |
10964 | int res1 = 0 ; | |
10965 | int val2 ; | |
10966 | int ecode2 = 0 ; | |
10967 | bool val3 ; | |
10968 | int ecode3 = 0 ; | |
10969 | PyObject * obj0 = 0 ; | |
10970 | PyObject * obj1 = 0 ; | |
10971 | PyObject * obj2 = 0 ; | |
10972 | char * kwnames[] = { | |
10973 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
10974 | }; | |
10975 | ||
10976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10978 | if (!SWIG_IsOK(res1)) { | |
10979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10980 | } | |
10981 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10983 | if (!SWIG_IsOK(ecode2)) { | |
10984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10985 | } | |
10986 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10987 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10988 | if (!SWIG_IsOK(ecode3)) { | |
10989 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
10990 | } | |
10991 | arg3 = static_cast< bool >(val3); | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | (arg1)->SetSashBorder(arg2,arg3); | |
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
10998 | resultobj = SWIG_Py_Void(); | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
11005 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11006 | PyObject *resultobj = 0; | |
11007 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11008 | wxSashEdgePosition arg2 ; | |
11009 | bool result; | |
11010 | void *argp1 = 0 ; | |
11011 | int res1 = 0 ; | |
11012 | int val2 ; | |
11013 | int ecode2 = 0 ; | |
11014 | PyObject * obj0 = 0 ; | |
11015 | PyObject * obj1 = 0 ; | |
11016 | char * kwnames[] = { | |
11017 | (char *) "self",(char *) "edge", NULL | |
11018 | }; | |
11019 | ||
11020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
11021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11022 | if (!SWIG_IsOK(res1)) { | |
11023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11024 | } | |
11025 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11027 | if (!SWIG_IsOK(ecode2)) { | |
11028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11029 | } | |
11030 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11031 | { | |
11032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11033 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | { | |
11038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11039 | } | |
11040 | return resultobj; | |
11041 | fail: | |
11042 | return NULL; | |
11043 | } | |
11044 | ||
11045 | ||
11046 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11047 | PyObject *resultobj = 0; | |
11048 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11049 | wxSashEdgePosition arg2 ; | |
11050 | int result; | |
11051 | void *argp1 = 0 ; | |
11052 | int res1 = 0 ; | |
11053 | int val2 ; | |
11054 | int ecode2 = 0 ; | |
11055 | PyObject * obj0 = 0 ; | |
11056 | PyObject * obj1 = 0 ; | |
11057 | char * kwnames[] = { | |
11058 | (char *) "self",(char *) "edge", NULL | |
11059 | }; | |
11060 | ||
11061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11063 | if (!SWIG_IsOK(res1)) { | |
11064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11065 | } | |
11066 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11068 | if (!SWIG_IsOK(ecode2)) { | |
11069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11070 | } | |
11071 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11072 | { | |
11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11074 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11075 | wxPyEndAllowThreads(__tstate); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
11077 | } | |
11078 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11079 | return resultobj; | |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
11085 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11086 | PyObject *resultobj = 0; | |
11087 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11088 | int arg2 ; | |
11089 | void *argp1 = 0 ; | |
11090 | int res1 = 0 ; | |
11091 | int val2 ; | |
11092 | int ecode2 = 0 ; | |
11093 | PyObject * obj0 = 0 ; | |
11094 | PyObject * obj1 = 0 ; | |
11095 | char * kwnames[] = { | |
11096 | (char *) "self",(char *) "width", NULL | |
11097 | }; | |
11098 | ||
11099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11101 | if (!SWIG_IsOK(res1)) { | |
11102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11103 | } | |
11104 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11106 | if (!SWIG_IsOK(ecode2)) { | |
11107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11108 | } | |
11109 | arg2 = static_cast< int >(val2); | |
11110 | { | |
11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11112 | (arg1)->SetDefaultBorderSize(arg2); | |
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | resultobj = SWIG_Py_Void(); | |
11117 | return resultobj; | |
11118 | fail: | |
11119 | return NULL; | |
d55e5bfc RD |
11120 | } |
11121 | ||
11122 | ||
1bd55598 RD |
11123 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11124 | PyObject *resultobj = 0; | |
11125 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11126 | int result; | |
11127 | void *argp1 = 0 ; | |
11128 | int res1 = 0 ; | |
11129 | PyObject *swig_obj[1] ; | |
11130 | ||
11131 | if (!args) SWIG_fail; | |
11132 | swig_obj[0] = args; | |
11133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11134 | if (!SWIG_IsOK(res1)) { | |
11135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11136 | } | |
11137 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11141 | wxPyEndAllowThreads(__tstate); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
11144 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11145 | return resultobj; | |
11146 | fail: | |
11147 | return NULL; | |
11148 | } | |
11149 | ||
11150 | ||
11151 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11152 | PyObject *resultobj = 0; | |
11153 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11154 | int arg2 ; | |
11155 | void *argp1 = 0 ; | |
11156 | int res1 = 0 ; | |
11157 | int val2 ; | |
11158 | int ecode2 = 0 ; | |
11159 | PyObject * obj0 = 0 ; | |
11160 | PyObject * obj1 = 0 ; | |
11161 | char * kwnames[] = { | |
11162 | (char *) "self",(char *) "width", NULL | |
11163 | }; | |
11164 | ||
11165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11167 | if (!SWIG_IsOK(res1)) { | |
11168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11169 | } | |
11170 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11171 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11172 | if (!SWIG_IsOK(ecode2)) { | |
11173 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11174 | } | |
11175 | arg2 = static_cast< int >(val2); | |
11176 | { | |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | (arg1)->SetExtraBorderSize(arg2); | |
11179 | wxPyEndAllowThreads(__tstate); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | } | |
11182 | resultobj = SWIG_Py_Void(); | |
11183 | return resultobj; | |
11184 | fail: | |
11185 | return NULL; | |
d55e5bfc RD |
11186 | } |
11187 | ||
11188 | ||
1bd55598 RD |
11189 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11190 | PyObject *resultobj = 0; | |
11191 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11192 | int result; | |
11193 | void *argp1 = 0 ; | |
11194 | int res1 = 0 ; | |
11195 | PyObject *swig_obj[1] ; | |
11196 | ||
11197 | if (!args) SWIG_fail; | |
11198 | swig_obj[0] = args; | |
11199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11200 | if (!SWIG_IsOK(res1)) { | |
11201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11202 | } | |
11203 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11204 | { | |
11205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11206 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
11217 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11218 | PyObject *resultobj = 0; | |
11219 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11220 | int arg2 ; | |
11221 | void *argp1 = 0 ; | |
11222 | int res1 = 0 ; | |
11223 | int val2 ; | |
11224 | int ecode2 = 0 ; | |
11225 | PyObject * obj0 = 0 ; | |
11226 | PyObject * obj1 = 0 ; | |
11227 | char * kwnames[] = { | |
11228 | (char *) "self",(char *) "min", NULL | |
11229 | }; | |
11230 | ||
11231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11233 | if (!SWIG_IsOK(res1)) { | |
11234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11235 | } | |
11236 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11237 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11238 | if (!SWIG_IsOK(ecode2)) { | |
11239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11240 | } | |
11241 | arg2 = static_cast< int >(val2); | |
11242 | { | |
11243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11244 | (arg1)->SetMinimumSizeX(arg2); | |
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | resultobj = SWIG_Py_Void(); | |
11249 | return resultobj; | |
11250 | fail: | |
11251 | return NULL; | |
11252 | } | |
11253 | ||
11254 | ||
11255 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11256 | PyObject *resultobj = 0; | |
11257 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11258 | int arg2 ; | |
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 *) "min", NULL | |
11267 | }; | |
11268 | ||
11269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",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_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
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_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11278 | } | |
11279 | arg2 = static_cast< int >(val2); | |
11280 | { | |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | (arg1)->SetMinimumSizeY(arg2); | |
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | resultobj = SWIG_Py_Void(); | |
11287 | return resultobj; | |
11288 | fail: | |
11289 | return NULL; | |
d55e5bfc RD |
11290 | } |
11291 | ||
11292 | ||
1bd55598 RD |
11293 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11294 | PyObject *resultobj = 0; | |
11295 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11296 | int result; | |
11297 | void *argp1 = 0 ; | |
11298 | int res1 = 0 ; | |
11299 | PyObject *swig_obj[1] ; | |
11300 | ||
11301 | if (!args) SWIG_fail; | |
11302 | swig_obj[0] = args; | |
11303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11304 | if (!SWIG_IsOK(res1)) { | |
11305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11306 | } | |
11307 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
11314 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11315 | return resultobj; | |
11316 | fail: | |
11317 | return NULL; | |
d55e5bfc RD |
11318 | } |
11319 | ||
11320 | ||
1bd55598 RD |
11321 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11322 | PyObject *resultobj = 0; | |
11323 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11324 | int result; | |
11325 | void *argp1 = 0 ; | |
11326 | int res1 = 0 ; | |
11327 | PyObject *swig_obj[1] ; | |
11328 | ||
11329 | if (!args) SWIG_fail; | |
11330 | swig_obj[0] = args; | |
11331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11332 | if (!SWIG_IsOK(res1)) { | |
11333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11334 | } | |
11335 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11336 | { | |
11337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11338 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11339 | wxPyEndAllowThreads(__tstate); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
11342 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11343 | return resultobj; | |
11344 | fail: | |
11345 | return NULL; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11350 | PyObject *resultobj = 0; | |
11351 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11352 | int arg2 ; | |
11353 | void *argp1 = 0 ; | |
11354 | int res1 = 0 ; | |
11355 | int val2 ; | |
11356 | int ecode2 = 0 ; | |
11357 | PyObject * obj0 = 0 ; | |
11358 | PyObject * obj1 = 0 ; | |
11359 | char * kwnames[] = { | |
11360 | (char *) "self",(char *) "max", NULL | |
11361 | }; | |
11362 | ||
11363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11365 | if (!SWIG_IsOK(res1)) { | |
11366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11367 | } | |
11368 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11370 | if (!SWIG_IsOK(ecode2)) { | |
11371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11372 | } | |
11373 | arg2 = static_cast< int >(val2); | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | (arg1)->SetMaximumSizeX(arg2); | |
11377 | wxPyEndAllowThreads(__tstate); | |
11378 | if (PyErr_Occurred()) SWIG_fail; | |
11379 | } | |
11380 | resultobj = SWIG_Py_Void(); | |
11381 | return resultobj; | |
11382 | fail: | |
11383 | return NULL; | |
11384 | } | |
11385 | ||
11386 | ||
11387 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11388 | PyObject *resultobj = 0; | |
11389 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11390 | int arg2 ; | |
11391 | void *argp1 = 0 ; | |
11392 | int res1 = 0 ; | |
11393 | int val2 ; | |
11394 | int ecode2 = 0 ; | |
11395 | PyObject * obj0 = 0 ; | |
11396 | PyObject * obj1 = 0 ; | |
11397 | char * kwnames[] = { | |
11398 | (char *) "self",(char *) "max", NULL | |
11399 | }; | |
11400 | ||
11401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11403 | if (!SWIG_IsOK(res1)) { | |
11404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11405 | } | |
11406 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11407 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11408 | if (!SWIG_IsOK(ecode2)) { | |
11409 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11410 | } | |
11411 | arg2 = static_cast< int >(val2); | |
11412 | { | |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | (arg1)->SetMaximumSizeY(arg2); | |
11415 | wxPyEndAllowThreads(__tstate); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
11418 | resultobj = SWIG_Py_Void(); | |
11419 | return resultobj; | |
11420 | fail: | |
11421 | return NULL; | |
d55e5bfc RD |
11422 | } |
11423 | ||
11424 | ||
1bd55598 RD |
11425 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11426 | PyObject *resultobj = 0; | |
11427 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11428 | int result; | |
11429 | void *argp1 = 0 ; | |
11430 | int res1 = 0 ; | |
11431 | PyObject *swig_obj[1] ; | |
11432 | ||
11433 | if (!args) SWIG_fail; | |
11434 | swig_obj[0] = args; | |
11435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11436 | if (!SWIG_IsOK(res1)) { | |
11437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11438 | } | |
11439 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11447 | return resultobj; | |
11448 | fail: | |
11449 | return NULL; | |
d55e5bfc RD |
11450 | } |
11451 | ||
11452 | ||
1bd55598 RD |
11453 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11454 | PyObject *resultobj = 0; | |
11455 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11456 | int result; | |
11457 | void *argp1 = 0 ; | |
11458 | int res1 = 0 ; | |
11459 | PyObject *swig_obj[1] ; | |
11460 | ||
11461 | if (!args) SWIG_fail; | |
11462 | swig_obj[0] = args; | |
11463 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11464 | if (!SWIG_IsOK(res1)) { | |
11465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11466 | } | |
11467 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11471 | wxPyEndAllowThreads(__tstate); | |
11472 | if (PyErr_Occurred()) SWIG_fail; | |
11473 | } | |
11474 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11475 | return resultobj; | |
11476 | fail: | |
11477 | return NULL; | |
11478 | } | |
11479 | ||
11480 | ||
11481 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11482 | PyObject *resultobj = 0; | |
11483 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11484 | int arg2 ; | |
11485 | int arg3 ; | |
11486 | int arg4 = (int) 2 ; | |
11487 | wxSashEdgePosition result; | |
11488 | void *argp1 = 0 ; | |
11489 | int res1 = 0 ; | |
11490 | int val2 ; | |
11491 | int ecode2 = 0 ; | |
11492 | int val3 ; | |
11493 | int ecode3 = 0 ; | |
11494 | int val4 ; | |
11495 | int ecode4 = 0 ; | |
11496 | PyObject * obj0 = 0 ; | |
11497 | PyObject * obj1 = 0 ; | |
11498 | PyObject * obj2 = 0 ; | |
11499 | PyObject * obj3 = 0 ; | |
11500 | char * kwnames[] = { | |
11501 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11502 | }; | |
11503 | ||
11504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11506 | if (!SWIG_IsOK(res1)) { | |
11507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11508 | } | |
11509 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11510 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11511 | if (!SWIG_IsOK(ecode2)) { | |
11512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11513 | } | |
11514 | arg2 = static_cast< int >(val2); | |
11515 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11516 | if (!SWIG_IsOK(ecode3)) { | |
11517 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11518 | } | |
11519 | arg3 = static_cast< int >(val3); | |
11520 | if (obj3) { | |
11521 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11522 | if (!SWIG_IsOK(ecode4)) { | |
11523 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11524 | } | |
11525 | arg4 = static_cast< int >(val4); | |
11526 | } | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11530 | wxPyEndAllowThreads(__tstate); | |
11531 | if (PyErr_Occurred()) SWIG_fail; | |
11532 | } | |
11533 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11534 | return resultobj; | |
11535 | fail: | |
11536 | return NULL; | |
d55e5bfc RD |
11537 | } |
11538 | ||
11539 | ||
1bd55598 RD |
11540 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11541 | PyObject *resultobj = 0; | |
11542 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11543 | void *argp1 = 0 ; | |
11544 | int res1 = 0 ; | |
11545 | PyObject *swig_obj[1] ; | |
11546 | ||
11547 | if (!args) SWIG_fail; | |
11548 | swig_obj[0] = args; | |
11549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11550 | if (!SWIG_IsOK(res1)) { | |
11551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11552 | } | |
11553 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | (arg1)->SizeWindows(); | |
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | resultobj = SWIG_Py_Void(); | |
11561 | return resultobj; | |
11562 | fail: | |
11563 | return NULL; | |
d55e5bfc RD |
11564 | } |
11565 | ||
11566 | ||
1bd55598 RD |
11567 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11568 | PyObject *obj; | |
11569 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11570 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11571 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11572 | } |
11573 | ||
1bd55598 RD |
11574 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11575 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
11576 | } |
11577 | ||
1bd55598 RD |
11578 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11579 | PyObject *resultobj = 0; | |
11580 | int arg1 = (int) 0 ; | |
11581 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11582 | wxSashEvent *result = 0 ; | |
11583 | int val1 ; | |
11584 | int ecode1 = 0 ; | |
11585 | int val2 ; | |
11586 | int ecode2 = 0 ; | |
11587 | PyObject * obj0 = 0 ; | |
11588 | PyObject * obj1 = 0 ; | |
11589 | char * kwnames[] = { | |
11590 | (char *) "id",(char *) "edge", NULL | |
11591 | }; | |
11592 | ||
11593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11594 | if (obj0) { | |
11595 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11596 | if (!SWIG_IsOK(ecode1)) { | |
11597 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11598 | } | |
11599 | arg1 = static_cast< int >(val1); | |
11600 | } | |
11601 | if (obj1) { | |
11602 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11603 | if (!SWIG_IsOK(ecode2)) { | |
11604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11605 | } | |
11606 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11607 | } | |
11608 | { | |
11609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11610 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
11621 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11622 | PyObject *resultobj = 0; | |
11623 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11624 | wxSashEdgePosition arg2 ; | |
11625 | void *argp1 = 0 ; | |
11626 | int res1 = 0 ; | |
11627 | int val2 ; | |
11628 | int ecode2 = 0 ; | |
11629 | PyObject * obj0 = 0 ; | |
11630 | PyObject * obj1 = 0 ; | |
11631 | char * kwnames[] = { | |
11632 | (char *) "self",(char *) "edge", NULL | |
11633 | }; | |
11634 | ||
11635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11637 | if (!SWIG_IsOK(res1)) { | |
11638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11639 | } | |
11640 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11641 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11642 | if (!SWIG_IsOK(ecode2)) { | |
11643 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11644 | } | |
11645 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11646 | { | |
11647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11648 | (arg1)->SetEdge(arg2); | |
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | resultobj = SWIG_Py_Void(); | |
11653 | return resultobj; | |
11654 | fail: | |
11655 | return NULL; | |
d55e5bfc RD |
11656 | } |
11657 | ||
11658 | ||
1bd55598 RD |
11659 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11660 | PyObject *resultobj = 0; | |
11661 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11662 | wxSashEdgePosition result; | |
11663 | void *argp1 = 0 ; | |
11664 | int res1 = 0 ; | |
11665 | PyObject *swig_obj[1] ; | |
11666 | ||
11667 | if (!args) SWIG_fail; | |
11668 | swig_obj[0] = args; | |
11669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11670 | if (!SWIG_IsOK(res1)) { | |
11671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11672 | } | |
11673 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11674 | { | |
11675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11676 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11677 | wxPyEndAllowThreads(__tstate); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11681 | return resultobj; | |
11682 | fail: | |
11683 | return NULL; | |
11684 | } | |
11685 | ||
11686 | ||
11687 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11688 | PyObject *resultobj = 0; | |
11689 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11690 | wxRect *arg2 = 0 ; | |
11691 | void *argp1 = 0 ; | |
11692 | int res1 = 0 ; | |
11693 | wxRect temp2 ; | |
11694 | PyObject * obj0 = 0 ; | |
11695 | PyObject * obj1 = 0 ; | |
11696 | char * kwnames[] = { | |
11697 | (char *) "self",(char *) "rect", NULL | |
11698 | }; | |
11699 | ||
11700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11702 | if (!SWIG_IsOK(res1)) { | |
11703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11704 | } | |
11705 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11706 | { | |
11707 | arg2 = &temp2; | |
11708 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11709 | } | |
11710 | { | |
11711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11712 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11713 | wxPyEndAllowThreads(__tstate); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | } | |
11716 | resultobj = SWIG_Py_Void(); | |
11717 | return resultobj; | |
11718 | fail: | |
11719 | return NULL; | |
03837c5c RD |
11720 | } |
11721 | ||
11722 | ||
1bd55598 RD |
11723 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11724 | PyObject *resultobj = 0; | |
11725 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11726 | wxRect result; | |
11727 | void *argp1 = 0 ; | |
11728 | int res1 = 0 ; | |
11729 | PyObject *swig_obj[1] ; | |
11730 | ||
11731 | if (!args) SWIG_fail; | |
11732 | swig_obj[0] = args; | |
11733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11734 | if (!SWIG_IsOK(res1)) { | |
11735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11736 | } | |
11737 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11738 | { | |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11741 | wxPyEndAllowThreads(__tstate); | |
11742 | if (PyErr_Occurred()) SWIG_fail; | |
11743 | } | |
11744 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11745 | return resultobj; | |
11746 | fail: | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
11751 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11752 | PyObject *resultobj = 0; | |
11753 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11754 | wxSashDragStatus arg2 ; | |
11755 | void *argp1 = 0 ; | |
11756 | int res1 = 0 ; | |
11757 | int val2 ; | |
11758 | int ecode2 = 0 ; | |
11759 | PyObject * obj0 = 0 ; | |
11760 | PyObject * obj1 = 0 ; | |
11761 | char * kwnames[] = { | |
11762 | (char *) "self",(char *) "status", NULL | |
11763 | }; | |
11764 | ||
11765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11767 | if (!SWIG_IsOK(res1)) { | |
11768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11769 | } | |
11770 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11771 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11772 | if (!SWIG_IsOK(ecode2)) { | |
11773 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11774 | } | |
11775 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11776 | { | |
11777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11778 | (arg1)->SetDragStatus(arg2); | |
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | resultobj = SWIG_Py_Void(); | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
d55e5bfc RD |
11786 | } |
11787 | ||
11788 | ||
1bd55598 RD |
11789 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11790 | PyObject *resultobj = 0; | |
11791 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11792 | wxSashDragStatus result; | |
11793 | void *argp1 = 0 ; | |
11794 | int res1 = 0 ; | |
11795 | PyObject *swig_obj[1] ; | |
11796 | ||
11797 | if (!args) SWIG_fail; | |
11798 | swig_obj[0] = args; | |
11799 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11800 | if (!SWIG_IsOK(res1)) { | |
11801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11802 | } | |
11803 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11807 | wxPyEndAllowThreads(__tstate); | |
11808 | if (PyErr_Occurred()) SWIG_fail; | |
11809 | } | |
11810 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11811 | return resultobj; | |
11812 | fail: | |
11813 | return NULL; | |
d55e5bfc RD |
11814 | } |
11815 | ||
11816 | ||
1bd55598 RD |
11817 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11818 | PyObject *obj; | |
11819 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11820 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
11821 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11822 | } |
11823 | ||
1bd55598 RD |
11824 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11825 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
11826 | } |
11827 | ||
1bd55598 RD |
11828 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11829 | PyObject *resultobj = 0; | |
11830 | int arg1 = (int) 0 ; | |
11831 | wxQueryLayoutInfoEvent *result = 0 ; | |
11832 | int val1 ; | |
11833 | int ecode1 = 0 ; | |
11834 | PyObject * obj0 = 0 ; | |
11835 | char * kwnames[] = { | |
11836 | (char *) "id", NULL | |
11837 | }; | |
11838 | ||
11839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
11840 | if (obj0) { | |
11841 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11842 | if (!SWIG_IsOK(ecode1)) { | |
11843 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
11844 | } | |
11845 | arg1 = static_cast< int >(val1); | |
11846 | } | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
11850 | wxPyEndAllowThreads(__tstate); | |
11851 | if (PyErr_Occurred()) SWIG_fail; | |
11852 | } | |
11853 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
11854 | return resultobj; | |
11855 | fail: | |
11856 | return NULL; | |
11857 | } | |
11858 | ||
11859 | ||
11860 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11861 | PyObject *resultobj = 0; | |
11862 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11863 | int arg2 ; | |
11864 | void *argp1 = 0 ; | |
11865 | int res1 = 0 ; | |
11866 | int val2 ; | |
11867 | int ecode2 = 0 ; | |
11868 | PyObject * obj0 = 0 ; | |
11869 | PyObject * obj1 = 0 ; | |
11870 | char * kwnames[] = { | |
11871 | (char *) "self",(char *) "length", NULL | |
11872 | }; | |
11873 | ||
11874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
11875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11876 | if (!SWIG_IsOK(res1)) { | |
11877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11878 | } | |
11879 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11880 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11881 | if (!SWIG_IsOK(ecode2)) { | |
11882 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
11883 | } | |
11884 | arg2 = static_cast< int >(val2); | |
11885 | { | |
11886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11887 | (arg1)->SetRequestedLength(arg2); | |
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | resultobj = SWIG_Py_Void(); | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | return NULL; | |
f20a2e1f RD |
11895 | } |
11896 | ||
11897 | ||
1bd55598 RD |
11898 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11899 | PyObject *resultobj = 0; | |
11900 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11901 | int result; | |
11902 | void *argp1 = 0 ; | |
11903 | int res1 = 0 ; | |
11904 | PyObject *swig_obj[1] ; | |
11905 | ||
11906 | if (!args) SWIG_fail; | |
11907 | swig_obj[0] = args; | |
11908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11909 | if (!SWIG_IsOK(res1)) { | |
11910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11911 | } | |
11912 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11913 | { | |
11914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11915 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
11916 | wxPyEndAllowThreads(__tstate); | |
11917 | if (PyErr_Occurred()) SWIG_fail; | |
11918 | } | |
11919 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11920 | return resultobj; | |
11921 | fail: | |
11922 | return NULL; | |
11923 | } | |
11924 | ||
11925 | ||
11926 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11927 | PyObject *resultobj = 0; | |
11928 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11929 | int arg2 ; | |
11930 | void *argp1 = 0 ; | |
11931 | int res1 = 0 ; | |
11932 | int val2 ; | |
11933 | int ecode2 = 0 ; | |
11934 | PyObject * obj0 = 0 ; | |
11935 | PyObject * obj1 = 0 ; | |
11936 | char * kwnames[] = { | |
11937 | (char *) "self",(char *) "flags", NULL | |
11938 | }; | |
11939 | ||
11940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
11941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11942 | if (!SWIG_IsOK(res1)) { | |
11943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11944 | } | |
11945 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11946 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11947 | if (!SWIG_IsOK(ecode2)) { | |
11948 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
11949 | } | |
11950 | arg2 = static_cast< int >(val2); | |
11951 | { | |
11952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11953 | (arg1)->SetFlags(arg2); | |
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | resultobj = SWIG_Py_Void(); | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
d55e5bfc RD |
11961 | } |
11962 | ||
11963 | ||
1bd55598 RD |
11964 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11965 | PyObject *resultobj = 0; | |
11966 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11967 | int result; | |
11968 | void *argp1 = 0 ; | |
11969 | int res1 = 0 ; | |
11970 | PyObject *swig_obj[1] ; | |
11971 | ||
11972 | if (!args) SWIG_fail; | |
11973 | swig_obj[0] = args; | |
11974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11975 | if (!SWIG_IsOK(res1)) { | |
11976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11977 | } | |
11978 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11979 | { | |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11981 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
11985 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11986 | return resultobj; | |
11987 | fail: | |
11988 | return NULL; | |
11989 | } | |
11990 | ||
11991 | ||
11992 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11993 | PyObject *resultobj = 0; | |
11994 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11995 | wxSize *arg2 = 0 ; | |
11996 | void *argp1 = 0 ; | |
11997 | int res1 = 0 ; | |
11998 | wxSize temp2 ; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | PyObject * obj1 = 0 ; | |
12001 | char * kwnames[] = { | |
12002 | (char *) "self",(char *) "size", NULL | |
12003 | }; | |
12004 | ||
12005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12007 | if (!SWIG_IsOK(res1)) { | |
12008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12009 | } | |
12010 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12011 | { | |
12012 | arg2 = &temp2; | |
12013 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12014 | } | |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | (arg1)->SetSize((wxSize const &)*arg2); | |
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | resultobj = SWIG_Py_Void(); | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | return NULL; | |
d55e5bfc RD |
12025 | } |
12026 | ||
12027 | ||
1bd55598 RD |
12028 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12029 | PyObject *resultobj = 0; | |
12030 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12031 | wxSize result; | |
12032 | void *argp1 = 0 ; | |
12033 | int res1 = 0 ; | |
12034 | PyObject *swig_obj[1] ; | |
12035 | ||
12036 | if (!args) SWIG_fail; | |
12037 | swig_obj[0] = args; | |
12038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12039 | if (!SWIG_IsOK(res1)) { | |
12040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12041 | } | |
12042 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12043 | { | |
12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12045 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12050 | return resultobj; | |
12051 | fail: | |
12052 | return NULL; | |
12053 | } | |
12054 | ||
12055 | ||
12056 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12057 | PyObject *resultobj = 0; | |
12058 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12059 | wxLayoutOrientation arg2 ; | |
12060 | void *argp1 = 0 ; | |
12061 | int res1 = 0 ; | |
12062 | int val2 ; | |
12063 | int ecode2 = 0 ; | |
12064 | PyObject * obj0 = 0 ; | |
12065 | PyObject * obj1 = 0 ; | |
12066 | char * kwnames[] = { | |
12067 | (char *) "self",(char *) "orient", NULL | |
12068 | }; | |
12069 | ||
12070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12072 | if (!SWIG_IsOK(res1)) { | |
12073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12074 | } | |
12075 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12076 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12077 | if (!SWIG_IsOK(ecode2)) { | |
12078 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12079 | } | |
12080 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12081 | { | |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | (arg1)->SetOrientation(arg2); | |
12084 | wxPyEndAllowThreads(__tstate); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
12087 | resultobj = SWIG_Py_Void(); | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | return NULL; | |
d55e5bfc RD |
12091 | } |
12092 | ||
12093 | ||
1bd55598 RD |
12094 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12095 | PyObject *resultobj = 0; | |
12096 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12097 | wxLayoutOrientation result; | |
12098 | void *argp1 = 0 ; | |
12099 | int res1 = 0 ; | |
12100 | PyObject *swig_obj[1] ; | |
12101 | ||
12102 | if (!args) SWIG_fail; | |
12103 | swig_obj[0] = args; | |
12104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12105 | if (!SWIG_IsOK(res1)) { | |
12106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12107 | } | |
12108 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12109 | { | |
12110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12111 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
12122 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12123 | PyObject *resultobj = 0; | |
12124 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12125 | wxLayoutAlignment arg2 ; | |
12126 | void *argp1 = 0 ; | |
12127 | int res1 = 0 ; | |
12128 | int val2 ; | |
12129 | int ecode2 = 0 ; | |
12130 | PyObject * obj0 = 0 ; | |
12131 | PyObject * obj1 = 0 ; | |
12132 | char * kwnames[] = { | |
12133 | (char *) "self",(char *) "align", NULL | |
12134 | }; | |
12135 | ||
12136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12138 | if (!SWIG_IsOK(res1)) { | |
12139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12140 | } | |
12141 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12142 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12143 | if (!SWIG_IsOK(ecode2)) { | |
12144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12145 | } | |
12146 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | (arg1)->SetAlignment(arg2); | |
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | resultobj = SWIG_Py_Void(); | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
d55e5bfc RD |
12157 | } |
12158 | ||
12159 | ||
1bd55598 RD |
12160 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12161 | PyObject *resultobj = 0; | |
12162 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12163 | wxLayoutAlignment result; | |
12164 | void *argp1 = 0 ; | |
12165 | int res1 = 0 ; | |
12166 | PyObject *swig_obj[1] ; | |
12167 | ||
12168 | if (!args) SWIG_fail; | |
12169 | swig_obj[0] = args; | |
12170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12171 | if (!SWIG_IsOK(res1)) { | |
12172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12173 | } | |
12174 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12175 | { | |
12176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12177 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12178 | wxPyEndAllowThreads(__tstate); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
12180 | } | |
12181 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12182 | return resultobj; | |
12183 | fail: | |
12184 | return NULL; | |
d55e5bfc RD |
12185 | } |
12186 | ||
12187 | ||
1bd55598 RD |
12188 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12189 | PyObject *obj; | |
12190 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12191 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12192 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12193 | } |
12194 | ||
1bd55598 RD |
12195 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12196 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12197 | } |
12198 | ||
1bd55598 RD |
12199 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12200 | PyObject *resultobj = 0; | |
12201 | int arg1 = (int) 0 ; | |
12202 | wxCalculateLayoutEvent *result = 0 ; | |
12203 | int val1 ; | |
12204 | int ecode1 = 0 ; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char * kwnames[] = { | |
12207 | (char *) "id", NULL | |
12208 | }; | |
12209 | ||
12210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12211 | if (obj0) { | |
12212 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12213 | if (!SWIG_IsOK(ecode1)) { | |
12214 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12215 | } | |
12216 | arg1 = static_cast< int >(val1); | |
12217 | } | |
12218 | { | |
12219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12220 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
12224 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12225 | return resultobj; | |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12232 | PyObject *resultobj = 0; | |
12233 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12234 | int arg2 ; | |
12235 | void *argp1 = 0 ; | |
12236 | int res1 = 0 ; | |
12237 | int val2 ; | |
12238 | int ecode2 = 0 ; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | PyObject * obj1 = 0 ; | |
12241 | char * kwnames[] = { | |
12242 | (char *) "self",(char *) "flags", NULL | |
12243 | }; | |
12244 | ||
12245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12247 | if (!SWIG_IsOK(res1)) { | |
12248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12249 | } | |
12250 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12251 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12252 | if (!SWIG_IsOK(ecode2)) { | |
12253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12254 | } | |
12255 | arg2 = static_cast< int >(val2); | |
12256 | { | |
12257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12258 | (arg1)->SetFlags(arg2); | |
12259 | wxPyEndAllowThreads(__tstate); | |
12260 | if (PyErr_Occurred()) SWIG_fail; | |
12261 | } | |
12262 | resultobj = SWIG_Py_Void(); | |
12263 | return resultobj; | |
12264 | fail: | |
12265 | return NULL; | |
d55e5bfc RD |
12266 | } |
12267 | ||
12268 | ||
1bd55598 RD |
12269 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12270 | PyObject *resultobj = 0; | |
12271 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12272 | int result; | |
12273 | void *argp1 = 0 ; | |
12274 | int res1 = 0 ; | |
12275 | PyObject *swig_obj[1] ; | |
12276 | ||
12277 | if (!args) SWIG_fail; | |
12278 | swig_obj[0] = args; | |
12279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12280 | if (!SWIG_IsOK(res1)) { | |
12281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12282 | } | |
12283 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12284 | { | |
12285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12286 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12287 | wxPyEndAllowThreads(__tstate); | |
12288 | if (PyErr_Occurred()) SWIG_fail; | |
12289 | } | |
12290 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12291 | return resultobj; | |
12292 | fail: | |
12293 | return NULL; | |
12294 | } | |
12295 | ||
12296 | ||
12297 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12298 | PyObject *resultobj = 0; | |
12299 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12300 | wxRect *arg2 = 0 ; | |
12301 | void *argp1 = 0 ; | |
12302 | int res1 = 0 ; | |
12303 | wxRect temp2 ; | |
12304 | PyObject * obj0 = 0 ; | |
12305 | PyObject * obj1 = 0 ; | |
12306 | char * kwnames[] = { | |
12307 | (char *) "self",(char *) "rect", NULL | |
12308 | }; | |
12309 | ||
12310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12312 | if (!SWIG_IsOK(res1)) { | |
12313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12314 | } | |
12315 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12316 | { | |
12317 | arg2 = &temp2; | |
12318 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12319 | } | |
12320 | { | |
12321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12322 | (arg1)->SetRect((wxRect const &)*arg2); | |
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | resultobj = SWIG_Py_Void(); | |
12327 | return resultobj; | |
12328 | fail: | |
12329 | return NULL; | |
d55e5bfc RD |
12330 | } |
12331 | ||
12332 | ||
1bd55598 RD |
12333 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12334 | PyObject *resultobj = 0; | |
12335 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12336 | wxRect result; | |
12337 | void *argp1 = 0 ; | |
12338 | int res1 = 0 ; | |
12339 | PyObject *swig_obj[1] ; | |
12340 | ||
12341 | if (!args) SWIG_fail; | |
12342 | swig_obj[0] = args; | |
12343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12344 | if (!SWIG_IsOK(res1)) { | |
12345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12346 | } | |
12347 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12348 | { | |
12349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12350 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12351 | wxPyEndAllowThreads(__tstate); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12355 | return resultobj; | |
12356 | fail: | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
12361 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12362 | PyObject *obj; | |
12363 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12364 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12365 | return SWIG_Py_Void(); | |
12366 | } | |
12367 | ||
12368 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12369 | return SWIG_Python_InitShadowInstance(args); | |
12370 | } | |
12371 | ||
12372 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12373 | PyObject *resultobj = 0; | |
12374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12375 | int arg2 = (int) -1 ; | |
12376 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12377 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12378 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12379 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12380 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12381 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12382 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12383 | wxSashLayoutWindow *result = 0 ; | |
12384 | void *argp1 = 0 ; | |
12385 | int res1 = 0 ; | |
12386 | int val2 ; | |
12387 | int ecode2 = 0 ; | |
12388 | wxPoint temp3 ; | |
12389 | wxSize temp4 ; | |
12390 | long val5 ; | |
12391 | int ecode5 = 0 ; | |
12392 | bool temp6 = false ; | |
12393 | PyObject * obj0 = 0 ; | |
12394 | PyObject * obj1 = 0 ; | |
12395 | PyObject * obj2 = 0 ; | |
12396 | PyObject * obj3 = 0 ; | |
12397 | PyObject * obj4 = 0 ; | |
12398 | PyObject * obj5 = 0 ; | |
12399 | char * kwnames[] = { | |
12400 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12401 | }; | |
12402 | ||
12403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12405 | if (!SWIG_IsOK(res1)) { | |
12406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12407 | } | |
12408 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12409 | if (obj1) { | |
12410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12411 | if (!SWIG_IsOK(ecode2)) { | |
12412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12413 | } | |
12414 | arg2 = static_cast< int >(val2); | |
12415 | } | |
12416 | if (obj2) { | |
12417 | { | |
12418 | arg3 = &temp3; | |
12419 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 12420 | } |
1bd55598 RD |
12421 | } |
12422 | if (obj3) { | |
d55e5bfc | 12423 | { |
1bd55598 RD |
12424 | arg4 = &temp4; |
12425 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12426 | } |
1bd55598 RD |
12427 | } |
12428 | if (obj4) { | |
12429 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12430 | if (!SWIG_IsOK(ecode5)) { | |
12431 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12432 | } | |
12433 | arg5 = static_cast< long >(val5); | |
12434 | } | |
12435 | if (obj5) { | |
d55e5bfc | 12436 | { |
1bd55598 RD |
12437 | arg6 = wxString_in_helper(obj5); |
12438 | if (arg6 == NULL) SWIG_fail; | |
12439 | temp6 = true; | |
d55e5bfc | 12440 | } |
1bd55598 RD |
12441 | } |
12442 | { | |
12443 | if (!wxPyCheckForApp()) SWIG_fail; | |
12444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12445 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
12449 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12450 | { | |
12451 | if (temp6) | |
12452 | delete arg6; | |
12453 | } | |
12454 | return resultobj; | |
12455 | fail: | |
12456 | { | |
12457 | if (temp6) | |
12458 | delete arg6; | |
12459 | } | |
12460 | return NULL; | |
d55e5bfc RD |
12461 | } |
12462 | ||
12463 | ||
1bd55598 RD |
12464 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12465 | PyObject *resultobj = 0; | |
12466 | wxSashLayoutWindow *result = 0 ; | |
12467 | ||
12468 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12469 | { | |
12470 | if (!wxPyCheckForApp()) SWIG_fail; | |
12471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12472 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12477 | return resultobj; | |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
12483 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12484 | PyObject *resultobj = 0; | |
12485 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12486 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12487 | int arg3 = (int) -1 ; | |
12488 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12489 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12490 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12491 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12492 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12493 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12494 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12495 | bool result; | |
12496 | void *argp1 = 0 ; | |
12497 | int res1 = 0 ; | |
12498 | void *argp2 = 0 ; | |
12499 | int res2 = 0 ; | |
12500 | int val3 ; | |
12501 | int ecode3 = 0 ; | |
12502 | wxPoint temp4 ; | |
12503 | wxSize temp5 ; | |
12504 | long val6 ; | |
12505 | int ecode6 = 0 ; | |
12506 | bool temp7 = false ; | |
12507 | PyObject * obj0 = 0 ; | |
12508 | PyObject * obj1 = 0 ; | |
12509 | PyObject * obj2 = 0 ; | |
12510 | PyObject * obj3 = 0 ; | |
12511 | PyObject * obj4 = 0 ; | |
12512 | PyObject * obj5 = 0 ; | |
12513 | PyObject * obj6 = 0 ; | |
12514 | char * kwnames[] = { | |
12515 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12516 | }; | |
12517 | ||
12518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12520 | if (!SWIG_IsOK(res1)) { | |
12521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12522 | } | |
12523 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12524 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12525 | if (!SWIG_IsOK(res2)) { | |
12526 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12527 | } | |
12528 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12529 | if (obj2) { | |
12530 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12531 | if (!SWIG_IsOK(ecode3)) { | |
12532 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12533 | } | |
12534 | arg3 = static_cast< int >(val3); | |
12535 | } | |
12536 | if (obj3) { | |
12537 | { | |
12538 | arg4 = &temp4; | |
12539 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12540 | } |
1bd55598 RD |
12541 | } |
12542 | if (obj4) { | |
d55e5bfc | 12543 | { |
1bd55598 RD |
12544 | arg5 = &temp5; |
12545 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 12546 | } |
1bd55598 RD |
12547 | } |
12548 | if (obj5) { | |
12549 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12550 | if (!SWIG_IsOK(ecode6)) { | |
12551 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12552 | } | |
12553 | arg6 = static_cast< long >(val6); | |
12554 | } | |
12555 | if (obj6) { | |
d55e5bfc | 12556 | { |
1bd55598 RD |
12557 | arg7 = wxString_in_helper(obj6); |
12558 | if (arg7 == NULL) SWIG_fail; | |
12559 | temp7 = true; | |
d55e5bfc | 12560 | } |
1bd55598 RD |
12561 | } |
12562 | { | |
12563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12564 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12565 | wxPyEndAllowThreads(__tstate); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | } | |
12568 | { | |
12569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12570 | } | |
12571 | { | |
12572 | if (temp7) | |
12573 | delete arg7; | |
12574 | } | |
12575 | return resultobj; | |
12576 | fail: | |
12577 | { | |
12578 | if (temp7) | |
12579 | delete arg7; | |
12580 | } | |
12581 | return NULL; | |
d55e5bfc RD |
12582 | } |
12583 | ||
12584 | ||
1bd55598 RD |
12585 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12586 | PyObject *resultobj = 0; | |
12587 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12588 | wxLayoutAlignment result; | |
12589 | void *argp1 = 0 ; | |
12590 | int res1 = 0 ; | |
12591 | PyObject *swig_obj[1] ; | |
12592 | ||
12593 | if (!args) SWIG_fail; | |
12594 | swig_obj[0] = args; | |
12595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12596 | if (!SWIG_IsOK(res1)) { | |
12597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12598 | } | |
12599 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12600 | { | |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12603 | wxPyEndAllowThreads(__tstate); | |
12604 | if (PyErr_Occurred()) SWIG_fail; | |
12605 | } | |
12606 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12607 | return resultobj; | |
12608 | fail: | |
12609 | return NULL; | |
d55e5bfc RD |
12610 | } |
12611 | ||
12612 | ||
1bd55598 RD |
12613 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12614 | PyObject *resultobj = 0; | |
12615 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12616 | wxLayoutOrientation result; | |
12617 | void *argp1 = 0 ; | |
12618 | int res1 = 0 ; | |
12619 | PyObject *swig_obj[1] ; | |
12620 | ||
12621 | if (!args) SWIG_fail; | |
12622 | swig_obj[0] = args; | |
12623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12624 | if (!SWIG_IsOK(res1)) { | |
12625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12626 | } | |
12627 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12628 | { | |
12629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12630 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12631 | wxPyEndAllowThreads(__tstate); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
12638 | } | |
12639 | ||
12640 | ||
12641 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12642 | PyObject *resultobj = 0; | |
12643 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12644 | wxLayoutAlignment arg2 ; | |
12645 | void *argp1 = 0 ; | |
12646 | int res1 = 0 ; | |
12647 | int val2 ; | |
12648 | int ecode2 = 0 ; | |
12649 | PyObject * obj0 = 0 ; | |
12650 | PyObject * obj1 = 0 ; | |
12651 | char * kwnames[] = { | |
12652 | (char *) "self",(char *) "alignment", NULL | |
12653 | }; | |
12654 | ||
12655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12657 | if (!SWIG_IsOK(res1)) { | |
12658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12659 | } | |
12660 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12661 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12662 | if (!SWIG_IsOK(ecode2)) { | |
12663 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12664 | } | |
12665 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12666 | { | |
12667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12668 | (arg1)->SetAlignment(arg2); | |
12669 | wxPyEndAllowThreads(__tstate); | |
12670 | if (PyErr_Occurred()) SWIG_fail; | |
12671 | } | |
12672 | resultobj = SWIG_Py_Void(); | |
12673 | return resultobj; | |
12674 | fail: | |
12675 | return NULL; | |
12676 | } | |
12677 | ||
12678 | ||
12679 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12680 | PyObject *resultobj = 0; | |
12681 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12682 | wxSize *arg2 = 0 ; | |
12683 | void *argp1 = 0 ; | |
12684 | int res1 = 0 ; | |
12685 | wxSize temp2 ; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | PyObject * obj1 = 0 ; | |
12688 | char * kwnames[] = { | |
12689 | (char *) "self",(char *) "size", NULL | |
12690 | }; | |
12691 | ||
12692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12694 | if (!SWIG_IsOK(res1)) { | |
12695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12696 | } | |
12697 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12698 | { | |
12699 | arg2 = &temp2; | |
12700 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12701 | } | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12705 | wxPyEndAllowThreads(__tstate); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
12708 | resultobj = SWIG_Py_Void(); | |
12709 | return resultobj; | |
12710 | fail: | |
12711 | return NULL; | |
12712 | } | |
12713 | ||
12714 | ||
12715 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12716 | PyObject *resultobj = 0; | |
12717 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12718 | wxLayoutOrientation arg2 ; | |
12719 | void *argp1 = 0 ; | |
12720 | int res1 = 0 ; | |
12721 | int val2 ; | |
12722 | int ecode2 = 0 ; | |
12723 | PyObject * obj0 = 0 ; | |
12724 | PyObject * obj1 = 0 ; | |
12725 | char * kwnames[] = { | |
12726 | (char *) "self",(char *) "orientation", NULL | |
12727 | }; | |
12728 | ||
12729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12731 | if (!SWIG_IsOK(res1)) { | |
12732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12733 | } | |
12734 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12735 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12736 | if (!SWIG_IsOK(ecode2)) { | |
12737 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12738 | } | |
12739 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | (arg1)->SetOrientation(arg2); | |
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | resultobj = SWIG_Py_Void(); | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
d55e5bfc RD |
12750 | } |
12751 | ||
12752 | ||
1bd55598 RD |
12753 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12754 | PyObject *obj; | |
12755 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12756 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12757 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12758 | } |
12759 | ||
1bd55598 RD |
12760 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12761 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12762 | } |
12763 | ||
1bd55598 RD |
12764 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12765 | PyObject *resultobj = 0; | |
12766 | wxLayoutAlgorithm *result = 0 ; | |
12767 | ||
12768 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12772 | wxPyEndAllowThreads(__tstate); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | } | |
12775 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
d55e5bfc RD |
12779 | } |
12780 | ||
12781 | ||
1bd55598 RD |
12782 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12783 | PyObject *resultobj = 0; | |
12784 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12785 | void *argp1 = 0 ; | |
12786 | int res1 = 0 ; | |
12787 | PyObject *swig_obj[1] ; | |
12788 | ||
12789 | if (!args) SWIG_fail; | |
12790 | swig_obj[0] = args; | |
12791 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12792 | if (!SWIG_IsOK(res1)) { | |
12793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12794 | } | |
12795 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12796 | { | |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | delete arg1; | |
d55e5bfc | 12799 | |
1bd55598 RD |
12800 | wxPyEndAllowThreads(__tstate); |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | resultobj = SWIG_Py_Void(); | |
12804 | return resultobj; | |
12805 | fail: | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
12810 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12811 | PyObject *resultobj = 0; | |
12812 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12813 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
12814 | wxRect *arg3 = (wxRect *) NULL ; | |
12815 | bool result; | |
12816 | void *argp1 = 0 ; | |
12817 | int res1 = 0 ; | |
12818 | void *argp2 = 0 ; | |
12819 | int res2 = 0 ; | |
12820 | void *argp3 = 0 ; | |
12821 | int res3 = 0 ; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | PyObject * obj1 = 0 ; | |
12824 | PyObject * obj2 = 0 ; | |
12825 | char * kwnames[] = { | |
12826 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
12827 | }; | |
12828 | ||
12829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12831 | if (!SWIG_IsOK(res1)) { | |
12832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12833 | } | |
12834 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12835 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
12836 | if (!SWIG_IsOK(res2)) { | |
12837 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
12838 | } | |
12839 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
12840 | if (obj2) { | |
12841 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
12842 | if (!SWIG_IsOK(res3)) { | |
12843 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
36ed4f51 | 12844 | } |
1bd55598 RD |
12845 | arg3 = reinterpret_cast< wxRect * >(argp3); |
12846 | } | |
12847 | { | |
12848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12849 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
12850 | wxPyEndAllowThreads(__tstate); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
12853 | { | |
12854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12855 | } | |
12856 | return resultobj; | |
12857 | fail: | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
12862 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj = 0; | |
12864 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12865 | wxFrame *arg2 = (wxFrame *) 0 ; | |
12866 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12867 | bool result; | |
12868 | void *argp1 = 0 ; | |
12869 | int res1 = 0 ; | |
12870 | void *argp2 = 0 ; | |
12871 | int res2 = 0 ; | |
12872 | void *argp3 = 0 ; | |
12873 | int res3 = 0 ; | |
12874 | PyObject * obj0 = 0 ; | |
12875 | PyObject * obj1 = 0 ; | |
12876 | PyObject * obj2 = 0 ; | |
12877 | char * kwnames[] = { | |
12878 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
12879 | }; | |
12880 | ||
12881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12883 | if (!SWIG_IsOK(res1)) { | |
12884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12885 | } | |
12886 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12887 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
12888 | if (!SWIG_IsOK(res2)) { | |
12889 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
12890 | } | |
12891 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
12892 | if (obj2) { | |
12893 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12894 | if (!SWIG_IsOK(res3)) { | |
12895 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
36ed4f51 | 12896 | } |
1bd55598 RD |
12897 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12898 | } | |
12899 | { | |
12900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12901 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
12902 | wxPyEndAllowThreads(__tstate); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | { | |
12906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12907 | } | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12915 | PyObject *resultobj = 0; | |
12916 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12917 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12918 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12919 | bool result; | |
12920 | void *argp1 = 0 ; | |
12921 | int res1 = 0 ; | |
12922 | void *argp2 = 0 ; | |
12923 | int res2 = 0 ; | |
12924 | void *argp3 = 0 ; | |
12925 | int res3 = 0 ; | |
12926 | PyObject * obj0 = 0 ; | |
12927 | PyObject * obj1 = 0 ; | |
12928 | PyObject * obj2 = 0 ; | |
12929 | char * kwnames[] = { | |
12930 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
12931 | }; | |
12932 | ||
12933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12935 | if (!SWIG_IsOK(res1)) { | |
12936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12937 | } | |
12938 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12939 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12940 | if (!SWIG_IsOK(res2)) { | |
12941 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12942 | } | |
12943 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12944 | if (obj2) { | |
12945 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12946 | if (!SWIG_IsOK(res3)) { | |
12947 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 12948 | } |
1bd55598 RD |
12949 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12950 | } | |
12951 | { | |
12952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12953 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
12954 | wxPyEndAllowThreads(__tstate); | |
12955 | if (PyErr_Occurred()) SWIG_fail; | |
12956 | } | |
12957 | { | |
12958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12959 | } | |
12960 | return resultobj; | |
12961 | fail: | |
12962 | return NULL; | |
d55e5bfc RD |
12963 | } |
12964 | ||
12965 | ||
1bd55598 RD |
12966 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12967 | PyObject *obj; | |
12968 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12969 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
12970 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12971 | } |
12972 | ||
1bd55598 RD |
12973 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12974 | return SWIG_Python_InitShadowInstance(args); | |
5cbf236d RD |
12975 | } |
12976 | ||
1bd55598 RD |
12977 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12978 | PyObject *resultobj = 0; | |
12979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12980 | int arg2 = (int) wxBORDER_NONE ; | |
12981 | wxPopupWindow *result = 0 ; | |
12982 | void *argp1 = 0 ; | |
12983 | int res1 = 0 ; | |
12984 | int val2 ; | |
12985 | int ecode2 = 0 ; | |
12986 | PyObject * obj0 = 0 ; | |
12987 | PyObject * obj1 = 0 ; | |
12988 | char * kwnames[] = { | |
12989 | (char *) "parent",(char *) "flags", NULL | |
12990 | }; | |
12991 | ||
12992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
12993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12994 | if (!SWIG_IsOK(res1)) { | |
12995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12996 | } | |
12997 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12998 | if (obj1) { | |
12999 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13000 | if (!SWIG_IsOK(ecode2)) { | |
13001 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
13002 | } | |
13003 | arg2 = static_cast< int >(val2); | |
13004 | } | |
13005 | { | |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
13008 | wxPyEndAllowThreads(__tstate); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
13011 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
5cbf236d RD |
13015 | } |
13016 | ||
13017 | ||
1bd55598 RD |
13018 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13019 | PyObject *resultobj = 0; | |
13020 | wxPopupWindow *result = 0 ; | |
13021 | ||
13022 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | result = (wxPopupWindow *)new wxPopupWindow(); | |
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
13029 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | return NULL; | |
d55e5bfc RD |
13033 | } |
13034 | ||
13035 | ||
1bd55598 RD |
13036 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13037 | PyObject *obj; | |
13038 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13039 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13040 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13041 | } |
13042 | ||
1bd55598 RD |
13043 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13044 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13045 | } |
13046 | ||
1bd55598 RD |
13047 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13048 | PyObject *resultobj = 0; | |
13049 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13050 | int arg2 = (int) wxBORDER_NONE ; | |
13051 | wxPyPopupTransientWindow *result = 0 ; | |
13052 | void *argp1 = 0 ; | |
13053 | int res1 = 0 ; | |
13054 | int val2 ; | |
13055 | int ecode2 = 0 ; | |
13056 | PyObject * obj0 = 0 ; | |
13057 | PyObject * obj1 = 0 ; | |
13058 | char * kwnames[] = { | |
13059 | (char *) "parent",(char *) "style", NULL | |
13060 | }; | |
13061 | ||
13062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13064 | if (!SWIG_IsOK(res1)) { | |
13065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13066 | } | |
13067 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13068 | if (obj1) { | |
13069 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13070 | if (!SWIG_IsOK(ecode2)) { | |
13071 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13072 | } | |
13073 | arg2 = static_cast< int >(val2); | |
13074 | } | |
13075 | { | |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
13081 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13082 | return resultobj; | |
13083 | fail: | |
13084 | return NULL; | |
d55e5bfc RD |
13085 | } |
13086 | ||
13087 | ||
1bd55598 RD |
13088 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13089 | PyObject *resultobj = 0; | |
13090 | wxPyPopupTransientWindow *result = 0 ; | |
13091 | ||
13092 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13107 | PyObject *obj; | |
13108 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13109 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13110 | return SWIG_Py_Void(); | |
13111 | } | |
13112 | ||
13113 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13114 | return SWIG_Python_InitShadowInstance(args); | |
13115 | } | |
13116 | ||
13117 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13118 | PyObject *resultobj = 0; | |
13119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13120 | wxString *arg2 = 0 ; | |
13121 | int arg3 = (int) 100 ; | |
13122 | wxRect *arg4 = (wxRect *) NULL ; | |
13123 | wxTipWindow *result = 0 ; | |
13124 | void *argp1 = 0 ; | |
13125 | int res1 = 0 ; | |
13126 | bool temp2 = false ; | |
13127 | int val3 ; | |
13128 | int ecode3 = 0 ; | |
13129 | void *argp4 = 0 ; | |
13130 | int res4 = 0 ; | |
13131 | PyObject * obj0 = 0 ; | |
13132 | PyObject * obj1 = 0 ; | |
13133 | PyObject * obj2 = 0 ; | |
13134 | PyObject * obj3 = 0 ; | |
13135 | char * kwnames[] = { | |
13136 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13137 | }; | |
13138 | ||
13139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13141 | if (!SWIG_IsOK(res1)) { | |
13142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13143 | } | |
13144 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13145 | { | |
13146 | arg2 = wxString_in_helper(obj1); | |
13147 | if (arg2 == NULL) SWIG_fail; | |
13148 | temp2 = true; | |
13149 | } | |
13150 | if (obj2) { | |
13151 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13152 | if (!SWIG_IsOK(ecode3)) { | |
13153 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13154 | } | |
13155 | arg3 = static_cast< int >(val3); | |
13156 | } | |
13157 | if (obj3) { | |
13158 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13159 | if (!SWIG_IsOK(res4)) { | |
13160 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
36ed4f51 | 13161 | } |
1bd55598 RD |
13162 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13163 | } | |
13164 | { | |
13165 | if (!wxPyCheckForApp()) SWIG_fail; | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13172 | { | |
13173 | if (temp2) | |
13174 | delete arg2; | |
13175 | } | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | { | |
13179 | if (temp2) | |
13180 | delete arg2; | |
13181 | } | |
13182 | return NULL; | |
d55e5bfc RD |
13183 | } |
13184 | ||
13185 | ||
1bd55598 RD |
13186 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13187 | PyObject *resultobj = 0; | |
13188 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13189 | wxRect *arg2 = 0 ; | |
13190 | void *argp1 = 0 ; | |
13191 | int res1 = 0 ; | |
13192 | wxRect temp2 ; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | PyObject * obj1 = 0 ; | |
13195 | char * kwnames[] = { | |
13196 | (char *) "self",(char *) "rectBound", NULL | |
13197 | }; | |
13198 | ||
13199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13201 | if (!SWIG_IsOK(res1)) { | |
13202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13203 | } | |
13204 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13205 | { | |
13206 | arg2 = &temp2; | |
13207 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13208 | } | |
13209 | { | |
13210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13211 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13212 | wxPyEndAllowThreads(__tstate); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | resultobj = SWIG_Py_Void(); | |
13216 | return resultobj; | |
13217 | fail: | |
13218 | return NULL; | |
d55e5bfc RD |
13219 | } |
13220 | ||
13221 | ||
1bd55598 RD |
13222 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13223 | PyObject *resultobj = 0; | |
13224 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13225 | void *argp1 = 0 ; | |
13226 | int res1 = 0 ; | |
13227 | PyObject *swig_obj[1] ; | |
13228 | ||
13229 | if (!args) SWIG_fail; | |
13230 | swig_obj[0] = args; | |
13231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13232 | if (!SWIG_IsOK(res1)) { | |
13233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13234 | } | |
13235 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13236 | { | |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | (arg1)->Close(); | |
13239 | wxPyEndAllowThreads(__tstate); | |
13240 | if (PyErr_Occurred()) SWIG_fail; | |
13241 | } | |
13242 | resultobj = SWIG_Py_Void(); | |
13243 | return resultobj; | |
13244 | fail: | |
13245 | return NULL; | |
13246 | } | |
13247 | ||
13248 | ||
13249 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13250 | PyObject *obj; | |
13251 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13252 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13253 | return SWIG_Py_Void(); | |
13254 | } | |
13255 | ||
13256 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13257 | return SWIG_Python_InitShadowInstance(args); | |
13258 | } | |
13259 | ||
13260 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13261 | PyObject *resultobj = 0; | |
13262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13263 | int arg2 = (int) wxID_ANY ; | |
13264 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13265 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13266 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13267 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13268 | long arg5 = (long) 0 ; | |
13269 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13270 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13271 | wxPyVScrolledWindow *result = 0 ; | |
13272 | void *argp1 = 0 ; | |
13273 | int res1 = 0 ; | |
13274 | int val2 ; | |
13275 | int ecode2 = 0 ; | |
13276 | wxPoint temp3 ; | |
13277 | wxSize temp4 ; | |
13278 | long val5 ; | |
13279 | int ecode5 = 0 ; | |
13280 | bool temp6 = false ; | |
13281 | PyObject * obj0 = 0 ; | |
13282 | PyObject * obj1 = 0 ; | |
13283 | PyObject * obj2 = 0 ; | |
13284 | PyObject * obj3 = 0 ; | |
13285 | PyObject * obj4 = 0 ; | |
13286 | PyObject * obj5 = 0 ; | |
13287 | char * kwnames[] = { | |
13288 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13289 | }; | |
13290 | ||
13291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13293 | if (!SWIG_IsOK(res1)) { | |
13294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13295 | } | |
13296 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13297 | if (obj1) { | |
13298 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13299 | if (!SWIG_IsOK(ecode2)) { | |
13300 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13301 | } | |
13302 | arg2 = static_cast< int >(val2); | |
13303 | } | |
13304 | if (obj2) { | |
f20a2e1f | 13305 | { |
1bd55598 RD |
13306 | arg3 = &temp3; |
13307 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 13308 | } |
1bd55598 RD |
13309 | } |
13310 | if (obj3) { | |
f20a2e1f | 13311 | { |
1bd55598 RD |
13312 | arg4 = &temp4; |
13313 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13314 | } |
1bd55598 RD |
13315 | } |
13316 | if (obj4) { | |
13317 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13318 | if (!SWIG_IsOK(ecode5)) { | |
13319 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13320 | } | |
13321 | arg5 = static_cast< long >(val5); | |
13322 | } | |
13323 | if (obj5) { | |
36ed4f51 | 13324 | { |
1bd55598 RD |
13325 | arg6 = wxString_in_helper(obj5); |
13326 | if (arg6 == NULL) SWIG_fail; | |
13327 | temp6 = true; | |
36ed4f51 | 13328 | } |
1bd55598 RD |
13329 | } |
13330 | { | |
13331 | if (!wxPyCheckForApp()) SWIG_fail; | |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13333 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13338 | { | |
13339 | if (temp6) | |
13340 | delete arg6; | |
13341 | } | |
13342 | return resultobj; | |
13343 | fail: | |
13344 | { | |
13345 | if (temp6) | |
13346 | delete arg6; | |
13347 | } | |
13348 | return NULL; | |
d55e5bfc RD |
13349 | } |
13350 | ||
13351 | ||
1bd55598 RD |
13352 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13353 | PyObject *resultobj = 0; | |
13354 | wxPyVScrolledWindow *result = 0 ; | |
13355 | ||
13356 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13357 | { | |
13358 | if (!wxPyCheckForApp()) SWIG_fail; | |
13359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13360 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13361 | wxPyEndAllowThreads(__tstate); | |
13362 | if (PyErr_Occurred()) SWIG_fail; | |
13363 | } | |
13364 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13365 | return resultobj; | |
13366 | fail: | |
13367 | return NULL; | |
13368 | } | |
13369 | ||
13370 | ||
13371 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13372 | PyObject *resultobj = 0; | |
13373 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13374 | PyObject *arg2 = (PyObject *) 0 ; | |
13375 | PyObject *arg3 = (PyObject *) 0 ; | |
13376 | void *argp1 = 0 ; | |
13377 | int res1 = 0 ; | |
13378 | PyObject * obj0 = 0 ; | |
13379 | PyObject * obj1 = 0 ; | |
13380 | PyObject * obj2 = 0 ; | |
13381 | char * kwnames[] = { | |
13382 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13383 | }; | |
13384 | ||
13385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13387 | if (!SWIG_IsOK(res1)) { | |
13388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13389 | } | |
13390 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13391 | arg2 = obj1; | |
13392 | arg3 = obj2; | |
13393 | { | |
13394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13395 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13396 | wxPyEndAllowThreads(__tstate); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | } | |
13399 | resultobj = SWIG_Py_Void(); | |
13400 | return resultobj; | |
13401 | fail: | |
13402 | return NULL; | |
13403 | } | |
13404 | ||
13405 | ||
13406 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13407 | PyObject *resultobj = 0; | |
13408 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13409 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13410 | int arg3 = (int) wxID_ANY ; | |
13411 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13412 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13413 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13414 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13415 | long arg6 = (long) 0 ; | |
13416 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13417 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13418 | bool result; | |
13419 | void *argp1 = 0 ; | |
13420 | int res1 = 0 ; | |
13421 | void *argp2 = 0 ; | |
13422 | int res2 = 0 ; | |
13423 | int val3 ; | |
13424 | int ecode3 = 0 ; | |
13425 | wxPoint temp4 ; | |
13426 | wxSize temp5 ; | |
13427 | long val6 ; | |
13428 | int ecode6 = 0 ; | |
13429 | bool temp7 = false ; | |
13430 | PyObject * obj0 = 0 ; | |
13431 | PyObject * obj1 = 0 ; | |
13432 | PyObject * obj2 = 0 ; | |
13433 | PyObject * obj3 = 0 ; | |
13434 | PyObject * obj4 = 0 ; | |
13435 | PyObject * obj5 = 0 ; | |
13436 | PyObject * obj6 = 0 ; | |
13437 | char * kwnames[] = { | |
13438 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13439 | }; | |
13440 | ||
13441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13443 | if (!SWIG_IsOK(res1)) { | |
13444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13445 | } | |
13446 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13447 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13448 | if (!SWIG_IsOK(res2)) { | |
13449 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13450 | } | |
13451 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13452 | if (obj2) { | |
13453 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13454 | if (!SWIG_IsOK(ecode3)) { | |
13455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13456 | } | |
13457 | arg3 = static_cast< int >(val3); | |
13458 | } | |
13459 | if (obj3) { | |
d55e5bfc | 13460 | { |
1bd55598 RD |
13461 | arg4 = &temp4; |
13462 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13463 | } |
1bd55598 RD |
13464 | } |
13465 | if (obj4) { | |
36ed4f51 | 13466 | { |
1bd55598 RD |
13467 | arg5 = &temp5; |
13468 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 13469 | } |
1bd55598 RD |
13470 | } |
13471 | if (obj5) { | |
13472 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13473 | if (!SWIG_IsOK(ecode6)) { | |
13474 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13475 | } | |
13476 | arg6 = static_cast< long >(val6); | |
13477 | } | |
13478 | if (obj6) { | |
d55e5bfc | 13479 | { |
1bd55598 RD |
13480 | arg7 = wxString_in_helper(obj6); |
13481 | if (arg7 == NULL) SWIG_fail; | |
13482 | temp7 = true; | |
d55e5bfc | 13483 | } |
1bd55598 RD |
13484 | } |
13485 | { | |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13488 | wxPyEndAllowThreads(__tstate); | |
13489 | if (PyErr_Occurred()) SWIG_fail; | |
13490 | } | |
13491 | { | |
13492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13493 | } | |
13494 | { | |
13495 | if (temp7) | |
13496 | delete arg7; | |
13497 | } | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | { | |
13501 | if (temp7) | |
13502 | delete arg7; | |
13503 | } | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
13508 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13509 | PyObject *resultobj = 0; | |
13510 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13511 | size_t arg2 ; | |
13512 | void *argp1 = 0 ; | |
13513 | int res1 = 0 ; | |
13514 | size_t val2 ; | |
13515 | int ecode2 = 0 ; | |
13516 | PyObject * obj0 = 0 ; | |
13517 | PyObject * obj1 = 0 ; | |
13518 | char * kwnames[] = { | |
13519 | (char *) "self",(char *) "count", NULL | |
13520 | }; | |
13521 | ||
13522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13524 | if (!SWIG_IsOK(res1)) { | |
13525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13526 | } | |
13527 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13528 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13529 | if (!SWIG_IsOK(ecode2)) { | |
13530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13531 | } | |
13532 | arg2 = static_cast< size_t >(val2); | |
13533 | { | |
13534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13535 | (arg1)->SetLineCount(arg2); | |
13536 | wxPyEndAllowThreads(__tstate); | |
13537 | if (PyErr_Occurred()) SWIG_fail; | |
13538 | } | |
13539 | resultobj = SWIG_Py_Void(); | |
13540 | return resultobj; | |
13541 | fail: | |
13542 | return NULL; | |
13543 | } | |
13544 | ||
13545 | ||
13546 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13547 | PyObject *resultobj = 0; | |
13548 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13549 | size_t arg2 ; | |
13550 | bool result; | |
13551 | void *argp1 = 0 ; | |
13552 | int res1 = 0 ; | |
13553 | size_t val2 ; | |
13554 | int ecode2 = 0 ; | |
13555 | PyObject * obj0 = 0 ; | |
13556 | PyObject * obj1 = 0 ; | |
13557 | char * kwnames[] = { | |
13558 | (char *) "self",(char *) "line", NULL | |
13559 | }; | |
13560 | ||
13561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13563 | if (!SWIG_IsOK(res1)) { | |
13564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13565 | } | |
13566 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13567 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13568 | if (!SWIG_IsOK(ecode2)) { | |
13569 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13570 | } | |
13571 | arg2 = static_cast< size_t >(val2); | |
13572 | { | |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13575 | wxPyEndAllowThreads(__tstate); | |
13576 | if (PyErr_Occurred()) SWIG_fail; | |
13577 | } | |
13578 | { | |
13579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13580 | } | |
13581 | return resultobj; | |
13582 | fail: | |
13583 | return NULL; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13588 | PyObject *resultobj = 0; | |
13589 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13590 | size_t arg2 ; | |
13591 | void *argp1 = 0 ; | |
13592 | int res1 = 0 ; | |
13593 | size_t val2 ; | |
13594 | int ecode2 = 0 ; | |
13595 | PyObject * obj0 = 0 ; | |
13596 | PyObject * obj1 = 0 ; | |
13597 | char * kwnames[] = { | |
13598 | (char *) "self",(char *) "line", NULL | |
13599 | }; | |
13600 | ||
13601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13603 | if (!SWIG_IsOK(res1)) { | |
13604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13605 | } | |
13606 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13607 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13608 | if (!SWIG_IsOK(ecode2)) { | |
13609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13610 | } | |
13611 | arg2 = static_cast< size_t >(val2); | |
13612 | { | |
13613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13614 | (arg1)->RefreshLine(arg2); | |
13615 | wxPyEndAllowThreads(__tstate); | |
13616 | if (PyErr_Occurred()) SWIG_fail; | |
13617 | } | |
13618 | resultobj = SWIG_Py_Void(); | |
13619 | return resultobj; | |
13620 | fail: | |
13621 | return NULL; | |
13622 | } | |
13623 | ||
13624 | ||
13625 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13626 | PyObject *resultobj = 0; | |
13627 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13628 | size_t arg2 ; | |
13629 | size_t arg3 ; | |
13630 | void *argp1 = 0 ; | |
13631 | int res1 = 0 ; | |
13632 | size_t val2 ; | |
13633 | int ecode2 = 0 ; | |
13634 | size_t val3 ; | |
13635 | int ecode3 = 0 ; | |
13636 | PyObject * obj0 = 0 ; | |
13637 | PyObject * obj1 = 0 ; | |
13638 | PyObject * obj2 = 0 ; | |
13639 | char * kwnames[] = { | |
2131d850 | 13640 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
13641 | }; |
13642 | ||
13643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13645 | if (!SWIG_IsOK(res1)) { | |
13646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13647 | } | |
13648 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13649 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13650 | if (!SWIG_IsOK(ecode2)) { | |
13651 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
13652 | } | |
13653 | arg2 = static_cast< size_t >(val2); | |
13654 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
13655 | if (!SWIG_IsOK(ecode3)) { | |
13656 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
13657 | } | |
13658 | arg3 = static_cast< size_t >(val3); | |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | (arg1)->RefreshLines(arg2,arg3); | |
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | resultobj = SWIG_Py_Void(); | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj = 0; | |
13674 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13675 | int arg2 ; | |
13676 | int arg3 ; | |
13677 | int result; | |
13678 | void *argp1 = 0 ; | |
13679 | int res1 = 0 ; | |
13680 | int val2 ; | |
13681 | int ecode2 = 0 ; | |
13682 | int val3 ; | |
13683 | int ecode3 = 0 ; | |
13684 | PyObject * obj0 = 0 ; | |
13685 | PyObject * obj1 = 0 ; | |
13686 | PyObject * obj2 = 0 ; | |
13687 | char * kwnames[] = { | |
13688 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13689 | }; | |
13690 | ||
13691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13693 | if (!SWIG_IsOK(res1)) { | |
13694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13695 | } | |
13696 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13697 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13698 | if (!SWIG_IsOK(ecode2)) { | |
13699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
13700 | } | |
13701 | arg2 = static_cast< int >(val2); | |
13702 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13703 | if (!SWIG_IsOK(ecode3)) { | |
13704 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
13705 | } | |
13706 | arg3 = static_cast< int >(val3); | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13721 | PyObject *resultobj = 0; | |
13722 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13723 | wxPoint *arg2 = 0 ; | |
13724 | int result; | |
13725 | void *argp1 = 0 ; | |
13726 | int res1 = 0 ; | |
13727 | wxPoint temp2 ; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | PyObject * obj1 = 0 ; | |
13730 | char * kwnames[] = { | |
13731 | (char *) "self",(char *) "pt", NULL | |
13732 | }; | |
13733 | ||
13734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13736 | if (!SWIG_IsOK(res1)) { | |
13737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13738 | } | |
13739 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13740 | { | |
13741 | arg2 = &temp2; | |
13742 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13743 | } | |
13744 | { | |
13745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13746 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13751 | return resultobj; | |
13752 | fail: | |
13753 | return NULL; | |
d55e5bfc RD |
13754 | } |
13755 | ||
13756 | ||
1bd55598 RD |
13757 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13758 | PyObject *resultobj = 0; | |
13759 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13760 | void *argp1 = 0 ; | |
13761 | int res1 = 0 ; | |
13762 | PyObject *swig_obj[1] ; | |
13763 | ||
13764 | if (!args) SWIG_fail; | |
13765 | swig_obj[0] = args; | |
13766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13767 | if (!SWIG_IsOK(res1)) { | |
13768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13769 | } | |
13770 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | (arg1)->RefreshAll(); | |
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
13777 | resultobj = SWIG_Py_Void(); | |
13778 | return resultobj; | |
13779 | fail: | |
13780 | return NULL; | |
d55e5bfc RD |
13781 | } |
13782 | ||
13783 | ||
1bd55598 RD |
13784 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13785 | PyObject *resultobj = 0; | |
13786 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13787 | size_t result; | |
13788 | void *argp1 = 0 ; | |
13789 | int res1 = 0 ; | |
13790 | PyObject *swig_obj[1] ; | |
13791 | ||
13792 | if (!args) SWIG_fail; | |
13793 | swig_obj[0] = args; | |
13794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13795 | if (!SWIG_IsOK(res1)) { | |
13796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13797 | } | |
13798 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
13802 | wxPyEndAllowThreads(__tstate); | |
13803 | if (PyErr_Occurred()) SWIG_fail; | |
13804 | } | |
13805 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13806 | return resultobj; | |
13807 | fail: | |
13808 | return NULL; | |
d55e5bfc RD |
13809 | } |
13810 | ||
13811 | ||
1bd55598 RD |
13812 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13813 | PyObject *resultobj = 0; | |
13814 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13815 | size_t result; | |
13816 | void *argp1 = 0 ; | |
13817 | int res1 = 0 ; | |
13818 | PyObject *swig_obj[1] ; | |
13819 | ||
13820 | if (!args) SWIG_fail; | |
13821 | swig_obj[0] = args; | |
13822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13823 | if (!SWIG_IsOK(res1)) { | |
13824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13825 | } | |
13826 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13827 | { | |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13834 | return resultobj; | |
13835 | fail: | |
13836 | return NULL; | |
d55e5bfc RD |
13837 | } |
13838 | ||
13839 | ||
1bd55598 RD |
13840 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13841 | PyObject *resultobj = 0; | |
13842 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13843 | size_t result; | |
13844 | void *argp1 = 0 ; | |
13845 | int res1 = 0 ; | |
13846 | PyObject *swig_obj[1] ; | |
13847 | ||
13848 | if (!args) SWIG_fail; | |
13849 | swig_obj[0] = args; | |
13850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13851 | if (!SWIG_IsOK(res1)) { | |
13852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13853 | } | |
13854 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13855 | { | |
13856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13857 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
13861 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13862 | return resultobj; | |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13869 | PyObject *resultobj = 0; | |
13870 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13871 | size_t arg2 ; | |
13872 | bool result; | |
13873 | void *argp1 = 0 ; | |
13874 | int res1 = 0 ; | |
13875 | size_t val2 ; | |
13876 | int ecode2 = 0 ; | |
13877 | PyObject * obj0 = 0 ; | |
13878 | PyObject * obj1 = 0 ; | |
13879 | char * kwnames[] = { | |
13880 | (char *) "self",(char *) "line", NULL | |
13881 | }; | |
13882 | ||
13883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
13884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13885 | if (!SWIG_IsOK(res1)) { | |
13886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13887 | } | |
13888 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13889 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13890 | if (!SWIG_IsOK(ecode2)) { | |
13891 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
13892 | } | |
13893 | arg2 = static_cast< size_t >(val2); | |
13894 | { | |
13895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13896 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
13897 | wxPyEndAllowThreads(__tstate); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | { | |
13901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13902 | } | |
13903 | return resultobj; | |
13904 | fail: | |
13905 | return NULL; | |
d55e5bfc RD |
13906 | } |
13907 | ||
13908 | ||
1bd55598 RD |
13909 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13910 | PyObject *resultobj = 0; | |
13911 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13912 | size_t result; | |
13913 | void *argp1 = 0 ; | |
13914 | int res1 = 0 ; | |
13915 | PyObject *swig_obj[1] ; | |
13916 | ||
13917 | if (!args) SWIG_fail; | |
13918 | swig_obj[0] = args; | |
13919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13920 | if (!SWIG_IsOK(res1)) { | |
13921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13922 | } | |
13923 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13924 | { | |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
13927 | wxPyEndAllowThreads(__tstate); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | } | |
13930 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13931 | return resultobj; | |
13932 | fail: | |
13933 | return NULL; | |
d55e5bfc RD |
13934 | } |
13935 | ||
13936 | ||
1bd55598 RD |
13937 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13938 | PyObject *resultobj = 0; | |
13939 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13940 | size_t result; | |
13941 | void *argp1 = 0 ; | |
13942 | int res1 = 0 ; | |
13943 | PyObject *swig_obj[1] ; | |
13944 | ||
13945 | if (!args) SWIG_fail; | |
13946 | swig_obj[0] = args; | |
13947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13948 | if (!SWIG_IsOK(res1)) { | |
13949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13950 | } | |
13951 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
13955 | wxPyEndAllowThreads(__tstate); | |
13956 | if (PyErr_Occurred()) SWIG_fail; | |
13957 | } | |
13958 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13959 | return resultobj; | |
13960 | fail: | |
13961 | return NULL; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13966 | PyObject *resultobj = 0; | |
13967 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13968 | size_t arg2 ; | |
13969 | bool arg3 = (bool) false ; | |
13970 | size_t result; | |
13971 | void *argp1 = 0 ; | |
13972 | int res1 = 0 ; | |
13973 | size_t val2 ; | |
13974 | int ecode2 = 0 ; | |
13975 | bool val3 ; | |
13976 | int ecode3 = 0 ; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | PyObject * obj1 = 0 ; | |
13979 | PyObject * obj2 = 0 ; | |
13980 | char * kwnames[] = { | |
13981 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
13982 | }; | |
13983 | ||
13984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13986 | if (!SWIG_IsOK(res1)) { | |
13987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13988 | } | |
13989 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13990 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13991 | if (!SWIG_IsOK(ecode2)) { | |
13992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
13993 | } | |
13994 | arg2 = static_cast< size_t >(val2); | |
13995 | if (obj2) { | |
13996 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13997 | if (!SWIG_IsOK(ecode3)) { | |
13998 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
13999 | } | |
14000 | arg3 = static_cast< bool >(val3); | |
14001 | } | |
14002 | { | |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14005 | wxPyEndAllowThreads(__tstate); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14009 | return resultobj; | |
14010 | fail: | |
14011 | return NULL; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14016 | PyObject *resultobj = 0; | |
14017 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14018 | size_t arg2 ; | |
14019 | size_t arg3 ; | |
14020 | int result; | |
14021 | void *argp1 = 0 ; | |
14022 | int res1 = 0 ; | |
14023 | size_t val2 ; | |
14024 | int ecode2 = 0 ; | |
14025 | size_t val3 ; | |
14026 | int ecode3 = 0 ; | |
14027 | PyObject * obj0 = 0 ; | |
14028 | PyObject * obj1 = 0 ; | |
14029 | PyObject * obj2 = 0 ; | |
14030 | char * kwnames[] = { | |
14031 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14032 | }; | |
14033 | ||
14034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14036 | if (!SWIG_IsOK(res1)) { | |
14037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14038 | } | |
14039 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14040 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14041 | if (!SWIG_IsOK(ecode2)) { | |
14042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14043 | } | |
14044 | arg2 = static_cast< size_t >(val2); | |
14045 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14046 | if (!SWIG_IsOK(ecode3)) { | |
14047 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14048 | } | |
14049 | arg3 = static_cast< size_t >(val3); | |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14057 | return resultobj; | |
14058 | fail: | |
14059 | return NULL; | |
d55e5bfc RD |
14060 | } |
14061 | ||
14062 | ||
1bd55598 RD |
14063 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14064 | PyObject *obj; | |
14065 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14066 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14067 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14068 | } |
14069 | ||
1bd55598 RD |
14070 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14071 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14072 | } |
14073 | ||
1bd55598 RD |
14074 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14075 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14076 | return 1; | |
d55e5bfc RD |
14077 | } |
14078 | ||
14079 | ||
1bd55598 RD |
14080 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14081 | PyObject *pyobj = 0; | |
14082 | ||
14083 | { | |
14084 | #if wxUSE_UNICODE | |
14085 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14086 | #else | |
14087 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14088 | #endif | |
14089 | } | |
14090 | return pyobj; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14095 | PyObject *resultobj = 0; | |
14096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14097 | int arg2 = (int) wxID_ANY ; | |
14098 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14099 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14100 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14101 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14102 | long arg5 = (long) 0 ; | |
14103 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14104 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14105 | wxPyVListBox *result = 0 ; | |
14106 | void *argp1 = 0 ; | |
14107 | int res1 = 0 ; | |
14108 | int val2 ; | |
14109 | int ecode2 = 0 ; | |
14110 | wxPoint temp3 ; | |
14111 | wxSize temp4 ; | |
14112 | long val5 ; | |
14113 | int ecode5 = 0 ; | |
14114 | bool temp6 = false ; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | PyObject * obj1 = 0 ; | |
14117 | PyObject * obj2 = 0 ; | |
14118 | PyObject * obj3 = 0 ; | |
14119 | PyObject * obj4 = 0 ; | |
14120 | PyObject * obj5 = 0 ; | |
14121 | char * kwnames[] = { | |
14122 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14123 | }; | |
14124 | ||
14125 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14127 | if (!SWIG_IsOK(res1)) { | |
14128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14129 | } | |
14130 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14131 | if (obj1) { | |
14132 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14133 | if (!SWIG_IsOK(ecode2)) { | |
14134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14135 | } | |
14136 | arg2 = static_cast< int >(val2); | |
14137 | } | |
14138 | if (obj2) { | |
36ed4f51 | 14139 | { |
1bd55598 RD |
14140 | arg3 = &temp3; |
14141 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36ed4f51 | 14142 | } |
1bd55598 RD |
14143 | } |
14144 | if (obj3) { | |
d55e5bfc | 14145 | { |
1bd55598 RD |
14146 | arg4 = &temp4; |
14147 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14148 | } |
1bd55598 RD |
14149 | } |
14150 | if (obj4) { | |
14151 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14152 | if (!SWIG_IsOK(ecode5)) { | |
14153 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14154 | } | |
14155 | arg5 = static_cast< long >(val5); | |
14156 | } | |
14157 | if (obj5) { | |
d55e5bfc | 14158 | { |
1bd55598 RD |
14159 | arg6 = wxString_in_helper(obj5); |
14160 | if (arg6 == NULL) SWIG_fail; | |
14161 | temp6 = true; | |
d55e5bfc | 14162 | } |
1bd55598 RD |
14163 | } |
14164 | { | |
14165 | if (!wxPyCheckForApp()) SWIG_fail; | |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14168 | wxPyEndAllowThreads(__tstate); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
14170 | } | |
14171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14172 | { | |
14173 | if (temp6) | |
14174 | delete arg6; | |
14175 | } | |
14176 | return resultobj; | |
14177 | fail: | |
14178 | { | |
14179 | if (temp6) | |
14180 | delete arg6; | |
14181 | } | |
14182 | return NULL; | |
d55e5bfc RD |
14183 | } |
14184 | ||
14185 | ||
1bd55598 RD |
14186 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14187 | PyObject *resultobj = 0; | |
14188 | wxPyVListBox *result = 0 ; | |
14189 | ||
14190 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14191 | { | |
14192 | if (!wxPyCheckForApp()) SWIG_fail; | |
14193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14194 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14195 | wxPyEndAllowThreads(__tstate); | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | } | |
14198 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14199 | return resultobj; | |
14200 | fail: | |
14201 | return NULL; | |
14202 | } | |
14203 | ||
14204 | ||
14205 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14206 | PyObject *resultobj = 0; | |
14207 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14208 | PyObject *arg2 = (PyObject *) 0 ; | |
14209 | PyObject *arg3 = (PyObject *) 0 ; | |
14210 | void *argp1 = 0 ; | |
14211 | int res1 = 0 ; | |
14212 | PyObject * obj0 = 0 ; | |
14213 | PyObject * obj1 = 0 ; | |
14214 | PyObject * obj2 = 0 ; | |
14215 | char * kwnames[] = { | |
14216 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14217 | }; | |
14218 | ||
14219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14221 | if (!SWIG_IsOK(res1)) { | |
14222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14223 | } | |
14224 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14225 | arg2 = obj1; | |
14226 | arg3 = obj2; | |
14227 | { | |
14228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14229 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | resultobj = SWIG_Py_Void(); | |
14234 | return resultobj; | |
14235 | fail: | |
14236 | return NULL; | |
14237 | } | |
14238 | ||
14239 | ||
14240 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14241 | PyObject *resultobj = 0; | |
14242 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14243 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14244 | int arg3 = (int) wxID_ANY ; | |
14245 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14246 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14247 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14248 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14249 | long arg6 = (long) 0 ; | |
14250 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14251 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14252 | bool result; | |
14253 | void *argp1 = 0 ; | |
14254 | int res1 = 0 ; | |
14255 | void *argp2 = 0 ; | |
14256 | int res2 = 0 ; | |
14257 | int val3 ; | |
14258 | int ecode3 = 0 ; | |
14259 | wxPoint temp4 ; | |
14260 | wxSize temp5 ; | |
14261 | long val6 ; | |
14262 | int ecode6 = 0 ; | |
14263 | bool temp7 = false ; | |
14264 | PyObject * obj0 = 0 ; | |
14265 | PyObject * obj1 = 0 ; | |
14266 | PyObject * obj2 = 0 ; | |
14267 | PyObject * obj3 = 0 ; | |
14268 | PyObject * obj4 = 0 ; | |
14269 | PyObject * obj5 = 0 ; | |
14270 | PyObject * obj6 = 0 ; | |
14271 | char * kwnames[] = { | |
14272 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14273 | }; | |
14274 | ||
14275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14277 | if (!SWIG_IsOK(res1)) { | |
14278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14279 | } | |
14280 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14281 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14282 | if (!SWIG_IsOK(res2)) { | |
14283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14284 | } | |
14285 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14286 | if (obj2) { | |
14287 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14288 | if (!SWIG_IsOK(ecode3)) { | |
14289 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14290 | } | |
14291 | arg3 = static_cast< int >(val3); | |
14292 | } | |
14293 | if (obj3) { | |
36ed4f51 | 14294 | { |
1bd55598 RD |
14295 | arg4 = &temp4; |
14296 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 14297 | } |
1bd55598 RD |
14298 | } |
14299 | if (obj4) { | |
36ed4f51 | 14300 | { |
1bd55598 RD |
14301 | arg5 = &temp5; |
14302 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 14303 | } |
1bd55598 RD |
14304 | } |
14305 | if (obj5) { | |
14306 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14307 | if (!SWIG_IsOK(ecode6)) { | |
14308 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14309 | } | |
14310 | arg6 = static_cast< long >(val6); | |
14311 | } | |
14312 | if (obj6) { | |
d55e5bfc | 14313 | { |
1bd55598 RD |
14314 | arg7 = wxString_in_helper(obj6); |
14315 | if (arg7 == NULL) SWIG_fail; | |
14316 | temp7 = true; | |
14317 | } | |
14318 | } | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
14325 | { | |
14326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14327 | } | |
14328 | { | |
14329 | if (temp7) | |
14330 | delete arg7; | |
14331 | } | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | { | |
14335 | if (temp7) | |
14336 | delete arg7; | |
14337 | } | |
14338 | return NULL; | |
d55e5bfc RD |
14339 | } |
14340 | ||
14341 | ||
1bd55598 RD |
14342 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14343 | PyObject *resultobj = 0; | |
14344 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14345 | size_t result; | |
14346 | void *argp1 = 0 ; | |
14347 | int res1 = 0 ; | |
14348 | PyObject *swig_obj[1] ; | |
14349 | ||
14350 | if (!args) SWIG_fail; | |
14351 | swig_obj[0] = args; | |
14352 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14353 | if (!SWIG_IsOK(res1)) { | |
14354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14355 | } | |
14356 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14357 | { | |
14358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14359 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14360 | wxPyEndAllowThreads(__tstate); | |
14361 | if (PyErr_Occurred()) SWIG_fail; | |
14362 | } | |
14363 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14364 | return resultobj; | |
14365 | fail: | |
14366 | return NULL; | |
d55e5bfc RD |
14367 | } |
14368 | ||
14369 | ||
1bd55598 RD |
14370 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14371 | PyObject *resultobj = 0; | |
14372 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14373 | bool result; | |
14374 | void *argp1 = 0 ; | |
14375 | int res1 = 0 ; | |
14376 | PyObject *swig_obj[1] ; | |
14377 | ||
14378 | if (!args) SWIG_fail; | |
14379 | swig_obj[0] = args; | |
14380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14381 | if (!SWIG_IsOK(res1)) { | |
14382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14383 | } | |
14384 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14385 | { | |
14386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14387 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | { | |
14392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14393 | } | |
14394 | return resultobj; | |
14395 | fail: | |
14396 | return NULL; | |
d55e5bfc RD |
14397 | } |
14398 | ||
14399 | ||
1bd55598 RD |
14400 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14401 | PyObject *resultobj = 0; | |
14402 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14403 | int result; | |
14404 | void *argp1 = 0 ; | |
14405 | int res1 = 0 ; | |
14406 | PyObject *swig_obj[1] ; | |
14407 | ||
14408 | if (!args) SWIG_fail; | |
14409 | swig_obj[0] = args; | |
14410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14411 | if (!SWIG_IsOK(res1)) { | |
14412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14413 | } | |
14414 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14415 | { | |
14416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14417 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14418 | wxPyEndAllowThreads(__tstate); | |
14419 | if (PyErr_Occurred()) SWIG_fail; | |
14420 | } | |
14421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14422 | return resultobj; | |
14423 | fail: | |
14424 | return NULL; | |
14425 | } | |
14426 | ||
14427 | ||
14428 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14429 | PyObject *resultobj = 0; | |
14430 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14431 | size_t arg2 ; | |
14432 | bool result; | |
14433 | void *argp1 = 0 ; | |
14434 | int res1 = 0 ; | |
14435 | size_t val2 ; | |
14436 | int ecode2 = 0 ; | |
14437 | PyObject * obj0 = 0 ; | |
14438 | PyObject * obj1 = 0 ; | |
14439 | char * kwnames[] = { | |
14440 | (char *) "self",(char *) "item", NULL | |
14441 | }; | |
14442 | ||
14443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14445 | if (!SWIG_IsOK(res1)) { | |
14446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14447 | } | |
14448 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14449 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14450 | if (!SWIG_IsOK(ecode2)) { | |
14451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14452 | } | |
14453 | arg2 = static_cast< size_t >(val2); | |
14454 | { | |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14457 | wxPyEndAllowThreads(__tstate); | |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
14459 | } | |
14460 | { | |
14461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14462 | } | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14470 | PyObject *resultobj = 0; | |
14471 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14472 | size_t arg2 ; | |
14473 | bool result; | |
14474 | void *argp1 = 0 ; | |
14475 | int res1 = 0 ; | |
14476 | size_t val2 ; | |
14477 | int ecode2 = 0 ; | |
14478 | PyObject * obj0 = 0 ; | |
14479 | PyObject * obj1 = 0 ; | |
14480 | char * kwnames[] = { | |
14481 | (char *) "self",(char *) "item", NULL | |
14482 | }; | |
14483 | ||
14484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14486 | if (!SWIG_IsOK(res1)) { | |
14487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14488 | } | |
14489 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14490 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14491 | if (!SWIG_IsOK(ecode2)) { | |
14492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14493 | } | |
14494 | arg2 = static_cast< size_t >(val2); | |
14495 | { | |
14496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14497 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14498 | wxPyEndAllowThreads(__tstate); | |
14499 | if (PyErr_Occurred()) SWIG_fail; | |
14500 | } | |
14501 | { | |
14502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14503 | } | |
14504 | return resultobj; | |
14505 | fail: | |
14506 | return NULL; | |
d55e5bfc RD |
14507 | } |
14508 | ||
14509 | ||
1bd55598 RD |
14510 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14511 | PyObject *resultobj = 0; | |
14512 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14513 | size_t result; | |
14514 | void *argp1 = 0 ; | |
14515 | int res1 = 0 ; | |
14516 | PyObject *swig_obj[1] ; | |
14517 | ||
14518 | if (!args) SWIG_fail; | |
14519 | swig_obj[0] = args; | |
14520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14521 | if (!SWIG_IsOK(res1)) { | |
14522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14523 | } | |
14524 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14525 | { | |
14526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14527 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
14531 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14532 | return resultobj; | |
14533 | fail: | |
14534 | return NULL; | |
d55e5bfc RD |
14535 | } |
14536 | ||
14537 | ||
1bd55598 RD |
14538 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14539 | PyObject *resultobj = 0; | |
14540 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14541 | PyObject *result = 0 ; | |
14542 | void *argp1 = 0 ; | |
14543 | int res1 = 0 ; | |
14544 | PyObject *swig_obj[1] ; | |
14545 | ||
14546 | if (!args) SWIG_fail; | |
14547 | swig_obj[0] = args; | |
14548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14549 | if (!SWIG_IsOK(res1)) { | |
14550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14551 | } | |
14552 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14553 | { | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | resultobj = result; | |
14560 | return resultobj; | |
14561 | fail: | |
14562 | return NULL; | |
14563 | } | |
14564 | ||
14565 | ||
14566 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14567 | PyObject *resultobj = 0; | |
14568 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14569 | unsigned long arg2 ; | |
14570 | PyObject *result = 0 ; | |
14571 | void *argp1 = 0 ; | |
14572 | int res1 = 0 ; | |
14573 | unsigned long val2 ; | |
14574 | int ecode2 = 0 ; | |
14575 | PyObject * obj0 = 0 ; | |
14576 | PyObject * obj1 = 0 ; | |
14577 | char * kwnames[] = { | |
14578 | (char *) "self",(char *) "cookie", NULL | |
14579 | }; | |
14580 | ||
14581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14583 | if (!SWIG_IsOK(res1)) { | |
14584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14585 | } | |
14586 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14587 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14588 | if (!SWIG_IsOK(ecode2)) { | |
14589 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14590 | } | |
14591 | arg2 = static_cast< unsigned long >(val2); | |
14592 | { | |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | resultobj = result; | |
14599 | return resultobj; | |
14600 | fail: | |
14601 | return NULL; | |
d55e5bfc RD |
14602 | } |
14603 | ||
14604 | ||
1bd55598 RD |
14605 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14606 | PyObject *resultobj = 0; | |
14607 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14608 | wxPoint result; | |
14609 | void *argp1 = 0 ; | |
14610 | int res1 = 0 ; | |
14611 | PyObject *swig_obj[1] ; | |
14612 | ||
14613 | if (!args) SWIG_fail; | |
14614 | swig_obj[0] = args; | |
14615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14616 | if (!SWIG_IsOK(res1)) { | |
14617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14618 | } | |
14619 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14623 | wxPyEndAllowThreads(__tstate); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
d55e5bfc RD |
14630 | } |
14631 | ||
14632 | ||
1bd55598 RD |
14633 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14634 | PyObject *resultobj = 0; | |
14635 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14636 | wxColour *result = 0 ; | |
14637 | void *argp1 = 0 ; | |
14638 | int res1 = 0 ; | |
14639 | PyObject *swig_obj[1] ; | |
14640 | ||
14641 | if (!args) SWIG_fail; | |
14642 | swig_obj[0] = args; | |
14643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14644 | if (!SWIG_IsOK(res1)) { | |
14645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14646 | } | |
14647 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 14650 | { |
1bd55598 RD |
14651 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
14652 | result = (wxColour *) &_result_ref; | |
36ed4f51 | 14653 | } |
1bd55598 RD |
14654 | wxPyEndAllowThreads(__tstate); |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
14658 | return resultobj; | |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
14664 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14665 | PyObject *resultobj = 0; | |
14666 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14667 | size_t arg2 ; | |
14668 | void *argp1 = 0 ; | |
14669 | int res1 = 0 ; | |
14670 | size_t val2 ; | |
14671 | int ecode2 = 0 ; | |
14672 | PyObject * obj0 = 0 ; | |
14673 | PyObject * obj1 = 0 ; | |
14674 | char * kwnames[] = { | |
14675 | (char *) "self",(char *) "count", NULL | |
14676 | }; | |
14677 | ||
14678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
14679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14680 | if (!SWIG_IsOK(res1)) { | |
14681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14682 | } | |
14683 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14684 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14685 | if (!SWIG_IsOK(ecode2)) { | |
14686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
14687 | } | |
14688 | arg2 = static_cast< size_t >(val2); | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | (arg1)->SetItemCount(arg2); | |
14692 | wxPyEndAllowThreads(__tstate); | |
14693 | if (PyErr_Occurred()) SWIG_fail; | |
14694 | } | |
14695 | resultobj = SWIG_Py_Void(); | |
14696 | return resultobj; | |
14697 | fail: | |
14698 | return NULL; | |
d55e5bfc RD |
14699 | } |
14700 | ||
14701 | ||
1bd55598 RD |
14702 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14703 | PyObject *resultobj = 0; | |
14704 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14705 | void *argp1 = 0 ; | |
14706 | int res1 = 0 ; | |
14707 | PyObject *swig_obj[1] ; | |
14708 | ||
14709 | if (!args) SWIG_fail; | |
14710 | swig_obj[0] = args; | |
14711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14712 | if (!SWIG_IsOK(res1)) { | |
14713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14714 | } | |
14715 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14716 | { | |
14717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14718 | (arg1)->Clear(); | |
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
14722 | resultobj = SWIG_Py_Void(); | |
14723 | return resultobj; | |
14724 | fail: | |
14725 | return NULL; | |
14726 | } | |
14727 | ||
14728 | ||
14729 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14730 | PyObject *resultobj = 0; | |
14731 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14732 | int arg2 ; | |
14733 | void *argp1 = 0 ; | |
14734 | int res1 = 0 ; | |
14735 | int val2 ; | |
14736 | int ecode2 = 0 ; | |
14737 | PyObject * obj0 = 0 ; | |
14738 | PyObject * obj1 = 0 ; | |
14739 | char * kwnames[] = { | |
14740 | (char *) "self",(char *) "selection", NULL | |
14741 | }; | |
14742 | ||
14743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
14744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14745 | if (!SWIG_IsOK(res1)) { | |
14746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14747 | } | |
14748 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14749 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14750 | if (!SWIG_IsOK(ecode2)) { | |
14751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
14752 | } | |
14753 | arg2 = static_cast< int >(val2); | |
14754 | { | |
14755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14756 | (arg1)->SetSelection(arg2); | |
14757 | wxPyEndAllowThreads(__tstate); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | } | |
14760 | resultobj = SWIG_Py_Void(); | |
14761 | return resultobj; | |
14762 | fail: | |
14763 | return NULL; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14768 | PyObject *resultobj = 0; | |
14769 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14770 | size_t arg2 ; | |
14771 | bool arg3 = (bool) true ; | |
14772 | bool result; | |
14773 | void *argp1 = 0 ; | |
14774 | int res1 = 0 ; | |
14775 | size_t val2 ; | |
14776 | int ecode2 = 0 ; | |
14777 | bool val3 ; | |
14778 | int ecode3 = 0 ; | |
14779 | PyObject * obj0 = 0 ; | |
14780 | PyObject * obj1 = 0 ; | |
14781 | PyObject * obj2 = 0 ; | |
14782 | char * kwnames[] = { | |
14783 | (char *) "self",(char *) "item",(char *) "select", NULL | |
14784 | }; | |
14785 | ||
14786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14788 | if (!SWIG_IsOK(res1)) { | |
14789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14790 | } | |
14791 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14792 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14793 | if (!SWIG_IsOK(ecode2)) { | |
14794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
14795 | } | |
14796 | arg2 = static_cast< size_t >(val2); | |
14797 | if (obj2) { | |
14798 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14799 | if (!SWIG_IsOK(ecode3)) { | |
14800 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
14801 | } | |
14802 | arg3 = static_cast< bool >(val3); | |
14803 | } | |
14804 | { | |
14805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14806 | result = (bool)(arg1)->Select(arg2,arg3); | |
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | { | |
14811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14812 | } | |
14813 | return resultobj; | |
14814 | fail: | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
14819 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14820 | PyObject *resultobj = 0; | |
14821 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14822 | size_t arg2 ; | |
14823 | size_t arg3 ; | |
14824 | bool result; | |
14825 | void *argp1 = 0 ; | |
14826 | int res1 = 0 ; | |
14827 | size_t val2 ; | |
14828 | int ecode2 = 0 ; | |
14829 | size_t val3 ; | |
14830 | int ecode3 = 0 ; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | PyObject * obj1 = 0 ; | |
14833 | PyObject * obj2 = 0 ; | |
14834 | char * kwnames[] = { | |
2131d850 | 14835 | (char *) "self",(char *) "from",(char *) "to", NULL |
1bd55598 RD |
14836 | }; |
14837 | ||
14838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14840 | if (!SWIG_IsOK(res1)) { | |
14841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14842 | } | |
14843 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14844 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14845 | if (!SWIG_IsOK(ecode2)) { | |
14846 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
14847 | } | |
14848 | arg2 = static_cast< size_t >(val2); | |
14849 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14850 | if (!SWIG_IsOK(ecode3)) { | |
14851 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
14852 | } | |
14853 | arg3 = static_cast< size_t >(val3); | |
14854 | { | |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | { | |
14861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14862 | } | |
14863 | return resultobj; | |
14864 | fail: | |
14865 | return NULL; | |
14866 | } | |
14867 | ||
14868 | ||
14869 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14870 | PyObject *resultobj = 0; | |
14871 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14872 | size_t arg2 ; | |
14873 | void *argp1 = 0 ; | |
14874 | int res1 = 0 ; | |
14875 | size_t val2 ; | |
14876 | int ecode2 = 0 ; | |
14877 | PyObject * obj0 = 0 ; | |
14878 | PyObject * obj1 = 0 ; | |
14879 | char * kwnames[] = { | |
14880 | (char *) "self",(char *) "item", NULL | |
14881 | }; | |
14882 | ||
14883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14885 | if (!SWIG_IsOK(res1)) { | |
14886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14887 | } | |
14888 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14889 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14890 | if (!SWIG_IsOK(ecode2)) { | |
14891 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
14892 | } | |
14893 | arg2 = static_cast< size_t >(val2); | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | (arg1)->Toggle(arg2); | |
14897 | wxPyEndAllowThreads(__tstate); | |
14898 | if (PyErr_Occurred()) SWIG_fail; | |
14899 | } | |
14900 | resultobj = SWIG_Py_Void(); | |
14901 | return resultobj; | |
14902 | fail: | |
14903 | return NULL; | |
d55e5bfc RD |
14904 | } |
14905 | ||
14906 | ||
1bd55598 RD |
14907 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14908 | PyObject *resultobj = 0; | |
14909 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14910 | bool result; | |
14911 | void *argp1 = 0 ; | |
14912 | int res1 = 0 ; | |
14913 | PyObject *swig_obj[1] ; | |
14914 | ||
14915 | if (!args) SWIG_fail; | |
14916 | swig_obj[0] = args; | |
14917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14918 | if (!SWIG_IsOK(res1)) { | |
14919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14920 | } | |
14921 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | result = (bool)(arg1)->SelectAll(); | |
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | { | |
14929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14930 | } | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
d55e5bfc RD |
14934 | } |
14935 | ||
14936 | ||
1bd55598 RD |
14937 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14938 | PyObject *resultobj = 0; | |
14939 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14940 | bool result; | |
14941 | void *argp1 = 0 ; | |
14942 | int res1 = 0 ; | |
14943 | PyObject *swig_obj[1] ; | |
14944 | ||
14945 | if (!args) SWIG_fail; | |
14946 | swig_obj[0] = args; | |
14947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14948 | if (!SWIG_IsOK(res1)) { | |
14949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14950 | } | |
14951 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | result = (bool)(arg1)->DeselectAll(); | |
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14960 | } | |
14961 | return resultobj; | |
14962 | fail: | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj = 0; | |
14969 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14970 | wxPoint *arg2 = 0 ; | |
14971 | void *argp1 = 0 ; | |
14972 | int res1 = 0 ; | |
14973 | wxPoint temp2 ; | |
14974 | PyObject * obj0 = 0 ; | |
14975 | PyObject * obj1 = 0 ; | |
14976 | char * kwnames[] = { | |
14977 | (char *) "self",(char *) "pt", NULL | |
14978 | }; | |
14979 | ||
14980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
14981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14982 | if (!SWIG_IsOK(res1)) { | |
14983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14984 | } | |
14985 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14986 | { | |
14987 | arg2 = &temp2; | |
14988 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14989 | } | |
14990 | { | |
14991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14992 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | resultobj = SWIG_Py_Void(); | |
14997 | return resultobj; | |
14998 | fail: | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
15003 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15004 | PyObject *resultobj = 0; | |
15005 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15006 | int arg2 ; | |
15007 | int arg3 ; | |
15008 | void *argp1 = 0 ; | |
15009 | int res1 = 0 ; | |
15010 | int val2 ; | |
15011 | int ecode2 = 0 ; | |
15012 | int val3 ; | |
15013 | int ecode3 = 0 ; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | PyObject * obj1 = 0 ; | |
15016 | PyObject * obj2 = 0 ; | |
15017 | char * kwnames[] = { | |
15018 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15019 | }; | |
15020 | ||
15021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15023 | if (!SWIG_IsOK(res1)) { | |
15024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15025 | } | |
15026 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15027 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15028 | if (!SWIG_IsOK(ecode2)) { | |
15029 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15030 | } | |
15031 | arg2 = static_cast< int >(val2); | |
15032 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15033 | if (!SWIG_IsOK(ecode3)) { | |
15034 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15035 | } | |
15036 | arg3 = static_cast< int >(val3); | |
15037 | { | |
15038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15039 | (arg1)->SetMargins(arg2,arg3); | |
15040 | wxPyEndAllowThreads(__tstate); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
15043 | resultobj = SWIG_Py_Void(); | |
15044 | return resultobj; | |
15045 | fail: | |
15046 | return NULL; | |
15047 | } | |
15048 | ||
15049 | ||
15050 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15051 | PyObject *resultobj = 0; | |
15052 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15053 | wxColour *arg2 = 0 ; | |
15054 | void *argp1 = 0 ; | |
15055 | int res1 = 0 ; | |
15056 | wxColour temp2 ; | |
15057 | PyObject * obj0 = 0 ; | |
15058 | PyObject * obj1 = 0 ; | |
15059 | char * kwnames[] = { | |
15060 | (char *) "self",(char *) "col", NULL | |
15061 | }; | |
15062 | ||
15063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15065 | if (!SWIG_IsOK(res1)) { | |
15066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15067 | } | |
15068 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15069 | { | |
15070 | arg2 = &temp2; | |
15071 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15072 | } | |
15073 | { | |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15076 | wxPyEndAllowThreads(__tstate); | |
15077 | if (PyErr_Occurred()) SWIG_fail; | |
15078 | } | |
15079 | resultobj = SWIG_Py_Void(); | |
15080 | return resultobj; | |
15081 | fail: | |
15082 | return NULL; | |
15083 | } | |
15084 | ||
15085 | ||
1c71765a RD |
15086 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15087 | PyObject *resultobj = 0; | |
15088 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15089 | wxDC *arg2 = 0 ; | |
15090 | wxRect *arg3 = 0 ; | |
15091 | size_t arg4 ; | |
15092 | void *argp1 = 0 ; | |
15093 | int res1 = 0 ; | |
15094 | void *argp2 = 0 ; | |
15095 | int res2 = 0 ; | |
15096 | wxRect temp3 ; | |
15097 | size_t val4 ; | |
15098 | int ecode4 = 0 ; | |
15099 | PyObject * obj0 = 0 ; | |
15100 | PyObject * obj1 = 0 ; | |
15101 | PyObject * obj2 = 0 ; | |
15102 | PyObject * obj3 = 0 ; | |
15103 | char * kwnames[] = { | |
15104 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15105 | }; | |
15106 | ||
15107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15109 | if (!SWIG_IsOK(res1)) { | |
15110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15111 | } | |
15112 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15113 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15114 | if (!SWIG_IsOK(res2)) { | |
15115 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15116 | } | |
15117 | if (!argp2) { | |
15118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15119 | } | |
15120 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15121 | { | |
15122 | arg3 = &temp3; | |
15123 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15124 | } | |
15125 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15126 | if (!SWIG_IsOK(ecode4)) { | |
15127 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15128 | } | |
15129 | arg4 = static_cast< size_t >(val4); | |
15130 | { | |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
15136 | resultobj = SWIG_Py_Void(); | |
15137 | return resultobj; | |
15138 | fail: | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
15143 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15144 | PyObject *resultobj = 0; | |
15145 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15146 | wxDC *arg2 = 0 ; | |
15147 | wxRect *arg3 = 0 ; | |
15148 | size_t arg4 ; | |
15149 | void *argp1 = 0 ; | |
15150 | int res1 = 0 ; | |
15151 | void *argp2 = 0 ; | |
15152 | int res2 = 0 ; | |
15153 | wxRect temp3 ; | |
15154 | size_t val4 ; | |
15155 | int ecode4 = 0 ; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | PyObject * obj1 = 0 ; | |
15158 | PyObject * obj2 = 0 ; | |
15159 | PyObject * obj3 = 0 ; | |
15160 | char * kwnames[] = { | |
15161 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15162 | }; | |
15163 | ||
15164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15166 | if (!SWIG_IsOK(res1)) { | |
15167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15168 | } | |
15169 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15170 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15171 | if (!SWIG_IsOK(res2)) { | |
15172 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15173 | } | |
15174 | if (!argp2) { | |
15175 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15176 | } | |
15177 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15178 | { | |
15179 | arg3 = &temp3; | |
15180 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15181 | } | |
15182 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15183 | if (!SWIG_IsOK(ecode4)) { | |
15184 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15185 | } | |
15186 | arg4 = static_cast< size_t >(val4); | |
15187 | { | |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15189 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
15193 | resultobj = SWIG_Py_Void(); | |
15194 | return resultobj; | |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
1bd55598 RD |
15200 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15201 | PyObject *obj; | |
15202 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15203 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15204 | return SWIG_Py_Void(); | |
15205 | } | |
15206 | ||
15207 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15208 | return SWIG_Python_InitShadowInstance(args); | |
15209 | } | |
15210 | ||
15211 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15212 | PyObject *resultobj = 0; | |
15213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15214 | int arg2 = (int) wxID_ANY ; | |
15215 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15216 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15217 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15218 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15219 | long arg5 = (long) 0 ; | |
15220 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15221 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15222 | wxPyHtmlListBox *result = 0 ; | |
15223 | void *argp1 = 0 ; | |
15224 | int res1 = 0 ; | |
15225 | int val2 ; | |
15226 | int ecode2 = 0 ; | |
15227 | wxPoint temp3 ; | |
15228 | wxSize temp4 ; | |
15229 | long val5 ; | |
15230 | int ecode5 = 0 ; | |
15231 | bool temp6 = false ; | |
15232 | PyObject * obj0 = 0 ; | |
15233 | PyObject * obj1 = 0 ; | |
15234 | PyObject * obj2 = 0 ; | |
15235 | PyObject * obj3 = 0 ; | |
15236 | PyObject * obj4 = 0 ; | |
15237 | PyObject * obj5 = 0 ; | |
15238 | char * kwnames[] = { | |
15239 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15240 | }; | |
15241 | ||
15242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15244 | if (!SWIG_IsOK(res1)) { | |
15245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15246 | } | |
15247 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15248 | if (obj1) { | |
15249 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15250 | if (!SWIG_IsOK(ecode2)) { | |
15251 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15252 | } | |
15253 | arg2 = static_cast< int >(val2); | |
15254 | } | |
15255 | if (obj2) { | |
d55e5bfc | 15256 | { |
1bd55598 RD |
15257 | arg3 = &temp3; |
15258 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 15259 | } |
1bd55598 RD |
15260 | } |
15261 | if (obj3) { | |
36ed4f51 | 15262 | { |
1bd55598 RD |
15263 | arg4 = &temp4; |
15264 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 15265 | } |
1bd55598 RD |
15266 | } |
15267 | if (obj4) { | |
15268 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15269 | if (!SWIG_IsOK(ecode5)) { | |
15270 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15271 | } | |
15272 | arg5 = static_cast< long >(val5); | |
15273 | } | |
15274 | if (obj5) { | |
36ed4f51 | 15275 | { |
1bd55598 RD |
15276 | arg6 = wxString_in_helper(obj5); |
15277 | if (arg6 == NULL) SWIG_fail; | |
15278 | temp6 = true; | |
36ed4f51 | 15279 | } |
1bd55598 RD |
15280 | } |
15281 | { | |
15282 | if (!wxPyCheckForApp()) SWIG_fail; | |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15289 | { | |
15290 | if (temp6) | |
15291 | delete arg6; | |
15292 | } | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | { | |
15296 | if (temp6) | |
15297 | delete arg6; | |
15298 | } | |
15299 | return NULL; | |
d55e5bfc RD |
15300 | } |
15301 | ||
15302 | ||
1bd55598 RD |
15303 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15304 | PyObject *resultobj = 0; | |
15305 | wxPyHtmlListBox *result = 0 ; | |
15306 | ||
15307 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15308 | { | |
15309 | if (!wxPyCheckForApp()) SWIG_fail; | |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15312 | wxPyEndAllowThreads(__tstate); | |
15313 | if (PyErr_Occurred()) SWIG_fail; | |
15314 | } | |
15315 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15316 | return resultobj; | |
15317 | fail: | |
15318 | return NULL; | |
15319 | } | |
15320 | ||
15321 | ||
15322 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15323 | PyObject *resultobj = 0; | |
15324 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15325 | PyObject *arg2 = (PyObject *) 0 ; | |
15326 | PyObject *arg3 = (PyObject *) 0 ; | |
15327 | void *argp1 = 0 ; | |
15328 | int res1 = 0 ; | |
15329 | PyObject * obj0 = 0 ; | |
15330 | PyObject * obj1 = 0 ; | |
15331 | PyObject * obj2 = 0 ; | |
15332 | char * kwnames[] = { | |
15333 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15334 | }; | |
15335 | ||
15336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15338 | if (!SWIG_IsOK(res1)) { | |
15339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15340 | } | |
15341 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15342 | arg2 = obj1; | |
15343 | arg3 = obj2; | |
15344 | { | |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
15350 | resultobj = SWIG_Py_Void(); | |
15351 | return resultobj; | |
15352 | fail: | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
15357 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15358 | PyObject *resultobj = 0; | |
15359 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15361 | int arg3 = (int) wxID_ANY ; | |
15362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15366 | long arg6 = (long) 0 ; | |
15367 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15368 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15369 | bool result; | |
15370 | void *argp1 = 0 ; | |
15371 | int res1 = 0 ; | |
15372 | void *argp2 = 0 ; | |
15373 | int res2 = 0 ; | |
15374 | int val3 ; | |
15375 | int ecode3 = 0 ; | |
15376 | wxPoint temp4 ; | |
15377 | wxSize temp5 ; | |
15378 | long val6 ; | |
15379 | int ecode6 = 0 ; | |
15380 | bool temp7 = false ; | |
15381 | PyObject * obj0 = 0 ; | |
15382 | PyObject * obj1 = 0 ; | |
15383 | PyObject * obj2 = 0 ; | |
15384 | PyObject * obj3 = 0 ; | |
15385 | PyObject * obj4 = 0 ; | |
15386 | PyObject * obj5 = 0 ; | |
15387 | PyObject * obj6 = 0 ; | |
15388 | char * kwnames[] = { | |
15389 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15390 | }; | |
15391 | ||
15392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15394 | if (!SWIG_IsOK(res1)) { | |
15395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15396 | } | |
15397 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15398 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15399 | if (!SWIG_IsOK(res2)) { | |
15400 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15401 | } | |
15402 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15403 | if (obj2) { | |
15404 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15405 | if (!SWIG_IsOK(ecode3)) { | |
15406 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15407 | } | |
15408 | arg3 = static_cast< int >(val3); | |
15409 | } | |
15410 | if (obj3) { | |
36ed4f51 | 15411 | { |
1bd55598 RD |
15412 | arg4 = &temp4; |
15413 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 15414 | } |
1bd55598 RD |
15415 | } |
15416 | if (obj4) { | |
d55e5bfc | 15417 | { |
1bd55598 RD |
15418 | arg5 = &temp5; |
15419 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15420 | } |
1bd55598 RD |
15421 | } |
15422 | if (obj5) { | |
15423 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15424 | if (!SWIG_IsOK(ecode6)) { | |
15425 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15426 | } | |
15427 | arg6 = static_cast< long >(val6); | |
15428 | } | |
15429 | if (obj6) { | |
36ed4f51 | 15430 | { |
1bd55598 RD |
15431 | arg7 = wxString_in_helper(obj6); |
15432 | if (arg7 == NULL) SWIG_fail; | |
15433 | temp7 = true; | |
36ed4f51 | 15434 | } |
1bd55598 RD |
15435 | } |
15436 | { | |
15437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15438 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15439 | wxPyEndAllowThreads(__tstate); | |
15440 | if (PyErr_Occurred()) SWIG_fail; | |
15441 | } | |
15442 | { | |
15443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15444 | } | |
15445 | { | |
15446 | if (temp7) | |
15447 | delete arg7; | |
15448 | } | |
15449 | return resultobj; | |
15450 | fail: | |
15451 | { | |
15452 | if (temp7) | |
15453 | delete arg7; | |
15454 | } | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj = 0; | |
15461 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15462 | size_t arg2 ; | |
15463 | void *argp1 = 0 ; | |
15464 | int res1 = 0 ; | |
15465 | size_t val2 ; | |
15466 | int ecode2 = 0 ; | |
15467 | PyObject * obj0 = 0 ; | |
15468 | PyObject * obj1 = 0 ; | |
15469 | char * kwnames[] = { | |
15470 | (char *) "self",(char *) "count", NULL | |
15471 | }; | |
15472 | ||
15473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15475 | if (!SWIG_IsOK(res1)) { | |
15476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15477 | } | |
15478 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15479 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15480 | if (!SWIG_IsOK(ecode2)) { | |
15481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15482 | } | |
15483 | arg2 = static_cast< size_t >(val2); | |
15484 | { | |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | (arg1)->SetItemCount(arg2); | |
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
15490 | resultobj = SWIG_Py_Void(); | |
15491 | return resultobj; | |
15492 | fail: | |
15493 | return NULL; | |
d55e5bfc RD |
15494 | } |
15495 | ||
15496 | ||
1bd55598 RD |
15497 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15498 | PyObject *resultobj = 0; | |
15499 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15500 | wxFileSystem *result = 0 ; | |
15501 | void *argp1 = 0 ; | |
15502 | int res1 = 0 ; | |
15503 | PyObject *swig_obj[1] ; | |
15504 | ||
15505 | if (!args) SWIG_fail; | |
15506 | swig_obj[0] = args; | |
15507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15508 | if (!SWIG_IsOK(res1)) { | |
15509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15510 | } | |
15511 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15512 | { | |
15513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 15514 | { |
1bd55598 RD |
15515 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15516 | result = (wxFileSystem *) &_result_ref; | |
36ed4f51 | 15517 | } |
1bd55598 RD |
15518 | wxPyEndAllowThreads(__tstate); |
15519 | if (PyErr_Occurred()) SWIG_fail; | |
15520 | } | |
15521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
d55e5bfc RD |
15525 | } |
15526 | ||
15527 | ||
e9d6f3a4 RD |
15528 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15529 | PyObject *resultobj = 0; | |
15530 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15531 | size_t arg2 ; | |
15532 | wxHtmlLinkInfo *arg3 = 0 ; | |
15533 | void *argp1 = 0 ; | |
15534 | int res1 = 0 ; | |
15535 | size_t val2 ; | |
15536 | int ecode2 = 0 ; | |
15537 | void *argp3 = 0 ; | |
15538 | int res3 = 0 ; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | PyObject * obj1 = 0 ; | |
15541 | PyObject * obj2 = 0 ; | |
15542 | char * kwnames[] = { | |
15543 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15544 | }; | |
15545 | ||
15546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15548 | if (!SWIG_IsOK(res1)) { | |
15549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15550 | } | |
15551 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15552 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15553 | if (!SWIG_IsOK(ecode2)) { | |
15554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15555 | } | |
15556 | arg2 = static_cast< size_t >(val2); | |
15557 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15558 | if (!SWIG_IsOK(res3)) { | |
15559 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15560 | } | |
15561 | if (!argp3) { | |
15562 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15563 | } | |
15564 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15568 | wxPyEndAllowThreads(__tstate); | |
15569 | if (PyErr_Occurred()) SWIG_fail; | |
15570 | } | |
15571 | resultobj = SWIG_Py_Void(); | |
15572 | return resultobj; | |
15573 | fail: | |
15574 | return NULL; | |
15575 | } | |
15576 | ||
15577 | ||
1bd55598 RD |
15578 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15579 | PyObject *obj; | |
15580 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15581 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15582 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15583 | } |
15584 | ||
1bd55598 RD |
15585 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15586 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
15587 | } |
15588 | ||
1bd55598 RD |
15589 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15590 | PyObject *resultobj = 0; | |
15591 | wxPyTaskBarIcon *result = 0 ; | |
15592 | ||
15593 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15594 | { | |
15595 | if (!wxPyCheckForApp()) SWIG_fail; | |
15596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15597 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15598 | wxPyEndAllowThreads(__tstate); | |
15599 | if (PyErr_Occurred()) SWIG_fail; | |
15600 | } | |
15601 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15602 | return resultobj; | |
15603 | fail: | |
15604 | return NULL; | |
d55e5bfc RD |
15605 | } |
15606 | ||
15607 | ||
1bd55598 RD |
15608 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15609 | PyObject *resultobj = 0; | |
15610 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15611 | void *argp1 = 0 ; | |
15612 | int res1 = 0 ; | |
15613 | PyObject *swig_obj[1] ; | |
15614 | ||
15615 | if (!args) SWIG_fail; | |
15616 | swig_obj[0] = args; | |
15617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
15618 | if (!SWIG_IsOK(res1)) { | |
15619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15620 | } | |
15621 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15622 | { | |
15623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15624 | delete arg1; | |
d55e5bfc | 15625 | |
1bd55598 RD |
15626 | wxPyEndAllowThreads(__tstate); |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | resultobj = SWIG_Py_Void(); | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
15636 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj = 0; | |
15638 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15639 | PyObject *arg2 = (PyObject *) 0 ; | |
15640 | PyObject *arg3 = (PyObject *) 0 ; | |
15641 | int arg4 ; | |
15642 | void *argp1 = 0 ; | |
15643 | int res1 = 0 ; | |
15644 | int val4 ; | |
15645 | int ecode4 = 0 ; | |
15646 | PyObject * obj0 = 0 ; | |
15647 | PyObject * obj1 = 0 ; | |
15648 | PyObject * obj2 = 0 ; | |
15649 | PyObject * obj3 = 0 ; | |
15650 | char * kwnames[] = { | |
15651 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15652 | }; | |
15653 | ||
15654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15656 | if (!SWIG_IsOK(res1)) { | |
15657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15658 | } | |
15659 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15660 | arg2 = obj1; | |
15661 | arg3 = obj2; | |
15662 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15663 | if (!SWIG_IsOK(ecode4)) { | |
15664 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15665 | } | |
15666 | arg4 = static_cast< int >(val4); | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15670 | wxPyEndAllowThreads(__tstate); | |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | resultobj = SWIG_Py_Void(); | |
15674 | return resultobj; | |
15675 | fail: | |
15676 | return NULL; | |
d55e5bfc RD |
15677 | } |
15678 | ||
15679 | ||
1bd55598 RD |
15680 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15681 | PyObject *resultobj = 0; | |
15682 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15683 | void *argp1 = 0 ; | |
15684 | int res1 = 0 ; | |
15685 | PyObject *swig_obj[1] ; | |
15686 | ||
15687 | if (!args) SWIG_fail; | |
15688 | swig_obj[0] = args; | |
15689 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15690 | if (!SWIG_IsOK(res1)) { | |
15691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15692 | } | |
15693 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15694 | { | |
15695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15696 | wxPyTaskBarIcon_Destroy(arg1); | |
15697 | wxPyEndAllowThreads(__tstate); | |
15698 | if (PyErr_Occurred()) SWIG_fail; | |
15699 | } | |
15700 | resultobj = SWIG_Py_Void(); | |
15701 | return resultobj; | |
15702 | fail: | |
15703 | return NULL; | |
d55e5bfc RD |
15704 | } |
15705 | ||
15706 | ||
1bd55598 RD |
15707 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15708 | PyObject *resultobj = 0; | |
15709 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15710 | bool result; | |
15711 | void *argp1 = 0 ; | |
15712 | int res1 = 0 ; | |
15713 | PyObject *swig_obj[1] ; | |
15714 | ||
15715 | if (!args) SWIG_fail; | |
15716 | swig_obj[0] = args; | |
15717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15718 | if (!SWIG_IsOK(res1)) { | |
15719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15720 | } | |
15721 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15722 | { | |
15723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15724 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
15725 | wxPyEndAllowThreads(__tstate); | |
15726 | if (PyErr_Occurred()) SWIG_fail; | |
15727 | } | |
15728 | { | |
15729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15730 | } | |
15731 | return resultobj; | |
15732 | fail: | |
15733 | return NULL; | |
d55e5bfc RD |
15734 | } |
15735 | ||
15736 | ||
1bd55598 RD |
15737 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15738 | PyObject *resultobj = 0; | |
15739 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15740 | bool result; | |
15741 | void *argp1 = 0 ; | |
15742 | int res1 = 0 ; | |
15743 | PyObject *swig_obj[1] ; | |
15744 | ||
15745 | if (!args) SWIG_fail; | |
15746 | swig_obj[0] = args; | |
15747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15748 | if (!SWIG_IsOK(res1)) { | |
15749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15750 | } | |
15751 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
15755 | wxPyEndAllowThreads(__tstate); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
15758 | { | |
15759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15760 | } | |
15761 | return resultobj; | |
15762 | fail: | |
15763 | return NULL; | |
15764 | } | |
15765 | ||
15766 | ||
15767 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15768 | PyObject *resultobj = 0; | |
15769 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15770 | wxIcon *arg2 = 0 ; | |
15771 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15772 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15773 | bool result; | |
15774 | void *argp1 = 0 ; | |
15775 | int res1 = 0 ; | |
15776 | void *argp2 = 0 ; | |
15777 | int res2 = 0 ; | |
15778 | bool temp3 = false ; | |
15779 | PyObject * obj0 = 0 ; | |
15780 | PyObject * obj1 = 0 ; | |
15781 | PyObject * obj2 = 0 ; | |
15782 | char * kwnames[] = { | |
15783 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
15784 | }; | |
15785 | ||
15786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15788 | if (!SWIG_IsOK(res1)) { | |
15789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15790 | } | |
15791 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15792 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
15793 | if (!SWIG_IsOK(res2)) { | |
15794 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15795 | } | |
15796 | if (!argp2) { | |
15797 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15798 | } | |
15799 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
15800 | if (obj2) { | |
36ed4f51 | 15801 | { |
1bd55598 RD |
15802 | arg3 = wxString_in_helper(obj2); |
15803 | if (arg3 == NULL) SWIG_fail; | |
15804 | temp3 = true; | |
36ed4f51 | 15805 | } |
1bd55598 RD |
15806 | } |
15807 | { | |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15809 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
15810 | wxPyEndAllowThreads(__tstate); | |
15811 | if (PyErr_Occurred()) SWIG_fail; | |
15812 | } | |
15813 | { | |
15814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15815 | } | |
15816 | { | |
15817 | if (temp3) | |
15818 | delete arg3; | |
15819 | } | |
15820 | return resultobj; | |
15821 | fail: | |
15822 | { | |
15823 | if (temp3) | |
15824 | delete arg3; | |
15825 | } | |
15826 | return NULL; | |
d55e5bfc RD |
15827 | } |
15828 | ||
15829 | ||
1bd55598 RD |
15830 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15831 | PyObject *resultobj = 0; | |
15832 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15833 | bool result; | |
15834 | void *argp1 = 0 ; | |
15835 | int res1 = 0 ; | |
15836 | PyObject *swig_obj[1] ; | |
15837 | ||
15838 | if (!args) SWIG_fail; | |
15839 | swig_obj[0] = args; | |
15840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15841 | if (!SWIG_IsOK(res1)) { | |
15842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15843 | } | |
15844 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15845 | { | |
15846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15847 | result = (bool)(arg1)->RemoveIcon(); | |
15848 | wxPyEndAllowThreads(__tstate); | |
15849 | if (PyErr_Occurred()) SWIG_fail; | |
15850 | } | |
15851 | { | |
15852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15853 | } | |
15854 | return resultobj; | |
15855 | fail: | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15861 | PyObject *resultobj = 0; | |
15862 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15863 | wxMenu *arg2 = (wxMenu *) 0 ; | |
15864 | bool result; | |
15865 | void *argp1 = 0 ; | |
15866 | int res1 = 0 ; | |
15867 | void *argp2 = 0 ; | |
15868 | int res2 = 0 ; | |
15869 | PyObject * obj0 = 0 ; | |
15870 | PyObject * obj1 = 0 ; | |
15871 | char * kwnames[] = { | |
15872 | (char *) "self",(char *) "menu", NULL | |
15873 | }; | |
15874 | ||
15875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
15876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15877 | if (!SWIG_IsOK(res1)) { | |
15878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15879 | } | |
15880 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15881 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
15882 | if (!SWIG_IsOK(res2)) { | |
15883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
15884 | } | |
15885 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
15886 | { | |
15887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15888 | result = (bool)(arg1)->PopupMenu(arg2); | |
15889 | wxPyEndAllowThreads(__tstate); | |
15890 | if (PyErr_Occurred()) SWIG_fail; | |
15891 | } | |
15892 | { | |
15893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15894 | } | |
15895 | return resultobj; | |
15896 | fail: | |
15897 | return NULL; | |
d55e5bfc RD |
15898 | } |
15899 | ||
15900 | ||
1bd55598 RD |
15901 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15902 | PyObject *obj; | |
15903 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15904 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
15905 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15906 | } |
15907 | ||
1bd55598 RD |
15908 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15909 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
15910 | } |
15911 | ||
1bd55598 RD |
15912 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15913 | PyObject *resultobj = 0; | |
15914 | wxEventType arg1 ; | |
15915 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
15916 | wxTaskBarIconEvent *result = 0 ; | |
15917 | int val1 ; | |
15918 | int ecode1 = 0 ; | |
15919 | void *argp2 = 0 ; | |
15920 | int res2 = 0 ; | |
15921 | PyObject * obj0 = 0 ; | |
15922 | PyObject * obj1 = 0 ; | |
15923 | char * kwnames[] = { | |
15924 | (char *) "evtType",(char *) "tbIcon", NULL | |
15925 | }; | |
15926 | ||
15927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
15928 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15929 | if (!SWIG_IsOK(ecode1)) { | |
15930 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
15931 | } | |
15932 | arg1 = static_cast< wxEventType >(val1); | |
15933 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
15934 | if (!SWIG_IsOK(res2)) { | |
15935 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
15936 | } | |
15937 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
15938 | { | |
15939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15940 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
15941 | wxPyEndAllowThreads(__tstate); | |
15942 | if (PyErr_Occurred()) SWIG_fail; | |
15943 | } | |
15944 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
15945 | return resultobj; | |
15946 | fail: | |
15947 | return NULL; | |
d55e5bfc RD |
15948 | } |
15949 | ||
15950 | ||
1bd55598 RD |
15951 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15952 | PyObject *obj; | |
15953 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15954 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
15955 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15956 | } |
15957 | ||
1bd55598 RD |
15958 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15959 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
15960 | } |
15961 | ||
1bd55598 RD |
15962 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
15963 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
15964 | return 1; | |
d55e5bfc RD |
15965 | } |
15966 | ||
15967 | ||
1bd55598 RD |
15968 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
15969 | PyObject *pyobj = 0; | |
15970 | ||
15971 | { | |
15972 | #if wxUSE_UNICODE | |
15973 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
15974 | #else | |
15975 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
15976 | #endif | |
15977 | } | |
15978 | return pyobj; | |
d55e5bfc RD |
15979 | } |
15980 | ||
15981 | ||
1bd55598 RD |
15982 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
15983 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
15984 | return 1; | |
d55e5bfc RD |
15985 | } |
15986 | ||
15987 | ||
1bd55598 RD |
15988 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
15989 | PyObject *pyobj = 0; | |
15990 | ||
15991 | { | |
15992 | #if wxUSE_UNICODE | |
15993 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
15994 | #else | |
15995 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
15996 | #endif | |
15997 | } | |
15998 | return pyobj; | |
d55e5bfc RD |
15999 | } |
16000 | ||
16001 | ||
1bd55598 RD |
16002 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16003 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16004 | return 1; | |
d55e5bfc RD |
16005 | } |
16006 | ||
16007 | ||
1bd55598 RD |
16008 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16009 | PyObject *pyobj = 0; | |
16010 | ||
16011 | { | |
16012 | #if wxUSE_UNICODE | |
16013 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16014 | #else | |
16015 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16016 | #endif | |
16017 | } | |
16018 | return pyobj; | |
d55e5bfc RD |
16019 | } |
16020 | ||
16021 | ||
1bd55598 RD |
16022 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16023 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16024 | return 1; | |
d55e5bfc RD |
16025 | } |
16026 | ||
16027 | ||
1bd55598 RD |
16028 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16029 | PyObject *pyobj = 0; | |
16030 | ||
16031 | { | |
16032 | #if wxUSE_UNICODE | |
16033 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16034 | #else | |
16035 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16036 | #endif | |
16037 | } | |
16038 | return pyobj; | |
d55e5bfc RD |
16039 | } |
16040 | ||
16041 | ||
1bd55598 RD |
16042 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16043 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16044 | return 1; | |
d55e5bfc RD |
16045 | } |
16046 | ||
16047 | ||
1bd55598 RD |
16048 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16049 | PyObject *pyobj = 0; | |
16050 | ||
16051 | { | |
16052 | #if wxUSE_UNICODE | |
16053 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16054 | #else | |
16055 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16056 | #endif | |
16057 | } | |
16058 | return pyobj; | |
d55e5bfc RD |
16059 | } |
16060 | ||
16061 | ||
1bd55598 RD |
16062 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16063 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16064 | return 1; | |
d55e5bfc RD |
16065 | } |
16066 | ||
16067 | ||
1bd55598 RD |
16068 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16069 | PyObject *pyobj = 0; | |
16070 | ||
16071 | { | |
16072 | #if wxUSE_UNICODE | |
16073 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16074 | #else | |
16075 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16076 | #endif | |
16077 | } | |
16078 | return pyobj; | |
d55e5bfc RD |
16079 | } |
16080 | ||
16081 | ||
1bd55598 RD |
16082 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16083 | PyObject *resultobj = 0; | |
16084 | wxColourData *result = 0 ; | |
16085 | ||
16086 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16087 | { | |
16088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16089 | result = (wxColourData *)new wxColourData(); | |
16090 | wxPyEndAllowThreads(__tstate); | |
16091 | if (PyErr_Occurred()) SWIG_fail; | |
16092 | } | |
16093 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16094 | return resultobj; | |
16095 | fail: | |
16096 | return NULL; | |
d55e5bfc RD |
16097 | } |
16098 | ||
16099 | ||
1bd55598 RD |
16100 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16101 | PyObject *resultobj = 0; | |
16102 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16103 | void *argp1 = 0 ; | |
16104 | int res1 = 0 ; | |
16105 | PyObject *swig_obj[1] ; | |
16106 | ||
16107 | if (!args) SWIG_fail; | |
16108 | swig_obj[0] = args; | |
16109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16110 | if (!SWIG_IsOK(res1)) { | |
16111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16112 | } | |
16113 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16114 | { | |
16115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16116 | delete arg1; | |
d55e5bfc | 16117 | |
1bd55598 RD |
16118 | wxPyEndAllowThreads(__tstate); |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
16121 | resultobj = SWIG_Py_Void(); | |
16122 | return resultobj; | |
16123 | fail: | |
16124 | return NULL; | |
d55e5bfc RD |
16125 | } |
16126 | ||
16127 | ||
1bd55598 RD |
16128 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16129 | PyObject *resultobj = 0; | |
16130 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16131 | bool result; | |
16132 | void *argp1 = 0 ; | |
16133 | int res1 = 0 ; | |
16134 | PyObject *swig_obj[1] ; | |
16135 | ||
16136 | if (!args) SWIG_fail; | |
16137 | swig_obj[0] = args; | |
16138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16139 | if (!SWIG_IsOK(res1)) { | |
16140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16141 | } | |
16142 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16143 | { | |
16144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16145 | result = (bool)(arg1)->GetChooseFull(); | |
16146 | wxPyEndAllowThreads(__tstate); | |
16147 | if (PyErr_Occurred()) SWIG_fail; | |
16148 | } | |
16149 | { | |
16150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16151 | } | |
16152 | return resultobj; | |
16153 | fail: | |
16154 | return NULL; | |
d55e5bfc RD |
16155 | } |
16156 | ||
16157 | ||
1bd55598 RD |
16158 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16159 | PyObject *resultobj = 0; | |
16160 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16161 | wxColour result; | |
16162 | void *argp1 = 0 ; | |
16163 | int res1 = 0 ; | |
16164 | PyObject *swig_obj[1] ; | |
16165 | ||
16166 | if (!args) SWIG_fail; | |
16167 | swig_obj[0] = args; | |
16168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16169 | if (!SWIG_IsOK(res1)) { | |
16170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16171 | } | |
16172 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16173 | { | |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16175 | result = (arg1)->GetColour(); | |
16176 | wxPyEndAllowThreads(__tstate); | |
16177 | if (PyErr_Occurred()) SWIG_fail; | |
16178 | } | |
16179 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16180 | return resultobj; | |
16181 | fail: | |
16182 | return NULL; | |
16183 | } | |
16184 | ||
16185 | ||
16186 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16187 | PyObject *resultobj = 0; | |
16188 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16189 | int arg2 ; | |
16190 | wxColour result; | |
16191 | void *argp1 = 0 ; | |
16192 | int res1 = 0 ; | |
16193 | int val2 ; | |
16194 | int ecode2 = 0 ; | |
16195 | PyObject * obj0 = 0 ; | |
16196 | PyObject * obj1 = 0 ; | |
16197 | char * kwnames[] = { | |
16198 | (char *) "self",(char *) "i", NULL | |
16199 | }; | |
16200 | ||
16201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16203 | if (!SWIG_IsOK(res1)) { | |
16204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16205 | } | |
16206 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16208 | if (!SWIG_IsOK(ecode2)) { | |
16209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16210 | } | |
16211 | arg2 = static_cast< int >(val2); | |
16212 | { | |
16213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16214 | result = (arg1)->GetCustomColour(arg2); | |
16215 | wxPyEndAllowThreads(__tstate); | |
16216 | if (PyErr_Occurred()) SWIG_fail; | |
16217 | } | |
16218 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16219 | return resultobj; | |
16220 | fail: | |
16221 | return NULL; | |
16222 | } | |
16223 | ||
16224 | ||
16225 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16226 | PyObject *resultobj = 0; | |
16227 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16228 | int arg2 ; | |
16229 | void *argp1 = 0 ; | |
16230 | int res1 = 0 ; | |
16231 | int val2 ; | |
16232 | int ecode2 = 0 ; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | PyObject * obj1 = 0 ; | |
16235 | char * kwnames[] = { | |
16236 | (char *) "self",(char *) "flag", NULL | |
16237 | }; | |
16238 | ||
16239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16241 | if (!SWIG_IsOK(res1)) { | |
16242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16243 | } | |
16244 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16245 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16246 | if (!SWIG_IsOK(ecode2)) { | |
16247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16248 | } | |
16249 | arg2 = static_cast< int >(val2); | |
16250 | { | |
16251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16252 | (arg1)->SetChooseFull(arg2); | |
16253 | wxPyEndAllowThreads(__tstate); | |
16254 | if (PyErr_Occurred()) SWIG_fail; | |
16255 | } | |
16256 | resultobj = SWIG_Py_Void(); | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj = 0; | |
16265 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16266 | wxColour *arg2 = 0 ; | |
16267 | void *argp1 = 0 ; | |
16268 | int res1 = 0 ; | |
16269 | wxColour temp2 ; | |
16270 | PyObject * obj0 = 0 ; | |
16271 | PyObject * obj1 = 0 ; | |
16272 | char * kwnames[] = { | |
16273 | (char *) "self",(char *) "colour", NULL | |
16274 | }; | |
16275 | ||
16276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16278 | if (!SWIG_IsOK(res1)) { | |
16279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16280 | } | |
16281 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16282 | { | |
16283 | arg2 = &temp2; | |
16284 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16285 | } | |
16286 | { | |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | (arg1)->SetColour((wxColour const &)*arg2); | |
16289 | wxPyEndAllowThreads(__tstate); | |
16290 | if (PyErr_Occurred()) SWIG_fail; | |
16291 | } | |
16292 | resultobj = SWIG_Py_Void(); | |
16293 | return resultobj; | |
16294 | fail: | |
16295 | return NULL; | |
16296 | } | |
16297 | ||
16298 | ||
16299 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16300 | PyObject *resultobj = 0; | |
16301 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16302 | int arg2 ; | |
16303 | wxColour *arg3 = 0 ; | |
16304 | void *argp1 = 0 ; | |
16305 | int res1 = 0 ; | |
16306 | int val2 ; | |
16307 | int ecode2 = 0 ; | |
16308 | wxColour temp3 ; | |
16309 | PyObject * obj0 = 0 ; | |
16310 | PyObject * obj1 = 0 ; | |
16311 | PyObject * obj2 = 0 ; | |
16312 | char * kwnames[] = { | |
16313 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16314 | }; | |
16315 | ||
16316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16318 | if (!SWIG_IsOK(res1)) { | |
16319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16320 | } | |
16321 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16322 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16323 | if (!SWIG_IsOK(ecode2)) { | |
16324 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16325 | } | |
16326 | arg2 = static_cast< int >(val2); | |
16327 | { | |
16328 | arg3 = &temp3; | |
16329 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16330 | } | |
16331 | { | |
16332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16333 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16334 | wxPyEndAllowThreads(__tstate); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | } | |
16337 | resultobj = SWIG_Py_Void(); | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | return NULL; | |
d55e5bfc RD |
16341 | } |
16342 | ||
16343 | ||
1bd55598 RD |
16344 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16345 | PyObject *obj; | |
16346 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16347 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16348 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16349 | } |
16350 | ||
1bd55598 RD |
16351 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16352 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16353 | } |
16354 | ||
1bd55598 RD |
16355 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16356 | PyObject *resultobj = 0; | |
16357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16358 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16359 | wxColourDialog *result = 0 ; | |
16360 | void *argp1 = 0 ; | |
16361 | int res1 = 0 ; | |
16362 | void *argp2 = 0 ; | |
16363 | int res2 = 0 ; | |
16364 | PyObject * obj0 = 0 ; | |
16365 | PyObject * obj1 = 0 ; | |
16366 | char * kwnames[] = { | |
16367 | (char *) "parent",(char *) "data", NULL | |
16368 | }; | |
16369 | ||
16370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16372 | if (!SWIG_IsOK(res1)) { | |
16373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16374 | } | |
16375 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16376 | if (obj1) { | |
16377 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16378 | if (!SWIG_IsOK(res2)) { | |
16379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
36ed4f51 | 16380 | } |
1bd55598 RD |
16381 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16382 | } | |
16383 | { | |
16384 | if (!wxPyCheckForApp()) SWIG_fail; | |
16385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16386 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16387 | wxPyEndAllowThreads(__tstate); | |
16388 | if (PyErr_Occurred()) SWIG_fail; | |
16389 | } | |
16390 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16391 | return resultobj; | |
16392 | fail: | |
16393 | return NULL; | |
d55e5bfc RD |
16394 | } |
16395 | ||
16396 | ||
1bd55598 RD |
16397 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16398 | PyObject *resultobj = 0; | |
16399 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16400 | wxColourData *result = 0 ; | |
16401 | void *argp1 = 0 ; | |
16402 | int res1 = 0 ; | |
16403 | PyObject *swig_obj[1] ; | |
16404 | ||
16405 | if (!args) SWIG_fail; | |
16406 | swig_obj[0] = args; | |
16407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16408 | if (!SWIG_IsOK(res1)) { | |
16409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16410 | } | |
16411 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16412 | { | |
16413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 16414 | { |
1bd55598 RD |
16415 | wxColourData &_result_ref = (arg1)->GetColourData(); |
16416 | result = (wxColourData *) &_result_ref; | |
d55e5bfc | 16417 | } |
1bd55598 RD |
16418 | wxPyEndAllowThreads(__tstate); |
16419 | if (PyErr_Occurred()) SWIG_fail; | |
16420 | } | |
16421 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16422 | return resultobj; | |
16423 | fail: | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
16428 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16429 | PyObject *obj; | |
16430 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16431 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16432 | return SWIG_Py_Void(); | |
16433 | } | |
16434 | ||
16435 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16436 | return SWIG_Python_InitShadowInstance(args); | |
16437 | } | |
16438 | ||
16439 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16440 | PyObject *resultobj = 0; | |
16441 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16442 | wxColour const &arg2_defvalue = wxNullColour ; | |
16443 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16444 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16445 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16446 | wxColour result; | |
16447 | void *argp1 = 0 ; | |
16448 | int res1 = 0 ; | |
16449 | wxColour temp2 ; | |
16450 | bool temp3 = false ; | |
16451 | PyObject * obj0 = 0 ; | |
16452 | PyObject * obj1 = 0 ; | |
16453 | PyObject * obj2 = 0 ; | |
16454 | char * kwnames[] = { | |
16455 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16456 | }; | |
16457 | ||
16458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16459 | if (obj0) { | |
16460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16461 | if (!SWIG_IsOK(res1)) { | |
16462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 16463 | } |
1bd55598 RD |
16464 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16465 | } | |
16466 | if (obj1) { | |
d55e5bfc | 16467 | { |
1bd55598 RD |
16468 | arg2 = &temp2; |
16469 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 16470 | } |
1bd55598 RD |
16471 | } |
16472 | if (obj2) { | |
d55e5bfc | 16473 | { |
1bd55598 RD |
16474 | arg3 = wxString_in_helper(obj2); |
16475 | if (arg3 == NULL) SWIG_fail; | |
16476 | temp3 = true; | |
d55e5bfc | 16477 | } |
1bd55598 RD |
16478 | } |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16482 | wxPyEndAllowThreads(__tstate); | |
16483 | if (PyErr_Occurred()) SWIG_fail; | |
16484 | } | |
16485 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16486 | { | |
16487 | if (temp3) | |
16488 | delete arg3; | |
16489 | } | |
16490 | return resultobj; | |
16491 | fail: | |
16492 | { | |
16493 | if (temp3) | |
16494 | delete arg3; | |
16495 | } | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj = 0; | |
16502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16503 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16504 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16505 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16506 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
704eda0c | 16507 | long arg4 = (long) wxDD_DEFAULT_STYLE ; |
1bd55598 RD |
16508 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16509 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16510 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16511 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16512 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16513 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16514 | wxDirDialog *result = 0 ; | |
16515 | void *argp1 = 0 ; | |
16516 | int res1 = 0 ; | |
16517 | bool temp2 = false ; | |
16518 | bool temp3 = false ; | |
16519 | long val4 ; | |
16520 | int ecode4 = 0 ; | |
16521 | wxPoint temp5 ; | |
16522 | wxSize temp6 ; | |
16523 | bool temp7 = false ; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | PyObject * obj1 = 0 ; | |
16526 | PyObject * obj2 = 0 ; | |
16527 | PyObject * obj3 = 0 ; | |
16528 | PyObject * obj4 = 0 ; | |
16529 | PyObject * obj5 = 0 ; | |
16530 | PyObject * obj6 = 0 ; | |
16531 | char * kwnames[] = { | |
16532 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16533 | }; | |
16534 | ||
16535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16537 | if (!SWIG_IsOK(res1)) { | |
16538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16539 | } | |
16540 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16541 | if (obj1) { | |
d55e5bfc | 16542 | { |
1bd55598 RD |
16543 | arg2 = wxString_in_helper(obj1); |
16544 | if (arg2 == NULL) SWIG_fail; | |
16545 | temp2 = true; | |
d55e5bfc | 16546 | } |
1bd55598 RD |
16547 | } |
16548 | if (obj2) { | |
d55e5bfc | 16549 | { |
1bd55598 RD |
16550 | arg3 = wxString_in_helper(obj2); |
16551 | if (arg3 == NULL) SWIG_fail; | |
16552 | temp3 = true; | |
d55e5bfc | 16553 | } |
1bd55598 RD |
16554 | } |
16555 | if (obj3) { | |
16556 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16557 | if (!SWIG_IsOK(ecode4)) { | |
16558 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16559 | } | |
16560 | arg4 = static_cast< long >(val4); | |
16561 | } | |
16562 | if (obj4) { | |
d55e5bfc | 16563 | { |
1bd55598 RD |
16564 | arg5 = &temp5; |
16565 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 16566 | } |
1bd55598 RD |
16567 | } |
16568 | if (obj5) { | |
16569 | { | |
16570 | arg6 = &temp6; | |
16571 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16572 | } |
1bd55598 RD |
16573 | } |
16574 | if (obj6) { | |
d55e5bfc | 16575 | { |
1bd55598 RD |
16576 | arg7 = wxString_in_helper(obj6); |
16577 | if (arg7 == NULL) SWIG_fail; | |
16578 | temp7 = true; | |
16579 | } | |
16580 | } | |
16581 | { | |
16582 | if (!wxPyCheckForApp()) SWIG_fail; | |
16583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16584 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16585 | wxPyEndAllowThreads(__tstate); | |
16586 | if (PyErr_Occurred()) SWIG_fail; | |
16587 | } | |
16588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16589 | { | |
16590 | if (temp2) | |
16591 | delete arg2; | |
16592 | } | |
16593 | { | |
16594 | if (temp3) | |
16595 | delete arg3; | |
16596 | } | |
16597 | { | |
16598 | if (temp7) | |
16599 | delete arg7; | |
16600 | } | |
16601 | return resultobj; | |
16602 | fail: | |
16603 | { | |
16604 | if (temp2) | |
16605 | delete arg2; | |
16606 | } | |
16607 | { | |
16608 | if (temp3) | |
16609 | delete arg3; | |
16610 | } | |
16611 | { | |
16612 | if (temp7) | |
16613 | delete arg7; | |
16614 | } | |
16615 | return NULL; | |
d55e5bfc RD |
16616 | } |
16617 | ||
16618 | ||
1bd55598 RD |
16619 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16620 | PyObject *resultobj = 0; | |
16621 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16622 | wxString result; | |
16623 | void *argp1 = 0 ; | |
16624 | int res1 = 0 ; | |
16625 | PyObject *swig_obj[1] ; | |
16626 | ||
16627 | if (!args) SWIG_fail; | |
16628 | swig_obj[0] = args; | |
16629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16630 | if (!SWIG_IsOK(res1)) { | |
16631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16632 | } | |
16633 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16634 | { | |
16635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16636 | result = (arg1)->GetPath(); | |
16637 | wxPyEndAllowThreads(__tstate); | |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | } | |
16640 | { | |
16641 | #if wxUSE_UNICODE | |
16642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16643 | #else | |
16644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16645 | #endif | |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
d55e5bfc RD |
16650 | } |
16651 | ||
16652 | ||
1bd55598 RD |
16653 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16654 | PyObject *resultobj = 0; | |
16655 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16656 | wxString result; | |
16657 | void *argp1 = 0 ; | |
16658 | int res1 = 0 ; | |
16659 | PyObject *swig_obj[1] ; | |
16660 | ||
16661 | if (!args) SWIG_fail; | |
16662 | swig_obj[0] = args; | |
16663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16664 | if (!SWIG_IsOK(res1)) { | |
16665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16666 | } | |
16667 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16668 | { | |
16669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16670 | result = (arg1)->GetMessage(); | |
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
16674 | { | |
16675 | #if wxUSE_UNICODE | |
16676 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16677 | #else | |
16678 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16679 | #endif | |
16680 | } | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
d55e5bfc RD |
16684 | } |
16685 | ||
16686 | ||
1bd55598 RD |
16687 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16688 | PyObject *resultobj = 0; | |
16689 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16690 | wxString *arg2 = 0 ; | |
16691 | void *argp1 = 0 ; | |
16692 | int res1 = 0 ; | |
16693 | bool temp2 = false ; | |
16694 | PyObject * obj0 = 0 ; | |
16695 | PyObject * obj1 = 0 ; | |
16696 | char * kwnames[] = { | |
16697 | (char *) "self",(char *) "message", NULL | |
16698 | }; | |
16699 | ||
16700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16702 | if (!SWIG_IsOK(res1)) { | |
16703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16704 | } | |
16705 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16706 | { | |
16707 | arg2 = wxString_in_helper(obj1); | |
16708 | if (arg2 == NULL) SWIG_fail; | |
16709 | temp2 = true; | |
16710 | } | |
16711 | { | |
16712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16713 | (arg1)->SetMessage((wxString const &)*arg2); | |
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = SWIG_Py_Void(); | |
16718 | { | |
16719 | if (temp2) | |
16720 | delete arg2; | |
16721 | } | |
16722 | return resultobj; | |
16723 | fail: | |
16724 | { | |
16725 | if (temp2) | |
16726 | delete arg2; | |
16727 | } | |
16728 | return NULL; | |
d55e5bfc RD |
16729 | } |
16730 | ||
16731 | ||
1bd55598 RD |
16732 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16733 | PyObject *resultobj = 0; | |
16734 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16735 | wxString *arg2 = 0 ; | |
16736 | void *argp1 = 0 ; | |
16737 | int res1 = 0 ; | |
16738 | bool temp2 = false ; | |
16739 | PyObject * obj0 = 0 ; | |
16740 | PyObject * obj1 = 0 ; | |
16741 | char * kwnames[] = { | |
16742 | (char *) "self",(char *) "path", NULL | |
16743 | }; | |
16744 | ||
16745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16747 | if (!SWIG_IsOK(res1)) { | |
16748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16749 | } | |
16750 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16751 | { | |
16752 | arg2 = wxString_in_helper(obj1); | |
16753 | if (arg2 == NULL) SWIG_fail; | |
16754 | temp2 = true; | |
16755 | } | |
16756 | { | |
16757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16758 | (arg1)->SetPath((wxString const &)*arg2); | |
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | resultobj = SWIG_Py_Void(); | |
16763 | { | |
16764 | if (temp2) | |
16765 | delete arg2; | |
16766 | } | |
16767 | return resultobj; | |
16768 | fail: | |
16769 | { | |
16770 | if (temp2) | |
16771 | delete arg2; | |
16772 | } | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
16777 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16778 | PyObject *obj; | |
16779 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16780 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
16781 | return SWIG_Py_Void(); | |
16782 | } | |
16783 | ||
16784 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16785 | return SWIG_Python_InitShadowInstance(args); | |
16786 | } | |
16787 | ||
16788 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16789 | PyObject *resultobj = 0; | |
16790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16791 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
16792 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16793 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16794 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16795 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16796 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16797 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
16798 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
704eda0c | 16799 | long arg6 = (long) wxFD_DEFAULT_STYLE ; |
1bd55598 RD |
16800 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
16801 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
16802 | wxFileDialog *result = 0 ; | |
16803 | void *argp1 = 0 ; | |
16804 | int res1 = 0 ; | |
16805 | bool temp2 = false ; | |
16806 | bool temp3 = false ; | |
16807 | bool temp4 = false ; | |
16808 | bool temp5 = false ; | |
16809 | long val6 ; | |
16810 | int ecode6 = 0 ; | |
16811 | wxPoint temp7 ; | |
16812 | PyObject * obj0 = 0 ; | |
16813 | PyObject * obj1 = 0 ; | |
16814 | PyObject * obj2 = 0 ; | |
16815 | PyObject * obj3 = 0 ; | |
16816 | PyObject * obj4 = 0 ; | |
16817 | PyObject * obj5 = 0 ; | |
16818 | PyObject * obj6 = 0 ; | |
16819 | char * kwnames[] = { | |
16820 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
16821 | }; | |
16822 | ||
16823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16825 | if (!SWIG_IsOK(res1)) { | |
16826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16827 | } | |
16828 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16829 | if (obj1) { | |
d55e5bfc | 16830 | { |
1bd55598 RD |
16831 | arg2 = wxString_in_helper(obj1); |
16832 | if (arg2 == NULL) SWIG_fail; | |
16833 | temp2 = true; | |
d55e5bfc | 16834 | } |
1bd55598 RD |
16835 | } |
16836 | if (obj2) { | |
16837 | { | |
16838 | arg3 = wxString_in_helper(obj2); | |
16839 | if (arg3 == NULL) SWIG_fail; | |
16840 | temp3 = true; | |
d55e5bfc | 16841 | } |
1bd55598 RD |
16842 | } |
16843 | if (obj3) { | |
d55e5bfc | 16844 | { |
1bd55598 RD |
16845 | arg4 = wxString_in_helper(obj3); |
16846 | if (arg4 == NULL) SWIG_fail; | |
16847 | temp4 = true; | |
16848 | } | |
16849 | } | |
16850 | if (obj4) { | |
d55e5bfc | 16851 | { |
1bd55598 RD |
16852 | arg5 = wxString_in_helper(obj4); |
16853 | if (arg5 == NULL) SWIG_fail; | |
16854 | temp5 = true; | |
d55e5bfc | 16855 | } |
1bd55598 RD |
16856 | } |
16857 | if (obj5) { | |
16858 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
16859 | if (!SWIG_IsOK(ecode6)) { | |
16860 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
16861 | } | |
16862 | arg6 = static_cast< long >(val6); | |
16863 | } | |
16864 | if (obj6) { | |
d55e5bfc | 16865 | { |
1bd55598 RD |
16866 | arg7 = &temp7; |
16867 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 16868 | } |
1bd55598 RD |
16869 | } |
16870 | { | |
16871 | if (!wxPyCheckForApp()) SWIG_fail; | |
16872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16873 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
16874 | wxPyEndAllowThreads(__tstate); | |
16875 | if (PyErr_Occurred()) SWIG_fail; | |
16876 | } | |
16877 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
16878 | { | |
16879 | if (temp2) | |
16880 | delete arg2; | |
16881 | } | |
16882 | { | |
16883 | if (temp3) | |
16884 | delete arg3; | |
16885 | } | |
16886 | { | |
16887 | if (temp4) | |
16888 | delete arg4; | |
16889 | } | |
16890 | { | |
16891 | if (temp5) | |
16892 | delete arg5; | |
16893 | } | |
16894 | return resultobj; | |
16895 | fail: | |
16896 | { | |
16897 | if (temp2) | |
16898 | delete arg2; | |
16899 | } | |
16900 | { | |
16901 | if (temp3) | |
16902 | delete arg3; | |
16903 | } | |
16904 | { | |
16905 | if (temp4) | |
16906 | delete arg4; | |
16907 | } | |
16908 | { | |
16909 | if (temp5) | |
16910 | delete arg5; | |
16911 | } | |
16912 | return NULL; | |
d55e5bfc RD |
16913 | } |
16914 | ||
16915 | ||
1bd55598 RD |
16916 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16917 | PyObject *resultobj = 0; | |
16918 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16919 | wxString *arg2 = 0 ; | |
16920 | void *argp1 = 0 ; | |
16921 | int res1 = 0 ; | |
16922 | bool temp2 = false ; | |
16923 | PyObject * obj0 = 0 ; | |
16924 | PyObject * obj1 = 0 ; | |
16925 | char * kwnames[] = { | |
16926 | (char *) "self",(char *) "message", NULL | |
16927 | }; | |
16928 | ||
16929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16931 | if (!SWIG_IsOK(res1)) { | |
16932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16933 | } | |
16934 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16935 | { | |
16936 | arg2 = wxString_in_helper(obj1); | |
16937 | if (arg2 == NULL) SWIG_fail; | |
16938 | temp2 = true; | |
16939 | } | |
16940 | { | |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | (arg1)->SetMessage((wxString const &)*arg2); | |
16943 | wxPyEndAllowThreads(__tstate); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | } | |
16946 | resultobj = SWIG_Py_Void(); | |
16947 | { | |
16948 | if (temp2) | |
16949 | delete arg2; | |
16950 | } | |
16951 | return resultobj; | |
16952 | fail: | |
16953 | { | |
16954 | if (temp2) | |
16955 | delete arg2; | |
16956 | } | |
16957 | return NULL; | |
d55e5bfc RD |
16958 | } |
16959 | ||
16960 | ||
1bd55598 RD |
16961 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16962 | PyObject *resultobj = 0; | |
16963 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
16964 | wxString *arg2 = 0 ; | |
16965 | void *argp1 = 0 ; | |
16966 | int res1 = 0 ; | |
16967 | bool temp2 = false ; | |
16968 | PyObject * obj0 = 0 ; | |
16969 | PyObject * obj1 = 0 ; | |
16970 | char * kwnames[] = { | |
16971 | (char *) "self",(char *) "path", NULL | |
16972 | }; | |
16973 | ||
16974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
16976 | if (!SWIG_IsOK(res1)) { | |
16977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
16978 | } | |
16979 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
16980 | { | |
16981 | arg2 = wxString_in_helper(obj1); | |
16982 | if (arg2 == NULL) SWIG_fail; | |
16983 | temp2 = true; | |
16984 | } | |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | (arg1)->SetPath((wxString const &)*arg2); | |
16988 | wxPyEndAllowThreads(__tstate); | |
16989 | if (PyErr_Occurred()) SWIG_fail; | |
16990 | } | |
16991 | resultobj = SWIG_Py_Void(); | |
16992 | { | |
16993 | if (temp2) | |
16994 | delete arg2; | |
16995 | } | |
16996 | return resultobj; | |
16997 | fail: | |
16998 | { | |
16999 | if (temp2) | |
17000 | delete arg2; | |
17001 | } | |
17002 | return NULL; | |
d55e5bfc RD |
17003 | } |
17004 | ||
17005 | ||
1bd55598 RD |
17006 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17007 | PyObject *resultobj = 0; | |
17008 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17009 | wxString *arg2 = 0 ; | |
17010 | void *argp1 = 0 ; | |
17011 | int res1 = 0 ; | |
17012 | bool temp2 = false ; | |
17013 | PyObject * obj0 = 0 ; | |
17014 | PyObject * obj1 = 0 ; | |
17015 | char * kwnames[] = { | |
17016 | (char *) "self",(char *) "dir", NULL | |
17017 | }; | |
17018 | ||
17019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17021 | if (!SWIG_IsOK(res1)) { | |
17022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17023 | } | |
17024 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17025 | { | |
17026 | arg2 = wxString_in_helper(obj1); | |
17027 | if (arg2 == NULL) SWIG_fail; | |
17028 | temp2 = true; | |
17029 | } | |
17030 | { | |
17031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17032 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17033 | wxPyEndAllowThreads(__tstate); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
17035 | } | |
17036 | resultobj = SWIG_Py_Void(); | |
17037 | { | |
17038 | if (temp2) | |
17039 | delete arg2; | |
17040 | } | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | { | |
17044 | if (temp2) | |
17045 | delete arg2; | |
17046 | } | |
17047 | return NULL; | |
d55e5bfc RD |
17048 | } |
17049 | ||
17050 | ||
1bd55598 RD |
17051 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17052 | PyObject *resultobj = 0; | |
17053 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17054 | wxString *arg2 = 0 ; | |
17055 | void *argp1 = 0 ; | |
17056 | int res1 = 0 ; | |
17057 | bool temp2 = false ; | |
17058 | PyObject * obj0 = 0 ; | |
17059 | PyObject * obj1 = 0 ; | |
17060 | char * kwnames[] = { | |
17061 | (char *) "self",(char *) "name", NULL | |
17062 | }; | |
17063 | ||
17064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17066 | if (!SWIG_IsOK(res1)) { | |
17067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17068 | } | |
17069 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17070 | { | |
17071 | arg2 = wxString_in_helper(obj1); | |
17072 | if (arg2 == NULL) SWIG_fail; | |
17073 | temp2 = true; | |
17074 | } | |
17075 | { | |
17076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17077 | (arg1)->SetFilename((wxString const &)*arg2); | |
17078 | wxPyEndAllowThreads(__tstate); | |
17079 | if (PyErr_Occurred()) SWIG_fail; | |
17080 | } | |
17081 | resultobj = SWIG_Py_Void(); | |
17082 | { | |
17083 | if (temp2) | |
17084 | delete arg2; | |
17085 | } | |
17086 | return resultobj; | |
17087 | fail: | |
17088 | { | |
17089 | if (temp2) | |
17090 | delete arg2; | |
17091 | } | |
17092 | return NULL; | |
d55e5bfc RD |
17093 | } |
17094 | ||
17095 | ||
1bd55598 RD |
17096 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17097 | PyObject *resultobj = 0; | |
17098 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17099 | wxString *arg2 = 0 ; | |
17100 | void *argp1 = 0 ; | |
17101 | int res1 = 0 ; | |
17102 | bool temp2 = false ; | |
17103 | PyObject * obj0 = 0 ; | |
17104 | PyObject * obj1 = 0 ; | |
17105 | char * kwnames[] = { | |
17106 | (char *) "self",(char *) "wildCard", NULL | |
17107 | }; | |
17108 | ||
17109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17111 | if (!SWIG_IsOK(res1)) { | |
17112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17113 | } | |
17114 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17115 | { | |
17116 | arg2 = wxString_in_helper(obj1); | |
17117 | if (arg2 == NULL) SWIG_fail; | |
17118 | temp2 = true; | |
17119 | } | |
17120 | { | |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17122 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17123 | wxPyEndAllowThreads(__tstate); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | resultobj = SWIG_Py_Void(); | |
17127 | { | |
17128 | if (temp2) | |
17129 | delete arg2; | |
17130 | } | |
17131 | return resultobj; | |
17132 | fail: | |
17133 | { | |
17134 | if (temp2) | |
17135 | delete arg2; | |
17136 | } | |
17137 | return NULL; | |
17138 | } | |
17139 | ||
17140 | ||
1bd55598 RD |
17141 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17142 | PyObject *resultobj = 0; | |
17143 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17144 | int arg2 ; | |
17145 | void *argp1 = 0 ; | |
17146 | int res1 = 0 ; | |
17147 | int val2 ; | |
17148 | int ecode2 = 0 ; | |
17149 | PyObject * obj0 = 0 ; | |
17150 | PyObject * obj1 = 0 ; | |
17151 | char * kwnames[] = { | |
17152 | (char *) "self",(char *) "filterIndex", NULL | |
17153 | }; | |
17154 | ||
17155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17157 | if (!SWIG_IsOK(res1)) { | |
17158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17159 | } | |
17160 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17162 | if (!SWIG_IsOK(ecode2)) { | |
17163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17164 | } | |
17165 | arg2 = static_cast< int >(val2); | |
17166 | { | |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | (arg1)->SetFilterIndex(arg2); | |
17169 | wxPyEndAllowThreads(__tstate); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
17172 | resultobj = SWIG_Py_Void(); | |
17173 | return resultobj; | |
17174 | fail: | |
17175 | return NULL; | |
d55e5bfc RD |
17176 | } |
17177 | ||
17178 | ||
1bd55598 RD |
17179 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17180 | PyObject *resultobj = 0; | |
17181 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17182 | wxString result; | |
17183 | void *argp1 = 0 ; | |
17184 | int res1 = 0 ; | |
17185 | PyObject *swig_obj[1] ; | |
17186 | ||
17187 | if (!args) SWIG_fail; | |
17188 | swig_obj[0] = args; | |
17189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17190 | if (!SWIG_IsOK(res1)) { | |
17191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17192 | } | |
17193 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17197 | wxPyEndAllowThreads(__tstate); | |
17198 | if (PyErr_Occurred()) SWIG_fail; | |
17199 | } | |
17200 | { | |
17201 | #if wxUSE_UNICODE | |
17202 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17203 | #else | |
17204 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17205 | #endif | |
17206 | } | |
17207 | return resultobj; | |
17208 | fail: | |
17209 | return NULL; | |
d55e5bfc RD |
17210 | } |
17211 | ||
17212 | ||
1bd55598 RD |
17213 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17214 | PyObject *resultobj = 0; | |
17215 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17216 | wxString result; | |
17217 | void *argp1 = 0 ; | |
17218 | int res1 = 0 ; | |
17219 | PyObject *swig_obj[1] ; | |
17220 | ||
17221 | if (!args) SWIG_fail; | |
17222 | swig_obj[0] = args; | |
17223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17224 | if (!SWIG_IsOK(res1)) { | |
17225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17226 | } | |
17227 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17228 | { | |
17229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17230 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | { | |
17235 | #if wxUSE_UNICODE | |
17236 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17237 | #else | |
17238 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17239 | #endif | |
17240 | } | |
17241 | return resultobj; | |
17242 | fail: | |
17243 | return NULL; | |
d55e5bfc RD |
17244 | } |
17245 | ||
17246 | ||
1bd55598 RD |
17247 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17248 | PyObject *resultobj = 0; | |
17249 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17250 | wxString result; | |
17251 | void *argp1 = 0 ; | |
17252 | int res1 = 0 ; | |
17253 | PyObject *swig_obj[1] ; | |
17254 | ||
17255 | if (!args) SWIG_fail; | |
17256 | swig_obj[0] = args; | |
17257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17258 | if (!SWIG_IsOK(res1)) { | |
17259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17260 | } | |
17261 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17262 | { | |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | #if wxUSE_UNICODE | |
17270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17271 | #else | |
17272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17273 | #endif | |
17274 | } | |
17275 | return resultobj; | |
17276 | fail: | |
17277 | return NULL; | |
d55e5bfc RD |
17278 | } |
17279 | ||
17280 | ||
1bd55598 RD |
17281 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17282 | PyObject *resultobj = 0; | |
17283 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17284 | wxString result; | |
17285 | void *argp1 = 0 ; | |
17286 | int res1 = 0 ; | |
17287 | PyObject *swig_obj[1] ; | |
17288 | ||
17289 | if (!args) SWIG_fail; | |
17290 | swig_obj[0] = args; | |
17291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17292 | if (!SWIG_IsOK(res1)) { | |
17293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17294 | } | |
17295 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17296 | { | |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17299 | wxPyEndAllowThreads(__tstate); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
17302 | { | |
17303 | #if wxUSE_UNICODE | |
17304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17305 | #else | |
17306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17307 | #endif | |
17308 | } | |
17309 | return resultobj; | |
17310 | fail: | |
17311 | return NULL; | |
d55e5bfc RD |
17312 | } |
17313 | ||
17314 | ||
1bd55598 RD |
17315 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17316 | PyObject *resultobj = 0; | |
17317 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17318 | wxString result; | |
17319 | void *argp1 = 0 ; | |
17320 | int res1 = 0 ; | |
17321 | PyObject *swig_obj[1] ; | |
17322 | ||
17323 | if (!args) SWIG_fail; | |
17324 | swig_obj[0] = args; | |
17325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17326 | if (!SWIG_IsOK(res1)) { | |
17327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17328 | } | |
17329 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17330 | { | |
17331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17332 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17333 | wxPyEndAllowThreads(__tstate); | |
17334 | if (PyErr_Occurred()) SWIG_fail; | |
17335 | } | |
17336 | { | |
17337 | #if wxUSE_UNICODE | |
17338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17339 | #else | |
17340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17341 | #endif | |
17342 | } | |
17343 | return resultobj; | |
17344 | fail: | |
17345 | return NULL; | |
d55e5bfc RD |
17346 | } |
17347 | ||
17348 | ||
1bd55598 RD |
17349 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17350 | PyObject *resultobj = 0; | |
17351 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17352 | int result; | |
17353 | void *argp1 = 0 ; | |
17354 | int res1 = 0 ; | |
17355 | PyObject *swig_obj[1] ; | |
17356 | ||
17357 | if (!args) SWIG_fail; | |
17358 | swig_obj[0] = args; | |
17359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17360 | if (!SWIG_IsOK(res1)) { | |
17361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17362 | } | |
17363 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17364 | { | |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17367 | wxPyEndAllowThreads(__tstate); | |
17368 | if (PyErr_Occurred()) SWIG_fail; | |
17369 | } | |
17370 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
d55e5bfc RD |
17374 | } |
17375 | ||
17376 | ||
1bd55598 RD |
17377 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17378 | PyObject *resultobj = 0; | |
17379 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17380 | PyObject *result = 0 ; | |
17381 | void *argp1 = 0 ; | |
17382 | int res1 = 0 ; | |
17383 | PyObject *swig_obj[1] ; | |
17384 | ||
17385 | if (!args) SWIG_fail; | |
17386 | swig_obj[0] = args; | |
17387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17388 | if (!SWIG_IsOK(res1)) { | |
17389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17390 | } | |
17391 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17392 | { | |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17395 | wxPyEndAllowThreads(__tstate); | |
17396 | if (PyErr_Occurred()) SWIG_fail; | |
17397 | } | |
17398 | resultobj = result; | |
17399 | return resultobj; | |
17400 | fail: | |
17401 | return NULL; | |
d55e5bfc RD |
17402 | } |
17403 | ||
17404 | ||
1bd55598 RD |
17405 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17406 | PyObject *resultobj = 0; | |
17407 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17408 | PyObject *result = 0 ; | |
17409 | void *argp1 = 0 ; | |
17410 | int res1 = 0 ; | |
17411 | PyObject *swig_obj[1] ; | |
17412 | ||
17413 | if (!args) SWIG_fail; | |
17414 | swig_obj[0] = args; | |
17415 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17416 | if (!SWIG_IsOK(res1)) { | |
17417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17418 | } | |
17419 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17420 | { | |
17421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17422 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17423 | wxPyEndAllowThreads(__tstate); | |
17424 | if (PyErr_Occurred()) SWIG_fail; | |
17425 | } | |
17426 | resultobj = result; | |
17427 | return resultobj; | |
17428 | fail: | |
17429 | return NULL; | |
17430 | } | |
17431 | ||
17432 | ||
17433 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17434 | PyObject *obj; | |
17435 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17436 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17437 | return SWIG_Py_Void(); | |
17438 | } | |
17439 | ||
17440 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17441 | return SWIG_Python_InitShadowInstance(args); | |
17442 | } | |
17443 | ||
17444 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17445 | PyObject *resultobj = 0; | |
17446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17447 | wxString *arg2 = 0 ; | |
17448 | wxString *arg3 = 0 ; | |
17449 | int arg4 = (int) 0 ; | |
17450 | wxString *arg5 = (wxString *) NULL ; | |
17451 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17452 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17453 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17454 | wxMultiChoiceDialog *result = 0 ; | |
17455 | void *argp1 = 0 ; | |
17456 | int res1 = 0 ; | |
17457 | bool temp2 = false ; | |
17458 | bool temp3 = false ; | |
17459 | long val6 ; | |
17460 | int ecode6 = 0 ; | |
17461 | wxPoint temp7 ; | |
17462 | PyObject * obj0 = 0 ; | |
17463 | PyObject * obj1 = 0 ; | |
17464 | PyObject * obj2 = 0 ; | |
17465 | PyObject * obj3 = 0 ; | |
17466 | PyObject * obj4 = 0 ; | |
17467 | PyObject * obj5 = 0 ; | |
17468 | char * kwnames[] = { | |
17469 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17470 | }; | |
17471 | ||
17472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17474 | if (!SWIG_IsOK(res1)) { | |
17475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17476 | } | |
17477 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17478 | { | |
17479 | arg2 = wxString_in_helper(obj1); | |
17480 | if (arg2 == NULL) SWIG_fail; | |
17481 | temp2 = true; | |
17482 | } | |
17483 | { | |
17484 | arg3 = wxString_in_helper(obj2); | |
17485 | if (arg3 == NULL) SWIG_fail; | |
17486 | temp3 = true; | |
17487 | } | |
17488 | if (obj3) { | |
d55e5bfc | 17489 | { |
1bd55598 RD |
17490 | arg4 = PyList_Size(obj3); |
17491 | arg5 = wxString_LIST_helper(obj3); | |
17492 | if (arg5 == NULL) SWIG_fail; | |
d55e5bfc | 17493 | } |
1bd55598 RD |
17494 | } |
17495 | if (obj4) { | |
17496 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17497 | if (!SWIG_IsOK(ecode6)) { | |
17498 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17499 | } | |
17500 | arg6 = static_cast< long >(val6); | |
17501 | } | |
17502 | if (obj5) { | |
36ed4f51 | 17503 | { |
1bd55598 RD |
17504 | arg7 = &temp7; |
17505 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
36ed4f51 | 17506 | } |
1bd55598 RD |
17507 | } |
17508 | { | |
17509 | if (!wxPyCheckForApp()) SWIG_fail; | |
17510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17511 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
17515 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17516 | { | |
17517 | if (temp2) | |
17518 | delete arg2; | |
17519 | } | |
17520 | { | |
17521 | if (temp3) | |
17522 | delete arg3; | |
17523 | } | |
17524 | { | |
17525 | if (arg5) delete [] arg5; | |
17526 | } | |
17527 | return resultobj; | |
17528 | fail: | |
17529 | { | |
17530 | if (temp2) | |
17531 | delete arg2; | |
17532 | } | |
17533 | { | |
17534 | if (temp3) | |
17535 | delete arg3; | |
17536 | } | |
17537 | { | |
17538 | if (arg5) delete [] arg5; | |
17539 | } | |
17540 | return NULL; | |
d55e5bfc RD |
17541 | } |
17542 | ||
17543 | ||
1bd55598 RD |
17544 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17545 | PyObject *resultobj = 0; | |
17546 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17547 | wxArrayInt *arg2 = 0 ; | |
17548 | void *argp1 = 0 ; | |
17549 | int res1 = 0 ; | |
17550 | bool temp2 = false ; | |
17551 | PyObject * obj0 = 0 ; | |
17552 | PyObject * obj1 = 0 ; | |
17553 | char * kwnames[] = { | |
17554 | (char *) "self",(char *) "selections", NULL | |
17555 | }; | |
17556 | ||
17557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17559 | if (!SWIG_IsOK(res1)) { | |
17560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17561 | } | |
17562 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17563 | { | |
17564 | if (! PySequence_Check(obj1)) { | |
17565 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17566 | SWIG_fail; | |
17567 | } | |
17568 | arg2 = new wxArrayInt; | |
17569 | temp2 = true; | |
17570 | int i, len=PySequence_Length(obj1); | |
17571 | for (i=0; i<len; i++) { | |
17572 | PyObject* item = PySequence_GetItem(obj1, i); | |
17573 | PyObject* number = PyNumber_Int(item); | |
17574 | arg2->Add(PyInt_AS_LONG(number)); | |
17575 | Py_DECREF(item); | |
17576 | Py_DECREF(number); | |
36ed4f51 | 17577 | } |
1bd55598 RD |
17578 | } |
17579 | { | |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | resultobj = SWIG_Py_Void(); | |
17586 | { | |
17587 | if (temp2) delete arg2; | |
17588 | } | |
17589 | return resultobj; | |
17590 | fail: | |
17591 | { | |
17592 | if (temp2) delete arg2; | |
17593 | } | |
17594 | return NULL; | |
d55e5bfc RD |
17595 | } |
17596 | ||
17597 | ||
1bd55598 RD |
17598 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17599 | PyObject *resultobj = 0; | |
17600 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17601 | PyObject *result = 0 ; | |
17602 | void *argp1 = 0 ; | |
17603 | int res1 = 0 ; | |
17604 | PyObject *swig_obj[1] ; | |
17605 | ||
17606 | if (!args) SWIG_fail; | |
17607 | swig_obj[0] = args; | |
17608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17609 | if (!SWIG_IsOK(res1)) { | |
17610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17611 | } | |
17612 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17613 | { | |
17614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17615 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
17616 | wxPyEndAllowThreads(__tstate); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | } | |
17619 | resultobj = result; | |
17620 | return resultobj; | |
17621 | fail: | |
17622 | return NULL; | |
17623 | } | |
17624 | ||
17625 | ||
17626 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17627 | PyObject *obj; | |
17628 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17629 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
17630 | return SWIG_Py_Void(); | |
17631 | } | |
17632 | ||
17633 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17634 | return SWIG_Python_InitShadowInstance(args); | |
17635 | } | |
17636 | ||
17637 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17638 | PyObject *resultobj = 0; | |
17639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17640 | wxString *arg2 = 0 ; | |
17641 | wxString *arg3 = 0 ; | |
17642 | int arg4 ; | |
17643 | wxString *arg5 = (wxString *) 0 ; | |
17644 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17645 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17646 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17647 | wxSingleChoiceDialog *result = 0 ; | |
17648 | void *argp1 = 0 ; | |
17649 | int res1 = 0 ; | |
17650 | bool temp2 = false ; | |
17651 | bool temp3 = false ; | |
17652 | long val6 ; | |
17653 | int ecode6 = 0 ; | |
17654 | wxPoint temp7 ; | |
17655 | PyObject * obj0 = 0 ; | |
17656 | PyObject * obj1 = 0 ; | |
17657 | PyObject * obj2 = 0 ; | |
17658 | PyObject * obj3 = 0 ; | |
17659 | PyObject * obj4 = 0 ; | |
17660 | PyObject * obj5 = 0 ; | |
17661 | char * kwnames[] = { | |
17662 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17663 | }; | |
17664 | ||
17665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17667 | if (!SWIG_IsOK(res1)) { | |
17668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17669 | } | |
17670 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17671 | { | |
17672 | arg2 = wxString_in_helper(obj1); | |
17673 | if (arg2 == NULL) SWIG_fail; | |
17674 | temp2 = true; | |
17675 | } | |
17676 | { | |
17677 | arg3 = wxString_in_helper(obj2); | |
17678 | if (arg3 == NULL) SWIG_fail; | |
17679 | temp3 = true; | |
17680 | } | |
17681 | { | |
17682 | arg4 = PyList_Size(obj3); | |
17683 | arg5 = wxString_LIST_helper(obj3); | |
17684 | if (arg5 == NULL) SWIG_fail; | |
17685 | } | |
17686 | if (obj4) { | |
17687 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17688 | if (!SWIG_IsOK(ecode6)) { | |
17689 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17690 | } | |
17691 | arg6 = static_cast< long >(val6); | |
17692 | } | |
17693 | if (obj5) { | |
36ed4f51 | 17694 | { |
1bd55598 RD |
17695 | arg7 = &temp7; |
17696 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
36ed4f51 | 17697 | } |
1bd55598 RD |
17698 | } |
17699 | { | |
17700 | if (!wxPyCheckForApp()) SWIG_fail; | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17703 | wxPyEndAllowThreads(__tstate); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | } | |
17706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17707 | { | |
17708 | if (temp2) | |
17709 | delete arg2; | |
17710 | } | |
17711 | { | |
17712 | if (temp3) | |
17713 | delete arg3; | |
17714 | } | |
17715 | { | |
17716 | if (arg5) delete [] arg5; | |
17717 | } | |
17718 | return resultobj; | |
17719 | fail: | |
17720 | { | |
17721 | if (temp2) | |
17722 | delete arg2; | |
17723 | } | |
17724 | { | |
17725 | if (temp3) | |
17726 | delete arg3; | |
17727 | } | |
17728 | { | |
17729 | if (arg5) delete [] arg5; | |
17730 | } | |
17731 | return NULL; | |
d55e5bfc RD |
17732 | } |
17733 | ||
17734 | ||
1bd55598 RD |
17735 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17736 | PyObject *resultobj = 0; | |
17737 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17738 | int result; | |
17739 | void *argp1 = 0 ; | |
17740 | int res1 = 0 ; | |
17741 | PyObject *swig_obj[1] ; | |
17742 | ||
17743 | if (!args) SWIG_fail; | |
17744 | swig_obj[0] = args; | |
17745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17746 | if (!SWIG_IsOK(res1)) { | |
17747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17748 | } | |
17749 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17750 | { | |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | result = (int)(arg1)->GetSelection(); | |
17753 | wxPyEndAllowThreads(__tstate); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
17756 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17757 | return resultobj; | |
17758 | fail: | |
17759 | return NULL; | |
d55e5bfc RD |
17760 | } |
17761 | ||
17762 | ||
1bd55598 RD |
17763 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17764 | PyObject *resultobj = 0; | |
17765 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17766 | wxString result; | |
17767 | void *argp1 = 0 ; | |
17768 | int res1 = 0 ; | |
17769 | PyObject *swig_obj[1] ; | |
17770 | ||
17771 | if (!args) SWIG_fail; | |
17772 | swig_obj[0] = args; | |
17773 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17774 | if (!SWIG_IsOK(res1)) { | |
17775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17776 | } | |
17777 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17778 | { | |
17779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17780 | result = (arg1)->GetStringSelection(); | |
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
17784 | { | |
17785 | #if wxUSE_UNICODE | |
17786 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17787 | #else | |
17788 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17789 | #endif | |
17790 | } | |
17791 | return resultobj; | |
17792 | fail: | |
17793 | return NULL; | |
17794 | } | |
17795 | ||
17796 | ||
17797 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17798 | PyObject *resultobj = 0; | |
17799 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17800 | int arg2 ; | |
17801 | void *argp1 = 0 ; | |
17802 | int res1 = 0 ; | |
17803 | int val2 ; | |
17804 | int ecode2 = 0 ; | |
17805 | PyObject * obj0 = 0 ; | |
17806 | PyObject * obj1 = 0 ; | |
17807 | char * kwnames[] = { | |
17808 | (char *) "self",(char *) "sel", NULL | |
17809 | }; | |
17810 | ||
17811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
17812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17813 | if (!SWIG_IsOK(res1)) { | |
17814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17815 | } | |
17816 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17818 | if (!SWIG_IsOK(ecode2)) { | |
17819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
17820 | } | |
17821 | arg2 = static_cast< int >(val2); | |
17822 | { | |
17823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17824 | (arg1)->SetSelection(arg2); | |
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
17828 | resultobj = SWIG_Py_Void(); | |
17829 | return resultobj; | |
17830 | fail: | |
17831 | return NULL; | |
17832 | } | |
17833 | ||
17834 | ||
17835 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17836 | PyObject *obj; | |
17837 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17838 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
17839 | return SWIG_Py_Void(); | |
17840 | } | |
17841 | ||
17842 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17843 | return SWIG_Python_InitShadowInstance(args); | |
17844 | } | |
17845 | ||
17846 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17847 | PyObject *resultobj = 0; | |
17848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17849 | wxString *arg2 = 0 ; | |
17850 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
17851 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17852 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17853 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17854 | long arg5 = (long) wxTextEntryDialogStyle ; | |
17855 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
17856 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
17857 | wxTextEntryDialog *result = 0 ; | |
17858 | void *argp1 = 0 ; | |
17859 | int res1 = 0 ; | |
17860 | bool temp2 = false ; | |
17861 | bool temp3 = false ; | |
17862 | bool temp4 = false ; | |
17863 | long val5 ; | |
17864 | int ecode5 = 0 ; | |
17865 | wxPoint temp6 ; | |
17866 | PyObject * obj0 = 0 ; | |
17867 | PyObject * obj1 = 0 ; | |
17868 | PyObject * obj2 = 0 ; | |
17869 | PyObject * obj3 = 0 ; | |
17870 | PyObject * obj4 = 0 ; | |
17871 | PyObject * obj5 = 0 ; | |
17872 | char * kwnames[] = { | |
17873 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
17874 | }; | |
17875 | ||
17876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17878 | if (!SWIG_IsOK(res1)) { | |
17879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17880 | } | |
17881 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17882 | { | |
17883 | arg2 = wxString_in_helper(obj1); | |
17884 | if (arg2 == NULL) SWIG_fail; | |
17885 | temp2 = true; | |
17886 | } | |
17887 | if (obj2) { | |
36ed4f51 | 17888 | { |
1bd55598 RD |
17889 | arg3 = wxString_in_helper(obj2); |
17890 | if (arg3 == NULL) SWIG_fail; | |
17891 | temp3 = true; | |
36ed4f51 | 17892 | } |
1bd55598 RD |
17893 | } |
17894 | if (obj3) { | |
d55e5bfc | 17895 | { |
1bd55598 RD |
17896 | arg4 = wxString_in_helper(obj3); |
17897 | if (arg4 == NULL) SWIG_fail; | |
17898 | temp4 = true; | |
d55e5bfc | 17899 | } |
1bd55598 RD |
17900 | } |
17901 | if (obj4) { | |
17902 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
17903 | if (!SWIG_IsOK(ecode5)) { | |
17904 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
17905 | } | |
17906 | arg5 = static_cast< long >(val5); | |
17907 | } | |
17908 | if (obj5) { | |
d55e5bfc | 17909 | { |
1bd55598 RD |
17910 | arg6 = &temp6; |
17911 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 17912 | } |
1bd55598 RD |
17913 | } |
17914 | { | |
17915 | if (!wxPyCheckForApp()) SWIG_fail; | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
17918 | wxPyEndAllowThreads(__tstate); | |
17919 | if (PyErr_Occurred()) SWIG_fail; | |
17920 | } | |
17921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
17922 | { | |
17923 | if (temp2) | |
17924 | delete arg2; | |
17925 | } | |
17926 | { | |
17927 | if (temp3) | |
17928 | delete arg3; | |
17929 | } | |
17930 | { | |
17931 | if (temp4) | |
17932 | delete arg4; | |
17933 | } | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | { | |
17937 | if (temp2) | |
17938 | delete arg2; | |
17939 | } | |
17940 | { | |
17941 | if (temp3) | |
17942 | delete arg3; | |
17943 | } | |
17944 | { | |
17945 | if (temp4) | |
17946 | delete arg4; | |
17947 | } | |
17948 | return NULL; | |
d55e5bfc RD |
17949 | } |
17950 | ||
17951 | ||
1bd55598 RD |
17952 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17953 | PyObject *resultobj = 0; | |
17954 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
17955 | wxString result; | |
17956 | void *argp1 = 0 ; | |
17957 | int res1 = 0 ; | |
17958 | PyObject *swig_obj[1] ; | |
17959 | ||
17960 | if (!args) SWIG_fail; | |
17961 | swig_obj[0] = args; | |
17962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
17963 | if (!SWIG_IsOK(res1)) { | |
17964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
17965 | } | |
17966 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
17967 | { | |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | result = (arg1)->GetValue(); | |
17970 | wxPyEndAllowThreads(__tstate); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
17972 | } | |
17973 | { | |
17974 | #if wxUSE_UNICODE | |
17975 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17976 | #else | |
17977 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17978 | #endif | |
17979 | } | |
17980 | return resultobj; | |
17981 | fail: | |
17982 | return NULL; | |
17983 | } | |
17984 | ||
17985 | ||
17986 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17987 | PyObject *resultobj = 0; | |
17988 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
17989 | wxString *arg2 = 0 ; | |
17990 | void *argp1 = 0 ; | |
17991 | int res1 = 0 ; | |
17992 | bool temp2 = false ; | |
17993 | PyObject * obj0 = 0 ; | |
17994 | PyObject * obj1 = 0 ; | |
17995 | char * kwnames[] = { | |
17996 | (char *) "self",(char *) "value", NULL | |
17997 | }; | |
17998 | ||
17999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18001 | if (!SWIG_IsOK(res1)) { | |
18002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18003 | } | |
18004 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18005 | { | |
18006 | arg2 = wxString_in_helper(obj1); | |
18007 | if (arg2 == NULL) SWIG_fail; | |
18008 | temp2 = true; | |
18009 | } | |
18010 | { | |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18012 | (arg1)->SetValue((wxString const &)*arg2); | |
18013 | wxPyEndAllowThreads(__tstate); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
18016 | resultobj = SWIG_Py_Void(); | |
18017 | { | |
18018 | if (temp2) | |
18019 | delete arg2; | |
18020 | } | |
18021 | return resultobj; | |
18022 | fail: | |
18023 | { | |
18024 | if (temp2) | |
18025 | delete arg2; | |
18026 | } | |
18027 | return NULL; | |
7993762b RD |
18028 | } |
18029 | ||
18030 | ||
1bd55598 RD |
18031 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18032 | PyObject *obj; | |
18033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18035 | return SWIG_Py_Void(); | |
7993762b RD |
18036 | } |
18037 | ||
1bd55598 RD |
18038 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18039 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc | 18040 | } |
1bd55598 RD |
18041 | |
18042 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { | |
18043 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18044 | return 1; | |
d55e5bfc RD |
18045 | } |
18046 | ||
18047 | ||
1bd55598 RD |
18048 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18049 | PyObject *pyobj = 0; | |
18050 | ||
18051 | { | |
d55e5bfc | 18052 | #if wxUSE_UNICODE |
1bd55598 | 18053 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); |
d55e5bfc | 18054 | #else |
1bd55598 | 18055 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); |
d55e5bfc | 18056 | #endif |
1bd55598 RD |
18057 | } |
18058 | return pyobj; | |
18059 | } | |
18060 | ||
18061 | ||
18062 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18063 | PyObject *resultobj = 0; | |
18064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18065 | wxString *arg2 = 0 ; | |
18066 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18067 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18068 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18069 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18070 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18071 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18072 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18073 | wxPasswordEntryDialog *result = 0 ; | |
18074 | void *argp1 = 0 ; | |
18075 | int res1 = 0 ; | |
18076 | bool temp2 = false ; | |
18077 | bool temp3 = false ; | |
18078 | bool temp4 = false ; | |
18079 | long val5 ; | |
18080 | int ecode5 = 0 ; | |
18081 | wxPoint temp6 ; | |
18082 | PyObject * obj0 = 0 ; | |
18083 | PyObject * obj1 = 0 ; | |
18084 | PyObject * obj2 = 0 ; | |
18085 | PyObject * obj3 = 0 ; | |
18086 | PyObject * obj4 = 0 ; | |
18087 | PyObject * obj5 = 0 ; | |
18088 | char * kwnames[] = { | |
18089 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18090 | }; | |
18091 | ||
18092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18094 | if (!SWIG_IsOK(res1)) { | |
18095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18096 | } | |
18097 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18098 | { | |
18099 | arg2 = wxString_in_helper(obj1); | |
18100 | if (arg2 == NULL) SWIG_fail; | |
18101 | temp2 = true; | |
18102 | } | |
18103 | if (obj2) { | |
d55e5bfc | 18104 | { |
1bd55598 RD |
18105 | arg3 = wxString_in_helper(obj2); |
18106 | if (arg3 == NULL) SWIG_fail; | |
18107 | temp3 = true; | |
d55e5bfc | 18108 | } |
1bd55598 RD |
18109 | } |
18110 | if (obj3) { | |
d55e5bfc | 18111 | { |
1bd55598 RD |
18112 | arg4 = wxString_in_helper(obj3); |
18113 | if (arg4 == NULL) SWIG_fail; | |
18114 | temp4 = true; | |
d55e5bfc | 18115 | } |
1bd55598 RD |
18116 | } |
18117 | if (obj4) { | |
18118 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18119 | if (!SWIG_IsOK(ecode5)) { | |
18120 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18121 | } | |
18122 | arg5 = static_cast< long >(val5); | |
18123 | } | |
18124 | if (obj5) { | |
d55e5bfc | 18125 | { |
1bd55598 RD |
18126 | arg6 = &temp6; |
18127 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
18128 | } | |
18129 | } | |
18130 | { | |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18137 | { | |
18138 | if (temp2) | |
18139 | delete arg2; | |
18140 | } | |
18141 | { | |
18142 | if (temp3) | |
18143 | delete arg3; | |
18144 | } | |
18145 | { | |
18146 | if (temp4) | |
18147 | delete arg4; | |
18148 | } | |
18149 | return resultobj; | |
18150 | fail: | |
18151 | { | |
18152 | if (temp2) | |
18153 | delete arg2; | |
18154 | } | |
18155 | { | |
18156 | if (temp3) | |
18157 | delete arg3; | |
18158 | } | |
18159 | { | |
18160 | if (temp4) | |
18161 | delete arg4; | |
18162 | } | |
18163 | return NULL; | |
d55e5bfc RD |
18164 | } |
18165 | ||
18166 | ||
1bd55598 RD |
18167 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18168 | PyObject *obj; | |
18169 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18170 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18171 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18172 | } |
18173 | ||
1bd55598 RD |
18174 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18175 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18176 | } |
18177 | ||
1bd55598 RD |
18178 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18179 | PyObject *resultobj = 0; | |
18180 | wxFontData *result = 0 ; | |
18181 | ||
18182 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18183 | { | |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | result = (wxFontData *)new wxFontData(); | |
18186 | wxPyEndAllowThreads(__tstate); | |
18187 | if (PyErr_Occurred()) SWIG_fail; | |
18188 | } | |
18189 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18190 | return resultobj; | |
18191 | fail: | |
18192 | return NULL; | |
d55e5bfc RD |
18193 | } |
18194 | ||
18195 | ||
1bd55598 RD |
18196 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18197 | PyObject *resultobj = 0; | |
18198 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18199 | void *argp1 = 0 ; | |
18200 | int res1 = 0 ; | |
18201 | PyObject *swig_obj[1] ; | |
18202 | ||
18203 | if (!args) SWIG_fail; | |
18204 | swig_obj[0] = args; | |
18205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18206 | if (!SWIG_IsOK(res1)) { | |
18207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18208 | } | |
18209 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18210 | { | |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | delete arg1; | |
d55e5bfc | 18213 | |
1bd55598 RD |
18214 | wxPyEndAllowThreads(__tstate); |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | resultobj = SWIG_Py_Void(); | |
18218 | return resultobj; | |
18219 | fail: | |
18220 | return NULL; | |
18221 | } | |
18222 | ||
18223 | ||
18224 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18225 | PyObject *resultobj = 0; | |
18226 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18227 | bool arg2 ; | |
18228 | void *argp1 = 0 ; | |
18229 | int res1 = 0 ; | |
18230 | bool val2 ; | |
18231 | int ecode2 = 0 ; | |
18232 | PyObject * obj0 = 0 ; | |
18233 | PyObject * obj1 = 0 ; | |
18234 | char * kwnames[] = { | |
18235 | (char *) "self",(char *) "enable", NULL | |
18236 | }; | |
18237 | ||
18238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18240 | if (!SWIG_IsOK(res1)) { | |
18241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18242 | } | |
18243 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18244 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18245 | if (!SWIG_IsOK(ecode2)) { | |
18246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18247 | } | |
18248 | arg2 = static_cast< bool >(val2); | |
18249 | { | |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | (arg1)->EnableEffects(arg2); | |
18252 | wxPyEndAllowThreads(__tstate); | |
18253 | if (PyErr_Occurred()) SWIG_fail; | |
18254 | } | |
18255 | resultobj = SWIG_Py_Void(); | |
18256 | return resultobj; | |
18257 | fail: | |
18258 | return NULL; | |
d55e5bfc RD |
18259 | } |
18260 | ||
18261 | ||
1bd55598 RD |
18262 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18263 | PyObject *resultobj = 0; | |
18264 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18265 | bool result; | |
18266 | void *argp1 = 0 ; | |
18267 | int res1 = 0 ; | |
18268 | PyObject *swig_obj[1] ; | |
18269 | ||
18270 | if (!args) SWIG_fail; | |
18271 | swig_obj[0] = args; | |
18272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18273 | if (!SWIG_IsOK(res1)) { | |
18274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18275 | } | |
18276 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | result = (bool)(arg1)->GetAllowSymbols(); | |
18280 | wxPyEndAllowThreads(__tstate); | |
18281 | if (PyErr_Occurred()) SWIG_fail; | |
18282 | } | |
18283 | { | |
18284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18285 | } | |
18286 | return resultobj; | |
18287 | fail: | |
18288 | return NULL; | |
d55e5bfc RD |
18289 | } |
18290 | ||
18291 | ||
1bd55598 RD |
18292 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18293 | PyObject *resultobj = 0; | |
18294 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18295 | wxColour result; | |
18296 | void *argp1 = 0 ; | |
18297 | int res1 = 0 ; | |
18298 | PyObject *swig_obj[1] ; | |
18299 | ||
18300 | if (!args) SWIG_fail; | |
18301 | swig_obj[0] = args; | |
18302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18303 | if (!SWIG_IsOK(res1)) { | |
18304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18305 | } | |
18306 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | result = (arg1)->GetColour(); | |
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
18313 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
d55e5bfc RD |
18317 | } |
18318 | ||
18319 | ||
1bd55598 RD |
18320 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18321 | PyObject *resultobj = 0; | |
18322 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18323 | wxFont result; | |
18324 | void *argp1 = 0 ; | |
18325 | int res1 = 0 ; | |
18326 | PyObject *swig_obj[1] ; | |
18327 | ||
18328 | if (!args) SWIG_fail; | |
18329 | swig_obj[0] = args; | |
18330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18331 | if (!SWIG_IsOK(res1)) { | |
18332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18333 | } | |
18334 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18335 | { | |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | result = (arg1)->GetChosenFont(); | |
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18342 | return resultobj; | |
18343 | fail: | |
18344 | return NULL; | |
d55e5bfc RD |
18345 | } |
18346 | ||
18347 | ||
1bd55598 RD |
18348 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18349 | PyObject *resultobj = 0; | |
18350 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18351 | bool result; | |
18352 | void *argp1 = 0 ; | |
18353 | int res1 = 0 ; | |
18354 | PyObject *swig_obj[1] ; | |
18355 | ||
18356 | if (!args) SWIG_fail; | |
18357 | swig_obj[0] = args; | |
18358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18359 | if (!SWIG_IsOK(res1)) { | |
18360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18361 | } | |
18362 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18363 | { | |
18364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18365 | result = (bool)(arg1)->GetEnableEffects(); | |
18366 | wxPyEndAllowThreads(__tstate); | |
18367 | if (PyErr_Occurred()) SWIG_fail; | |
18368 | } | |
18369 | { | |
18370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18371 | } | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
d55e5bfc RD |
18375 | } |
18376 | ||
18377 | ||
1bd55598 RD |
18378 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18379 | PyObject *resultobj = 0; | |
18380 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18381 | wxFont result; | |
18382 | void *argp1 = 0 ; | |
18383 | int res1 = 0 ; | |
18384 | PyObject *swig_obj[1] ; | |
18385 | ||
18386 | if (!args) SWIG_fail; | |
18387 | swig_obj[0] = args; | |
18388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18389 | if (!SWIG_IsOK(res1)) { | |
18390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18391 | } | |
18392 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18393 | { | |
18394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18395 | result = (arg1)->GetInitialFont(); | |
18396 | wxPyEndAllowThreads(__tstate); | |
18397 | if (PyErr_Occurred()) SWIG_fail; | |
18398 | } | |
18399 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18400 | return resultobj; | |
18401 | fail: | |
18402 | return NULL; | |
d55e5bfc RD |
18403 | } |
18404 | ||
18405 | ||
1bd55598 RD |
18406 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18407 | PyObject *resultobj = 0; | |
18408 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18409 | bool result; | |
18410 | void *argp1 = 0 ; | |
18411 | int res1 = 0 ; | |
18412 | PyObject *swig_obj[1] ; | |
18413 | ||
18414 | if (!args) SWIG_fail; | |
18415 | swig_obj[0] = args; | |
18416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18417 | if (!SWIG_IsOK(res1)) { | |
18418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18419 | } | |
18420 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18421 | { | |
18422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18423 | result = (bool)(arg1)->GetShowHelp(); | |
18424 | wxPyEndAllowThreads(__tstate); | |
18425 | if (PyErr_Occurred()) SWIG_fail; | |
18426 | } | |
18427 | { | |
18428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18429 | } | |
18430 | return resultobj; | |
18431 | fail: | |
18432 | return NULL; | |
18433 | } | |
18434 | ||
18435 | ||
18436 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18437 | PyObject *resultobj = 0; | |
18438 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18439 | bool arg2 ; | |
18440 | void *argp1 = 0 ; | |
18441 | int res1 = 0 ; | |
18442 | bool val2 ; | |
18443 | int ecode2 = 0 ; | |
18444 | PyObject * obj0 = 0 ; | |
18445 | PyObject * obj1 = 0 ; | |
18446 | char * kwnames[] = { | |
18447 | (char *) "self",(char *) "allowSymbols", NULL | |
18448 | }; | |
18449 | ||
18450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18452 | if (!SWIG_IsOK(res1)) { | |
18453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18454 | } | |
18455 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18456 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18457 | if (!SWIG_IsOK(ecode2)) { | |
18458 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
18459 | } | |
18460 | arg2 = static_cast< bool >(val2); | |
18461 | { | |
18462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18463 | (arg1)->SetAllowSymbols(arg2); | |
18464 | wxPyEndAllowThreads(__tstate); | |
18465 | if (PyErr_Occurred()) SWIG_fail; | |
18466 | } | |
18467 | resultobj = SWIG_Py_Void(); | |
18468 | return resultobj; | |
18469 | fail: | |
18470 | return NULL; | |
18471 | } | |
18472 | ||
18473 | ||
18474 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18475 | PyObject *resultobj = 0; | |
18476 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18477 | wxFont *arg2 = 0 ; | |
18478 | void *argp1 = 0 ; | |
18479 | int res1 = 0 ; | |
18480 | void *argp2 = 0 ; | |
18481 | int res2 = 0 ; | |
18482 | PyObject * obj0 = 0 ; | |
18483 | PyObject * obj1 = 0 ; | |
18484 | char * kwnames[] = { | |
18485 | (char *) "self",(char *) "font", NULL | |
18486 | }; | |
18487 | ||
18488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18490 | if (!SWIG_IsOK(res1)) { | |
18491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18492 | } | |
18493 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18494 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18495 | if (!SWIG_IsOK(res2)) { | |
18496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18497 | } | |
18498 | if (!argp2) { | |
18499 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18500 | } | |
18501 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18502 | { | |
18503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18504 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
18505 | wxPyEndAllowThreads(__tstate); | |
18506 | if (PyErr_Occurred()) SWIG_fail; | |
18507 | } | |
18508 | resultobj = SWIG_Py_Void(); | |
18509 | return resultobj; | |
18510 | fail: | |
18511 | return NULL; | |
18512 | } | |
18513 | ||
18514 | ||
18515 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18516 | PyObject *resultobj = 0; | |
18517 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18518 | wxColour *arg2 = 0 ; | |
18519 | void *argp1 = 0 ; | |
18520 | int res1 = 0 ; | |
18521 | wxColour temp2 ; | |
18522 | PyObject * obj0 = 0 ; | |
18523 | PyObject * obj1 = 0 ; | |
18524 | char * kwnames[] = { | |
18525 | (char *) "self",(char *) "colour", NULL | |
18526 | }; | |
18527 | ||
18528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
18529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18530 | if (!SWIG_IsOK(res1)) { | |
18531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18532 | } | |
18533 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18534 | { | |
18535 | arg2 = &temp2; | |
18536 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18537 | } | |
18538 | { | |
18539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18540 | (arg1)->SetColour((wxColour const &)*arg2); | |
18541 | wxPyEndAllowThreads(__tstate); | |
18542 | if (PyErr_Occurred()) SWIG_fail; | |
18543 | } | |
18544 | resultobj = SWIG_Py_Void(); | |
18545 | return resultobj; | |
18546 | fail: | |
18547 | return NULL; | |
18548 | } | |
18549 | ||
18550 | ||
18551 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18552 | PyObject *resultobj = 0; | |
18553 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18554 | wxFont *arg2 = 0 ; | |
18555 | void *argp1 = 0 ; | |
18556 | int res1 = 0 ; | |
18557 | void *argp2 = 0 ; | |
18558 | int res2 = 0 ; | |
18559 | PyObject * obj0 = 0 ; | |
18560 | PyObject * obj1 = 0 ; | |
18561 | char * kwnames[] = { | |
18562 | (char *) "self",(char *) "font", NULL | |
18563 | }; | |
18564 | ||
18565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18567 | if (!SWIG_IsOK(res1)) { | |
18568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18569 | } | |
18570 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18571 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18572 | if (!SWIG_IsOK(res2)) { | |
18573 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18574 | } | |
18575 | if (!argp2) { | |
18576 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18577 | } | |
18578 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18579 | { | |
18580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18581 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
18582 | wxPyEndAllowThreads(__tstate); | |
18583 | if (PyErr_Occurred()) SWIG_fail; | |
18584 | } | |
18585 | resultobj = SWIG_Py_Void(); | |
18586 | return resultobj; | |
18587 | fail: | |
18588 | return NULL; | |
18589 | } | |
18590 | ||
18591 | ||
18592 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18593 | PyObject *resultobj = 0; | |
18594 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18595 | int arg2 ; | |
18596 | int arg3 ; | |
18597 | void *argp1 = 0 ; | |
18598 | int res1 = 0 ; | |
18599 | int val2 ; | |
18600 | int ecode2 = 0 ; | |
18601 | int val3 ; | |
18602 | int ecode3 = 0 ; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | PyObject * obj1 = 0 ; | |
18605 | PyObject * obj2 = 0 ; | |
18606 | char * kwnames[] = { | |
18607 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18608 | }; | |
18609 | ||
18610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18612 | if (!SWIG_IsOK(res1)) { | |
18613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18614 | } | |
18615 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18616 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18617 | if (!SWIG_IsOK(ecode2)) { | |
18618 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18619 | } | |
18620 | arg2 = static_cast< int >(val2); | |
18621 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18622 | if (!SWIG_IsOK(ecode3)) { | |
18623 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18624 | } | |
18625 | arg3 = static_cast< int >(val3); | |
18626 | { | |
18627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18628 | (arg1)->SetRange(arg2,arg3); | |
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
18632 | resultobj = SWIG_Py_Void(); | |
18633 | return resultobj; | |
18634 | fail: | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj = 0; | |
18641 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18642 | bool arg2 ; | |
18643 | void *argp1 = 0 ; | |
18644 | int res1 = 0 ; | |
18645 | bool val2 ; | |
18646 | int ecode2 = 0 ; | |
18647 | PyObject * obj0 = 0 ; | |
18648 | PyObject * obj1 = 0 ; | |
18649 | char * kwnames[] = { | |
18650 | (char *) "self",(char *) "showHelp", NULL | |
18651 | }; | |
18652 | ||
18653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
18654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18655 | if (!SWIG_IsOK(res1)) { | |
18656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18657 | } | |
18658 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18659 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18660 | if (!SWIG_IsOK(ecode2)) { | |
18661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
18662 | } | |
18663 | arg2 = static_cast< bool >(val2); | |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | (arg1)->SetShowHelp(arg2); | |
18667 | wxPyEndAllowThreads(__tstate); | |
18668 | if (PyErr_Occurred()) SWIG_fail; | |
18669 | } | |
18670 | resultobj = SWIG_Py_Void(); | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | return NULL; | |
d55e5bfc RD |
18674 | } |
18675 | ||
18676 | ||
1bd55598 RD |
18677 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18678 | PyObject *obj; | |
18679 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18680 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
18681 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18682 | } |
18683 | ||
1bd55598 RD |
18684 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18685 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18686 | } |
18687 | ||
1bd55598 RD |
18688 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18689 | PyObject *resultobj = 0; | |
18690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18691 | wxFontData *arg2 = 0 ; | |
18692 | wxFontDialog *result = 0 ; | |
18693 | void *argp1 = 0 ; | |
18694 | int res1 = 0 ; | |
18695 | void *argp2 = 0 ; | |
18696 | int res2 = 0 ; | |
18697 | PyObject * obj0 = 0 ; | |
18698 | PyObject * obj1 = 0 ; | |
18699 | char * kwnames[] = { | |
18700 | (char *) "parent",(char *) "data", NULL | |
18701 | }; | |
18702 | ||
18703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
18704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18705 | if (!SWIG_IsOK(res1)) { | |
18706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18707 | } | |
18708 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18709 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
18710 | if (!SWIG_IsOK(res2)) { | |
18711 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18712 | } | |
18713 | if (!argp2) { | |
18714 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18715 | } | |
18716 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
18717 | { | |
18718 | if (!wxPyCheckForApp()) SWIG_fail; | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
18721 | wxPyEndAllowThreads(__tstate); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | } | |
18724 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
18725 | return resultobj; | |
18726 | fail: | |
18727 | return NULL; | |
d55e5bfc RD |
18728 | } |
18729 | ||
18730 | ||
1bd55598 RD |
18731 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18732 | PyObject *resultobj = 0; | |
18733 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
18734 | wxFontData *result = 0 ; | |
18735 | void *argp1 = 0 ; | |
18736 | int res1 = 0 ; | |
18737 | PyObject *swig_obj[1] ; | |
18738 | ||
18739 | if (!args) SWIG_fail; | |
18740 | swig_obj[0] = args; | |
18741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
18742 | if (!SWIG_IsOK(res1)) { | |
18743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
18744 | } | |
18745 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18748 | { |
1bd55598 RD |
18749 | wxFontData &_result_ref = (arg1)->GetFontData(); |
18750 | result = (wxFontData *) &_result_ref; | |
36ed4f51 | 18751 | } |
1bd55598 RD |
18752 | wxPyEndAllowThreads(__tstate); |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
18754 | } | |
18755 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18756 | return resultobj; | |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
18762 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18763 | PyObject *obj; | |
18764 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18765 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
18766 | return SWIG_Py_Void(); | |
18767 | } | |
18768 | ||
18769 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18770 | return SWIG_Python_InitShadowInstance(args); | |
18771 | } | |
18772 | ||
18773 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18774 | PyObject *resultobj = 0; | |
18775 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18776 | wxFont const &arg2_defvalue = wxNullFont ; | |
18777 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
18778 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
18779 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18780 | wxFont result; | |
18781 | void *argp1 = 0 ; | |
18782 | int res1 = 0 ; | |
18783 | void *argp2 = 0 ; | |
18784 | int res2 = 0 ; | |
18785 | bool temp3 = false ; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | PyObject * obj1 = 0 ; | |
18788 | PyObject * obj2 = 0 ; | |
18789 | char * kwnames[] = { | |
18790 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
18791 | }; | |
18792 | ||
18793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18794 | if (obj0) { | |
18795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18796 | if (!SWIG_IsOK(res1)) { | |
18797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
36ed4f51 | 18798 | } |
1bd55598 RD |
18799 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
18800 | } | |
18801 | if (obj1) { | |
18802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18803 | if (!SWIG_IsOK(res2)) { | |
18804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 18805 | } |
1bd55598 RD |
18806 | if (!argp2) { |
18807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 18808 | } |
1bd55598 RD |
18809 | arg2 = reinterpret_cast< wxFont * >(argp2); |
18810 | } | |
18811 | if (obj2) { | |
d55e5bfc | 18812 | { |
1bd55598 RD |
18813 | arg3 = wxString_in_helper(obj2); |
18814 | if (arg3 == NULL) SWIG_fail; | |
18815 | temp3 = true; | |
d55e5bfc | 18816 | } |
1bd55598 RD |
18817 | } |
18818 | { | |
18819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18820 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18825 | { | |
18826 | if (temp3) | |
18827 | delete arg3; | |
18828 | } | |
18829 | return resultobj; | |
18830 | fail: | |
18831 | { | |
18832 | if (temp3) | |
18833 | delete arg3; | |
18834 | } | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj = 0; | |
18841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18842 | wxString *arg2 = 0 ; | |
18843 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
18844 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18845 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
18846 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
18847 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
18848 | wxMessageDialog *result = 0 ; | |
18849 | void *argp1 = 0 ; | |
18850 | int res1 = 0 ; | |
18851 | bool temp2 = false ; | |
18852 | bool temp3 = false ; | |
18853 | long val4 ; | |
18854 | int ecode4 = 0 ; | |
18855 | wxPoint temp5 ; | |
18856 | PyObject * obj0 = 0 ; | |
18857 | PyObject * obj1 = 0 ; | |
18858 | PyObject * obj2 = 0 ; | |
18859 | PyObject * obj3 = 0 ; | |
18860 | PyObject * obj4 = 0 ; | |
18861 | char * kwnames[] = { | |
18862 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
18863 | }; | |
18864 | ||
18865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18867 | if (!SWIG_IsOK(res1)) { | |
18868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18869 | } | |
18870 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18871 | { | |
18872 | arg2 = wxString_in_helper(obj1); | |
18873 | if (arg2 == NULL) SWIG_fail; | |
18874 | temp2 = true; | |
18875 | } | |
18876 | if (obj2) { | |
36ed4f51 | 18877 | { |
1bd55598 RD |
18878 | arg3 = wxString_in_helper(obj2); |
18879 | if (arg3 == NULL) SWIG_fail; | |
18880 | temp3 = true; | |
36ed4f51 | 18881 | } |
1bd55598 RD |
18882 | } |
18883 | if (obj3) { | |
18884 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
18885 | if (!SWIG_IsOK(ecode4)) { | |
18886 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
18887 | } | |
18888 | arg4 = static_cast< long >(val4); | |
18889 | } | |
18890 | if (obj4) { | |
36ed4f51 | 18891 | { |
1bd55598 RD |
18892 | arg5 = &temp5; |
18893 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 18894 | } |
1bd55598 RD |
18895 | } |
18896 | { | |
18897 | if (!wxPyCheckForApp()) SWIG_fail; | |
18898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18899 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
18900 | wxPyEndAllowThreads(__tstate); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
18903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
18904 | { | |
18905 | if (temp2) | |
18906 | delete arg2; | |
18907 | } | |
18908 | { | |
18909 | if (temp3) | |
18910 | delete arg3; | |
18911 | } | |
18912 | return resultobj; | |
18913 | fail: | |
18914 | { | |
18915 | if (temp2) | |
18916 | delete arg2; | |
18917 | } | |
18918 | { | |
18919 | if (temp3) | |
18920 | delete arg3; | |
18921 | } | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
18926 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18927 | PyObject *obj; | |
18928 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18929 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
18930 | return SWIG_Py_Void(); | |
18931 | } | |
18932 | ||
18933 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18934 | return SWIG_Python_InitShadowInstance(args); | |
18935 | } | |
18936 | ||
18937 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18938 | PyObject *resultobj = 0; | |
18939 | wxString *arg1 = 0 ; | |
18940 | wxString *arg2 = 0 ; | |
18941 | int arg3 = (int) 100 ; | |
18942 | wxWindow *arg4 = (wxWindow *) NULL ; | |
18943 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
18944 | wxProgressDialog *result = 0 ; | |
18945 | bool temp1 = false ; | |
18946 | bool temp2 = false ; | |
18947 | int val3 ; | |
18948 | int ecode3 = 0 ; | |
18949 | void *argp4 = 0 ; | |
18950 | int res4 = 0 ; | |
18951 | int val5 ; | |
18952 | int ecode5 = 0 ; | |
18953 | PyObject * obj0 = 0 ; | |
18954 | PyObject * obj1 = 0 ; | |
18955 | PyObject * obj2 = 0 ; | |
18956 | PyObject * obj3 = 0 ; | |
18957 | PyObject * obj4 = 0 ; | |
18958 | char * kwnames[] = { | |
18959 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
18960 | }; | |
18961 | ||
18962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18963 | { | |
18964 | arg1 = wxString_in_helper(obj0); | |
18965 | if (arg1 == NULL) SWIG_fail; | |
18966 | temp1 = true; | |
18967 | } | |
18968 | { | |
18969 | arg2 = wxString_in_helper(obj1); | |
18970 | if (arg2 == NULL) SWIG_fail; | |
18971 | temp2 = true; | |
18972 | } | |
18973 | if (obj2) { | |
18974 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18975 | if (!SWIG_IsOK(ecode3)) { | |
18976 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
18977 | } | |
18978 | arg3 = static_cast< int >(val3); | |
18979 | } | |
18980 | if (obj3) { | |
18981 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18982 | if (!SWIG_IsOK(res4)) { | |
18983 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d55e5bfc | 18984 | } |
1bd55598 RD |
18985 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
18986 | } | |
18987 | if (obj4) { | |
18988 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18989 | if (!SWIG_IsOK(ecode5)) { | |
18990 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
18991 | } | |
18992 | arg5 = static_cast< int >(val5); | |
18993 | } | |
18994 | { | |
18995 | if (!wxPyCheckForApp()) SWIG_fail; | |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18998 | wxPyEndAllowThreads(__tstate); | |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
19001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19002 | { | |
19003 | if (temp1) | |
19004 | delete arg1; | |
19005 | } | |
19006 | { | |
19007 | if (temp2) | |
19008 | delete arg2; | |
19009 | } | |
19010 | return resultobj; | |
19011 | fail: | |
19012 | { | |
19013 | if (temp1) | |
19014 | delete arg1; | |
19015 | } | |
19016 | { | |
19017 | if (temp2) | |
19018 | delete arg2; | |
19019 | } | |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
19024 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19025 | PyObject *resultobj = 0; | |
19026 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19027 | int arg2 ; | |
19028 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19029 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2131d850 | 19030 | bool *arg4 = (bool *) 0 ; |
1bd55598 RD |
19031 | bool result; |
19032 | void *argp1 = 0 ; | |
19033 | int res1 = 0 ; | |
19034 | int val2 ; | |
19035 | int ecode2 = 0 ; | |
19036 | bool temp3 = false ; | |
2131d850 RD |
19037 | bool temp4 ; |
19038 | int res4 = SWIG_TMPOBJ ; | |
1bd55598 RD |
19039 | PyObject * obj0 = 0 ; |
19040 | PyObject * obj1 = 0 ; | |
19041 | PyObject * obj2 = 0 ; | |
19042 | char * kwnames[] = { | |
19043 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19044 | }; | |
19045 | ||
2131d850 | 19046 | arg4 = &temp4; |
1bd55598 RD |
19047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
19048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19049 | if (!SWIG_IsOK(res1)) { | |
19050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19051 | } | |
19052 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19053 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19054 | if (!SWIG_IsOK(ecode2)) { | |
19055 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19056 | } | |
19057 | arg2 = static_cast< int >(val2); | |
19058 | if (obj2) { | |
d55e5bfc | 19059 | { |
1bd55598 RD |
19060 | arg3 = wxString_in_helper(obj2); |
19061 | if (arg3 == NULL) SWIG_fail; | |
19062 | temp3 = true; | |
d55e5bfc | 19063 | } |
1bd55598 RD |
19064 | } |
19065 | { | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131d850 | 19067 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3,arg4); |
1bd55598 RD |
19068 | wxPyEndAllowThreads(__tstate); |
19069 | if (PyErr_Occurred()) SWIG_fail; | |
19070 | } | |
19071 | { | |
19072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19073 | } | |
2131d850 RD |
19074 | if (SWIG_IsTmpObj(res4)) { |
19075 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
19076 | } else { | |
19077 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19078 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
19079 | } | |
1bd55598 RD |
19080 | { |
19081 | if (temp3) | |
19082 | delete arg3; | |
19083 | } | |
19084 | return resultobj; | |
19085 | fail: | |
19086 | { | |
19087 | if (temp3) | |
19088 | delete arg3; | |
19089 | } | |
19090 | return NULL; | |
d55e5bfc RD |
19091 | } |
19092 | ||
19093 | ||
1bd55598 RD |
19094 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19095 | PyObject *resultobj = 0; | |
19096 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19097 | void *argp1 = 0 ; | |
19098 | int res1 = 0 ; | |
19099 | PyObject *swig_obj[1] ; | |
19100 | ||
19101 | if (!args) SWIG_fail; | |
19102 | swig_obj[0] = args; | |
19103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19104 | if (!SWIG_IsOK(res1)) { | |
19105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19106 | } | |
19107 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19108 | { | |
19109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19110 | (arg1)->Resume(); | |
19111 | wxPyEndAllowThreads(__tstate); | |
19112 | if (PyErr_Occurred()) SWIG_fail; | |
19113 | } | |
19114 | resultobj = SWIG_Py_Void(); | |
19115 | return resultobj; | |
19116 | fail: | |
19117 | return NULL; | |
d55e5bfc RD |
19118 | } |
19119 | ||
19120 | ||
1bd55598 RD |
19121 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19122 | PyObject *obj; | |
19123 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19124 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19125 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19126 | } |
19127 | ||
1bd55598 RD |
19128 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19129 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
19130 | } |
19131 | ||
1bd55598 RD |
19132 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19133 | PyObject *resultobj = 0; | |
19134 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19135 | int arg2 = (int) 0 ; | |
19136 | wxFindDialogEvent *result = 0 ; | |
19137 | int val1 ; | |
19138 | int ecode1 = 0 ; | |
19139 | int val2 ; | |
19140 | int ecode2 = 0 ; | |
19141 | PyObject * obj0 = 0 ; | |
19142 | PyObject * obj1 = 0 ; | |
19143 | char * kwnames[] = { | |
19144 | (char *) "commandType",(char *) "id", NULL | |
19145 | }; | |
19146 | ||
19147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19148 | if (obj0) { | |
19149 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19150 | if (!SWIG_IsOK(ecode1)) { | |
19151 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19152 | } | |
19153 | arg1 = static_cast< wxEventType >(val1); | |
19154 | } | |
19155 | if (obj1) { | |
19156 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19157 | if (!SWIG_IsOK(ecode2)) { | |
19158 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19159 | } | |
19160 | arg2 = static_cast< int >(val2); | |
19161 | } | |
19162 | { | |
19163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19164 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
19168 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19169 | return resultobj; | |
19170 | fail: | |
19171 | return NULL; | |
d55e5bfc RD |
19172 | } |
19173 | ||
19174 | ||
1bd55598 RD |
19175 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19176 | PyObject *resultobj = 0; | |
19177 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19178 | int result; | |
19179 | void *argp1 = 0 ; | |
19180 | int res1 = 0 ; | |
19181 | PyObject *swig_obj[1] ; | |
19182 | ||
19183 | if (!args) SWIG_fail; | |
19184 | swig_obj[0] = args; | |
19185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19186 | if (!SWIG_IsOK(res1)) { | |
19187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19188 | } | |
19189 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19190 | { | |
19191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19192 | result = (int)(arg1)->GetFlags(); | |
19193 | wxPyEndAllowThreads(__tstate); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
19195 | } | |
19196 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19197 | return resultobj; | |
19198 | fail: | |
19199 | return NULL; | |
d55e5bfc RD |
19200 | } |
19201 | ||
19202 | ||
1bd55598 RD |
19203 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19204 | PyObject *resultobj = 0; | |
19205 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19206 | wxString *result = 0 ; | |
19207 | void *argp1 = 0 ; | |
19208 | int res1 = 0 ; | |
19209 | PyObject *swig_obj[1] ; | |
19210 | ||
19211 | if (!args) SWIG_fail; | |
19212 | swig_obj[0] = args; | |
19213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19214 | if (!SWIG_IsOK(res1)) { | |
19215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19216 | } | |
19217 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19218 | { | |
19219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19220 | { |
1bd55598 RD |
19221 | wxString const &_result_ref = (arg1)->GetFindString(); |
19222 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19223 | } |
1bd55598 RD |
19224 | wxPyEndAllowThreads(__tstate); |
19225 | if (PyErr_Occurred()) SWIG_fail; | |
19226 | } | |
19227 | { | |
19228 | #if wxUSE_UNICODE | |
19229 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19230 | #else | |
19231 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19232 | #endif | |
19233 | } | |
19234 | return resultobj; | |
19235 | fail: | |
19236 | return NULL; | |
d55e5bfc RD |
19237 | } |
19238 | ||
19239 | ||
1bd55598 RD |
19240 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19241 | PyObject *resultobj = 0; | |
19242 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19243 | wxString *result = 0 ; | |
19244 | void *argp1 = 0 ; | |
19245 | int res1 = 0 ; | |
19246 | PyObject *swig_obj[1] ; | |
19247 | ||
19248 | if (!args) SWIG_fail; | |
19249 | swig_obj[0] = args; | |
19250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19251 | if (!SWIG_IsOK(res1)) { | |
19252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19253 | } | |
19254 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19255 | { | |
19256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19257 | { |
1bd55598 RD |
19258 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19259 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19260 | } |
1bd55598 RD |
19261 | wxPyEndAllowThreads(__tstate); |
19262 | if (PyErr_Occurred()) SWIG_fail; | |
19263 | } | |
19264 | { | |
19265 | #if wxUSE_UNICODE | |
19266 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19267 | #else | |
19268 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19269 | #endif | |
19270 | } | |
19271 | return resultobj; | |
19272 | fail: | |
19273 | return NULL; | |
d55e5bfc RD |
19274 | } |
19275 | ||
19276 | ||
1bd55598 RD |
19277 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19278 | PyObject *resultobj = 0; | |
19279 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19280 | wxFindReplaceDialog *result = 0 ; | |
19281 | void *argp1 = 0 ; | |
19282 | int res1 = 0 ; | |
19283 | PyObject *swig_obj[1] ; | |
19284 | ||
19285 | if (!args) SWIG_fail; | |
19286 | swig_obj[0] = args; | |
19287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19288 | if (!SWIG_IsOK(res1)) { | |
19289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19290 | } | |
19291 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19295 | wxPyEndAllowThreads(__tstate); | |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
19298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
19305 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19306 | PyObject *resultobj = 0; | |
19307 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19308 | int arg2 ; | |
19309 | void *argp1 = 0 ; | |
19310 | int res1 = 0 ; | |
19311 | int val2 ; | |
19312 | int ecode2 = 0 ; | |
19313 | PyObject * obj0 = 0 ; | |
19314 | PyObject * obj1 = 0 ; | |
19315 | char * kwnames[] = { | |
19316 | (char *) "self",(char *) "flags", NULL | |
19317 | }; | |
19318 | ||
19319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19321 | if (!SWIG_IsOK(res1)) { | |
19322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19323 | } | |
19324 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19325 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19326 | if (!SWIG_IsOK(ecode2)) { | |
19327 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19328 | } | |
19329 | arg2 = static_cast< int >(val2); | |
19330 | { | |
19331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19332 | (arg1)->SetFlags(arg2); | |
19333 | wxPyEndAllowThreads(__tstate); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | resultobj = SWIG_Py_Void(); | |
19337 | return resultobj; | |
19338 | fail: | |
19339 | return NULL; | |
19340 | } | |
19341 | ||
19342 | ||
19343 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19344 | PyObject *resultobj = 0; | |
19345 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19346 | wxString *arg2 = 0 ; | |
19347 | void *argp1 = 0 ; | |
19348 | int res1 = 0 ; | |
19349 | bool temp2 = false ; | |
19350 | PyObject * obj0 = 0 ; | |
19351 | PyObject * obj1 = 0 ; | |
19352 | char * kwnames[] = { | |
19353 | (char *) "self",(char *) "str", NULL | |
19354 | }; | |
19355 | ||
19356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19358 | if (!SWIG_IsOK(res1)) { | |
19359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19360 | } | |
19361 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19362 | { | |
19363 | arg2 = wxString_in_helper(obj1); | |
19364 | if (arg2 == NULL) SWIG_fail; | |
19365 | temp2 = true; | |
19366 | } | |
19367 | { | |
19368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19369 | (arg1)->SetFindString((wxString const &)*arg2); | |
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | resultobj = SWIG_Py_Void(); | |
19374 | { | |
19375 | if (temp2) | |
19376 | delete arg2; | |
19377 | } | |
19378 | return resultobj; | |
19379 | fail: | |
19380 | { | |
19381 | if (temp2) | |
19382 | delete arg2; | |
19383 | } | |
19384 | return NULL; | |
d55e5bfc RD |
19385 | } |
19386 | ||
19387 | ||
1bd55598 RD |
19388 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19389 | PyObject *resultobj = 0; | |
19390 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19391 | wxString *arg2 = 0 ; | |
19392 | void *argp1 = 0 ; | |
19393 | int res1 = 0 ; | |
19394 | bool temp2 = false ; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | char * kwnames[] = { | |
19398 | (char *) "self",(char *) "str", NULL | |
19399 | }; | |
19400 | ||
19401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19403 | if (!SWIG_IsOK(res1)) { | |
19404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19405 | } | |
19406 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19407 | { | |
19408 | arg2 = wxString_in_helper(obj1); | |
19409 | if (arg2 == NULL) SWIG_fail; | |
19410 | temp2 = true; | |
19411 | } | |
19412 | { | |
19413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19414 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = SWIG_Py_Void(); | |
19419 | { | |
19420 | if (temp2) | |
19421 | delete arg2; | |
19422 | } | |
19423 | return resultobj; | |
19424 | fail: | |
19425 | { | |
19426 | if (temp2) | |
19427 | delete arg2; | |
19428 | } | |
19429 | return NULL; | |
d55e5bfc RD |
19430 | } |
19431 | ||
19432 | ||
1bd55598 RD |
19433 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19434 | PyObject *obj; | |
19435 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19436 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19437 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19438 | } |
19439 | ||
1bd55598 RD |
19440 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19441 | return SWIG_Python_InitShadowInstance(args); | |
19442 | } | |
d55e5bfc | 19443 | |
1bd55598 RD |
19444 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19445 | PyObject *resultobj = 0; | |
19446 | int arg1 = (int) 0 ; | |
19447 | wxFindReplaceData *result = 0 ; | |
19448 | int val1 ; | |
19449 | int ecode1 = 0 ; | |
19450 | PyObject * obj0 = 0 ; | |
19451 | char * kwnames[] = { | |
19452 | (char *) "flags", NULL | |
19453 | }; | |
19454 | ||
19455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
19456 | if (obj0) { | |
19457 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19458 | if (!SWIG_IsOK(ecode1)) { | |
19459 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
19460 | } | |
19461 | arg1 = static_cast< int >(val1); | |
19462 | } | |
19463 | { | |
19464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19465 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
19466 | wxPyEndAllowThreads(__tstate); | |
19467 | if (PyErr_Occurred()) SWIG_fail; | |
19468 | } | |
19469 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
19470 | return resultobj; | |
19471 | fail: | |
19472 | return NULL; | |
d6c14a4c RD |
19473 | } |
19474 | ||
19475 | ||
1bd55598 RD |
19476 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19477 | PyObject *resultobj = 0; | |
19478 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19479 | void *argp1 = 0 ; | |
19480 | int res1 = 0 ; | |
19481 | PyObject *swig_obj[1] ; | |
19482 | ||
19483 | if (!args) SWIG_fail; | |
19484 | swig_obj[0] = args; | |
19485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
19486 | if (!SWIG_IsOK(res1)) { | |
19487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19488 | } | |
19489 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19490 | { | |
19491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19492 | delete arg1; | |
d55e5bfc | 19493 | |
1bd55598 RD |
19494 | wxPyEndAllowThreads(__tstate); |
19495 | if (PyErr_Occurred()) SWIG_fail; | |
19496 | } | |
19497 | resultobj = SWIG_Py_Void(); | |
19498 | return resultobj; | |
19499 | fail: | |
19500 | return NULL; | |
d55e5bfc RD |
19501 | } |
19502 | ||
19503 | ||
1bd55598 RD |
19504 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19505 | PyObject *resultobj = 0; | |
19506 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19507 | wxString *result = 0 ; | |
19508 | void *argp1 = 0 ; | |
19509 | int res1 = 0 ; | |
19510 | PyObject *swig_obj[1] ; | |
19511 | ||
19512 | if (!args) SWIG_fail; | |
19513 | swig_obj[0] = args; | |
19514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19515 | if (!SWIG_IsOK(res1)) { | |
19516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19517 | } | |
19518 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19521 | { |
1bd55598 RD |
19522 | wxString const &_result_ref = (arg1)->GetFindString(); |
19523 | result = (wxString *) &_result_ref; | |
19524 | } | |
19525 | wxPyEndAllowThreads(__tstate); | |
19526 | if (PyErr_Occurred()) SWIG_fail; | |
19527 | } | |
19528 | { | |
19529 | #if wxUSE_UNICODE | |
19530 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19531 | #else | |
19532 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19533 | #endif | |
19534 | } | |
19535 | return resultobj; | |
19536 | fail: | |
19537 | return NULL; | |
7e08d4ef RD |
19538 | } |
19539 | ||
19540 | ||
1bd55598 RD |
19541 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19542 | PyObject *resultobj = 0; | |
19543 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19544 | wxString *result = 0 ; | |
19545 | void *argp1 = 0 ; | |
19546 | int res1 = 0 ; | |
19547 | PyObject *swig_obj[1] ; | |
19548 | ||
19549 | if (!args) SWIG_fail; | |
19550 | swig_obj[0] = args; | |
19551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19552 | if (!SWIG_IsOK(res1)) { | |
19553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19554 | } | |
19555 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19556 | { | |
19557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 19558 | { |
1bd55598 RD |
19559 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19560 | result = (wxString *) &_result_ref; | |
36ed4f51 | 19561 | } |
1bd55598 RD |
19562 | wxPyEndAllowThreads(__tstate); |
19563 | if (PyErr_Occurred()) SWIG_fail; | |
19564 | } | |
19565 | { | |
19566 | #if wxUSE_UNICODE | |
19567 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19568 | #else | |
19569 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19570 | #endif | |
19571 | } | |
19572 | return resultobj; | |
19573 | fail: | |
19574 | return NULL; | |
d55e5bfc RD |
19575 | } |
19576 | ||
19577 | ||
1bd55598 RD |
19578 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19579 | PyObject *resultobj = 0; | |
19580 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19581 | int result; | |
19582 | void *argp1 = 0 ; | |
19583 | int res1 = 0 ; | |
19584 | PyObject *swig_obj[1] ; | |
19585 | ||
19586 | if (!args) SWIG_fail; | |
19587 | swig_obj[0] = args; | |
19588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19589 | if (!SWIG_IsOK(res1)) { | |
19590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19591 | } | |
19592 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19593 | { | |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | result = (int)(arg1)->GetFlags(); | |
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19600 | return resultobj; | |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj = 0; | |
19608 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19609 | int arg2 ; | |
19610 | void *argp1 = 0 ; | |
19611 | int res1 = 0 ; | |
19612 | int val2 ; | |
19613 | int ecode2 = 0 ; | |
19614 | PyObject * obj0 = 0 ; | |
19615 | PyObject * obj1 = 0 ; | |
19616 | char * kwnames[] = { | |
19617 | (char *) "self",(char *) "flags", NULL | |
19618 | }; | |
19619 | ||
19620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19622 | if (!SWIG_IsOK(res1)) { | |
19623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19624 | } | |
19625 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19626 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19627 | if (!SWIG_IsOK(ecode2)) { | |
19628 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19629 | } | |
19630 | arg2 = static_cast< int >(val2); | |
19631 | { | |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19633 | (arg1)->SetFlags(arg2); | |
19634 | wxPyEndAllowThreads(__tstate); | |
19635 | if (PyErr_Occurred()) SWIG_fail; | |
19636 | } | |
19637 | resultobj = SWIG_Py_Void(); | |
19638 | return resultobj; | |
19639 | fail: | |
19640 | return NULL; | |
19641 | } | |
19642 | ||
19643 | ||
19644 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19645 | PyObject *resultobj = 0; | |
19646 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19647 | wxString *arg2 = 0 ; | |
19648 | void *argp1 = 0 ; | |
19649 | int res1 = 0 ; | |
19650 | bool temp2 = false ; | |
19651 | PyObject * obj0 = 0 ; | |
19652 | PyObject * obj1 = 0 ; | |
19653 | char * kwnames[] = { | |
19654 | (char *) "self",(char *) "str", NULL | |
19655 | }; | |
19656 | ||
19657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19659 | if (!SWIG_IsOK(res1)) { | |
19660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19661 | } | |
19662 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19663 | { | |
19664 | arg2 = wxString_in_helper(obj1); | |
19665 | if (arg2 == NULL) SWIG_fail; | |
19666 | temp2 = true; | |
19667 | } | |
19668 | { | |
19669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19670 | (arg1)->SetFindString((wxString const &)*arg2); | |
19671 | wxPyEndAllowThreads(__tstate); | |
19672 | if (PyErr_Occurred()) SWIG_fail; | |
19673 | } | |
19674 | resultobj = SWIG_Py_Void(); | |
19675 | { | |
19676 | if (temp2) | |
19677 | delete arg2; | |
19678 | } | |
19679 | return resultobj; | |
19680 | fail: | |
19681 | { | |
19682 | if (temp2) | |
19683 | delete arg2; | |
19684 | } | |
19685 | return NULL; | |
d55e5bfc RD |
19686 | } |
19687 | ||
19688 | ||
1bd55598 RD |
19689 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19690 | PyObject *resultobj = 0; | |
19691 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19692 | wxString *arg2 = 0 ; | |
19693 | void *argp1 = 0 ; | |
19694 | int res1 = 0 ; | |
19695 | bool temp2 = false ; | |
19696 | PyObject * obj0 = 0 ; | |
19697 | PyObject * obj1 = 0 ; | |
19698 | char * kwnames[] = { | |
19699 | (char *) "self",(char *) "str", NULL | |
19700 | }; | |
19701 | ||
19702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19704 | if (!SWIG_IsOK(res1)) { | |
19705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19706 | } | |
19707 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19708 | { | |
19709 | arg2 = wxString_in_helper(obj1); | |
19710 | if (arg2 == NULL) SWIG_fail; | |
19711 | temp2 = true; | |
19712 | } | |
19713 | { | |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | resultobj = SWIG_Py_Void(); | |
19720 | { | |
19721 | if (temp2) | |
19722 | delete arg2; | |
19723 | } | |
19724 | return resultobj; | |
19725 | fail: | |
19726 | { | |
19727 | if (temp2) | |
19728 | delete arg2; | |
19729 | } | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19735 | PyObject *obj; | |
19736 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19737 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
19738 | return SWIG_Py_Void(); | |
19739 | } | |
19740 | ||
19741 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19742 | return SWIG_Python_InitShadowInstance(args); | |
19743 | } | |
19744 | ||
19745 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19746 | PyObject *resultobj = 0; | |
19747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19748 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
19749 | wxString *arg3 = 0 ; | |
19750 | int arg4 = (int) 0 ; | |
19751 | wxFindReplaceDialog *result = 0 ; | |
19752 | void *argp1 = 0 ; | |
19753 | int res1 = 0 ; | |
19754 | void *argp2 = 0 ; | |
19755 | int res2 = 0 ; | |
19756 | bool temp3 = false ; | |
19757 | int val4 ; | |
19758 | int ecode4 = 0 ; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | PyObject * obj1 = 0 ; | |
19761 | PyObject * obj2 = 0 ; | |
19762 | PyObject * obj3 = 0 ; | |
19763 | char * kwnames[] = { | |
19764 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
19765 | }; | |
19766 | ||
19767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19769 | if (!SWIG_IsOK(res1)) { | |
19770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19771 | } | |
19772 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19773 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19774 | if (!SWIG_IsOK(res2)) { | |
19775 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
19776 | } | |
19777 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
19778 | { | |
19779 | arg3 = wxString_in_helper(obj2); | |
19780 | if (arg3 == NULL) SWIG_fail; | |
19781 | temp3 = true; | |
19782 | } | |
19783 | if (obj3) { | |
19784 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19785 | if (!SWIG_IsOK(ecode4)) { | |
19786 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
19787 | } | |
19788 | arg4 = static_cast< int >(val4); | |
19789 | } | |
19790 | { | |
19791 | if (!wxPyCheckForApp()) SWIG_fail; | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
19797 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
19798 | { | |
19799 | if (temp3) | |
19800 | delete arg3; | |
19801 | } | |
19802 | return resultobj; | |
19803 | fail: | |
19804 | { | |
19805 | if (temp3) | |
19806 | delete arg3; | |
19807 | } | |
19808 | return NULL; | |
b411df4a RD |
19809 | } |
19810 | ||
19811 | ||
1bd55598 RD |
19812 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19813 | PyObject *resultobj = 0; | |
19814 | wxFindReplaceDialog *result = 0 ; | |
19815 | ||
19816 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
19817 | { | |
19818 | if (!wxPyCheckForApp()) SWIG_fail; | |
19819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19820 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
19824 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
19825 | return resultobj; | |
19826 | fail: | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
19831 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19832 | PyObject *resultobj = 0; | |
19833 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19834 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19835 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
19836 | wxString *arg4 = 0 ; | |
19837 | int arg5 = (int) 0 ; | |
19838 | bool result; | |
19839 | void *argp1 = 0 ; | |
19840 | int res1 = 0 ; | |
19841 | void *argp2 = 0 ; | |
19842 | int res2 = 0 ; | |
19843 | void *argp3 = 0 ; | |
19844 | int res3 = 0 ; | |
19845 | bool temp4 = false ; | |
19846 | int val5 ; | |
19847 | int ecode5 = 0 ; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | PyObject * obj1 = 0 ; | |
19850 | PyObject * obj2 = 0 ; | |
19851 | PyObject * obj3 = 0 ; | |
19852 | PyObject * obj4 = 0 ; | |
19853 | char * kwnames[] = { | |
19854 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
19855 | }; | |
19856 | ||
19857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19859 | if (!SWIG_IsOK(res1)) { | |
19860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19861 | } | |
19862 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19863 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19864 | if (!SWIG_IsOK(res2)) { | |
19865 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
19866 | } | |
19867 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
19868 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19869 | if (!SWIG_IsOK(res3)) { | |
19870 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
19871 | } | |
19872 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
19873 | { | |
19874 | arg4 = wxString_in_helper(obj3); | |
19875 | if (arg4 == NULL) SWIG_fail; | |
19876 | temp4 = true; | |
19877 | } | |
19878 | if (obj4) { | |
19879 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19880 | if (!SWIG_IsOK(ecode5)) { | |
19881 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
19882 | } | |
19883 | arg5 = static_cast< int >(val5); | |
19884 | } | |
19885 | { | |
19886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19887 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
19888 | wxPyEndAllowThreads(__tstate); | |
19889 | if (PyErr_Occurred()) SWIG_fail; | |
19890 | } | |
19891 | { | |
19892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19893 | } | |
19894 | { | |
19895 | if (temp4) | |
19896 | delete arg4; | |
19897 | } | |
19898 | return resultobj; | |
19899 | fail: | |
19900 | { | |
19901 | if (temp4) | |
19902 | delete arg4; | |
19903 | } | |
19904 | return NULL; | |
b411df4a RD |
19905 | } |
19906 | ||
19907 | ||
1bd55598 RD |
19908 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19909 | PyObject *resultobj = 0; | |
19910 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19911 | wxFindReplaceData *result = 0 ; | |
19912 | void *argp1 = 0 ; | |
19913 | int res1 = 0 ; | |
19914 | PyObject *swig_obj[1] ; | |
19915 | ||
19916 | if (!args) SWIG_fail; | |
19917 | swig_obj[0] = args; | |
19918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19919 | if (!SWIG_IsOK(res1)) { | |
19920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19921 | } | |
19922 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19923 | { | |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
19926 | wxPyEndAllowThreads(__tstate); | |
19927 | if (PyErr_Occurred()) SWIG_fail; | |
19928 | } | |
19929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19930 | return resultobj; | |
19931 | fail: | |
19932 | return NULL; | |
19933 | } | |
19934 | ||
19935 | ||
19936 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19937 | PyObject *resultobj = 0; | |
19938 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
19939 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
19940 | void *argp1 = 0 ; | |
19941 | int res1 = 0 ; | |
19942 | void *argp2 = 0 ; | |
19943 | int res2 = 0 ; | |
19944 | PyObject * obj0 = 0 ; | |
19945 | PyObject * obj1 = 0 ; | |
19946 | char * kwnames[] = { | |
19947 | (char *) "self",(char *) "data", NULL | |
19948 | }; | |
19949 | ||
19950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
19951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19952 | if (!SWIG_IsOK(res1)) { | |
19953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
19954 | } | |
19955 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
19956 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19957 | if (!SWIG_IsOK(res2)) { | |
19958 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
19959 | } | |
19960 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
19961 | { | |
19962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19963 | (arg1)->SetData(arg2); | |
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | resultobj = SWIG_Py_Void(); | |
19968 | return resultobj; | |
19969 | fail: | |
19970 | return NULL; | |
19971 | } | |
19972 | ||
19973 | ||
19974 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19975 | PyObject *obj; | |
19976 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19977 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
19978 | return SWIG_Py_Void(); | |
19979 | } | |
19980 | ||
19981 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19982 | return SWIG_Python_InitShadowInstance(args); | |
19983 | } | |
19984 | ||
19985 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19986 | PyObject *resultobj = 0; | |
19987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19988 | int arg2 = (int) (int)-1 ; | |
19989 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19990 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19991 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
19992 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19993 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19994 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19995 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
19996 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
19997 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19998 | wxMDIParentFrame *result = 0 ; | |
19999 | void *argp1 = 0 ; | |
20000 | int res1 = 0 ; | |
20001 | int val2 ; | |
20002 | int ecode2 = 0 ; | |
20003 | bool temp3 = false ; | |
20004 | wxPoint temp4 ; | |
20005 | wxSize temp5 ; | |
20006 | long val6 ; | |
20007 | int ecode6 = 0 ; | |
20008 | bool temp7 = false ; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | PyObject * obj1 = 0 ; | |
20011 | PyObject * obj2 = 0 ; | |
20012 | PyObject * obj3 = 0 ; | |
20013 | PyObject * obj4 = 0 ; | |
20014 | PyObject * obj5 = 0 ; | |
20015 | PyObject * obj6 = 0 ; | |
20016 | char * kwnames[] = { | |
20017 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20018 | }; | |
20019 | ||
20020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20022 | if (!SWIG_IsOK(res1)) { | |
20023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20024 | } | |
20025 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20026 | if (obj1) { | |
20027 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20028 | if (!SWIG_IsOK(ecode2)) { | |
20029 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20030 | } | |
20031 | arg2 = static_cast< int >(val2); | |
20032 | } | |
20033 | if (obj2) { | |
b411df4a | 20034 | { |
1bd55598 RD |
20035 | arg3 = wxString_in_helper(obj2); |
20036 | if (arg3 == NULL) SWIG_fail; | |
20037 | temp3 = true; | |
b411df4a | 20038 | } |
1bd55598 RD |
20039 | } |
20040 | if (obj3) { | |
b411df4a | 20041 | { |
1bd55598 RD |
20042 | arg4 = &temp4; |
20043 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
b411df4a | 20044 | } |
1bd55598 RD |
20045 | } |
20046 | if (obj4) { | |
b411df4a | 20047 | { |
1bd55598 RD |
20048 | arg5 = &temp5; |
20049 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
b411df4a | 20050 | } |
1bd55598 RD |
20051 | } |
20052 | if (obj5) { | |
20053 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20054 | if (!SWIG_IsOK(ecode6)) { | |
20055 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20056 | } | |
20057 | arg6 = static_cast< long >(val6); | |
20058 | } | |
20059 | if (obj6) { | |
b411df4a | 20060 | { |
1bd55598 RD |
20061 | arg7 = wxString_in_helper(obj6); |
20062 | if (arg7 == NULL) SWIG_fail; | |
20063 | temp7 = true; | |
b411df4a | 20064 | } |
1bd55598 RD |
20065 | } |
20066 | { | |
20067 | if (!wxPyCheckForApp()) SWIG_fail; | |
20068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20069 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20074 | { | |
20075 | if (temp3) | |
20076 | delete arg3; | |
20077 | } | |
20078 | { | |
20079 | if (temp7) | |
20080 | delete arg7; | |
20081 | } | |
20082 | return resultobj; | |
20083 | fail: | |
20084 | { | |
20085 | if (temp3) | |
20086 | delete arg3; | |
20087 | } | |
20088 | { | |
20089 | if (temp7) | |
20090 | delete arg7; | |
20091 | } | |
20092 | return NULL; | |
b411df4a RD |
20093 | } |
20094 | ||
20095 | ||
1bd55598 RD |
20096 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20097 | PyObject *resultobj = 0; | |
20098 | wxMDIParentFrame *result = 0 ; | |
20099 | ||
20100 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20101 | { | |
20102 | if (!wxPyCheckForApp()) SWIG_fail; | |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20105 | wxPyEndAllowThreads(__tstate); | |
20106 | if (PyErr_Occurred()) SWIG_fail; | |
20107 | } | |
20108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20109 | return resultobj; | |
20110 | fail: | |
20111 | return NULL; | |
20112 | } | |
20113 | ||
20114 | ||
20115 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20116 | PyObject *resultobj = 0; | |
20117 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20118 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20119 | int arg3 = (int) (int)-1 ; | |
20120 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20121 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20122 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20123 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20124 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20125 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20126 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20127 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20128 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20129 | bool result; | |
20130 | void *argp1 = 0 ; | |
20131 | int res1 = 0 ; | |
20132 | void *argp2 = 0 ; | |
20133 | int res2 = 0 ; | |
20134 | int val3 ; | |
20135 | int ecode3 = 0 ; | |
20136 | bool temp4 = false ; | |
20137 | wxPoint temp5 ; | |
20138 | wxSize temp6 ; | |
20139 | long val7 ; | |
20140 | int ecode7 = 0 ; | |
20141 | bool temp8 = false ; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | PyObject * obj1 = 0 ; | |
20144 | PyObject * obj2 = 0 ; | |
20145 | PyObject * obj3 = 0 ; | |
20146 | PyObject * obj4 = 0 ; | |
20147 | PyObject * obj5 = 0 ; | |
20148 | PyObject * obj6 = 0 ; | |
20149 | PyObject * obj7 = 0 ; | |
20150 | char * kwnames[] = { | |
20151 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20152 | }; | |
20153 | ||
20154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20156 | if (!SWIG_IsOK(res1)) { | |
20157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20158 | } | |
20159 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20160 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20161 | if (!SWIG_IsOK(res2)) { | |
20162 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20163 | } | |
20164 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20165 | if (obj2) { | |
20166 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20167 | if (!SWIG_IsOK(ecode3)) { | |
20168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20169 | } | |
20170 | arg3 = static_cast< int >(val3); | |
20171 | } | |
20172 | if (obj3) { | |
b411df4a | 20173 | { |
1bd55598 RD |
20174 | arg4 = wxString_in_helper(obj3); |
20175 | if (arg4 == NULL) SWIG_fail; | |
20176 | temp4 = true; | |
b411df4a | 20177 | } |
1bd55598 RD |
20178 | } |
20179 | if (obj4) { | |
b411df4a | 20180 | { |
1bd55598 RD |
20181 | arg5 = &temp5; |
20182 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
b411df4a | 20183 | } |
1bd55598 RD |
20184 | } |
20185 | if (obj5) { | |
b411df4a | 20186 | { |
1bd55598 RD |
20187 | arg6 = &temp6; |
20188 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
b411df4a | 20189 | } |
1bd55598 RD |
20190 | } |
20191 | if (obj6) { | |
20192 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20193 | if (!SWIG_IsOK(ecode7)) { | |
20194 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20195 | } | |
20196 | arg7 = static_cast< long >(val7); | |
20197 | } | |
20198 | if (obj7) { | |
36ed4f51 | 20199 | { |
1bd55598 RD |
20200 | arg8 = wxString_in_helper(obj7); |
20201 | if (arg8 == NULL) SWIG_fail; | |
20202 | temp8 = true; | |
36ed4f51 | 20203 | } |
1bd55598 RD |
20204 | } |
20205 | { | |
20206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20207 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20208 | wxPyEndAllowThreads(__tstate); | |
20209 | if (PyErr_Occurred()) SWIG_fail; | |
20210 | } | |
20211 | { | |
20212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20213 | } | |
20214 | { | |
20215 | if (temp4) | |
20216 | delete arg4; | |
20217 | } | |
20218 | { | |
20219 | if (temp8) | |
20220 | delete arg8; | |
20221 | } | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | { | |
20225 | if (temp4) | |
20226 | delete arg4; | |
20227 | } | |
20228 | { | |
20229 | if (temp8) | |
20230 | delete arg8; | |
20231 | } | |
20232 | return NULL; | |
d55e5bfc RD |
20233 | } |
20234 | ||
20235 | ||
1bd55598 RD |
20236 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20237 | PyObject *resultobj = 0; | |
20238 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20239 | void *argp1 = 0 ; | |
20240 | int res1 = 0 ; | |
20241 | PyObject *swig_obj[1] ; | |
20242 | ||
20243 | if (!args) SWIG_fail; | |
20244 | swig_obj[0] = args; | |
20245 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20246 | if (!SWIG_IsOK(res1)) { | |
20247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20248 | } | |
20249 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20250 | { | |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | (arg1)->ActivateNext(); | |
20253 | wxPyEndAllowThreads(__tstate); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
20255 | } | |
20256 | resultobj = SWIG_Py_Void(); | |
20257 | return resultobj; | |
20258 | fail: | |
20259 | return NULL; | |
d55e5bfc RD |
20260 | } |
20261 | ||
20262 | ||
1bd55598 RD |
20263 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20264 | PyObject *resultobj = 0; | |
20265 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20266 | void *argp1 = 0 ; | |
20267 | int res1 = 0 ; | |
20268 | PyObject *swig_obj[1] ; | |
20269 | ||
20270 | if (!args) SWIG_fail; | |
20271 | swig_obj[0] = args; | |
20272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20273 | if (!SWIG_IsOK(res1)) { | |
20274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20275 | } | |
20276 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20277 | { | |
20278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20279 | (arg1)->ActivatePrevious(); | |
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
20283 | resultobj = SWIG_Py_Void(); | |
20284 | return resultobj; | |
20285 | fail: | |
20286 | return NULL; | |
d55e5bfc RD |
20287 | } |
20288 | ||
20289 | ||
1bd55598 RD |
20290 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20291 | PyObject *resultobj = 0; | |
20292 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20293 | void *argp1 = 0 ; | |
20294 | int res1 = 0 ; | |
20295 | PyObject *swig_obj[1] ; | |
20296 | ||
20297 | if (!args) SWIG_fail; | |
20298 | swig_obj[0] = args; | |
20299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20300 | if (!SWIG_IsOK(res1)) { | |
20301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20302 | } | |
20303 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20304 | { | |
20305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20306 | (arg1)->ArrangeIcons(); | |
20307 | wxPyEndAllowThreads(__tstate); | |
20308 | if (PyErr_Occurred()) SWIG_fail; | |
20309 | } | |
20310 | resultobj = SWIG_Py_Void(); | |
20311 | return resultobj; | |
20312 | fail: | |
20313 | return NULL; | |
d55e5bfc RD |
20314 | } |
20315 | ||
20316 | ||
1bd55598 RD |
20317 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20318 | PyObject *resultobj = 0; | |
20319 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20320 | void *argp1 = 0 ; | |
20321 | int res1 = 0 ; | |
20322 | PyObject *swig_obj[1] ; | |
20323 | ||
20324 | if (!args) SWIG_fail; | |
20325 | swig_obj[0] = args; | |
20326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20327 | if (!SWIG_IsOK(res1)) { | |
20328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20329 | } | |
20330 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20331 | { | |
20332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20333 | (arg1)->Cascade(); | |
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | resultobj = SWIG_Py_Void(); | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
d55e5bfc RD |
20341 | } |
20342 | ||
20343 | ||
1bd55598 RD |
20344 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20345 | PyObject *resultobj = 0; | |
20346 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20347 | wxMDIChildFrame *result = 0 ; | |
20348 | void *argp1 = 0 ; | |
20349 | int res1 = 0 ; | |
20350 | PyObject *swig_obj[1] ; | |
20351 | ||
20352 | if (!args) SWIG_fail; | |
20353 | swig_obj[0] = args; | |
20354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20355 | if (!SWIG_IsOK(res1)) { | |
20356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20357 | } | |
20358 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20359 | { | |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20361 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | { | |
20366 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20367 | } | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
d55e5bfc RD |
20371 | } |
20372 | ||
20373 | ||
1bd55598 RD |
20374 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20375 | PyObject *resultobj = 0; | |
20376 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20377 | wxMDIClientWindow *result = 0 ; | |
20378 | void *argp1 = 0 ; | |
20379 | int res1 = 0 ; | |
20380 | PyObject *swig_obj[1] ; | |
20381 | ||
20382 | if (!args) SWIG_fail; | |
20383 | swig_obj[0] = args; | |
20384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20385 | if (!SWIG_IsOK(res1)) { | |
20386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20387 | } | |
20388 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20389 | { | |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | { | |
20396 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20397 | } | |
20398 | return resultobj; | |
20399 | fail: | |
20400 | return NULL; | |
d55e5bfc RD |
20401 | } |
20402 | ||
20403 | ||
1bd55598 RD |
20404 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20405 | PyObject *resultobj = 0; | |
20406 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20407 | wxWindow *result = 0 ; | |
20408 | void *argp1 = 0 ; | |
20409 | int res1 = 0 ; | |
20410 | PyObject *swig_obj[1] ; | |
20411 | ||
20412 | if (!args) SWIG_fail; | |
20413 | swig_obj[0] = args; | |
20414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20415 | if (!SWIG_IsOK(res1)) { | |
20416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetToolBar" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20417 | } | |
20418 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | result = (wxWindow *)(arg1)->GetToolBar(); | |
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
20425 | { | |
20426 | resultobj = wxPyMake_wxObject(result, 0); | |
20427 | } | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj = 0; | |
20436 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20437 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
20438 | void *argp1 = 0 ; | |
20439 | int res1 = 0 ; | |
20440 | int val2 ; | |
20441 | int ecode2 = 0 ; | |
20442 | PyObject * obj0 = 0 ; | |
20443 | PyObject * obj1 = 0 ; | |
20444 | char * kwnames[] = { | |
20445 | (char *) "self",(char *) "orient", NULL | |
20446 | }; | |
20447 | ||
20448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
20449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20450 | if (!SWIG_IsOK(res1)) { | |
20451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20452 | } | |
20453 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20454 | if (obj1) { | |
20455 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20456 | if (!SWIG_IsOK(ecode2)) { | |
20457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
20458 | } | |
20459 | arg2 = static_cast< wxOrientation >(val2); | |
20460 | } | |
20461 | { | |
20462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20463 | (arg1)->Tile(arg2); | |
20464 | wxPyEndAllowThreads(__tstate); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | resultobj = SWIG_Py_Void(); | |
20468 | return resultobj; | |
20469 | fail: | |
20470 | return NULL; | |
20471 | } | |
20472 | ||
20473 | ||
20474 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20475 | PyObject *obj; | |
20476 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20477 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
20478 | return SWIG_Py_Void(); | |
20479 | } | |
20480 | ||
20481 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20482 | return SWIG_Python_InitShadowInstance(args); | |
20483 | } | |
20484 | ||
20485 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20486 | PyObject *resultobj = 0; | |
20487 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20488 | int arg2 = (int) (int)-1 ; | |
20489 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20490 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20491 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20492 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20493 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20494 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20495 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20496 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20497 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20498 | wxMDIChildFrame *result = 0 ; | |
20499 | void *argp1 = 0 ; | |
20500 | int res1 = 0 ; | |
20501 | int val2 ; | |
20502 | int ecode2 = 0 ; | |
20503 | bool temp3 = false ; | |
20504 | wxPoint temp4 ; | |
20505 | wxSize temp5 ; | |
20506 | long val6 ; | |
20507 | int ecode6 = 0 ; | |
20508 | bool temp7 = false ; | |
20509 | PyObject * obj0 = 0 ; | |
20510 | PyObject * obj1 = 0 ; | |
20511 | PyObject * obj2 = 0 ; | |
20512 | PyObject * obj3 = 0 ; | |
20513 | PyObject * obj4 = 0 ; | |
20514 | PyObject * obj5 = 0 ; | |
20515 | PyObject * obj6 = 0 ; | |
20516 | char * kwnames[] = { | |
20517 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20518 | }; | |
20519 | ||
20520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20522 | if (!SWIG_IsOK(res1)) { | |
20523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20524 | } | |
20525 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20526 | if (obj1) { | |
20527 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20528 | if (!SWIG_IsOK(ecode2)) { | |
20529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
20530 | } | |
20531 | arg2 = static_cast< int >(val2); | |
20532 | } | |
20533 | if (obj2) { | |
d55e5bfc | 20534 | { |
1bd55598 RD |
20535 | arg3 = wxString_in_helper(obj2); |
20536 | if (arg3 == NULL) SWIG_fail; | |
20537 | temp3 = true; | |
d55e5bfc | 20538 | } |
1bd55598 RD |
20539 | } |
20540 | if (obj3) { | |
d55e5bfc | 20541 | { |
1bd55598 RD |
20542 | arg4 = &temp4; |
20543 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20544 | } |
1bd55598 RD |
20545 | } |
20546 | if (obj4) { | |
d55e5bfc | 20547 | { |
1bd55598 RD |
20548 | arg5 = &temp5; |
20549 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20550 | } |
1bd55598 RD |
20551 | } |
20552 | if (obj5) { | |
20553 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20554 | if (!SWIG_IsOK(ecode6)) { | |
20555 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
20556 | } | |
20557 | arg6 = static_cast< long >(val6); | |
20558 | } | |
20559 | if (obj6) { | |
d55e5bfc | 20560 | { |
1bd55598 RD |
20561 | arg7 = wxString_in_helper(obj6); |
20562 | if (arg7 == NULL) SWIG_fail; | |
20563 | temp7 = true; | |
d55e5bfc | 20564 | } |
1bd55598 RD |
20565 | } |
20566 | { | |
20567 | if (!wxPyCheckForApp()) SWIG_fail; | |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
20573 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
20574 | { | |
20575 | if (temp3) | |
20576 | delete arg3; | |
20577 | } | |
20578 | { | |
20579 | if (temp7) | |
20580 | delete arg7; | |
20581 | } | |
20582 | return resultobj; | |
20583 | fail: | |
20584 | { | |
20585 | if (temp3) | |
20586 | delete arg3; | |
20587 | } | |
20588 | { | |
20589 | if (temp7) | |
20590 | delete arg7; | |
20591 | } | |
20592 | return NULL; | |
d55e5bfc RD |
20593 | } |
20594 | ||
20595 | ||
1bd55598 RD |
20596 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20597 | PyObject *resultobj = 0; | |
20598 | wxMDIChildFrame *result = 0 ; | |
20599 | ||
20600 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
20601 | { | |
20602 | if (!wxPyCheckForApp()) SWIG_fail; | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
20609 | return resultobj; | |
20610 | fail: | |
20611 | return NULL; | |
20612 | } | |
20613 | ||
20614 | ||
20615 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20616 | PyObject *resultobj = 0; | |
20617 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
20618 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
20619 | int arg3 = (int) (int)-1 ; | |
20620 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20621 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20622 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20623 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20624 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20625 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20626 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
20627 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20628 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20629 | bool result; | |
20630 | void *argp1 = 0 ; | |
20631 | int res1 = 0 ; | |
20632 | void *argp2 = 0 ; | |
20633 | int res2 = 0 ; | |
20634 | int val3 ; | |
20635 | int ecode3 = 0 ; | |
20636 | bool temp4 = false ; | |
20637 | wxPoint temp5 ; | |
20638 | wxSize temp6 ; | |
20639 | long val7 ; | |
20640 | int ecode7 = 0 ; | |
20641 | bool temp8 = false ; | |
20642 | PyObject * obj0 = 0 ; | |
20643 | PyObject * obj1 = 0 ; | |
20644 | PyObject * obj2 = 0 ; | |
20645 | PyObject * obj3 = 0 ; | |
20646 | PyObject * obj4 = 0 ; | |
20647 | PyObject * obj5 = 0 ; | |
20648 | PyObject * obj6 = 0 ; | |
20649 | PyObject * obj7 = 0 ; | |
20650 | char * kwnames[] = { | |
20651 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20652 | }; | |
20653 | ||
20654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
20656 | if (!SWIG_IsOK(res1)) { | |
20657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
20658 | } | |
20659 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
20660 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20661 | if (!SWIG_IsOK(res2)) { | |
20662 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
20663 | } | |
20664 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
20665 | if (obj2) { | |
20666 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20667 | if (!SWIG_IsOK(ecode3)) { | |
20668 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20669 | } | |
20670 | arg3 = static_cast< int >(val3); | |
20671 | } | |
20672 | if (obj3) { | |
36ed4f51 | 20673 | { |
1bd55598 RD |
20674 | arg4 = wxString_in_helper(obj3); |
20675 | if (arg4 == NULL) SWIG_fail; | |
20676 | temp4 = true; | |
36ed4f51 | 20677 | } |
1bd55598 RD |
20678 | } |
20679 | if (obj4) { | |
d55e5bfc | 20680 | { |
1bd55598 RD |
20681 | arg5 = &temp5; |
20682 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20683 | } |
1bd55598 RD |
20684 | } |
20685 | if (obj5) { | |
d55e5bfc | 20686 | { |
1bd55598 RD |
20687 | arg6 = &temp6; |
20688 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 20689 | } |
1bd55598 RD |
20690 | } |
20691 | if (obj6) { | |
20692 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20693 | if (!SWIG_IsOK(ecode7)) { | |
20694 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20695 | } | |
20696 | arg7 = static_cast< long >(val7); | |
20697 | } | |
20698 | if (obj7) { | |
36ed4f51 | 20699 | { |
1bd55598 RD |
20700 | arg8 = wxString_in_helper(obj7); |
20701 | if (arg8 == NULL) SWIG_fail; | |
20702 | temp8 = true; | |
36ed4f51 | 20703 | } |
1bd55598 RD |
20704 | } |
20705 | { | |
20706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20707 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20708 | wxPyEndAllowThreads(__tstate); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | } | |
20711 | { | |
20712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20713 | } | |
20714 | { | |
20715 | if (temp4) | |
20716 | delete arg4; | |
20717 | } | |
20718 | { | |
20719 | if (temp8) | |
20720 | delete arg8; | |
20721 | } | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | { | |
20725 | if (temp4) | |
20726 | delete arg4; | |
20727 | } | |
20728 | { | |
20729 | if (temp8) | |
20730 | delete arg8; | |
20731 | } | |
20732 | return NULL; | |
d55e5bfc RD |
20733 | } |
20734 | ||
20735 | ||
1bd55598 RD |
20736 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20737 | PyObject *resultobj = 0; | |
20738 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
20739 | void *argp1 = 0 ; | |
20740 | int res1 = 0 ; | |
20741 | PyObject *swig_obj[1] ; | |
20742 | ||
20743 | if (!args) SWIG_fail; | |
20744 | swig_obj[0] = args; | |
20745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
20746 | if (!SWIG_IsOK(res1)) { | |
20747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
20748 | } | |
20749 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
20750 | { | |
20751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20752 | (arg1)->Activate(); | |
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | resultobj = SWIG_Py_Void(); | |
20757 | return resultobj; | |
20758 | fail: | |
20759 | return NULL; | |
d55e5bfc RD |
20760 | } |
20761 | ||
20762 | ||
1bd55598 RD |
20763 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20764 | PyObject *obj; | |
20765 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20766 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
20767 | return SWIG_Py_Void(); | |
d55e5bfc RD |
20768 | } |
20769 | ||
1bd55598 RD |
20770 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20771 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
20772 | } |
20773 | ||
1bd55598 RD |
20774 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20775 | PyObject *resultobj = 0; | |
20776 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20777 | long arg2 = (long) 0 ; | |
20778 | wxMDIClientWindow *result = 0 ; | |
20779 | void *argp1 = 0 ; | |
20780 | int res1 = 0 ; | |
20781 | long val2 ; | |
20782 | int ecode2 = 0 ; | |
20783 | PyObject * obj0 = 0 ; | |
20784 | PyObject * obj1 = 0 ; | |
20785 | char * kwnames[] = { | |
20786 | (char *) "parent",(char *) "style", NULL | |
20787 | }; | |
20788 | ||
20789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
20790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20791 | if (!SWIG_IsOK(res1)) { | |
20792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20793 | } | |
20794 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20795 | if (obj1) { | |
20796 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
20797 | if (!SWIG_IsOK(ecode2)) { | |
20798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
20799 | } | |
20800 | arg2 = static_cast< long >(val2); | |
20801 | } | |
20802 | { | |
20803 | if (!wxPyCheckForApp()) SWIG_fail; | |
20804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20805 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
d55e5bfc RD |
20813 | } |
20814 | ||
20815 | ||
1bd55598 RD |
20816 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20817 | PyObject *resultobj = 0; | |
20818 | wxMDIClientWindow *result = 0 ; | |
20819 | ||
20820 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
20821 | { | |
20822 | if (!wxPyCheckForApp()) SWIG_fail; | |
20823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20824 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
20825 | wxPyEndAllowThreads(__tstate); | |
20826 | if (PyErr_Occurred()) SWIG_fail; | |
20827 | } | |
20828 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
20829 | return resultobj; | |
20830 | fail: | |
20831 | return NULL; | |
20832 | } | |
20833 | ||
20834 | ||
20835 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20836 | PyObject *resultobj = 0; | |
20837 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
20838 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
20839 | long arg3 = (long) 0 ; | |
20840 | bool result; | |
20841 | void *argp1 = 0 ; | |
20842 | int res1 = 0 ; | |
20843 | void *argp2 = 0 ; | |
20844 | int res2 = 0 ; | |
20845 | long val3 ; | |
20846 | int ecode3 = 0 ; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | PyObject * obj1 = 0 ; | |
20849 | PyObject * obj2 = 0 ; | |
20850 | char * kwnames[] = { | |
20851 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
20852 | }; | |
20853 | ||
20854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
20856 | if (!SWIG_IsOK(res1)) { | |
20857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
20858 | } | |
20859 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
20860 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20861 | if (!SWIG_IsOK(res2)) { | |
20862 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
20863 | } | |
20864 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
20865 | if (obj2) { | |
20866 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
20867 | if (!SWIG_IsOK(ecode3)) { | |
20868 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
20869 | } | |
20870 | arg3 = static_cast< long >(val3); | |
20871 | } | |
20872 | { | |
20873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20874 | result = (bool)(arg1)->Create(arg2,arg3); | |
20875 | wxPyEndAllowThreads(__tstate); | |
20876 | if (PyErr_Occurred()) SWIG_fail; | |
20877 | } | |
20878 | { | |
20879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20880 | } | |
20881 | return resultobj; | |
20882 | fail: | |
20883 | return NULL; | |
20884 | } | |
20885 | ||
20886 | ||
20887 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20888 | PyObject *obj; | |
20889 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20890 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
20891 | return SWIG_Py_Void(); | |
20892 | } | |
20893 | ||
20894 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20895 | return SWIG_Python_InitShadowInstance(args); | |
20896 | } | |
20897 | ||
20898 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20899 | PyObject *resultobj = 0; | |
20900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20901 | int arg2 = (int) (int)-1 ; | |
20902 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20903 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20904 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20905 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20906 | long arg5 = (long) 0 ; | |
20907 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20908 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20909 | wxPyWindow *result = 0 ; | |
20910 | void *argp1 = 0 ; | |
20911 | int res1 = 0 ; | |
20912 | int val2 ; | |
20913 | int ecode2 = 0 ; | |
20914 | wxPoint temp3 ; | |
20915 | wxSize temp4 ; | |
20916 | long val5 ; | |
20917 | int ecode5 = 0 ; | |
20918 | bool temp6 = false ; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | PyObject * obj1 = 0 ; | |
20921 | PyObject * obj2 = 0 ; | |
20922 | PyObject * obj3 = 0 ; | |
20923 | PyObject * obj4 = 0 ; | |
20924 | PyObject * obj5 = 0 ; | |
20925 | char * kwnames[] = { | |
20926 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20927 | }; | |
20928 | ||
20929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20931 | if (!SWIG_IsOK(res1)) { | |
20932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20933 | } | |
20934 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20935 | if (obj1) { | |
20936 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20937 | if (!SWIG_IsOK(ecode2)) { | |
20938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
20939 | } | |
20940 | arg2 = static_cast< int >(val2); | |
20941 | } | |
20942 | if (obj2) { | |
32fe5131 | 20943 | { |
1bd55598 RD |
20944 | arg3 = &temp3; |
20945 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32fe5131 | 20946 | } |
1bd55598 RD |
20947 | } |
20948 | if (obj3) { | |
32fe5131 | 20949 | { |
1bd55598 RD |
20950 | arg4 = &temp4; |
20951 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32fe5131 | 20952 | } |
1bd55598 RD |
20953 | } |
20954 | if (obj4) { | |
20955 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
20956 | if (!SWIG_IsOK(ecode5)) { | |
20957 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
20958 | } | |
20959 | arg5 = static_cast< long >(val5); | |
20960 | } | |
20961 | if (obj5) { | |
32fe5131 | 20962 | { |
1bd55598 RD |
20963 | arg6 = wxString_in_helper(obj5); |
20964 | if (arg6 == NULL) SWIG_fail; | |
20965 | temp6 = true; | |
32fe5131 | 20966 | } |
1bd55598 RD |
20967 | } |
20968 | { | |
20969 | if (!wxPyCheckForApp()) SWIG_fail; | |
20970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20971 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20972 | wxPyEndAllowThreads(__tstate); | |
20973 | if (PyErr_Occurred()) SWIG_fail; | |
20974 | } | |
20975 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
20976 | { | |
20977 | if (temp6) | |
20978 | delete arg6; | |
20979 | } | |
20980 | return resultobj; | |
20981 | fail: | |
20982 | { | |
20983 | if (temp6) | |
20984 | delete arg6; | |
20985 | } | |
20986 | return NULL; | |
32fe5131 RD |
20987 | } |
20988 | ||
20989 | ||
1bd55598 RD |
20990 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20991 | PyObject *resultobj = 0; | |
20992 | wxPyWindow *result = 0 ; | |
20993 | ||
20994 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
20995 | { | |
20996 | if (!wxPyCheckForApp()) SWIG_fail; | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = (wxPyWindow *)new wxPyWindow(); | |
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj = 0; | |
21011 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21012 | PyObject *arg2 = (PyObject *) 0 ; | |
21013 | PyObject *arg3 = (PyObject *) 0 ; | |
21014 | void *argp1 = 0 ; | |
21015 | int res1 = 0 ; | |
21016 | PyObject * obj0 = 0 ; | |
21017 | PyObject * obj1 = 0 ; | |
21018 | PyObject * obj2 = 0 ; | |
21019 | char * kwnames[] = { | |
21020 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21021 | }; | |
21022 | ||
21023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21025 | if (!SWIG_IsOK(res1)) { | |
21026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21027 | } | |
21028 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21029 | arg2 = obj1; | |
21030 | arg3 = obj2; | |
21031 | { | |
21032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21033 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21034 | wxPyEndAllowThreads(__tstate); | |
21035 | if (PyErr_Occurred()) SWIG_fail; | |
21036 | } | |
21037 | resultobj = SWIG_Py_Void(); | |
21038 | return resultobj; | |
21039 | fail: | |
21040 | return NULL; | |
21041 | } | |
21042 | ||
21043 | ||
21044 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21045 | PyObject *resultobj = 0; | |
21046 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21047 | wxSize *arg2 = 0 ; | |
21048 | void *argp1 = 0 ; | |
21049 | int res1 = 0 ; | |
21050 | wxSize temp2 ; | |
21051 | PyObject * obj0 = 0 ; | |
21052 | PyObject * obj1 = 0 ; | |
21053 | char * kwnames[] = { | |
21054 | (char *) "self",(char *) "size", NULL | |
21055 | }; | |
21056 | ||
21057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21059 | if (!SWIG_IsOK(res1)) { | |
21060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21061 | } | |
21062 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21063 | { | |
21064 | arg2 = &temp2; | |
21065 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21066 | } | |
21067 | { | |
21068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21069 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21070 | wxPyEndAllowThreads(__tstate); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
21073 | resultobj = SWIG_Py_Void(); | |
21074 | return resultobj; | |
21075 | fail: | |
21076 | return NULL; | |
21077 | } | |
21078 | ||
21079 | ||
21080 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21081 | PyObject *resultobj = 0; | |
21082 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21083 | wxDC *arg2 = (wxDC *) 0 ; | |
21084 | bool result; | |
21085 | void *argp1 = 0 ; | |
21086 | int res1 = 0 ; | |
21087 | void *argp2 = 0 ; | |
21088 | int res2 = 0 ; | |
21089 | PyObject * obj0 = 0 ; | |
21090 | PyObject * obj1 = 0 ; | |
21091 | char * kwnames[] = { | |
21092 | (char *) "self",(char *) "dc", NULL | |
21093 | }; | |
21094 | ||
21095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21097 | if (!SWIG_IsOK(res1)) { | |
21098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21099 | } | |
21100 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21101 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21102 | if (!SWIG_IsOK(res2)) { | |
21103 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21104 | } | |
21105 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21106 | { | |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21109 | wxPyEndAllowThreads(__tstate); | |
21110 | if (PyErr_Occurred()) SWIG_fail; | |
21111 | } | |
21112 | { | |
21113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21114 | } | |
21115 | return resultobj; | |
21116 | fail: | |
21117 | return NULL; | |
21118 | } | |
21119 | ||
21120 | ||
21121 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21122 | PyObject *resultobj = 0; | |
21123 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21124 | int arg2 ; | |
21125 | int arg3 ; | |
21126 | int arg4 ; | |
21127 | int arg5 ; | |
21128 | void *argp1 = 0 ; | |
21129 | int res1 = 0 ; | |
21130 | int val2 ; | |
21131 | int ecode2 = 0 ; | |
21132 | int val3 ; | |
21133 | int ecode3 = 0 ; | |
21134 | int val4 ; | |
21135 | int ecode4 = 0 ; | |
21136 | int val5 ; | |
21137 | int ecode5 = 0 ; | |
21138 | PyObject * obj0 = 0 ; | |
21139 | PyObject * obj1 = 0 ; | |
21140 | PyObject * obj2 = 0 ; | |
21141 | PyObject * obj3 = 0 ; | |
21142 | PyObject * obj4 = 0 ; | |
21143 | char * kwnames[] = { | |
21144 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21145 | }; | |
21146 | ||
21147 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21149 | if (!SWIG_IsOK(res1)) { | |
21150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21151 | } | |
21152 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21153 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21154 | if (!SWIG_IsOK(ecode2)) { | |
21155 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21156 | } | |
21157 | arg2 = static_cast< int >(val2); | |
21158 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21159 | if (!SWIG_IsOK(ecode3)) { | |
21160 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21161 | } | |
21162 | arg3 = static_cast< int >(val3); | |
21163 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21164 | if (!SWIG_IsOK(ecode4)) { | |
21165 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21166 | } | |
21167 | arg4 = static_cast< int >(val4); | |
21168 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21169 | if (!SWIG_IsOK(ecode5)) { | |
21170 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21171 | } | |
21172 | arg5 = static_cast< int >(val5); | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | resultobj = SWIG_Py_Void(); | |
21180 | return resultobj; | |
21181 | fail: | |
21182 | return NULL; | |
21183 | } | |
21184 | ||
21185 | ||
21186 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21187 | PyObject *resultobj = 0; | |
21188 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21189 | int arg2 ; | |
21190 | int arg3 ; | |
21191 | int arg4 ; | |
21192 | int arg5 ; | |
21193 | int arg6 = (int) wxSIZE_AUTO ; | |
21194 | void *argp1 = 0 ; | |
21195 | int res1 = 0 ; | |
21196 | int val2 ; | |
21197 | int ecode2 = 0 ; | |
21198 | int val3 ; | |
21199 | int ecode3 = 0 ; | |
21200 | int val4 ; | |
21201 | int ecode4 = 0 ; | |
21202 | int val5 ; | |
21203 | int ecode5 = 0 ; | |
21204 | int val6 ; | |
21205 | int ecode6 = 0 ; | |
21206 | PyObject * obj0 = 0 ; | |
21207 | PyObject * obj1 = 0 ; | |
21208 | PyObject * obj2 = 0 ; | |
21209 | PyObject * obj3 = 0 ; | |
21210 | PyObject * obj4 = 0 ; | |
21211 | PyObject * obj5 = 0 ; | |
21212 | char * kwnames[] = { | |
21213 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21214 | }; | |
21215 | ||
21216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21218 | if (!SWIG_IsOK(res1)) { | |
21219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21220 | } | |
21221 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21223 | if (!SWIG_IsOK(ecode2)) { | |
21224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21225 | } | |
21226 | arg2 = static_cast< int >(val2); | |
21227 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21228 | if (!SWIG_IsOK(ecode3)) { | |
21229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21230 | } | |
21231 | arg3 = static_cast< int >(val3); | |
21232 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21233 | if (!SWIG_IsOK(ecode4)) { | |
21234 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21235 | } | |
21236 | arg4 = static_cast< int >(val4); | |
21237 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21238 | if (!SWIG_IsOK(ecode5)) { | |
21239 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21240 | } | |
21241 | arg5 = static_cast< int >(val5); | |
21242 | if (obj5) { | |
21243 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21244 | if (!SWIG_IsOK(ecode6)) { | |
21245 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21246 | } | |
21247 | arg6 = static_cast< int >(val6); | |
21248 | } | |
21249 | { | |
21250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21251 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21252 | wxPyEndAllowThreads(__tstate); | |
21253 | if (PyErr_Occurred()) SWIG_fail; | |
21254 | } | |
21255 | resultobj = SWIG_Py_Void(); | |
21256 | return resultobj; | |
21257 | fail: | |
21258 | return NULL; | |
21259 | } | |
21260 | ||
21261 | ||
21262 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21263 | PyObject *resultobj = 0; | |
21264 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21265 | int arg2 ; | |
21266 | int arg3 ; | |
21267 | void *argp1 = 0 ; | |
21268 | int res1 = 0 ; | |
21269 | int val2 ; | |
21270 | int ecode2 = 0 ; | |
21271 | int val3 ; | |
21272 | int ecode3 = 0 ; | |
21273 | PyObject * obj0 = 0 ; | |
21274 | PyObject * obj1 = 0 ; | |
21275 | PyObject * obj2 = 0 ; | |
21276 | char * kwnames[] = { | |
21277 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21278 | }; | |
21279 | ||
21280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21282 | if (!SWIG_IsOK(res1)) { | |
21283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21284 | } | |
21285 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21286 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21287 | if (!SWIG_IsOK(ecode2)) { | |
21288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21289 | } | |
21290 | arg2 = static_cast< int >(val2); | |
21291 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21292 | if (!SWIG_IsOK(ecode3)) { | |
21293 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21294 | } | |
21295 | arg3 = static_cast< int >(val3); | |
21296 | { | |
21297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21298 | (arg1)->DoSetClientSize(arg2,arg3); | |
21299 | wxPyEndAllowThreads(__tstate); | |
21300 | if (PyErr_Occurred()) SWIG_fail; | |
21301 | } | |
21302 | resultobj = SWIG_Py_Void(); | |
21303 | return resultobj; | |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj = 0; | |
21311 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21312 | int arg2 ; | |
21313 | int arg3 ; | |
21314 | void *argp1 = 0 ; | |
21315 | int res1 = 0 ; | |
21316 | int val2 ; | |
21317 | int ecode2 = 0 ; | |
21318 | int val3 ; | |
21319 | int ecode3 = 0 ; | |
21320 | PyObject * obj0 = 0 ; | |
21321 | PyObject * obj1 = 0 ; | |
21322 | PyObject * obj2 = 0 ; | |
21323 | char * kwnames[] = { | |
21324 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21325 | }; | |
21326 | ||
21327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21329 | if (!SWIG_IsOK(res1)) { | |
21330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21331 | } | |
21332 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21333 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21334 | if (!SWIG_IsOK(ecode2)) { | |
21335 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21336 | } | |
21337 | arg2 = static_cast< int >(val2); | |
21338 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21339 | if (!SWIG_IsOK(ecode3)) { | |
21340 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21341 | } | |
21342 | arg3 = static_cast< int >(val3); | |
21343 | { | |
21344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21345 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | resultobj = SWIG_Py_Void(); | |
21350 | return resultobj; | |
21351 | fail: | |
21352 | return NULL; | |
21353 | } | |
21354 | ||
21355 | ||
21356 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21357 | PyObject *resultobj = 0; | |
21358 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21359 | int *arg2 = (int *) 0 ; | |
21360 | int *arg3 = (int *) 0 ; | |
21361 | void *argp1 = 0 ; | |
21362 | int res1 = 0 ; | |
21363 | int temp2 ; | |
21364 | int res2 = SWIG_TMPOBJ ; | |
21365 | int temp3 ; | |
21366 | int res3 = SWIG_TMPOBJ ; | |
21367 | PyObject *swig_obj[1] ; | |
21368 | ||
21369 | arg2 = &temp2; | |
21370 | arg3 = &temp3; | |
21371 | if (!args) SWIG_fail; | |
21372 | swig_obj[0] = args; | |
21373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21374 | if (!SWIG_IsOK(res1)) { | |
21375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21376 | } | |
21377 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21378 | { | |
21379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21380 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
21384 | resultobj = SWIG_Py_Void(); | |
21385 | if (SWIG_IsTmpObj(res2)) { | |
21386 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21387 | } else { | |
21388 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21389 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21390 | } | |
21391 | if (SWIG_IsTmpObj(res3)) { | |
21392 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21393 | } else { | |
21394 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21395 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21396 | } | |
21397 | return resultobj; | |
21398 | fail: | |
21399 | return NULL; | |
21400 | } | |
21401 | ||
21402 | ||
21403 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21404 | PyObject *resultobj = 0; | |
21405 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21406 | int *arg2 = (int *) 0 ; | |
21407 | int *arg3 = (int *) 0 ; | |
21408 | void *argp1 = 0 ; | |
21409 | int res1 = 0 ; | |
21410 | int temp2 ; | |
21411 | int res2 = SWIG_TMPOBJ ; | |
21412 | int temp3 ; | |
21413 | int res3 = SWIG_TMPOBJ ; | |
21414 | PyObject *swig_obj[1] ; | |
21415 | ||
21416 | arg2 = &temp2; | |
21417 | arg3 = &temp3; | |
21418 | if (!args) SWIG_fail; | |
21419 | swig_obj[0] = args; | |
21420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21421 | if (!SWIG_IsOK(res1)) { | |
21422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21423 | } | |
21424 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
21428 | wxPyEndAllowThreads(__tstate); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
21431 | resultobj = SWIG_Py_Void(); | |
21432 | if (SWIG_IsTmpObj(res2)) { | |
21433 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21434 | } else { | |
21435 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21436 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21437 | } | |
21438 | if (SWIG_IsTmpObj(res3)) { | |
21439 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21440 | } else { | |
21441 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21442 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21443 | } | |
21444 | return resultobj; | |
21445 | fail: | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21451 | PyObject *resultobj = 0; | |
21452 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21453 | int *arg2 = (int *) 0 ; | |
21454 | int *arg3 = (int *) 0 ; | |
21455 | void *argp1 = 0 ; | |
21456 | int res1 = 0 ; | |
21457 | int temp2 ; | |
21458 | int res2 = SWIG_TMPOBJ ; | |
21459 | int temp3 ; | |
21460 | int res3 = SWIG_TMPOBJ ; | |
21461 | PyObject *swig_obj[1] ; | |
21462 | ||
21463 | arg2 = &temp2; | |
21464 | arg3 = &temp3; | |
21465 | if (!args) SWIG_fail; | |
21466 | swig_obj[0] = args; | |
21467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21468 | if (!SWIG_IsOK(res1)) { | |
21469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21470 | } | |
21471 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21472 | { | |
21473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21474 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
21475 | wxPyEndAllowThreads(__tstate); | |
21476 | if (PyErr_Occurred()) SWIG_fail; | |
21477 | } | |
21478 | resultobj = SWIG_Py_Void(); | |
21479 | if (SWIG_IsTmpObj(res2)) { | |
21480 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21481 | } else { | |
21482 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21483 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21484 | } | |
21485 | if (SWIG_IsTmpObj(res3)) { | |
21486 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21487 | } else { | |
21488 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21489 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21490 | } | |
21491 | return resultobj; | |
21492 | fail: | |
21493 | return NULL; | |
d55e5bfc RD |
21494 | } |
21495 | ||
21496 | ||
1bd55598 RD |
21497 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21498 | PyObject *resultobj = 0; | |
21499 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21500 | wxSize result; | |
21501 | void *argp1 = 0 ; | |
21502 | int res1 = 0 ; | |
21503 | PyObject *swig_obj[1] ; | |
21504 | ||
21505 | if (!args) SWIG_fail; | |
21506 | swig_obj[0] = args; | |
21507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21508 | if (!SWIG_IsOK(res1)) { | |
21509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21510 | } | |
21511 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21512 | { | |
21513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21514 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
21515 | wxPyEndAllowThreads(__tstate); | |
21516 | if (PyErr_Occurred()) SWIG_fail; | |
21517 | } | |
21518 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21519 | return resultobj; | |
21520 | fail: | |
21521 | return NULL; | |
d55e5bfc RD |
21522 | } |
21523 | ||
21524 | ||
1bd55598 RD |
21525 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21526 | PyObject *resultobj = 0; | |
21527 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21528 | wxSize result; | |
21529 | void *argp1 = 0 ; | |
21530 | int res1 = 0 ; | |
21531 | PyObject *swig_obj[1] ; | |
21532 | ||
21533 | if (!args) SWIG_fail; | |
21534 | swig_obj[0] = args; | |
21535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21536 | if (!SWIG_IsOK(res1)) { | |
21537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21538 | } | |
21539 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21540 | { | |
21541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21542 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
21543 | wxPyEndAllowThreads(__tstate); | |
21544 | if (PyErr_Occurred()) SWIG_fail; | |
21545 | } | |
21546 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21547 | return resultobj; | |
21548 | fail: | |
21549 | return NULL; | |
d55e5bfc RD |
21550 | } |
21551 | ||
21552 | ||
1bd55598 RD |
21553 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21554 | PyObject *resultobj = 0; | |
21555 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21556 | SwigValueWrapper<wxVisualAttributes > result; | |
21557 | void *argp1 = 0 ; | |
21558 | int res1 = 0 ; | |
21559 | PyObject *swig_obj[1] ; | |
21560 | ||
21561 | if (!args) SWIG_fail; | |
21562 | swig_obj[0] = args; | |
21563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21564 | if (!SWIG_IsOK(res1)) { | |
21565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21566 | } | |
21567 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21568 | { | |
21569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21570 | result = (arg1)->GetDefaultAttributes(); | |
21571 | wxPyEndAllowThreads(__tstate); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
21574 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
21575 | return resultobj; | |
21576 | fail: | |
21577 | return NULL; | |
d55e5bfc RD |
21578 | } |
21579 | ||
21580 | ||
1bd55598 RD |
21581 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21582 | PyObject *resultobj = 0; | |
21583 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21584 | void *argp1 = 0 ; | |
21585 | int res1 = 0 ; | |
21586 | PyObject *swig_obj[1] ; | |
21587 | ||
21588 | if (!args) SWIG_fail; | |
21589 | swig_obj[0] = args; | |
21590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21591 | if (!SWIG_IsOK(res1)) { | |
21592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21593 | } | |
21594 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21595 | { | |
21596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21597 | (arg1)->OnInternalIdle(); | |
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | resultobj = SWIG_Py_Void(); | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
21608 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21609 | PyObject *obj; | |
21610 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21611 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
21612 | return SWIG_Py_Void(); | |
21613 | } | |
21614 | ||
21615 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21616 | return SWIG_Python_InitShadowInstance(args); | |
21617 | } | |
21618 | ||
21619 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21620 | PyObject *resultobj = 0; | |
21621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21622 | int arg2 = (int) (int)-1 ; | |
21623 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21624 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21625 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21626 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21627 | long arg5 = (long) 0 ; | |
21628 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21629 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21630 | wxPyPanel *result = 0 ; | |
21631 | void *argp1 = 0 ; | |
21632 | int res1 = 0 ; | |
21633 | int val2 ; | |
21634 | int ecode2 = 0 ; | |
21635 | wxPoint temp3 ; | |
21636 | wxSize temp4 ; | |
21637 | long val5 ; | |
21638 | int ecode5 = 0 ; | |
21639 | bool temp6 = false ; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | PyObject * obj1 = 0 ; | |
21642 | PyObject * obj2 = 0 ; | |
21643 | PyObject * obj3 = 0 ; | |
21644 | PyObject * obj4 = 0 ; | |
21645 | PyObject * obj5 = 0 ; | |
21646 | char * kwnames[] = { | |
21647 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21648 | }; | |
21649 | ||
21650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21652 | if (!SWIG_IsOK(res1)) { | |
21653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21654 | } | |
21655 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21656 | if (obj1) { | |
21657 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21658 | if (!SWIG_IsOK(ecode2)) { | |
21659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
21660 | } | |
21661 | arg2 = static_cast< int >(val2); | |
21662 | } | |
21663 | if (obj2) { | |
d55e5bfc | 21664 | { |
1bd55598 RD |
21665 | arg3 = &temp3; |
21666 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 21667 | } |
1bd55598 RD |
21668 | } |
21669 | if (obj3) { | |
d55e5bfc | 21670 | { |
1bd55598 RD |
21671 | arg4 = &temp4; |
21672 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21673 | } |
1bd55598 RD |
21674 | } |
21675 | if (obj4) { | |
21676 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21677 | if (!SWIG_IsOK(ecode5)) { | |
21678 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
21679 | } | |
21680 | arg5 = static_cast< long >(val5); | |
21681 | } | |
21682 | if (obj5) { | |
d55e5bfc | 21683 | { |
1bd55598 RD |
21684 | arg6 = wxString_in_helper(obj5); |
21685 | if (arg6 == NULL) SWIG_fail; | |
21686 | temp6 = true; | |
d55e5bfc | 21687 | } |
1bd55598 RD |
21688 | } |
21689 | { | |
21690 | if (!wxPyCheckForApp()) SWIG_fail; | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21693 | wxPyEndAllowThreads(__tstate); | |
21694 | if (PyErr_Occurred()) SWIG_fail; | |
21695 | } | |
21696 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
21697 | { | |
21698 | if (temp6) | |
21699 | delete arg6; | |
21700 | } | |
21701 | return resultobj; | |
21702 | fail: | |
21703 | { | |
21704 | if (temp6) | |
21705 | delete arg6; | |
21706 | } | |
21707 | return NULL; | |
d55e5bfc RD |
21708 | } |
21709 | ||
21710 | ||
1bd55598 RD |
21711 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21712 | PyObject *resultobj = 0; | |
21713 | wxPyPanel *result = 0 ; | |
21714 | ||
21715 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
21716 | { | |
21717 | if (!wxPyCheckForApp()) SWIG_fail; | |
21718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21719 | result = (wxPyPanel *)new wxPyPanel(); | |
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
21723 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
21724 | return resultobj; | |
21725 | fail: | |
21726 | return NULL; | |
21727 | } | |
21728 | ||
21729 | ||
21730 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21731 | PyObject *resultobj = 0; | |
21732 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21733 | PyObject *arg2 = (PyObject *) 0 ; | |
21734 | PyObject *arg3 = (PyObject *) 0 ; | |
21735 | void *argp1 = 0 ; | |
21736 | int res1 = 0 ; | |
21737 | PyObject * obj0 = 0 ; | |
21738 | PyObject * obj1 = 0 ; | |
21739 | PyObject * obj2 = 0 ; | |
21740 | char * kwnames[] = { | |
21741 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21742 | }; | |
21743 | ||
21744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21746 | if (!SWIG_IsOK(res1)) { | |
21747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21748 | } | |
21749 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21750 | arg2 = obj1; | |
21751 | arg3 = obj2; | |
21752 | { | |
21753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21754 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21755 | wxPyEndAllowThreads(__tstate); | |
21756 | if (PyErr_Occurred()) SWIG_fail; | |
21757 | } | |
21758 | resultobj = SWIG_Py_Void(); | |
21759 | return resultobj; | |
21760 | fail: | |
21761 | return NULL; | |
21762 | } | |
21763 | ||
21764 | ||
21765 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21766 | PyObject *resultobj = 0; | |
21767 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21768 | wxSize *arg2 = 0 ; | |
21769 | void *argp1 = 0 ; | |
21770 | int res1 = 0 ; | |
21771 | wxSize temp2 ; | |
21772 | PyObject * obj0 = 0 ; | |
21773 | PyObject * obj1 = 0 ; | |
21774 | char * kwnames[] = { | |
21775 | (char *) "self",(char *) "size", NULL | |
21776 | }; | |
21777 | ||
21778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21780 | if (!SWIG_IsOK(res1)) { | |
21781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21782 | } | |
21783 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21784 | { | |
21785 | arg2 = &temp2; | |
21786 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21787 | } | |
21788 | { | |
21789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21790 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21791 | wxPyEndAllowThreads(__tstate); | |
21792 | if (PyErr_Occurred()) SWIG_fail; | |
21793 | } | |
21794 | resultobj = SWIG_Py_Void(); | |
21795 | return resultobj; | |
21796 | fail: | |
21797 | return NULL; | |
21798 | } | |
21799 | ||
21800 | ||
21801 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21802 | PyObject *resultobj = 0; | |
21803 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21804 | wxDC *arg2 = (wxDC *) 0 ; | |
21805 | bool result; | |
21806 | void *argp1 = 0 ; | |
21807 | int res1 = 0 ; | |
21808 | void *argp2 = 0 ; | |
21809 | int res2 = 0 ; | |
21810 | PyObject * obj0 = 0 ; | |
21811 | PyObject * obj1 = 0 ; | |
21812 | char * kwnames[] = { | |
21813 | (char *) "self",(char *) "dc", NULL | |
21814 | }; | |
21815 | ||
21816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21818 | if (!SWIG_IsOK(res1)) { | |
21819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21820 | } | |
21821 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21822 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21823 | if (!SWIG_IsOK(res2)) { | |
21824 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21825 | } | |
21826 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21827 | { | |
21828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21829 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | { | |
21834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21835 | } | |
21836 | return resultobj; | |
21837 | fail: | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
21842 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21843 | PyObject *resultobj = 0; | |
21844 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21845 | int arg2 ; | |
21846 | int arg3 ; | |
21847 | int arg4 ; | |
21848 | int arg5 ; | |
21849 | void *argp1 = 0 ; | |
21850 | int res1 = 0 ; | |
21851 | int val2 ; | |
21852 | int ecode2 = 0 ; | |
21853 | int val3 ; | |
21854 | int ecode3 = 0 ; | |
21855 | int val4 ; | |
21856 | int ecode4 = 0 ; | |
21857 | int val5 ; | |
21858 | int ecode5 = 0 ; | |
21859 | PyObject * obj0 = 0 ; | |
21860 | PyObject * obj1 = 0 ; | |
21861 | PyObject * obj2 = 0 ; | |
21862 | PyObject * obj3 = 0 ; | |
21863 | PyObject * obj4 = 0 ; | |
21864 | char * kwnames[] = { | |
21865 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21866 | }; | |
21867 | ||
21868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21870 | if (!SWIG_IsOK(res1)) { | |
21871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21872 | } | |
21873 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21874 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21875 | if (!SWIG_IsOK(ecode2)) { | |
21876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21877 | } | |
21878 | arg2 = static_cast< int >(val2); | |
21879 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21880 | if (!SWIG_IsOK(ecode3)) { | |
21881 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21882 | } | |
21883 | arg3 = static_cast< int >(val3); | |
21884 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21885 | if (!SWIG_IsOK(ecode4)) { | |
21886 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21887 | } | |
21888 | arg4 = static_cast< int >(val4); | |
21889 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21890 | if (!SWIG_IsOK(ecode5)) { | |
21891 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21892 | } | |
21893 | arg5 = static_cast< int >(val5); | |
21894 | { | |
21895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21896 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21897 | wxPyEndAllowThreads(__tstate); | |
21898 | if (PyErr_Occurred()) SWIG_fail; | |
21899 | } | |
21900 | resultobj = SWIG_Py_Void(); | |
21901 | return resultobj; | |
21902 | fail: | |
21903 | return NULL; | |
21904 | } | |
21905 | ||
21906 | ||
21907 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21908 | PyObject *resultobj = 0; | |
21909 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21910 | int arg2 ; | |
21911 | int arg3 ; | |
21912 | int arg4 ; | |
21913 | int arg5 ; | |
21914 | int arg6 = (int) wxSIZE_AUTO ; | |
21915 | void *argp1 = 0 ; | |
21916 | int res1 = 0 ; | |
21917 | int val2 ; | |
21918 | int ecode2 = 0 ; | |
21919 | int val3 ; | |
21920 | int ecode3 = 0 ; | |
21921 | int val4 ; | |
21922 | int ecode4 = 0 ; | |
21923 | int val5 ; | |
21924 | int ecode5 = 0 ; | |
21925 | int val6 ; | |
21926 | int ecode6 = 0 ; | |
21927 | PyObject * obj0 = 0 ; | |
21928 | PyObject * obj1 = 0 ; | |
21929 | PyObject * obj2 = 0 ; | |
21930 | PyObject * obj3 = 0 ; | |
21931 | PyObject * obj4 = 0 ; | |
21932 | PyObject * obj5 = 0 ; | |
21933 | char * kwnames[] = { | |
21934 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21935 | }; | |
21936 | ||
21937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
21939 | if (!SWIG_IsOK(res1)) { | |
21940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
21941 | } | |
21942 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
21943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21944 | if (!SWIG_IsOK(ecode2)) { | |
21945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21946 | } | |
21947 | arg2 = static_cast< int >(val2); | |
21948 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21949 | if (!SWIG_IsOK(ecode3)) { | |
21950 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21951 | } | |
21952 | arg3 = static_cast< int >(val3); | |
21953 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21954 | if (!SWIG_IsOK(ecode4)) { | |
21955 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21956 | } | |
21957 | arg4 = static_cast< int >(val4); | |
21958 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21959 | if (!SWIG_IsOK(ecode5)) { | |
21960 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21961 | } | |
21962 | arg5 = static_cast< int >(val5); | |
21963 | if (obj5) { | |
21964 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21965 | if (!SWIG_IsOK(ecode6)) { | |
21966 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21967 | } | |
21968 | arg6 = static_cast< int >(val6); | |
21969 | } | |
21970 | { | |
21971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21972 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21973 | wxPyEndAllowThreads(__tstate); | |
21974 | if (PyErr_Occurred()) SWIG_fail; | |
21975 | } | |
21976 | resultobj = SWIG_Py_Void(); | |
21977 | return resultobj; | |
21978 | fail: | |
21979 | return NULL; | |
21980 | } | |
21981 | ||
21982 | ||
21983 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21984 | PyObject *resultobj = 0; | |
21985 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
21986 | int arg2 ; | |
21987 | int arg3 ; | |
21988 | void *argp1 = 0 ; | |
21989 | int res1 = 0 ; | |
21990 | int val2 ; | |
21991 | int ecode2 = 0 ; | |
21992 | int val3 ; | |
21993 | int ecode3 = 0 ; | |
21994 | PyObject * obj0 = 0 ; | |
21995 | PyObject * obj1 = 0 ; | |
21996 | PyObject * obj2 = 0 ; | |
21997 | char * kwnames[] = { | |
21998 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21999 | }; | |
22000 | ||
22001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22003 | if (!SWIG_IsOK(res1)) { | |
22004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22005 | } | |
22006 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22008 | if (!SWIG_IsOK(ecode2)) { | |
22009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22010 | } | |
22011 | arg2 = static_cast< int >(val2); | |
22012 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22013 | if (!SWIG_IsOK(ecode3)) { | |
22014 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22015 | } | |
22016 | arg3 = static_cast< int >(val3); | |
22017 | { | |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | (arg1)->DoSetClientSize(arg2,arg3); | |
22020 | wxPyEndAllowThreads(__tstate); | |
22021 | if (PyErr_Occurred()) SWIG_fail; | |
22022 | } | |
22023 | resultobj = SWIG_Py_Void(); | |
22024 | return resultobj; | |
22025 | fail: | |
22026 | return NULL; | |
22027 | } | |
22028 | ||
22029 | ||
22030 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22031 | PyObject *resultobj = 0; | |
22032 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22033 | int arg2 ; | |
22034 | int arg3 ; | |
22035 | void *argp1 = 0 ; | |
22036 | int res1 = 0 ; | |
22037 | int val2 ; | |
22038 | int ecode2 = 0 ; | |
22039 | int val3 ; | |
22040 | int ecode3 = 0 ; | |
22041 | PyObject * obj0 = 0 ; | |
22042 | PyObject * obj1 = 0 ; | |
22043 | PyObject * obj2 = 0 ; | |
22044 | char * kwnames[] = { | |
22045 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22046 | }; | |
22047 | ||
22048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22050 | if (!SWIG_IsOK(res1)) { | |
22051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22052 | } | |
22053 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22054 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22055 | if (!SWIG_IsOK(ecode2)) { | |
22056 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22057 | } | |
22058 | arg2 = static_cast< int >(val2); | |
22059 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22060 | if (!SWIG_IsOK(ecode3)) { | |
22061 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22062 | } | |
22063 | arg3 = static_cast< int >(val3); | |
22064 | { | |
22065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22066 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22067 | wxPyEndAllowThreads(__tstate); | |
22068 | if (PyErr_Occurred()) SWIG_fail; | |
22069 | } | |
22070 | resultobj = SWIG_Py_Void(); | |
22071 | return resultobj; | |
22072 | fail: | |
22073 | return NULL; | |
22074 | } | |
22075 | ||
22076 | ||
22077 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22078 | PyObject *resultobj = 0; | |
22079 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22080 | int *arg2 = (int *) 0 ; | |
22081 | int *arg3 = (int *) 0 ; | |
22082 | void *argp1 = 0 ; | |
22083 | int res1 = 0 ; | |
22084 | int temp2 ; | |
22085 | int res2 = SWIG_TMPOBJ ; | |
22086 | int temp3 ; | |
22087 | int res3 = SWIG_TMPOBJ ; | |
22088 | PyObject *swig_obj[1] ; | |
22089 | ||
22090 | arg2 = &temp2; | |
22091 | arg3 = &temp3; | |
22092 | if (!args) SWIG_fail; | |
22093 | swig_obj[0] = args; | |
22094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22095 | if (!SWIG_IsOK(res1)) { | |
22096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22097 | } | |
22098 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22099 | { | |
22100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22101 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22102 | wxPyEndAllowThreads(__tstate); | |
22103 | if (PyErr_Occurred()) SWIG_fail; | |
22104 | } | |
22105 | resultobj = SWIG_Py_Void(); | |
22106 | if (SWIG_IsTmpObj(res2)) { | |
22107 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22108 | } else { | |
22109 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22110 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22111 | } | |
22112 | if (SWIG_IsTmpObj(res3)) { | |
22113 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22114 | } else { | |
22115 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22116 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22117 | } | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | return NULL; | |
22121 | } | |
22122 | ||
22123 | ||
22124 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22125 | PyObject *resultobj = 0; | |
22126 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22127 | int *arg2 = (int *) 0 ; | |
22128 | int *arg3 = (int *) 0 ; | |
22129 | void *argp1 = 0 ; | |
22130 | int res1 = 0 ; | |
22131 | int temp2 ; | |
22132 | int res2 = SWIG_TMPOBJ ; | |
22133 | int temp3 ; | |
22134 | int res3 = SWIG_TMPOBJ ; | |
22135 | PyObject *swig_obj[1] ; | |
22136 | ||
22137 | arg2 = &temp2; | |
22138 | arg3 = &temp3; | |
22139 | if (!args) SWIG_fail; | |
22140 | swig_obj[0] = args; | |
22141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22142 | if (!SWIG_IsOK(res1)) { | |
22143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22144 | } | |
22145 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22146 | { | |
22147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22148 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | resultobj = SWIG_Py_Void(); | |
22153 | if (SWIG_IsTmpObj(res2)) { | |
22154 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22155 | } else { | |
22156 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22157 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22158 | } | |
22159 | if (SWIG_IsTmpObj(res3)) { | |
22160 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22161 | } else { | |
22162 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22163 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22164 | } | |
22165 | return resultobj; | |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
22171 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22172 | PyObject *resultobj = 0; | |
22173 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22174 | int *arg2 = (int *) 0 ; | |
22175 | int *arg3 = (int *) 0 ; | |
22176 | void *argp1 = 0 ; | |
22177 | int res1 = 0 ; | |
22178 | int temp2 ; | |
22179 | int res2 = SWIG_TMPOBJ ; | |
22180 | int temp3 ; | |
22181 | int res3 = SWIG_TMPOBJ ; | |
22182 | PyObject *swig_obj[1] ; | |
22183 | ||
22184 | arg2 = &temp2; | |
22185 | arg3 = &temp3; | |
22186 | if (!args) SWIG_fail; | |
22187 | swig_obj[0] = args; | |
22188 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22189 | if (!SWIG_IsOK(res1)) { | |
22190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22191 | } | |
22192 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22193 | { | |
22194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22195 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22196 | wxPyEndAllowThreads(__tstate); | |
22197 | if (PyErr_Occurred()) SWIG_fail; | |
22198 | } | |
22199 | resultobj = SWIG_Py_Void(); | |
22200 | if (SWIG_IsTmpObj(res2)) { | |
22201 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22202 | } else { | |
22203 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22204 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22205 | } | |
22206 | if (SWIG_IsTmpObj(res3)) { | |
22207 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22208 | } else { | |
22209 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22210 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22211 | } | |
22212 | return resultobj; | |
22213 | fail: | |
22214 | return NULL; | |
d55e5bfc RD |
22215 | } |
22216 | ||
22217 | ||
1bd55598 RD |
22218 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22219 | PyObject *resultobj = 0; | |
22220 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22221 | wxSize result; | |
22222 | void *argp1 = 0 ; | |
22223 | int res1 = 0 ; | |
22224 | PyObject *swig_obj[1] ; | |
22225 | ||
22226 | if (!args) SWIG_fail; | |
22227 | swig_obj[0] = args; | |
22228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22229 | if (!SWIG_IsOK(res1)) { | |
22230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22231 | } | |
22232 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22233 | { | |
22234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22235 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22236 | wxPyEndAllowThreads(__tstate); | |
22237 | if (PyErr_Occurred()) SWIG_fail; | |
22238 | } | |
22239 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22240 | return resultobj; | |
22241 | fail: | |
22242 | return NULL; | |
d55e5bfc RD |
22243 | } |
22244 | ||
22245 | ||
1bd55598 RD |
22246 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22247 | PyObject *resultobj = 0; | |
22248 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22249 | wxSize result; | |
22250 | void *argp1 = 0 ; | |
22251 | int res1 = 0 ; | |
22252 | PyObject *swig_obj[1] ; | |
22253 | ||
22254 | if (!args) SWIG_fail; | |
22255 | swig_obj[0] = args; | |
22256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22257 | if (!SWIG_IsOK(res1)) { | |
22258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22259 | } | |
22260 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22261 | { | |
22262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22263 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22264 | wxPyEndAllowThreads(__tstate); | |
22265 | if (PyErr_Occurred()) SWIG_fail; | |
22266 | } | |
22267 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22268 | return resultobj; | |
22269 | fail: | |
22270 | return NULL; | |
d55e5bfc RD |
22271 | } |
22272 | ||
22273 | ||
1bd55598 RD |
22274 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22275 | PyObject *resultobj = 0; | |
22276 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22277 | SwigValueWrapper<wxVisualAttributes > result; | |
22278 | void *argp1 = 0 ; | |
22279 | int res1 = 0 ; | |
22280 | PyObject *swig_obj[1] ; | |
22281 | ||
22282 | if (!args) SWIG_fail; | |
22283 | swig_obj[0] = args; | |
22284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22285 | if (!SWIG_IsOK(res1)) { | |
22286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22287 | } | |
22288 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (arg1)->GetDefaultAttributes(); | |
22292 | wxPyEndAllowThreads(__tstate); | |
22293 | if (PyErr_Occurred()) SWIG_fail; | |
22294 | } | |
22295 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22296 | return resultobj; | |
22297 | fail: | |
22298 | return NULL; | |
d55e5bfc RD |
22299 | } |
22300 | ||
22301 | ||
1bd55598 RD |
22302 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22303 | PyObject *resultobj = 0; | |
22304 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22305 | void *argp1 = 0 ; | |
22306 | int res1 = 0 ; | |
22307 | PyObject *swig_obj[1] ; | |
22308 | ||
22309 | if (!args) SWIG_fail; | |
22310 | swig_obj[0] = args; | |
22311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22312 | if (!SWIG_IsOK(res1)) { | |
22313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22314 | } | |
22315 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22316 | { | |
22317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22318 | (arg1)->OnInternalIdle(); | |
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
22322 | resultobj = SWIG_Py_Void(); | |
22323 | return resultobj; | |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22330 | PyObject *obj; | |
22331 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22332 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22333 | return SWIG_Py_Void(); | |
22334 | } | |
22335 | ||
22336 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22337 | return SWIG_Python_InitShadowInstance(args); | |
22338 | } | |
22339 | ||
22340 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22341 | PyObject *resultobj = 0; | |
22342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22343 | int arg2 = (int) (int)-1 ; | |
22344 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22345 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22346 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22347 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22348 | long arg5 = (long) 0 ; | |
22349 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22350 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22351 | wxPyScrolledWindow *result = 0 ; | |
22352 | void *argp1 = 0 ; | |
22353 | int res1 = 0 ; | |
22354 | int val2 ; | |
22355 | int ecode2 = 0 ; | |
22356 | wxPoint temp3 ; | |
22357 | wxSize temp4 ; | |
22358 | long val5 ; | |
22359 | int ecode5 = 0 ; | |
22360 | bool temp6 = false ; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | PyObject * obj1 = 0 ; | |
22363 | PyObject * obj2 = 0 ; | |
22364 | PyObject * obj3 = 0 ; | |
22365 | PyObject * obj4 = 0 ; | |
22366 | PyObject * obj5 = 0 ; | |
22367 | char * kwnames[] = { | |
22368 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22369 | }; | |
22370 | ||
22371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22373 | if (!SWIG_IsOK(res1)) { | |
22374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22375 | } | |
22376 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22377 | if (obj1) { | |
22378 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22379 | if (!SWIG_IsOK(ecode2)) { | |
22380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22381 | } | |
22382 | arg2 = static_cast< int >(val2); | |
22383 | } | |
22384 | if (obj2) { | |
d55e5bfc | 22385 | { |
1bd55598 RD |
22386 | arg3 = &temp3; |
22387 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 22388 | } |
1bd55598 RD |
22389 | } |
22390 | if (obj3) { | |
d55e5bfc | 22391 | { |
1bd55598 RD |
22392 | arg4 = &temp4; |
22393 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 22394 | } |
1bd55598 RD |
22395 | } |
22396 | if (obj4) { | |
22397 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22398 | if (!SWIG_IsOK(ecode5)) { | |
22399 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
22400 | } | |
22401 | arg5 = static_cast< long >(val5); | |
22402 | } | |
22403 | if (obj5) { | |
d55e5bfc | 22404 | { |
1bd55598 RD |
22405 | arg6 = wxString_in_helper(obj5); |
22406 | if (arg6 == NULL) SWIG_fail; | |
22407 | temp6 = true; | |
d55e5bfc | 22408 | } |
1bd55598 RD |
22409 | } |
22410 | { | |
22411 | if (!wxPyCheckForApp()) SWIG_fail; | |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22414 | wxPyEndAllowThreads(__tstate); | |
22415 | if (PyErr_Occurred()) SWIG_fail; | |
22416 | } | |
22417 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
22418 | { | |
22419 | if (temp6) | |
22420 | delete arg6; | |
22421 | } | |
22422 | return resultobj; | |
22423 | fail: | |
22424 | { | |
22425 | if (temp6) | |
22426 | delete arg6; | |
22427 | } | |
22428 | return NULL; | |
d55e5bfc RD |
22429 | } |
22430 | ||
22431 | ||
1bd55598 RD |
22432 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22433 | PyObject *resultobj = 0; | |
22434 | wxPyScrolledWindow *result = 0 ; | |
22435 | ||
22436 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
22437 | { | |
22438 | if (!wxPyCheckForApp()) SWIG_fail; | |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
22444 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
22445 | return resultobj; | |
22446 | fail: | |
22447 | return NULL; | |
22448 | } | |
22449 | ||
22450 | ||
22451 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22452 | PyObject *resultobj = 0; | |
22453 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22454 | PyObject *arg2 = (PyObject *) 0 ; | |
22455 | PyObject *arg3 = (PyObject *) 0 ; | |
22456 | void *argp1 = 0 ; | |
22457 | int res1 = 0 ; | |
22458 | PyObject * obj0 = 0 ; | |
22459 | PyObject * obj1 = 0 ; | |
22460 | PyObject * obj2 = 0 ; | |
22461 | char * kwnames[] = { | |
22462 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22463 | }; | |
22464 | ||
22465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22467 | if (!SWIG_IsOK(res1)) { | |
22468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22469 | } | |
22470 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22471 | arg2 = obj1; | |
22472 | arg3 = obj2; | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22476 | wxPyEndAllowThreads(__tstate); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
22478 | } | |
22479 | resultobj = SWIG_Py_Void(); | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22487 | PyObject *resultobj = 0; | |
22488 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22489 | wxSize *arg2 = 0 ; | |
22490 | void *argp1 = 0 ; | |
22491 | int res1 = 0 ; | |
22492 | wxSize temp2 ; | |
22493 | PyObject * obj0 = 0 ; | |
22494 | PyObject * obj1 = 0 ; | |
22495 | char * kwnames[] = { | |
22496 | (char *) "self",(char *) "size", NULL | |
22497 | }; | |
22498 | ||
22499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22501 | if (!SWIG_IsOK(res1)) { | |
22502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22503 | } | |
22504 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22505 | { | |
22506 | arg2 = &temp2; | |
22507 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22508 | } | |
22509 | { | |
22510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22511 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22512 | wxPyEndAllowThreads(__tstate); | |
22513 | if (PyErr_Occurred()) SWIG_fail; | |
22514 | } | |
22515 | resultobj = SWIG_Py_Void(); | |
22516 | return resultobj; | |
22517 | fail: | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
22522 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22523 | PyObject *resultobj = 0; | |
22524 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22525 | wxDC *arg2 = (wxDC *) 0 ; | |
22526 | bool result; | |
22527 | void *argp1 = 0 ; | |
22528 | int res1 = 0 ; | |
22529 | void *argp2 = 0 ; | |
22530 | int res2 = 0 ; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | PyObject * obj1 = 0 ; | |
22533 | char * kwnames[] = { | |
22534 | (char *) "self",(char *) "dc", NULL | |
22535 | }; | |
22536 | ||
22537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22539 | if (!SWIG_IsOK(res1)) { | |
22540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22541 | } | |
22542 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22543 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22544 | if (!SWIG_IsOK(res2)) { | |
22545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22546 | } | |
22547 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22548 | { | |
22549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22550 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22551 | wxPyEndAllowThreads(__tstate); | |
22552 | if (PyErr_Occurred()) SWIG_fail; | |
22553 | } | |
22554 | { | |
22555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22556 | } | |
22557 | return resultobj; | |
22558 | fail: | |
22559 | return NULL; | |
22560 | } | |
22561 | ||
22562 | ||
22563 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22564 | PyObject *resultobj = 0; | |
22565 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22566 | int arg2 ; | |
22567 | int arg3 ; | |
22568 | int arg4 ; | |
22569 | int arg5 ; | |
22570 | void *argp1 = 0 ; | |
22571 | int res1 = 0 ; | |
22572 | int val2 ; | |
22573 | int ecode2 = 0 ; | |
22574 | int val3 ; | |
22575 | int ecode3 = 0 ; | |
22576 | int val4 ; | |
22577 | int ecode4 = 0 ; | |
22578 | int val5 ; | |
22579 | int ecode5 = 0 ; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | PyObject * obj1 = 0 ; | |
22582 | PyObject * obj2 = 0 ; | |
22583 | PyObject * obj3 = 0 ; | |
22584 | PyObject * obj4 = 0 ; | |
22585 | char * kwnames[] = { | |
22586 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22587 | }; | |
22588 | ||
22589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22591 | if (!SWIG_IsOK(res1)) { | |
22592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22593 | } | |
22594 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22596 | if (!SWIG_IsOK(ecode2)) { | |
22597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22598 | } | |
22599 | arg2 = static_cast< int >(val2); | |
22600 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22601 | if (!SWIG_IsOK(ecode3)) { | |
22602 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22603 | } | |
22604 | arg3 = static_cast< int >(val3); | |
22605 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22606 | if (!SWIG_IsOK(ecode4)) { | |
22607 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22608 | } | |
22609 | arg4 = static_cast< int >(val4); | |
22610 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22611 | if (!SWIG_IsOK(ecode5)) { | |
22612 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22613 | } | |
22614 | arg5 = static_cast< int >(val5); | |
22615 | { | |
22616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22617 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
22621 | resultobj = SWIG_Py_Void(); | |
22622 | return resultobj; | |
22623 | fail: | |
22624 | return NULL; | |
22625 | } | |
22626 | ||
22627 | ||
22628 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22629 | PyObject *resultobj = 0; | |
22630 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22631 | int arg2 ; | |
22632 | int arg3 ; | |
22633 | int arg4 ; | |
22634 | int arg5 ; | |
22635 | int arg6 = (int) wxSIZE_AUTO ; | |
22636 | void *argp1 = 0 ; | |
22637 | int res1 = 0 ; | |
22638 | int val2 ; | |
22639 | int ecode2 = 0 ; | |
22640 | int val3 ; | |
22641 | int ecode3 = 0 ; | |
22642 | int val4 ; | |
22643 | int ecode4 = 0 ; | |
22644 | int val5 ; | |
22645 | int ecode5 = 0 ; | |
22646 | int val6 ; | |
22647 | int ecode6 = 0 ; | |
22648 | PyObject * obj0 = 0 ; | |
22649 | PyObject * obj1 = 0 ; | |
22650 | PyObject * obj2 = 0 ; | |
22651 | PyObject * obj3 = 0 ; | |
22652 | PyObject * obj4 = 0 ; | |
22653 | PyObject * obj5 = 0 ; | |
22654 | char * kwnames[] = { | |
22655 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22656 | }; | |
22657 | ||
22658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22660 | if (!SWIG_IsOK(res1)) { | |
22661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22662 | } | |
22663 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22664 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22665 | if (!SWIG_IsOK(ecode2)) { | |
22666 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22667 | } | |
22668 | arg2 = static_cast< int >(val2); | |
22669 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22670 | if (!SWIG_IsOK(ecode3)) { | |
22671 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22672 | } | |
22673 | arg3 = static_cast< int >(val3); | |
22674 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22675 | if (!SWIG_IsOK(ecode4)) { | |
22676 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22677 | } | |
22678 | arg4 = static_cast< int >(val4); | |
22679 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22680 | if (!SWIG_IsOK(ecode5)) { | |
22681 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22682 | } | |
22683 | arg5 = static_cast< int >(val5); | |
22684 | if (obj5) { | |
22685 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22686 | if (!SWIG_IsOK(ecode6)) { | |
22687 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22688 | } | |
22689 | arg6 = static_cast< int >(val6); | |
22690 | } | |
22691 | { | |
22692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22693 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22694 | wxPyEndAllowThreads(__tstate); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
22696 | } | |
22697 | resultobj = SWIG_Py_Void(); | |
22698 | return resultobj; | |
22699 | fail: | |
22700 | return NULL; | |
22701 | } | |
22702 | ||
22703 | ||
22704 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22705 | PyObject *resultobj = 0; | |
22706 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22707 | int arg2 ; | |
22708 | int arg3 ; | |
22709 | void *argp1 = 0 ; | |
22710 | int res1 = 0 ; | |
22711 | int val2 ; | |
22712 | int ecode2 = 0 ; | |
22713 | int val3 ; | |
22714 | int ecode3 = 0 ; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | PyObject * obj1 = 0 ; | |
22717 | PyObject * obj2 = 0 ; | |
22718 | char * kwnames[] = { | |
22719 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22720 | }; | |
22721 | ||
22722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22724 | if (!SWIG_IsOK(res1)) { | |
22725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22726 | } | |
22727 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22728 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22729 | if (!SWIG_IsOK(ecode2)) { | |
22730 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22731 | } | |
22732 | arg2 = static_cast< int >(val2); | |
22733 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22734 | if (!SWIG_IsOK(ecode3)) { | |
22735 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22736 | } | |
22737 | arg3 = static_cast< int >(val3); | |
22738 | { | |
22739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22740 | (arg1)->DoSetClientSize(arg2,arg3); | |
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
22744 | resultobj = SWIG_Py_Void(); | |
22745 | return resultobj; | |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj = 0; | |
22753 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22754 | int arg2 ; | |
22755 | int arg3 ; | |
22756 | void *argp1 = 0 ; | |
22757 | int res1 = 0 ; | |
22758 | int val2 ; | |
22759 | int ecode2 = 0 ; | |
22760 | int val3 ; | |
22761 | int ecode3 = 0 ; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | PyObject * obj1 = 0 ; | |
22764 | PyObject * obj2 = 0 ; | |
22765 | char * kwnames[] = { | |
22766 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22767 | }; | |
22768 | ||
22769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22771 | if (!SWIG_IsOK(res1)) { | |
22772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22773 | } | |
22774 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22775 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22776 | if (!SWIG_IsOK(ecode2)) { | |
22777 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22778 | } | |
22779 | arg2 = static_cast< int >(val2); | |
22780 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22781 | if (!SWIG_IsOK(ecode3)) { | |
22782 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22783 | } | |
22784 | arg3 = static_cast< int >(val3); | |
22785 | { | |
22786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22787 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22788 | wxPyEndAllowThreads(__tstate); | |
22789 | if (PyErr_Occurred()) SWIG_fail; | |
22790 | } | |
22791 | resultobj = SWIG_Py_Void(); | |
22792 | return resultobj; | |
22793 | fail: | |
22794 | return NULL; | |
22795 | } | |
22796 | ||
22797 | ||
22798 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22799 | PyObject *resultobj = 0; | |
22800 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22801 | int *arg2 = (int *) 0 ; | |
22802 | int *arg3 = (int *) 0 ; | |
22803 | void *argp1 = 0 ; | |
22804 | int res1 = 0 ; | |
22805 | int temp2 ; | |
22806 | int res2 = SWIG_TMPOBJ ; | |
22807 | int temp3 ; | |
22808 | int res3 = SWIG_TMPOBJ ; | |
22809 | PyObject *swig_obj[1] ; | |
22810 | ||
22811 | arg2 = &temp2; | |
22812 | arg3 = &temp3; | |
22813 | if (!args) SWIG_fail; | |
22814 | swig_obj[0] = args; | |
22815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22816 | if (!SWIG_IsOK(res1)) { | |
22817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22818 | } | |
22819 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22820 | { | |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
22823 | wxPyEndAllowThreads(__tstate); | |
22824 | if (PyErr_Occurred()) SWIG_fail; | |
22825 | } | |
22826 | resultobj = SWIG_Py_Void(); | |
22827 | if (SWIG_IsTmpObj(res2)) { | |
22828 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22829 | } else { | |
22830 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22831 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22832 | } | |
22833 | if (SWIG_IsTmpObj(res3)) { | |
22834 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22835 | } else { | |
22836 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22837 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22846 | PyObject *resultobj = 0; | |
22847 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22848 | int *arg2 = (int *) 0 ; | |
22849 | int *arg3 = (int *) 0 ; | |
22850 | void *argp1 = 0 ; | |
22851 | int res1 = 0 ; | |
22852 | int temp2 ; | |
22853 | int res2 = SWIG_TMPOBJ ; | |
22854 | int temp3 ; | |
22855 | int res3 = SWIG_TMPOBJ ; | |
22856 | PyObject *swig_obj[1] ; | |
22857 | ||
22858 | arg2 = &temp2; | |
22859 | arg3 = &temp3; | |
22860 | if (!args) SWIG_fail; | |
22861 | swig_obj[0] = args; | |
22862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22863 | if (!SWIG_IsOK(res1)) { | |
22864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22865 | } | |
22866 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22867 | { | |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | resultobj = SWIG_Py_Void(); | |
22874 | if (SWIG_IsTmpObj(res2)) { | |
22875 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22876 | } else { | |
22877 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22878 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22879 | } | |
22880 | if (SWIG_IsTmpObj(res3)) { | |
22881 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22882 | } else { | |
22883 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22884 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22885 | } | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
22892 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22893 | PyObject *resultobj = 0; | |
22894 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22895 | int *arg2 = (int *) 0 ; | |
22896 | int *arg3 = (int *) 0 ; | |
22897 | void *argp1 = 0 ; | |
22898 | int res1 = 0 ; | |
22899 | int temp2 ; | |
22900 | int res2 = SWIG_TMPOBJ ; | |
22901 | int temp3 ; | |
22902 | int res3 = SWIG_TMPOBJ ; | |
22903 | PyObject *swig_obj[1] ; | |
22904 | ||
22905 | arg2 = &temp2; | |
22906 | arg3 = &temp3; | |
22907 | if (!args) SWIG_fail; | |
22908 | swig_obj[0] = args; | |
22909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22910 | if (!SWIG_IsOK(res1)) { | |
22911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22912 | } | |
22913 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22914 | { | |
22915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22916 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | resultobj = SWIG_Py_Void(); | |
22921 | if (SWIG_IsTmpObj(res2)) { | |
22922 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22923 | } else { | |
22924 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22925 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22926 | } | |
22927 | if (SWIG_IsTmpObj(res3)) { | |
22928 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22929 | } else { | |
22930 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22931 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22932 | } | |
22933 | return resultobj; | |
22934 | fail: | |
22935 | return NULL; | |
d55e5bfc RD |
22936 | } |
22937 | ||
22938 | ||
1bd55598 RD |
22939 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22940 | PyObject *resultobj = 0; | |
22941 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22942 | wxSize result; | |
22943 | void *argp1 = 0 ; | |
22944 | int res1 = 0 ; | |
22945 | PyObject *swig_obj[1] ; | |
22946 | ||
22947 | if (!args) SWIG_fail; | |
22948 | swig_obj[0] = args; | |
22949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22950 | if (!SWIG_IsOK(res1)) { | |
22951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22952 | } | |
22953 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22954 | { | |
22955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22956 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
22957 | wxPyEndAllowThreads(__tstate); | |
22958 | if (PyErr_Occurred()) SWIG_fail; | |
22959 | } | |
22960 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22961 | return resultobj; | |
22962 | fail: | |
22963 | return NULL; | |
d55e5bfc RD |
22964 | } |
22965 | ||
22966 | ||
1bd55598 RD |
22967 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22968 | PyObject *resultobj = 0; | |
22969 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22970 | wxSize result; | |
22971 | void *argp1 = 0 ; | |
22972 | int res1 = 0 ; | |
22973 | PyObject *swig_obj[1] ; | |
22974 | ||
22975 | if (!args) SWIG_fail; | |
22976 | swig_obj[0] = args; | |
22977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22978 | if (!SWIG_IsOK(res1)) { | |
22979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
22980 | } | |
22981 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22982 | { | |
22983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22984 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
d55e5bfc RD |
22992 | } |
22993 | ||
22994 | ||
1bd55598 RD |
22995 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22996 | PyObject *resultobj = 0; | |
22997 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22998 | SwigValueWrapper<wxVisualAttributes > result; | |
22999 | void *argp1 = 0 ; | |
23000 | int res1 = 0 ; | |
23001 | PyObject *swig_obj[1] ; | |
23002 | ||
23003 | if (!args) SWIG_fail; | |
23004 | swig_obj[0] = args; | |
23005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23006 | if (!SWIG_IsOK(res1)) { | |
23007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23008 | } | |
23009 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23010 | { | |
23011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23012 | result = (arg1)->GetDefaultAttributes(); | |
23013 | wxPyEndAllowThreads(__tstate); | |
23014 | if (PyErr_Occurred()) SWIG_fail; | |
23015 | } | |
23016 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23017 | return resultobj; | |
23018 | fail: | |
23019 | return NULL; | |
d55e5bfc RD |
23020 | } |
23021 | ||
23022 | ||
1bd55598 RD |
23023 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23024 | PyObject *resultobj = 0; | |
23025 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23026 | void *argp1 = 0 ; | |
23027 | int res1 = 0 ; | |
23028 | PyObject *swig_obj[1] ; | |
23029 | ||
23030 | if (!args) SWIG_fail; | |
23031 | swig_obj[0] = args; | |
23032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23033 | if (!SWIG_IsOK(res1)) { | |
23034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23035 | } | |
23036 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23037 | { | |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | (arg1)->OnInternalIdle(); | |
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = SWIG_Py_Void(); | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
d55e5bfc RD |
23047 | } |
23048 | ||
23049 | ||
1bd55598 RD |
23050 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23051 | PyObject *obj; | |
23052 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23053 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23054 | return SWIG_Py_Void(); | |
d55e5bfc RD |
23055 | } |
23056 | ||
1bd55598 RD |
23057 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23058 | return SWIG_Python_InitShadowInstance(args); | |
23059 | } | |
d55e5bfc | 23060 | |
1bd55598 RD |
23061 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23062 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23063 | return 1; | |
d55e5bfc RD |
23064 | } |
23065 | ||
23066 | ||
1bd55598 RD |
23067 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23068 | PyObject *pyobj = 0; | |
23069 | ||
23070 | { | |
d55e5bfc | 23071 | #if wxUSE_UNICODE |
1bd55598 | 23072 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); |
d55e5bfc | 23073 | #else |
1bd55598 | 23074 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); |
d55e5bfc | 23075 | #endif |
1bd55598 RD |
23076 | } |
23077 | return pyobj; | |
d55e5bfc RD |
23078 | } |
23079 | ||
23080 | ||
1bd55598 RD |
23081 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23082 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23083 | return 1; | |
23084 | } | |
23085 | ||
23086 | ||
23087 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { | |
23088 | PyObject *pyobj = 0; | |
23089 | ||
23090 | { | |
d55e5bfc | 23091 | #if wxUSE_UNICODE |
1bd55598 | 23092 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); |
d55e5bfc | 23093 | #else |
1bd55598 | 23094 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); |
d55e5bfc | 23095 | #endif |
1bd55598 RD |
23096 | } |
23097 | return pyobj; | |
d55e5bfc RD |
23098 | } |
23099 | ||
23100 | ||
1bd55598 RD |
23101 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23102 | PyObject *resultobj = 0; | |
23103 | wxPrintData *result = 0 ; | |
23104 | ||
23105 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23106 | { | |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | result = (wxPrintData *)new wxPrintData(); | |
23109 | wxPyEndAllowThreads(__tstate); | |
23110 | if (PyErr_Occurred()) SWIG_fail; | |
23111 | } | |
23112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23113 | return resultobj; | |
23114 | fail: | |
23115 | return NULL; | |
d55e5bfc RD |
23116 | } |
23117 | ||
23118 | ||
1bd55598 RD |
23119 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23120 | PyObject *resultobj = 0; | |
23121 | wxPrintData *arg1 = 0 ; | |
23122 | wxPrintData *result = 0 ; | |
23123 | void *argp1 = 0 ; | |
23124 | int res1 = 0 ; | |
23125 | ||
23126 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23128 | if (!SWIG_IsOK(res1)) { | |
23129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23130 | } | |
23131 | if (!argp1) { | |
23132 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23133 | } | |
23134 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23135 | { | |
23136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23137 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23138 | wxPyEndAllowThreads(__tstate); | |
23139 | if (PyErr_Occurred()) SWIG_fail; | |
23140 | } | |
23141 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23142 | return resultobj; | |
23143 | fail: | |
23144 | return NULL; | |
d55e5bfc RD |
23145 | } |
23146 | ||
23147 | ||
1bd55598 RD |
23148 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23149 | int argc; | |
23150 | PyObject *argv[2]; | |
23151 | ||
23152 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23153 | --argc; | |
23154 | if (argc == 0) { | |
23155 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23156 | } | |
23157 | if (argc == 1) { | |
23158 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23159 | } | |
23160 | ||
23161 | fail: | |
23162 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23163 | return NULL; | |
d55e5bfc RD |
23164 | } |
23165 | ||
23166 | ||
1bd55598 RD |
23167 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23168 | PyObject *resultobj = 0; | |
23169 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23170 | void *argp1 = 0 ; | |
23171 | int res1 = 0 ; | |
23172 | PyObject *swig_obj[1] ; | |
23173 | ||
23174 | if (!args) SWIG_fail; | |
23175 | swig_obj[0] = args; | |
23176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23177 | if (!SWIG_IsOK(res1)) { | |
23178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23179 | } | |
23180 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23181 | { | |
23182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23183 | delete arg1; | |
d55e5bfc | 23184 | |
1bd55598 RD |
23185 | wxPyEndAllowThreads(__tstate); |
23186 | if (PyErr_Occurred()) SWIG_fail; | |
23187 | } | |
23188 | resultobj = SWIG_Py_Void(); | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | return NULL; | |
d55e5bfc RD |
23192 | } |
23193 | ||
23194 | ||
1bd55598 RD |
23195 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23196 | PyObject *resultobj = 0; | |
23197 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23198 | int result; | |
23199 | void *argp1 = 0 ; | |
23200 | int res1 = 0 ; | |
23201 | PyObject *swig_obj[1] ; | |
23202 | ||
23203 | if (!args) SWIG_fail; | |
23204 | swig_obj[0] = args; | |
23205 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23206 | if (!SWIG_IsOK(res1)) { | |
23207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23208 | } | |
23209 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23210 | { | |
23211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23212 | result = (int)(arg1)->GetNoCopies(); | |
23213 | wxPyEndAllowThreads(__tstate); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | } | |
23216 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23217 | return resultobj; | |
23218 | fail: | |
23219 | return NULL; | |
d55e5bfc RD |
23220 | } |
23221 | ||
23222 | ||
1bd55598 RD |
23223 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23224 | PyObject *resultobj = 0; | |
23225 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23226 | bool result; | |
23227 | void *argp1 = 0 ; | |
23228 | int res1 = 0 ; | |
23229 | PyObject *swig_obj[1] ; | |
23230 | ||
23231 | if (!args) SWIG_fail; | |
23232 | swig_obj[0] = args; | |
23233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23234 | if (!SWIG_IsOK(res1)) { | |
23235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23236 | } | |
23237 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23238 | { | |
23239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23240 | result = (bool)(arg1)->GetCollate(); | |
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | { | |
23245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23246 | } | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | return NULL; | |
d55e5bfc RD |
23250 | } |
23251 | ||
23252 | ||
1bd55598 RD |
23253 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23254 | PyObject *resultobj = 0; | |
23255 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23256 | int result; | |
23257 | void *argp1 = 0 ; | |
23258 | int res1 = 0 ; | |
23259 | PyObject *swig_obj[1] ; | |
23260 | ||
23261 | if (!args) SWIG_fail; | |
23262 | swig_obj[0] = args; | |
23263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23264 | if (!SWIG_IsOK(res1)) { | |
23265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23266 | } | |
23267 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23268 | { | |
23269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23270 | result = (int)(arg1)->GetOrientation(); | |
23271 | wxPyEndAllowThreads(__tstate); | |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
23273 | } | |
23274 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23275 | return resultobj; | |
23276 | fail: | |
23277 | return NULL; | |
d55e5bfc RD |
23278 | } |
23279 | ||
23280 | ||
1bd55598 RD |
23281 | SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23282 | PyObject *resultobj = 0; | |
23283 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23284 | bool result; | |
23285 | void *argp1 = 0 ; | |
23286 | int res1 = 0 ; | |
23287 | PyObject *swig_obj[1] ; | |
23288 | ||
23289 | if (!args) SWIG_fail; | |
23290 | swig_obj[0] = args; | |
23291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23292 | if (!SWIG_IsOK(res1)) { | |
23293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_Ok" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23294 | } | |
23295 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23296 | { | |
23297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23298 | result = (bool)(arg1)->Ok(); | |
23299 | wxPyEndAllowThreads(__tstate); | |
23300 | if (PyErr_Occurred()) SWIG_fail; | |
23301 | } | |
23302 | { | |
23303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23304 | } | |
23305 | return resultobj; | |
23306 | fail: | |
23307 | return NULL; | |
d55e5bfc RD |
23308 | } |
23309 | ||
23310 | ||
1bd55598 RD |
23311 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23312 | PyObject *resultobj = 0; | |
23313 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23314 | wxString *result = 0 ; | |
23315 | void *argp1 = 0 ; | |
23316 | int res1 = 0 ; | |
23317 | PyObject *swig_obj[1] ; | |
23318 | ||
23319 | if (!args) SWIG_fail; | |
23320 | swig_obj[0] = args; | |
23321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23322 | if (!SWIG_IsOK(res1)) { | |
23323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23324 | } | |
23325 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23328 | { |
1bd55598 RD |
23329 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23330 | result = (wxString *) &_result_ref; | |
d55e5bfc | 23331 | } |
1bd55598 RD |
23332 | wxPyEndAllowThreads(__tstate); |
23333 | if (PyErr_Occurred()) SWIG_fail; | |
23334 | } | |
23335 | { | |
d55e5bfc | 23336 | #if wxUSE_UNICODE |
1bd55598 | 23337 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d55e5bfc | 23338 | #else |
1bd55598 | 23339 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d55e5bfc | 23340 | #endif |
1bd55598 RD |
23341 | } |
23342 | return resultobj; | |
23343 | fail: | |
23344 | return NULL; | |
d55e5bfc RD |
23345 | } |
23346 | ||
23347 | ||
1bd55598 RD |
23348 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23349 | PyObject *resultobj = 0; | |
23350 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23351 | bool result; | |
23352 | void *argp1 = 0 ; | |
23353 | int res1 = 0 ; | |
23354 | PyObject *swig_obj[1] ; | |
23355 | ||
23356 | if (!args) SWIG_fail; | |
23357 | swig_obj[0] = args; | |
23358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23359 | if (!SWIG_IsOK(res1)) { | |
23360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23361 | } | |
23362 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23363 | { | |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = (bool)(arg1)->GetColour(); | |
23366 | wxPyEndAllowThreads(__tstate); | |
23367 | if (PyErr_Occurred()) SWIG_fail; | |
23368 | } | |
23369 | { | |
23370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23371 | } | |
23372 | return resultobj; | |
23373 | fail: | |
23374 | return NULL; | |
d55e5bfc RD |
23375 | } |
23376 | ||
23377 | ||
1bd55598 RD |
23378 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23379 | PyObject *resultobj = 0; | |
23380 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23381 | wxDuplexMode result; | |
23382 | void *argp1 = 0 ; | |
23383 | int res1 = 0 ; | |
23384 | PyObject *swig_obj[1] ; | |
23385 | ||
23386 | if (!args) SWIG_fail; | |
23387 | swig_obj[0] = args; | |
23388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23389 | if (!SWIG_IsOK(res1)) { | |
23390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23391 | } | |
23392 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23393 | { | |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
23396 | wxPyEndAllowThreads(__tstate); | |
23397 | if (PyErr_Occurred()) SWIG_fail; | |
23398 | } | |
23399 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23400 | return resultobj; | |
23401 | fail: | |
23402 | return NULL; | |
d55e5bfc RD |
23403 | } |
23404 | ||
23405 | ||
1bd55598 RD |
23406 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23407 | PyObject *resultobj = 0; | |
23408 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23409 | wxPaperSize result; | |
23410 | void *argp1 = 0 ; | |
23411 | int res1 = 0 ; | |
23412 | PyObject *swig_obj[1] ; | |
23413 | ||
23414 | if (!args) SWIG_fail; | |
23415 | swig_obj[0] = args; | |
23416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23417 | if (!SWIG_IsOK(res1)) { | |
23418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23419 | } | |
23420 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23421 | { | |
23422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23423 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
23424 | wxPyEndAllowThreads(__tstate); | |
23425 | if (PyErr_Occurred()) SWIG_fail; | |
23426 | } | |
23427 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | return NULL; | |
070c48b4 RD |
23431 | } |
23432 | ||
23433 | ||
1bd55598 RD |
23434 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23435 | PyObject *resultobj = 0; | |
23436 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23437 | wxSize *result = 0 ; | |
23438 | void *argp1 = 0 ; | |
23439 | int res1 = 0 ; | |
23440 | PyObject *swig_obj[1] ; | |
23441 | ||
23442 | if (!args) SWIG_fail; | |
23443 | swig_obj[0] = args; | |
23444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23445 | if (!SWIG_IsOK(res1)) { | |
23446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23447 | } | |
23448 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23449 | { | |
23450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 23451 | { |
1bd55598 RD |
23452 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
23453 | result = (wxSize *) &_result_ref; | |
070c48b4 | 23454 | } |
1bd55598 RD |
23455 | wxPyEndAllowThreads(__tstate); |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
23458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
23459 | return resultobj; | |
23460 | fail: | |
23461 | return NULL; | |
d55e5bfc RD |
23462 | } |
23463 | ||
23464 | ||
1bd55598 RD |
23465 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23466 | PyObject *resultobj = 0; | |
23467 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23468 | int result; | |
23469 | void *argp1 = 0 ; | |
23470 | int res1 = 0 ; | |
23471 | PyObject *swig_obj[1] ; | |
23472 | ||
23473 | if (!args) SWIG_fail; | |
23474 | swig_obj[0] = args; | |
23475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23476 | if (!SWIG_IsOK(res1)) { | |
23477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23478 | } | |
23479 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23480 | { | |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | result = (int)(arg1)->GetQuality(); | |
23483 | wxPyEndAllowThreads(__tstate); | |
23484 | if (PyErr_Occurred()) SWIG_fail; | |
23485 | } | |
23486 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23487 | return resultobj; | |
23488 | fail: | |
23489 | return NULL; | |
d55e5bfc RD |
23490 | } |
23491 | ||
23492 | ||
1bd55598 RD |
23493 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23494 | PyObject *resultobj = 0; | |
23495 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23496 | wxPrintBin result; | |
23497 | void *argp1 = 0 ; | |
23498 | int res1 = 0 ; | |
23499 | PyObject *swig_obj[1] ; | |
23500 | ||
23501 | if (!args) SWIG_fail; | |
23502 | swig_obj[0] = args; | |
23503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23504 | if (!SWIG_IsOK(res1)) { | |
23505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23506 | } | |
23507 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23508 | { | |
23509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23510 | result = (wxPrintBin)(arg1)->GetBin(); | |
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
23514 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23515 | return resultobj; | |
23516 | fail: | |
23517 | return NULL; | |
d55e5bfc RD |
23518 | } |
23519 | ||
23520 | ||
1bd55598 RD |
23521 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23522 | PyObject *resultobj = 0; | |
23523 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23524 | wxPrintMode result; | |
23525 | void *argp1 = 0 ; | |
23526 | int res1 = 0 ; | |
23527 | PyObject *swig_obj[1] ; | |
23528 | ||
23529 | if (!args) SWIG_fail; | |
23530 | swig_obj[0] = args; | |
23531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23532 | if (!SWIG_IsOK(res1)) { | |
23533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23534 | } | |
23535 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23536 | { | |
23537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23538 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj = 0; | |
23551 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23552 | int arg2 ; | |
23553 | void *argp1 = 0 ; | |
23554 | int res1 = 0 ; | |
23555 | int val2 ; | |
23556 | int ecode2 = 0 ; | |
23557 | PyObject * obj0 = 0 ; | |
23558 | PyObject * obj1 = 0 ; | |
23559 | char * kwnames[] = { | |
23560 | (char *) "self",(char *) "v", NULL | |
23561 | }; | |
23562 | ||
23563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
23564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23565 | if (!SWIG_IsOK(res1)) { | |
23566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23567 | } | |
23568 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23569 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23570 | if (!SWIG_IsOK(ecode2)) { | |
23571 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
23572 | } | |
23573 | arg2 = static_cast< int >(val2); | |
23574 | { | |
23575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23576 | (arg1)->SetNoCopies(arg2); | |
23577 | wxPyEndAllowThreads(__tstate); | |
23578 | if (PyErr_Occurred()) SWIG_fail; | |
23579 | } | |
23580 | resultobj = SWIG_Py_Void(); | |
23581 | return resultobj; | |
23582 | fail: | |
23583 | return NULL; | |
23584 | } | |
23585 | ||
23586 | ||
23587 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23588 | PyObject *resultobj = 0; | |
23589 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23590 | bool arg2 ; | |
23591 | void *argp1 = 0 ; | |
23592 | int res1 = 0 ; | |
23593 | bool val2 ; | |
23594 | int ecode2 = 0 ; | |
23595 | PyObject * obj0 = 0 ; | |
23596 | PyObject * obj1 = 0 ; | |
23597 | char * kwnames[] = { | |
23598 | (char *) "self",(char *) "flag", NULL | |
23599 | }; | |
23600 | ||
23601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
23602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23603 | if (!SWIG_IsOK(res1)) { | |
23604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23605 | } | |
23606 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23607 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23608 | if (!SWIG_IsOK(ecode2)) { | |
23609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
23610 | } | |
23611 | arg2 = static_cast< bool >(val2); | |
23612 | { | |
23613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23614 | (arg1)->SetCollate(arg2); | |
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | resultobj = SWIG_Py_Void(); | |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
23625 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23626 | PyObject *resultobj = 0; | |
23627 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23628 | int arg2 ; | |
23629 | void *argp1 = 0 ; | |
23630 | int res1 = 0 ; | |
23631 | int val2 ; | |
23632 | int ecode2 = 0 ; | |
23633 | PyObject * obj0 = 0 ; | |
23634 | PyObject * obj1 = 0 ; | |
23635 | char * kwnames[] = { | |
23636 | (char *) "self",(char *) "orient", NULL | |
23637 | }; | |
23638 | ||
23639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
23640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23641 | if (!SWIG_IsOK(res1)) { | |
23642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23643 | } | |
23644 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23645 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23646 | if (!SWIG_IsOK(ecode2)) { | |
23647 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
23648 | } | |
23649 | arg2 = static_cast< int >(val2); | |
23650 | { | |
23651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23652 | (arg1)->SetOrientation(arg2); | |
23653 | wxPyEndAllowThreads(__tstate); | |
23654 | if (PyErr_Occurred()) SWIG_fail; | |
23655 | } | |
23656 | resultobj = SWIG_Py_Void(); | |
23657 | return resultobj; | |
23658 | fail: | |
23659 | return NULL; | |
23660 | } | |
23661 | ||
23662 | ||
23663 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23664 | PyObject *resultobj = 0; | |
23665 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23666 | wxString *arg2 = 0 ; | |
23667 | void *argp1 = 0 ; | |
23668 | int res1 = 0 ; | |
23669 | bool temp2 = false ; | |
23670 | PyObject * obj0 = 0 ; | |
23671 | PyObject * obj1 = 0 ; | |
23672 | char * kwnames[] = { | |
23673 | (char *) "self",(char *) "name", NULL | |
23674 | }; | |
23675 | ||
23676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23678 | if (!SWIG_IsOK(res1)) { | |
23679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23680 | } | |
23681 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23682 | { | |
23683 | arg2 = wxString_in_helper(obj1); | |
23684 | if (arg2 == NULL) SWIG_fail; | |
23685 | temp2 = true; | |
23686 | } | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | resultobj = SWIG_Py_Void(); | |
23694 | { | |
23695 | if (temp2) | |
23696 | delete arg2; | |
23697 | } | |
23698 | return resultobj; | |
23699 | fail: | |
23700 | { | |
23701 | if (temp2) | |
23702 | delete arg2; | |
23703 | } | |
23704 | return NULL; | |
23705 | } | |
23706 | ||
23707 | ||
23708 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23709 | PyObject *resultobj = 0; | |
23710 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23711 | bool arg2 ; | |
23712 | void *argp1 = 0 ; | |
23713 | int res1 = 0 ; | |
23714 | bool val2 ; | |
23715 | int ecode2 = 0 ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | char * kwnames[] = { | |
23719 | (char *) "self",(char *) "colour", NULL | |
23720 | }; | |
23721 | ||
23722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
23723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23724 | if (!SWIG_IsOK(res1)) { | |
23725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23726 | } | |
23727 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23728 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23729 | if (!SWIG_IsOK(ecode2)) { | |
23730 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
23731 | } | |
23732 | arg2 = static_cast< bool >(val2); | |
23733 | { | |
23734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23735 | (arg1)->SetColour(arg2); | |
23736 | wxPyEndAllowThreads(__tstate); | |
23737 | if (PyErr_Occurred()) SWIG_fail; | |
23738 | } | |
23739 | resultobj = SWIG_Py_Void(); | |
23740 | return resultobj; | |
23741 | fail: | |
23742 | return NULL; | |
23743 | } | |
23744 | ||
23745 | ||
23746 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23747 | PyObject *resultobj = 0; | |
23748 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23749 | wxDuplexMode arg2 ; | |
23750 | void *argp1 = 0 ; | |
23751 | int res1 = 0 ; | |
23752 | int val2 ; | |
23753 | int ecode2 = 0 ; | |
23754 | PyObject * obj0 = 0 ; | |
23755 | PyObject * obj1 = 0 ; | |
23756 | char * kwnames[] = { | |
23757 | (char *) "self",(char *) "duplex", NULL | |
23758 | }; | |
23759 | ||
23760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
23761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23762 | if (!SWIG_IsOK(res1)) { | |
23763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23764 | } | |
23765 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23766 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23767 | if (!SWIG_IsOK(ecode2)) { | |
23768 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
23769 | } | |
23770 | arg2 = static_cast< wxDuplexMode >(val2); | |
23771 | { | |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23773 | (arg1)->SetDuplex(arg2); | |
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
23777 | resultobj = SWIG_Py_Void(); | |
23778 | return resultobj; | |
23779 | fail: | |
23780 | return NULL; | |
23781 | } | |
23782 | ||
23783 | ||
23784 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23785 | PyObject *resultobj = 0; | |
23786 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23787 | wxPaperSize arg2 ; | |
23788 | void *argp1 = 0 ; | |
23789 | int res1 = 0 ; | |
23790 | int val2 ; | |
23791 | int ecode2 = 0 ; | |
23792 | PyObject * obj0 = 0 ; | |
23793 | PyObject * obj1 = 0 ; | |
23794 | char * kwnames[] = { | |
23795 | (char *) "self",(char *) "sizeId", NULL | |
23796 | }; | |
23797 | ||
23798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
23799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23800 | if (!SWIG_IsOK(res1)) { | |
23801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23802 | } | |
23803 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23804 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23805 | if (!SWIG_IsOK(ecode2)) { | |
23806 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
23807 | } | |
23808 | arg2 = static_cast< wxPaperSize >(val2); | |
23809 | { | |
23810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23811 | (arg1)->SetPaperId(arg2); | |
23812 | wxPyEndAllowThreads(__tstate); | |
23813 | if (PyErr_Occurred()) SWIG_fail; | |
23814 | } | |
23815 | resultobj = SWIG_Py_Void(); | |
23816 | return resultobj; | |
23817 | fail: | |
23818 | return NULL; | |
23819 | } | |
23820 | ||
23821 | ||
23822 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23823 | PyObject *resultobj = 0; | |
23824 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23825 | wxSize *arg2 = 0 ; | |
23826 | void *argp1 = 0 ; | |
23827 | int res1 = 0 ; | |
23828 | wxSize temp2 ; | |
23829 | PyObject * obj0 = 0 ; | |
23830 | PyObject * obj1 = 0 ; | |
23831 | char * kwnames[] = { | |
23832 | (char *) "self",(char *) "sz", NULL | |
23833 | }; | |
23834 | ||
23835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
23836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23837 | if (!SWIG_IsOK(res1)) { | |
23838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23839 | } | |
23840 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23841 | { | |
23842 | arg2 = &temp2; | |
23843 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23844 | } | |
23845 | { | |
23846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23847 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
23848 | wxPyEndAllowThreads(__tstate); | |
23849 | if (PyErr_Occurred()) SWIG_fail; | |
23850 | } | |
23851 | resultobj = SWIG_Py_Void(); | |
23852 | return resultobj; | |
23853 | fail: | |
23854 | return NULL; | |
23855 | } | |
23856 | ||
23857 | ||
23858 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23859 | PyObject *resultobj = 0; | |
23860 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23861 | int arg2 ; | |
23862 | void *argp1 = 0 ; | |
23863 | int res1 = 0 ; | |
23864 | int val2 ; | |
23865 | int ecode2 = 0 ; | |
23866 | PyObject * obj0 = 0 ; | |
23867 | PyObject * obj1 = 0 ; | |
23868 | char * kwnames[] = { | |
23869 | (char *) "self",(char *) "quality", NULL | |
23870 | }; | |
23871 | ||
23872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
23873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23874 | if (!SWIG_IsOK(res1)) { | |
23875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23876 | } | |
23877 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23878 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23879 | if (!SWIG_IsOK(ecode2)) { | |
23880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
23881 | } | |
23882 | arg2 = static_cast< int >(val2); | |
23883 | { | |
23884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23885 | (arg1)->SetQuality(arg2); | |
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
23889 | resultobj = SWIG_Py_Void(); | |
23890 | return resultobj; | |
23891 | fail: | |
23892 | return NULL; | |
23893 | } | |
23894 | ||
23895 | ||
23896 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23897 | PyObject *resultobj = 0; | |
23898 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23899 | wxPrintBin arg2 ; | |
23900 | void *argp1 = 0 ; | |
23901 | int res1 = 0 ; | |
23902 | int val2 ; | |
23903 | int ecode2 = 0 ; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | PyObject * obj1 = 0 ; | |
23906 | char * kwnames[] = { | |
23907 | (char *) "self",(char *) "bin", NULL | |
23908 | }; | |
23909 | ||
23910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23912 | if (!SWIG_IsOK(res1)) { | |
23913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23914 | } | |
23915 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23916 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23917 | if (!SWIG_IsOK(ecode2)) { | |
23918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
23919 | } | |
23920 | arg2 = static_cast< wxPrintBin >(val2); | |
23921 | { | |
23922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23923 | (arg1)->SetBin(arg2); | |
23924 | wxPyEndAllowThreads(__tstate); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | } | |
23927 | resultobj = SWIG_Py_Void(); | |
23928 | return resultobj; | |
23929 | fail: | |
23930 | return NULL; | |
23931 | } | |
23932 | ||
23933 | ||
23934 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23935 | PyObject *resultobj = 0; | |
23936 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23937 | wxPrintMode arg2 ; | |
23938 | void *argp1 = 0 ; | |
23939 | int res1 = 0 ; | |
23940 | int val2 ; | |
23941 | int ecode2 = 0 ; | |
23942 | PyObject * obj0 = 0 ; | |
23943 | PyObject * obj1 = 0 ; | |
23944 | char * kwnames[] = { | |
23945 | (char *) "self",(char *) "printMode", NULL | |
23946 | }; | |
23947 | ||
23948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
23949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23950 | if (!SWIG_IsOK(res1)) { | |
23951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23952 | } | |
23953 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23955 | if (!SWIG_IsOK(ecode2)) { | |
23956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
23957 | } | |
23958 | arg2 = static_cast< wxPrintMode >(val2); | |
23959 | { | |
23960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23961 | (arg1)->SetPrintMode(arg2); | |
23962 | wxPyEndAllowThreads(__tstate); | |
23963 | if (PyErr_Occurred()) SWIG_fail; | |
23964 | } | |
23965 | resultobj = SWIG_Py_Void(); | |
23966 | return resultobj; | |
23967 | fail: | |
23968 | return NULL; | |
23969 | } | |
d55e5bfc RD |
23970 | |
23971 | ||
1bd55598 RD |
23972 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23973 | PyObject *resultobj = 0; | |
23974 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23975 | wxString result; | |
23976 | void *argp1 = 0 ; | |
23977 | int res1 = 0 ; | |
23978 | PyObject *swig_obj[1] ; | |
23979 | ||
23980 | if (!args) SWIG_fail; | |
23981 | swig_obj[0] = args; | |
23982 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23983 | if (!SWIG_IsOK(res1)) { | |
23984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23985 | } | |
23986 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23987 | { | |
23988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23989 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
23993 | { | |
23994 | #if wxUSE_UNICODE | |
23995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23996 | #else | |
23997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23998 | #endif | |
23999 | } | |
24000 | return resultobj; | |
24001 | fail: | |
24002 | return NULL; | |
24003 | } | |
24004 | ||
24005 | ||
24006 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24007 | PyObject *resultobj = 0; | |
24008 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24009 | wxString *arg2 = 0 ; | |
24010 | void *argp1 = 0 ; | |
24011 | int res1 = 0 ; | |
24012 | bool temp2 = false ; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | PyObject * obj1 = 0 ; | |
24015 | char * kwnames[] = { | |
24016 | (char *) "self",(char *) "filename", NULL | |
24017 | }; | |
24018 | ||
24019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24021 | if (!SWIG_IsOK(res1)) { | |
24022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24023 | } | |
24024 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24025 | { | |
24026 | arg2 = wxString_in_helper(obj1); | |
24027 | if (arg2 == NULL) SWIG_fail; | |
24028 | temp2 = true; | |
24029 | } | |
24030 | { | |
24031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24032 | (arg1)->SetFilename((wxString const &)*arg2); | |
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | resultobj = SWIG_Py_Void(); | |
24037 | { | |
24038 | if (temp2) | |
24039 | delete arg2; | |
24040 | } | |
24041 | return resultobj; | |
24042 | fail: | |
24043 | { | |
24044 | if (temp2) | |
24045 | delete arg2; | |
24046 | } | |
24047 | return NULL; | |
d55e5bfc RD |
24048 | } |
24049 | ||
24050 | ||
1bd55598 RD |
24051 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24052 | PyObject *resultobj = 0; | |
24053 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24054 | PyObject *result = 0 ; | |
24055 | void *argp1 = 0 ; | |
24056 | int res1 = 0 ; | |
24057 | PyObject *swig_obj[1] ; | |
24058 | ||
24059 | if (!args) SWIG_fail; | |
24060 | swig_obj[0] = args; | |
24061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24062 | if (!SWIG_IsOK(res1)) { | |
24063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24064 | } | |
24065 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24066 | { | |
24067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24068 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24069 | wxPyEndAllowThreads(__tstate); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | } | |
24072 | resultobj = result; | |
24073 | return resultobj; | |
24074 | fail: | |
24075 | return NULL; | |
24076 | } | |
24077 | ||
24078 | ||
24079 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24080 | PyObject *resultobj = 0; | |
24081 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24082 | PyObject *arg2 = (PyObject *) 0 ; | |
24083 | void *argp1 = 0 ; | |
24084 | int res1 = 0 ; | |
24085 | PyObject * obj0 = 0 ; | |
24086 | PyObject * obj1 = 0 ; | |
24087 | char * kwnames[] = { | |
24088 | (char *) "self",(char *) "data", NULL | |
24089 | }; | |
24090 | ||
24091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24093 | if (!SWIG_IsOK(res1)) { | |
24094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24095 | } | |
24096 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24097 | arg2 = obj1; | |
24098 | { | |
24099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24100 | wxPrintData_SetPrivData(arg1,arg2); | |
24101 | wxPyEndAllowThreads(__tstate); | |
24102 | if (PyErr_Occurred()) SWIG_fail; | |
24103 | } | |
24104 | resultobj = SWIG_Py_Void(); | |
24105 | return resultobj; | |
24106 | fail: | |
24107 | return NULL; | |
d55e5bfc RD |
24108 | } |
24109 | ||
24110 | ||
1bd55598 RD |
24111 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24112 | PyObject *obj; | |
24113 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24114 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24115 | return SWIG_Py_Void(); | |
d55e5bfc RD |
24116 | } |
24117 | ||
1bd55598 RD |
24118 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24119 | return SWIG_Python_InitShadowInstance(args); | |
24120 | } | |
d55e5bfc | 24121 | |
1bd55598 RD |
24122 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24123 | PyObject *resultobj = 0; | |
24124 | wxPageSetupDialogData *result = 0 ; | |
24125 | ||
24126 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24127 | { | |
24128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24129 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
d55e5bfc RD |
24137 | } |
24138 | ||
24139 | ||
1bd55598 RD |
24140 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24141 | PyObject *resultobj = 0; | |
24142 | wxPageSetupDialogData *arg1 = 0 ; | |
24143 | wxPageSetupDialogData *result = 0 ; | |
24144 | void *argp1 = 0 ; | |
24145 | int res1 = 0 ; | |
24146 | ||
24147 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24149 | if (!SWIG_IsOK(res1)) { | |
24150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24151 | } | |
24152 | if (!argp1) { | |
24153 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24154 | } | |
24155 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24159 | wxPyEndAllowThreads(__tstate); | |
24160 | if (PyErr_Occurred()) SWIG_fail; | |
24161 | } | |
24162 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24163 | return resultobj; | |
24164 | fail: | |
24165 | return NULL; | |
d55e5bfc RD |
24166 | } |
24167 | ||
24168 | ||
1bd55598 RD |
24169 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24170 | PyObject *resultobj = 0; | |
24171 | wxPrintData *arg1 = 0 ; | |
24172 | wxPageSetupDialogData *result = 0 ; | |
24173 | void *argp1 = 0 ; | |
24174 | int res1 = 0 ; | |
24175 | ||
24176 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24178 | if (!SWIG_IsOK(res1)) { | |
24179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24180 | } | |
24181 | if (!argp1) { | |
24182 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24183 | } | |
24184 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24185 | { | |
24186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24187 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24192 | return resultobj; | |
24193 | fail: | |
24194 | return NULL; | |
d55e5bfc RD |
24195 | } |
24196 | ||
24197 | ||
1bd55598 RD |
24198 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24199 | int argc; | |
24200 | PyObject *argv[2]; | |
24201 | ||
24202 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24203 | --argc; | |
24204 | if (argc == 0) { | |
24205 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24206 | } | |
24207 | if (argc == 1) { | |
24208 | int _v = 0; | |
36ed4f51 | 24209 | { |
1bd55598 RD |
24210 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24211 | _v = SWIG_CheckState(res); | |
d55e5bfc | 24212 | } |
1bd55598 RD |
24213 | if (!_v) goto check_2; |
24214 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24215 | } | |
24216 | check_2: | |
24217 | ||
24218 | if (argc == 1) { | |
24219 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24220 | } | |
24221 | ||
24222 | fail: | |
24223 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24224 | return NULL; | |
d55e5bfc RD |
24225 | } |
24226 | ||
24227 | ||
1bd55598 RD |
24228 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24229 | PyObject *resultobj = 0; | |
24230 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24231 | void *argp1 = 0 ; | |
24232 | int res1 = 0 ; | |
24233 | PyObject *swig_obj[1] ; | |
24234 | ||
24235 | if (!args) SWIG_fail; | |
24236 | swig_obj[0] = args; | |
24237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24238 | if (!SWIG_IsOK(res1)) { | |
24239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24240 | } | |
24241 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24242 | { | |
24243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24244 | delete arg1; | |
d55e5bfc | 24245 | |
1bd55598 RD |
24246 | wxPyEndAllowThreads(__tstate); |
24247 | if (PyErr_Occurred()) SWIG_fail; | |
24248 | } | |
24249 | resultobj = SWIG_Py_Void(); | |
24250 | return resultobj; | |
24251 | fail: | |
24252 | return NULL; | |
24253 | } | |
24254 | ||
24255 | ||
24256 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24257 | PyObject *resultobj = 0; | |
24258 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24259 | bool arg2 ; | |
24260 | void *argp1 = 0 ; | |
24261 | int res1 = 0 ; | |
24262 | bool val2 ; | |
24263 | int ecode2 = 0 ; | |
24264 | PyObject * obj0 = 0 ; | |
24265 | PyObject * obj1 = 0 ; | |
24266 | char * kwnames[] = { | |
24267 | (char *) "self",(char *) "flag", NULL | |
24268 | }; | |
24269 | ||
24270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24272 | if (!SWIG_IsOK(res1)) { | |
24273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24274 | } | |
24275 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24276 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24277 | if (!SWIG_IsOK(ecode2)) { | |
24278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24279 | } | |
24280 | arg2 = static_cast< bool >(val2); | |
24281 | { | |
24282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24283 | (arg1)->EnableHelp(arg2); | |
24284 | wxPyEndAllowThreads(__tstate); | |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
24286 | } | |
24287 | resultobj = SWIG_Py_Void(); | |
24288 | return resultobj; | |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
24294 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24295 | PyObject *resultobj = 0; | |
24296 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24297 | bool arg2 ; | |
24298 | void *argp1 = 0 ; | |
24299 | int res1 = 0 ; | |
24300 | bool val2 ; | |
24301 | int ecode2 = 0 ; | |
24302 | PyObject * obj0 = 0 ; | |
24303 | PyObject * obj1 = 0 ; | |
24304 | char * kwnames[] = { | |
24305 | (char *) "self",(char *) "flag", NULL | |
24306 | }; | |
24307 | ||
24308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24310 | if (!SWIG_IsOK(res1)) { | |
24311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24312 | } | |
24313 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24314 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24315 | if (!SWIG_IsOK(ecode2)) { | |
24316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24317 | } | |
24318 | arg2 = static_cast< bool >(val2); | |
24319 | { | |
24320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24321 | (arg1)->EnableMargins(arg2); | |
24322 | wxPyEndAllowThreads(__tstate); | |
24323 | if (PyErr_Occurred()) SWIG_fail; | |
24324 | } | |
24325 | resultobj = SWIG_Py_Void(); | |
24326 | return resultobj; | |
24327 | fail: | |
24328 | return NULL; | |
24329 | } | |
24330 | ||
24331 | ||
24332 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24333 | PyObject *resultobj = 0; | |
24334 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24335 | bool arg2 ; | |
24336 | void *argp1 = 0 ; | |
24337 | int res1 = 0 ; | |
24338 | bool val2 ; | |
24339 | int ecode2 = 0 ; | |
24340 | PyObject * obj0 = 0 ; | |
24341 | PyObject * obj1 = 0 ; | |
24342 | char * kwnames[] = { | |
24343 | (char *) "self",(char *) "flag", NULL | |
24344 | }; | |
24345 | ||
24346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24348 | if (!SWIG_IsOK(res1)) { | |
24349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24350 | } | |
24351 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24352 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24353 | if (!SWIG_IsOK(ecode2)) { | |
24354 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24355 | } | |
24356 | arg2 = static_cast< bool >(val2); | |
24357 | { | |
24358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24359 | (arg1)->EnableOrientation(arg2); | |
24360 | wxPyEndAllowThreads(__tstate); | |
24361 | if (PyErr_Occurred()) SWIG_fail; | |
24362 | } | |
24363 | resultobj = SWIG_Py_Void(); | |
24364 | return resultobj; | |
24365 | fail: | |
24366 | return NULL; | |
24367 | } | |
24368 | ||
24369 | ||
24370 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24371 | PyObject *resultobj = 0; | |
24372 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24373 | bool arg2 ; | |
24374 | void *argp1 = 0 ; | |
24375 | int res1 = 0 ; | |
24376 | bool val2 ; | |
24377 | int ecode2 = 0 ; | |
24378 | PyObject * obj0 = 0 ; | |
24379 | PyObject * obj1 = 0 ; | |
24380 | char * kwnames[] = { | |
24381 | (char *) "self",(char *) "flag", NULL | |
24382 | }; | |
24383 | ||
24384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24386 | if (!SWIG_IsOK(res1)) { | |
24387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24388 | } | |
24389 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24390 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24391 | if (!SWIG_IsOK(ecode2)) { | |
24392 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
24393 | } | |
24394 | arg2 = static_cast< bool >(val2); | |
24395 | { | |
24396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24397 | (arg1)->EnablePaper(arg2); | |
24398 | wxPyEndAllowThreads(__tstate); | |
24399 | if (PyErr_Occurred()) SWIG_fail; | |
24400 | } | |
24401 | resultobj = SWIG_Py_Void(); | |
24402 | return resultobj; | |
24403 | fail: | |
24404 | return NULL; | |
24405 | } | |
24406 | ||
24407 | ||
24408 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24409 | PyObject *resultobj = 0; | |
24410 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24411 | bool arg2 ; | |
24412 | void *argp1 = 0 ; | |
24413 | int res1 = 0 ; | |
24414 | bool val2 ; | |
24415 | int ecode2 = 0 ; | |
24416 | PyObject * obj0 = 0 ; | |
24417 | PyObject * obj1 = 0 ; | |
24418 | char * kwnames[] = { | |
24419 | (char *) "self",(char *) "flag", NULL | |
24420 | }; | |
24421 | ||
24422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
24423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24424 | if (!SWIG_IsOK(res1)) { | |
24425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24426 | } | |
24427 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24428 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24429 | if (!SWIG_IsOK(ecode2)) { | |
24430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
24431 | } | |
24432 | arg2 = static_cast< bool >(val2); | |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | (arg1)->EnablePrinter(arg2); | |
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | resultobj = SWIG_Py_Void(); | |
24440 | return resultobj; | |
24441 | fail: | |
24442 | return NULL; | |
d55e5bfc RD |
24443 | } |
24444 | ||
24445 | ||
1bd55598 RD |
24446 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24447 | PyObject *resultobj = 0; | |
24448 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24449 | bool result; | |
24450 | void *argp1 = 0 ; | |
24451 | int res1 = 0 ; | |
24452 | PyObject *swig_obj[1] ; | |
24453 | ||
24454 | if (!args) SWIG_fail; | |
24455 | swig_obj[0] = args; | |
24456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24457 | if (!SWIG_IsOK(res1)) { | |
24458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24459 | } | |
24460 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24461 | { | |
24462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24463 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
24467 | { | |
24468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24469 | } | |
24470 | return resultobj; | |
24471 | fail: | |
24472 | return NULL; | |
d55e5bfc RD |
24473 | } |
24474 | ||
24475 | ||
1bd55598 RD |
24476 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24477 | PyObject *resultobj = 0; | |
24478 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24479 | bool result; | |
24480 | void *argp1 = 0 ; | |
24481 | int res1 = 0 ; | |
24482 | PyObject *swig_obj[1] ; | |
24483 | ||
24484 | if (!args) SWIG_fail; | |
24485 | swig_obj[0] = args; | |
24486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24487 | if (!SWIG_IsOK(res1)) { | |
24488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24489 | } | |
24490 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24491 | { | |
24492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24493 | result = (bool)(arg1)->GetEnableMargins(); | |
24494 | wxPyEndAllowThreads(__tstate); | |
24495 | if (PyErr_Occurred()) SWIG_fail; | |
24496 | } | |
24497 | { | |
24498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24499 | } | |
24500 | return resultobj; | |
24501 | fail: | |
24502 | return NULL; | |
d55e5bfc RD |
24503 | } |
24504 | ||
24505 | ||
1bd55598 RD |
24506 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24507 | PyObject *resultobj = 0; | |
24508 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24509 | bool result; | |
24510 | void *argp1 = 0 ; | |
24511 | int res1 = 0 ; | |
24512 | PyObject *swig_obj[1] ; | |
24513 | ||
24514 | if (!args) SWIG_fail; | |
24515 | swig_obj[0] = args; | |
24516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24517 | if (!SWIG_IsOK(res1)) { | |
24518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24519 | } | |
24520 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24521 | { | |
24522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24523 | result = (bool)(arg1)->GetEnableOrientation(); | |
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | { | |
24528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24529 | } | |
24530 | return resultobj; | |
24531 | fail: | |
24532 | return NULL; | |
d55e5bfc RD |
24533 | } |
24534 | ||
24535 | ||
1bd55598 RD |
24536 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24537 | PyObject *resultobj = 0; | |
24538 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24539 | bool result; | |
24540 | void *argp1 = 0 ; | |
24541 | int res1 = 0 ; | |
24542 | PyObject *swig_obj[1] ; | |
24543 | ||
24544 | if (!args) SWIG_fail; | |
24545 | swig_obj[0] = args; | |
24546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24547 | if (!SWIG_IsOK(res1)) { | |
24548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24549 | } | |
24550 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24551 | { | |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | result = (bool)(arg1)->GetEnablePaper(); | |
24554 | wxPyEndAllowThreads(__tstate); | |
24555 | if (PyErr_Occurred()) SWIG_fail; | |
24556 | } | |
24557 | { | |
24558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24559 | } | |
24560 | return resultobj; | |
24561 | fail: | |
24562 | return NULL; | |
d55e5bfc RD |
24563 | } |
24564 | ||
24565 | ||
1bd55598 RD |
24566 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24567 | PyObject *resultobj = 0; | |
24568 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24569 | bool result; | |
24570 | void *argp1 = 0 ; | |
24571 | int res1 = 0 ; | |
24572 | PyObject *swig_obj[1] ; | |
24573 | ||
24574 | if (!args) SWIG_fail; | |
24575 | swig_obj[0] = args; | |
24576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24577 | if (!SWIG_IsOK(res1)) { | |
24578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24579 | } | |
24580 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24581 | { | |
24582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24583 | result = (bool)(arg1)->GetEnablePrinter(); | |
24584 | wxPyEndAllowThreads(__tstate); | |
24585 | if (PyErr_Occurred()) SWIG_fail; | |
24586 | } | |
24587 | { | |
24588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24589 | } | |
24590 | return resultobj; | |
24591 | fail: | |
24592 | return NULL; | |
32fe5131 RD |
24593 | } |
24594 | ||
24595 | ||
1bd55598 RD |
24596 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24597 | PyObject *resultobj = 0; | |
24598 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24599 | bool result; | |
24600 | void *argp1 = 0 ; | |
24601 | int res1 = 0 ; | |
24602 | PyObject *swig_obj[1] ; | |
24603 | ||
24604 | if (!args) SWIG_fail; | |
24605 | swig_obj[0] = args; | |
24606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24607 | if (!SWIG_IsOK(res1)) { | |
24608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24609 | } | |
24610 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24611 | { | |
24612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24613 | result = (bool)(arg1)->GetEnableHelp(); | |
24614 | wxPyEndAllowThreads(__tstate); | |
24615 | if (PyErr_Occurred()) SWIG_fail; | |
24616 | } | |
24617 | { | |
24618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24619 | } | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
d55e5bfc RD |
24623 | } |
24624 | ||
24625 | ||
1bd55598 RD |
24626 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24627 | PyObject *resultobj = 0; | |
24628 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24629 | bool result; | |
24630 | void *argp1 = 0 ; | |
24631 | int res1 = 0 ; | |
24632 | PyObject *swig_obj[1] ; | |
24633 | ||
24634 | if (!args) SWIG_fail; | |
24635 | swig_obj[0] = args; | |
24636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24637 | if (!SWIG_IsOK(res1)) { | |
24638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24639 | } | |
24640 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24641 | { | |
24642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24643 | result = (bool)(arg1)->GetDefaultInfo(); | |
24644 | wxPyEndAllowThreads(__tstate); | |
24645 | if (PyErr_Occurred()) SWIG_fail; | |
24646 | } | |
24647 | { | |
24648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24649 | } | |
24650 | return resultobj; | |
24651 | fail: | |
24652 | return NULL; | |
d55e5bfc RD |
24653 | } |
24654 | ||
24655 | ||
1bd55598 RD |
24656 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24657 | PyObject *resultobj = 0; | |
24658 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24659 | wxPoint result; | |
24660 | void *argp1 = 0 ; | |
24661 | int res1 = 0 ; | |
24662 | PyObject *swig_obj[1] ; | |
24663 | ||
24664 | if (!args) SWIG_fail; | |
24665 | swig_obj[0] = args; | |
24666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24667 | if (!SWIG_IsOK(res1)) { | |
24668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24669 | } | |
24670 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24671 | { | |
24672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24673 | result = (arg1)->GetMarginTopLeft(); | |
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
24677 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24678 | return resultobj; | |
24679 | fail: | |
24680 | return NULL; | |
d55e5bfc RD |
24681 | } |
24682 | ||
24683 | ||
1bd55598 RD |
24684 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24685 | PyObject *resultobj = 0; | |
24686 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24687 | wxPoint result; | |
24688 | void *argp1 = 0 ; | |
24689 | int res1 = 0 ; | |
24690 | PyObject *swig_obj[1] ; | |
24691 | ||
24692 | if (!args) SWIG_fail; | |
24693 | swig_obj[0] = args; | |
24694 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24695 | if (!SWIG_IsOK(res1)) { | |
24696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24697 | } | |
24698 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24699 | { | |
24700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24701 | result = (arg1)->GetMarginBottomRight(); | |
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
d55e5bfc RD |
24709 | } |
24710 | ||
24711 | ||
1bd55598 RD |
24712 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24713 | PyObject *resultobj = 0; | |
24714 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24715 | wxPoint result; | |
24716 | void *argp1 = 0 ; | |
24717 | int res1 = 0 ; | |
24718 | PyObject *swig_obj[1] ; | |
24719 | ||
24720 | if (!args) SWIG_fail; | |
24721 | swig_obj[0] = args; | |
24722 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24723 | if (!SWIG_IsOK(res1)) { | |
24724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24725 | } | |
24726 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24727 | { | |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (arg1)->GetMinMarginTopLeft(); | |
24730 | wxPyEndAllowThreads(__tstate); | |
24731 | if (PyErr_Occurred()) SWIG_fail; | |
24732 | } | |
24733 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24734 | return resultobj; | |
24735 | fail: | |
24736 | return NULL; | |
d55e5bfc RD |
24737 | } |
24738 | ||
24739 | ||
1bd55598 RD |
24740 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24741 | PyObject *resultobj = 0; | |
24742 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24743 | wxPoint result; | |
24744 | void *argp1 = 0 ; | |
24745 | int res1 = 0 ; | |
24746 | PyObject *swig_obj[1] ; | |
24747 | ||
24748 | if (!args) SWIG_fail; | |
24749 | swig_obj[0] = args; | |
24750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24751 | if (!SWIG_IsOK(res1)) { | |
24752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24753 | } | |
24754 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24755 | { | |
24756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24757 | result = (arg1)->GetMinMarginBottomRight(); | |
24758 | wxPyEndAllowThreads(__tstate); | |
24759 | if (PyErr_Occurred()) SWIG_fail; | |
24760 | } | |
24761 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24762 | return resultobj; | |
24763 | fail: | |
24764 | return NULL; | |
d55e5bfc RD |
24765 | } |
24766 | ||
24767 | ||
1bd55598 RD |
24768 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24769 | PyObject *resultobj = 0; | |
24770 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24771 | wxPaperSize result; | |
24772 | void *argp1 = 0 ; | |
24773 | int res1 = 0 ; | |
24774 | PyObject *swig_obj[1] ; | |
24775 | ||
24776 | if (!args) SWIG_fail; | |
24777 | swig_obj[0] = args; | |
24778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24779 | if (!SWIG_IsOK(res1)) { | |
24780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24781 | } | |
24782 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24783 | { | |
24784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24785 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
24786 | wxPyEndAllowThreads(__tstate); | |
24787 | if (PyErr_Occurred()) SWIG_fail; | |
24788 | } | |
24789 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24790 | return resultobj; | |
24791 | fail: | |
24792 | return NULL; | |
d55e5bfc RD |
24793 | } |
24794 | ||
24795 | ||
1bd55598 RD |
24796 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24797 | PyObject *resultobj = 0; | |
24798 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24799 | wxSize result; | |
24800 | void *argp1 = 0 ; | |
24801 | int res1 = 0 ; | |
24802 | PyObject *swig_obj[1] ; | |
24803 | ||
24804 | if (!args) SWIG_fail; | |
24805 | swig_obj[0] = args; | |
24806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24807 | if (!SWIG_IsOK(res1)) { | |
24808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24809 | } | |
24810 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24811 | { | |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24813 | result = (arg1)->GetPaperSize(); | |
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
24817 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24818 | return resultobj; | |
24819 | fail: | |
24820 | return NULL; | |
d55e5bfc RD |
24821 | } |
24822 | ||
24823 | ||
1bd55598 RD |
24824 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24825 | PyObject *resultobj = 0; | |
24826 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24827 | wxPrintData *result = 0 ; | |
24828 | void *argp1 = 0 ; | |
24829 | int res1 = 0 ; | |
24830 | PyObject *swig_obj[1] ; | |
24831 | ||
24832 | if (!args) SWIG_fail; | |
24833 | swig_obj[0] = args; | |
24834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24835 | if (!SWIG_IsOK(res1)) { | |
24836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24837 | } | |
24838 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 24841 | { |
1bd55598 RD |
24842 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24843 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 24844 | } |
1bd55598 RD |
24845 | wxPyEndAllowThreads(__tstate); |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24849 | return resultobj; | |
24850 | fail: | |
24851 | return NULL; | |
d55e5bfc RD |
24852 | } |
24853 | ||
24854 | ||
1bd55598 RD |
24855 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24856 | PyObject *resultobj = 0; | |
24857 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24858 | bool result; | |
24859 | void *argp1 = 0 ; | |
24860 | int res1 = 0 ; | |
24861 | PyObject *swig_obj[1] ; | |
24862 | ||
24863 | if (!args) SWIG_fail; | |
24864 | swig_obj[0] = args; | |
24865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24866 | if (!SWIG_IsOK(res1)) { | |
24867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_Ok" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24868 | } | |
24869 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24870 | { | |
24871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24872 | result = (bool)(arg1)->Ok(); | |
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | { | |
24877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24878 | } | |
24879 | return resultobj; | |
24880 | fail: | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24886 | PyObject *resultobj = 0; | |
24887 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24888 | bool arg2 ; | |
24889 | void *argp1 = 0 ; | |
24890 | int res1 = 0 ; | |
24891 | bool val2 ; | |
24892 | int ecode2 = 0 ; | |
24893 | PyObject * obj0 = 0 ; | |
24894 | PyObject * obj1 = 0 ; | |
24895 | char * kwnames[] = { | |
24896 | (char *) "self",(char *) "flag", NULL | |
24897 | }; | |
24898 | ||
24899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
24900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24901 | if (!SWIG_IsOK(res1)) { | |
24902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24903 | } | |
24904 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24905 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24906 | if (!SWIG_IsOK(ecode2)) { | |
24907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
24908 | } | |
24909 | arg2 = static_cast< bool >(val2); | |
24910 | { | |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24912 | (arg1)->SetDefaultInfo(arg2); | |
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | resultobj = SWIG_Py_Void(); | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
24923 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24924 | PyObject *resultobj = 0; | |
24925 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24926 | bool arg2 ; | |
24927 | void *argp1 = 0 ; | |
24928 | int res1 = 0 ; | |
24929 | bool val2 ; | |
24930 | int ecode2 = 0 ; | |
24931 | PyObject * obj0 = 0 ; | |
24932 | PyObject * obj1 = 0 ; | |
24933 | char * kwnames[] = { | |
24934 | (char *) "self",(char *) "flag", NULL | |
24935 | }; | |
24936 | ||
24937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24939 | if (!SWIG_IsOK(res1)) { | |
24940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24941 | } | |
24942 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24943 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24944 | if (!SWIG_IsOK(ecode2)) { | |
24945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24946 | } | |
24947 | arg2 = static_cast< bool >(val2); | |
24948 | { | |
24949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24950 | (arg1)->SetDefaultMinMargins(arg2); | |
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
24954 | resultobj = SWIG_Py_Void(); | |
24955 | return resultobj; | |
24956 | fail: | |
24957 | return NULL; | |
24958 | } | |
24959 | ||
24960 | ||
24961 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24962 | PyObject *resultobj = 0; | |
24963 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24964 | wxPoint *arg2 = 0 ; | |
24965 | void *argp1 = 0 ; | |
24966 | int res1 = 0 ; | |
24967 | wxPoint temp2 ; | |
24968 | PyObject * obj0 = 0 ; | |
24969 | PyObject * obj1 = 0 ; | |
24970 | char * kwnames[] = { | |
24971 | (char *) "self",(char *) "pt", NULL | |
24972 | }; | |
24973 | ||
24974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
24975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24976 | if (!SWIG_IsOK(res1)) { | |
24977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24978 | } | |
24979 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24980 | { | |
24981 | arg2 = &temp2; | |
24982 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24983 | } | |
24984 | { | |
24985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24986 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
24987 | wxPyEndAllowThreads(__tstate); | |
24988 | if (PyErr_Occurred()) SWIG_fail; | |
24989 | } | |
24990 | resultobj = SWIG_Py_Void(); | |
24991 | return resultobj; | |
24992 | fail: | |
24993 | return NULL; | |
24994 | } | |
24995 | ||
24996 | ||
24997 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24998 | PyObject *resultobj = 0; | |
24999 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25000 | wxPoint *arg2 = 0 ; | |
25001 | void *argp1 = 0 ; | |
25002 | int res1 = 0 ; | |
25003 | wxPoint temp2 ; | |
25004 | PyObject * obj0 = 0 ; | |
25005 | PyObject * obj1 = 0 ; | |
25006 | char * kwnames[] = { | |
25007 | (char *) "self",(char *) "pt", NULL | |
25008 | }; | |
25009 | ||
25010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25012 | if (!SWIG_IsOK(res1)) { | |
25013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25014 | } | |
25015 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25016 | { | |
25017 | arg2 = &temp2; | |
25018 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25019 | } | |
25020 | { | |
25021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25022 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | resultobj = SWIG_Py_Void(); | |
25027 | return resultobj; | |
25028 | fail: | |
25029 | return NULL; | |
25030 | } | |
25031 | ||
25032 | ||
25033 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25034 | PyObject *resultobj = 0; | |
25035 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25036 | wxPoint *arg2 = 0 ; | |
25037 | void *argp1 = 0 ; | |
25038 | int res1 = 0 ; | |
25039 | wxPoint temp2 ; | |
25040 | PyObject * obj0 = 0 ; | |
25041 | PyObject * obj1 = 0 ; | |
25042 | char * kwnames[] = { | |
25043 | (char *) "self",(char *) "pt", NULL | |
25044 | }; | |
25045 | ||
25046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25048 | if (!SWIG_IsOK(res1)) { | |
25049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25050 | } | |
25051 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25052 | { | |
25053 | arg2 = &temp2; | |
25054 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25055 | } | |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25059 | wxPyEndAllowThreads(__tstate); | |
25060 | if (PyErr_Occurred()) SWIG_fail; | |
25061 | } | |
25062 | resultobj = SWIG_Py_Void(); | |
25063 | return resultobj; | |
25064 | fail: | |
25065 | return NULL; | |
25066 | } | |
25067 | ||
25068 | ||
25069 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25070 | PyObject *resultobj = 0; | |
25071 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25072 | wxPoint *arg2 = 0 ; | |
25073 | void *argp1 = 0 ; | |
25074 | int res1 = 0 ; | |
25075 | wxPoint temp2 ; | |
25076 | PyObject * obj0 = 0 ; | |
25077 | PyObject * obj1 = 0 ; | |
25078 | char * kwnames[] = { | |
25079 | (char *) "self",(char *) "pt", NULL | |
25080 | }; | |
25081 | ||
25082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25084 | if (!SWIG_IsOK(res1)) { | |
25085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25086 | } | |
25087 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25088 | { | |
25089 | arg2 = &temp2; | |
25090 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25091 | } | |
25092 | { | |
25093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25094 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | resultobj = SWIG_Py_Void(); | |
25099 | return resultobj; | |
25100 | fail: | |
25101 | return NULL; | |
25102 | } | |
25103 | ||
25104 | ||
25105 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25106 | PyObject *resultobj = 0; | |
25107 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25108 | wxPaperSize arg2 ; | |
25109 | void *argp1 = 0 ; | |
25110 | int res1 = 0 ; | |
25111 | int val2 ; | |
25112 | int ecode2 = 0 ; | |
25113 | PyObject * obj0 = 0 ; | |
25114 | PyObject * obj1 = 0 ; | |
25115 | char * kwnames[] = { | |
25116 | (char *) "self",(char *) "id", NULL | |
25117 | }; | |
25118 | ||
25119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25121 | if (!SWIG_IsOK(res1)) { | |
25122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25123 | } | |
25124 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25126 | if (!SWIG_IsOK(ecode2)) { | |
25127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25128 | } | |
25129 | arg2 = static_cast< wxPaperSize >(val2); | |
25130 | { | |
25131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25132 | (arg1)->SetPaperId(arg2); | |
25133 | wxPyEndAllowThreads(__tstate); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | } | |
25136 | resultobj = SWIG_Py_Void(); | |
25137 | return resultobj; | |
25138 | fail: | |
25139 | return NULL; | |
25140 | } | |
25141 | ||
25142 | ||
25143 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25144 | PyObject *resultobj = 0; | |
25145 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25146 | wxSize *arg2 = 0 ; | |
25147 | void *argp1 = 0 ; | |
25148 | int res1 = 0 ; | |
25149 | wxSize temp2 ; | |
25150 | PyObject * obj0 = 0 ; | |
25151 | PyObject * obj1 = 0 ; | |
25152 | char * kwnames[] = { | |
25153 | (char *) "self",(char *) "size", NULL | |
25154 | }; | |
25155 | ||
25156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25158 | if (!SWIG_IsOK(res1)) { | |
25159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25160 | } | |
25161 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25162 | { | |
25163 | arg2 = &temp2; | |
25164 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25165 | } | |
25166 | { | |
25167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25168 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25169 | wxPyEndAllowThreads(__tstate); | |
25170 | if (PyErr_Occurred()) SWIG_fail; | |
25171 | } | |
25172 | resultobj = SWIG_Py_Void(); | |
25173 | return resultobj; | |
25174 | fail: | |
25175 | return NULL; | |
25176 | } | |
25177 | ||
25178 | ||
25179 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25180 | PyObject *resultobj = 0; | |
25181 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25182 | wxPrintData *arg2 = 0 ; | |
25183 | void *argp1 = 0 ; | |
25184 | int res1 = 0 ; | |
25185 | void *argp2 = 0 ; | |
25186 | int res2 = 0 ; | |
25187 | PyObject * obj0 = 0 ; | |
25188 | PyObject * obj1 = 0 ; | |
25189 | char * kwnames[] = { | |
25190 | (char *) "self",(char *) "printData", NULL | |
25191 | }; | |
25192 | ||
25193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25195 | if (!SWIG_IsOK(res1)) { | |
25196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25197 | } | |
25198 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25199 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25200 | if (!SWIG_IsOK(res2)) { | |
25201 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25202 | } | |
25203 | if (!argp2) { | |
25204 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25205 | } | |
25206 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25207 | { | |
25208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25209 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25210 | wxPyEndAllowThreads(__tstate); | |
25211 | if (PyErr_Occurred()) SWIG_fail; | |
25212 | } | |
25213 | resultobj = SWIG_Py_Void(); | |
25214 | return resultobj; | |
25215 | fail: | |
25216 | return NULL; | |
d55e5bfc RD |
25217 | } |
25218 | ||
25219 | ||
1bd55598 RD |
25220 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25221 | PyObject *resultobj = 0; | |
25222 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25223 | void *argp1 = 0 ; | |
25224 | int res1 = 0 ; | |
25225 | PyObject *swig_obj[1] ; | |
25226 | ||
25227 | if (!args) SWIG_fail; | |
25228 | swig_obj[0] = args; | |
25229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25230 | if (!SWIG_IsOK(res1)) { | |
25231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25232 | } | |
25233 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25234 | { | |
25235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25236 | (arg1)->CalculateIdFromPaperSize(); | |
25237 | wxPyEndAllowThreads(__tstate); | |
25238 | if (PyErr_Occurred()) SWIG_fail; | |
25239 | } | |
25240 | resultobj = SWIG_Py_Void(); | |
25241 | return resultobj; | |
25242 | fail: | |
25243 | return NULL; | |
d55e5bfc RD |
25244 | } |
25245 | ||
25246 | ||
1bd55598 RD |
25247 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25248 | PyObject *resultobj = 0; | |
25249 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25250 | void *argp1 = 0 ; | |
25251 | int res1 = 0 ; | |
25252 | PyObject *swig_obj[1] ; | |
25253 | ||
25254 | if (!args) SWIG_fail; | |
25255 | swig_obj[0] = args; | |
25256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25257 | if (!SWIG_IsOK(res1)) { | |
25258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25259 | } | |
25260 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25261 | { | |
25262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25263 | (arg1)->CalculatePaperSizeFromId(); | |
25264 | wxPyEndAllowThreads(__tstate); | |
25265 | if (PyErr_Occurred()) SWIG_fail; | |
25266 | } | |
25267 | resultobj = SWIG_Py_Void(); | |
25268 | return resultobj; | |
25269 | fail: | |
25270 | return NULL; | |
d55e5bfc RD |
25271 | } |
25272 | ||
25273 | ||
1bd55598 RD |
25274 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25275 | PyObject *obj; | |
25276 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25277 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25278 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25279 | } |
25280 | ||
1bd55598 RD |
25281 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25282 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25283 | } |
25284 | ||
1bd55598 RD |
25285 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25286 | PyObject *resultobj = 0; | |
25287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25288 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25289 | wxPageSetupDialog *result = 0 ; | |
25290 | void *argp1 = 0 ; | |
25291 | int res1 = 0 ; | |
25292 | void *argp2 = 0 ; | |
25293 | int res2 = 0 ; | |
25294 | PyObject * obj0 = 0 ; | |
25295 | PyObject * obj1 = 0 ; | |
25296 | char * kwnames[] = { | |
25297 | (char *) "parent",(char *) "data", NULL | |
25298 | }; | |
25299 | ||
25300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25302 | if (!SWIG_IsOK(res1)) { | |
25303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25304 | } | |
25305 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25306 | if (obj1) { | |
25307 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25308 | if (!SWIG_IsOK(res2)) { | |
25309 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
36ed4f51 | 25310 | } |
1bd55598 RD |
25311 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25312 | } | |
25313 | { | |
25314 | if (!wxPyCheckForApp()) SWIG_fail; | |
25315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25316 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
25320 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25321 | return resultobj; | |
25322 | fail: | |
25323 | return NULL; | |
d55e5bfc RD |
25324 | } |
25325 | ||
25326 | ||
06810ecf RD |
25327 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25328 | PyObject *resultobj = 0; | |
25329 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25330 | void *argp1 = 0 ; | |
25331 | int res1 = 0 ; | |
25332 | PyObject *swig_obj[1] ; | |
25333 | ||
25334 | if (!args) SWIG_fail; | |
25335 | swig_obj[0] = args; | |
25336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_DISOWN | 0 ); | |
25337 | if (!SWIG_IsOK(res1)) { | |
25338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialog" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25339 | } | |
25340 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25341 | { | |
25342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25343 | delete arg1; | |
25344 | ||
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 | ||
1bd55598 RD |
25355 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25356 | PyObject *resultobj = 0; | |
25357 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25358 | wxPageSetupDialogData *result = 0 ; | |
25359 | void *argp1 = 0 ; | |
25360 | int res1 = 0 ; | |
25361 | PyObject *swig_obj[1] ; | |
25362 | ||
25363 | if (!args) SWIG_fail; | |
25364 | swig_obj[0] = args; | |
25365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25366 | if (!SWIG_IsOK(res1)) { | |
25367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25368 | } | |
25369 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25370 | { | |
25371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 25372 | { |
1bd55598 RD |
25373 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25374 | result = (wxPageSetupDialogData *) &_result_ref; | |
36ed4f51 | 25375 | } |
1bd55598 RD |
25376 | wxPyEndAllowThreads(__tstate); |
25377 | if (PyErr_Occurred()) SWIG_fail; | |
25378 | } | |
25379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25380 | return resultobj; | |
25381 | fail: | |
25382 | return NULL; | |
d55e5bfc RD |
25383 | } |
25384 | ||
25385 | ||
1bd55598 RD |
25386 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25387 | PyObject *resultobj = 0; | |
25388 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25389 | wxPageSetupDialogData *result = 0 ; | |
25390 | void *argp1 = 0 ; | |
25391 | int res1 = 0 ; | |
25392 | PyObject *swig_obj[1] ; | |
25393 | ||
25394 | if (!args) SWIG_fail; | |
25395 | swig_obj[0] = args; | |
25396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25397 | if (!SWIG_IsOK(res1)) { | |
25398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25399 | } | |
25400 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25401 | { | |
25402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25403 | { |
1bd55598 RD |
25404 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
25405 | result = (wxPageSetupDialogData *) &_result_ref; | |
d55e5bfc | 25406 | } |
1bd55598 RD |
25407 | wxPyEndAllowThreads(__tstate); |
25408 | if (PyErr_Occurred()) SWIG_fail; | |
25409 | } | |
25410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25411 | return resultobj; | |
25412 | fail: | |
25413 | return NULL; | |
d55e5bfc RD |
25414 | } |
25415 | ||
25416 | ||
1bd55598 RD |
25417 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25418 | PyObject *resultobj = 0; | |
25419 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25420 | int result; | |
25421 | void *argp1 = 0 ; | |
25422 | int res1 = 0 ; | |
25423 | PyObject *swig_obj[1] ; | |
25424 | ||
25425 | if (!args) SWIG_fail; | |
25426 | swig_obj[0] = args; | |
25427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25428 | if (!SWIG_IsOK(res1)) { | |
25429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25430 | } | |
25431 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25432 | { | |
25433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25434 | result = (int)(arg1)->ShowModal(); | |
25435 | wxPyEndAllowThreads(__tstate); | |
25436 | if (PyErr_Occurred()) SWIG_fail; | |
25437 | } | |
25438 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25439 | return resultobj; | |
25440 | fail: | |
25441 | return NULL; | |
d55e5bfc RD |
25442 | } |
25443 | ||
25444 | ||
1bd55598 RD |
25445 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25446 | PyObject *obj; | |
25447 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25448 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
25449 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25450 | } |
25451 | ||
1bd55598 RD |
25452 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25453 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25454 | } |
25455 | ||
1bd55598 RD |
25456 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
25457 | PyObject *resultobj = 0; | |
25458 | wxPrintDialogData *result = 0 ; | |
25459 | ||
25460 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
25461 | { | |
25462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25463 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
25464 | wxPyEndAllowThreads(__tstate); | |
25465 | if (PyErr_Occurred()) SWIG_fail; | |
25466 | } | |
25467 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25468 | return resultobj; | |
25469 | fail: | |
25470 | return NULL; | |
d55e5bfc RD |
25471 | } |
25472 | ||
25473 | ||
1bd55598 RD |
25474 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25475 | PyObject *resultobj = 0; | |
25476 | wxPrintData *arg1 = 0 ; | |
25477 | wxPrintDialogData *result = 0 ; | |
25478 | void *argp1 = 0 ; | |
25479 | int res1 = 0 ; | |
25480 | ||
25481 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25483 | if (!SWIG_IsOK(res1)) { | |
25484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25485 | } | |
25486 | if (!argp1) { | |
25487 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25488 | } | |
25489 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25490 | { | |
25491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25492 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
25493 | wxPyEndAllowThreads(__tstate); | |
25494 | if (PyErr_Occurred()) SWIG_fail; | |
25495 | } | |
25496 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25497 | return resultobj; | |
25498 | fail: | |
25499 | return NULL; | |
d55e5bfc RD |
25500 | } |
25501 | ||
25502 | ||
1bd55598 RD |
25503 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25504 | PyObject *resultobj = 0; | |
25505 | wxPrintDialogData *arg1 = 0 ; | |
25506 | wxPrintDialogData *result = 0 ; | |
25507 | void *argp1 = 0 ; | |
25508 | int res1 = 0 ; | |
25509 | ||
25510 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
25512 | if (!SWIG_IsOK(res1)) { | |
25513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25514 | } | |
25515 | if (!argp1) { | |
25516 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25517 | } | |
25518 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25519 | { | |
25520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25521 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25526 | return resultobj; | |
25527 | fail: | |
25528 | return NULL; | |
d55e5bfc RD |
25529 | } |
25530 | ||
25531 | ||
1bd55598 RD |
25532 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
25533 | int argc; | |
25534 | PyObject *argv[2]; | |
25535 | ||
25536 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
25537 | --argc; | |
25538 | if (argc == 0) { | |
25539 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
25540 | } | |
25541 | if (argc == 1) { | |
25542 | int _v = 0; | |
d55e5bfc | 25543 | { |
1bd55598 RD |
25544 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
25545 | _v = SWIG_CheckState(res); | |
d55e5bfc | 25546 | } |
1bd55598 RD |
25547 | if (!_v) goto check_2; |
25548 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
25549 | } | |
25550 | check_2: | |
25551 | ||
25552 | if (argc == 1) { | |
25553 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
25554 | } | |
25555 | ||
25556 | fail: | |
25557 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
25558 | return NULL; | |
d55e5bfc RD |
25559 | } |
25560 | ||
25561 | ||
1bd55598 RD |
25562 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25563 | PyObject *resultobj = 0; | |
25564 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25565 | void *argp1 = 0 ; | |
25566 | int res1 = 0 ; | |
25567 | PyObject *swig_obj[1] ; | |
25568 | ||
25569 | if (!args) SWIG_fail; | |
25570 | swig_obj[0] = args; | |
25571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
25572 | if (!SWIG_IsOK(res1)) { | |
25573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25574 | } | |
25575 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25576 | { | |
25577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25578 | delete arg1; | |
d55e5bfc | 25579 | |
1bd55598 RD |
25580 | wxPyEndAllowThreads(__tstate); |
25581 | if (PyErr_Occurred()) SWIG_fail; | |
25582 | } | |
25583 | resultobj = SWIG_Py_Void(); | |
25584 | return resultobj; | |
25585 | fail: | |
25586 | return NULL; | |
d55e5bfc RD |
25587 | } |
25588 | ||
25589 | ||
1bd55598 RD |
25590 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25591 | PyObject *resultobj = 0; | |
25592 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25593 | int result; | |
25594 | void *argp1 = 0 ; | |
25595 | int res1 = 0 ; | |
25596 | PyObject *swig_obj[1] ; | |
25597 | ||
25598 | if (!args) SWIG_fail; | |
25599 | swig_obj[0] = args; | |
25600 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25601 | if (!SWIG_IsOK(res1)) { | |
25602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25603 | } | |
25604 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25605 | { | |
25606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25607 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25612 | return resultobj; | |
25613 | fail: | |
25614 | return NULL; | |
d55e5bfc RD |
25615 | } |
25616 | ||
25617 | ||
1bd55598 RD |
25618 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25619 | PyObject *resultobj = 0; | |
25620 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25621 | int result; | |
25622 | void *argp1 = 0 ; | |
25623 | int res1 = 0 ; | |
25624 | PyObject *swig_obj[1] ; | |
25625 | ||
25626 | if (!args) SWIG_fail; | |
25627 | swig_obj[0] = args; | |
25628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25629 | if (!SWIG_IsOK(res1)) { | |
25630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25631 | } | |
25632 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25633 | { | |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
25636 | wxPyEndAllowThreads(__tstate); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | } | |
25639 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25640 | return resultobj; | |
25641 | fail: | |
25642 | return NULL; | |
d55e5bfc RD |
25643 | } |
25644 | ||
25645 | ||
1bd55598 RD |
25646 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25647 | PyObject *resultobj = 0; | |
25648 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25649 | int result; | |
25650 | void *argp1 = 0 ; | |
25651 | int res1 = 0 ; | |
25652 | PyObject *swig_obj[1] ; | |
25653 | ||
25654 | if (!args) SWIG_fail; | |
25655 | swig_obj[0] = args; | |
25656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25657 | if (!SWIG_IsOK(res1)) { | |
25658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25659 | } | |
25660 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25661 | { | |
25662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25663 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
25664 | wxPyEndAllowThreads(__tstate); | |
25665 | if (PyErr_Occurred()) SWIG_fail; | |
25666 | } | |
25667 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25668 | return resultobj; | |
25669 | fail: | |
25670 | return NULL; | |
d55e5bfc RD |
25671 | } |
25672 | ||
25673 | ||
1bd55598 RD |
25674 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25675 | PyObject *resultobj = 0; | |
25676 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25677 | int result; | |
25678 | void *argp1 = 0 ; | |
25679 | int res1 = 0 ; | |
25680 | PyObject *swig_obj[1] ; | |
25681 | ||
25682 | if (!args) SWIG_fail; | |
25683 | swig_obj[0] = args; | |
25684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25685 | if (!SWIG_IsOK(res1)) { | |
25686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25687 | } | |
25688 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25689 | { | |
25690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25691 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
25692 | wxPyEndAllowThreads(__tstate); | |
25693 | if (PyErr_Occurred()) SWIG_fail; | |
25694 | } | |
25695 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25696 | return resultobj; | |
25697 | fail: | |
25698 | return NULL; | |
d55e5bfc RD |
25699 | } |
25700 | ||
25701 | ||
1bd55598 RD |
25702 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25703 | PyObject *resultobj = 0; | |
25704 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25705 | int result; | |
25706 | void *argp1 = 0 ; | |
25707 | int res1 = 0 ; | |
25708 | PyObject *swig_obj[1] ; | |
25709 | ||
25710 | if (!args) SWIG_fail; | |
25711 | swig_obj[0] = args; | |
25712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25713 | if (!SWIG_IsOK(res1)) { | |
25714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25715 | } | |
25716 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25717 | { | |
25718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25719 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
25720 | wxPyEndAllowThreads(__tstate); | |
25721 | if (PyErr_Occurred()) SWIG_fail; | |
25722 | } | |
25723 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25724 | return resultobj; | |
25725 | fail: | |
25726 | return NULL; | |
d55e5bfc RD |
25727 | } |
25728 | ||
25729 | ||
1bd55598 RD |
25730 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25731 | PyObject *resultobj = 0; | |
25732 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25733 | bool result; | |
25734 | void *argp1 = 0 ; | |
25735 | int res1 = 0 ; | |
25736 | PyObject *swig_obj[1] ; | |
25737 | ||
25738 | if (!args) SWIG_fail; | |
25739 | swig_obj[0] = args; | |
25740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25741 | if (!SWIG_IsOK(res1)) { | |
25742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25743 | } | |
25744 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25745 | { | |
25746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25747 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
25748 | wxPyEndAllowThreads(__tstate); | |
25749 | if (PyErr_Occurred()) SWIG_fail; | |
25750 | } | |
25751 | { | |
25752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25753 | } | |
25754 | return resultobj; | |
25755 | fail: | |
25756 | return NULL; | |
d55e5bfc RD |
25757 | } |
25758 | ||
25759 | ||
1bd55598 RD |
25760 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25761 | PyObject *resultobj = 0; | |
25762 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25763 | bool result; | |
25764 | void *argp1 = 0 ; | |
25765 | int res1 = 0 ; | |
25766 | PyObject *swig_obj[1] ; | |
25767 | ||
25768 | if (!args) SWIG_fail; | |
25769 | swig_obj[0] = args; | |
25770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25771 | if (!SWIG_IsOK(res1)) { | |
25772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25773 | } | |
25774 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25775 | { | |
25776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25777 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
25778 | wxPyEndAllowThreads(__tstate); | |
25779 | if (PyErr_Occurred()) SWIG_fail; | |
25780 | } | |
25781 | { | |
25782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25783 | } | |
25784 | return resultobj; | |
25785 | fail: | |
25786 | return NULL; | |
d55e5bfc RD |
25787 | } |
25788 | ||
25789 | ||
1bd55598 RD |
25790 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25791 | PyObject *resultobj = 0; | |
25792 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25793 | bool result; | |
25794 | void *argp1 = 0 ; | |
25795 | int res1 = 0 ; | |
25796 | PyObject *swig_obj[1] ; | |
25797 | ||
25798 | if (!args) SWIG_fail; | |
25799 | swig_obj[0] = args; | |
25800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25801 | if (!SWIG_IsOK(res1)) { | |
25802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25803 | } | |
25804 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25805 | { | |
25806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25807 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
25808 | wxPyEndAllowThreads(__tstate); | |
25809 | if (PyErr_Occurred()) SWIG_fail; | |
25810 | } | |
25811 | { | |
25812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25813 | } | |
25814 | return resultobj; | |
25815 | fail: | |
25816 | return NULL; | |
d55e5bfc RD |
25817 | } |
25818 | ||
25819 | ||
1bd55598 RD |
25820 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25821 | PyObject *resultobj = 0; | |
25822 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25823 | bool result; | |
25824 | void *argp1 = 0 ; | |
25825 | int res1 = 0 ; | |
25826 | PyObject *swig_obj[1] ; | |
25827 | ||
25828 | if (!args) SWIG_fail; | |
25829 | swig_obj[0] = args; | |
25830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25831 | if (!SWIG_IsOK(res1)) { | |
25832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25833 | } | |
25834 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25835 | { | |
25836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25837 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
25838 | wxPyEndAllowThreads(__tstate); | |
25839 | if (PyErr_Occurred()) SWIG_fail; | |
25840 | } | |
25841 | { | |
25842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25843 | } | |
25844 | return resultobj; | |
25845 | fail: | |
25846 | return NULL; | |
25847 | } | |
25848 | ||
25849 | ||
25850 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25851 | PyObject *resultobj = 0; | |
25852 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25853 | int arg2 ; | |
25854 | void *argp1 = 0 ; | |
25855 | int res1 = 0 ; | |
25856 | int val2 ; | |
25857 | int ecode2 = 0 ; | |
25858 | PyObject * obj0 = 0 ; | |
25859 | PyObject * obj1 = 0 ; | |
25860 | char * kwnames[] = { | |
25861 | (char *) "self",(char *) "v", NULL | |
25862 | }; | |
25863 | ||
25864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25866 | if (!SWIG_IsOK(res1)) { | |
25867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25868 | } | |
25869 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25870 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25871 | if (!SWIG_IsOK(ecode2)) { | |
25872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
25873 | } | |
25874 | arg2 = static_cast< int >(val2); | |
25875 | { | |
25876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25877 | (arg1)->SetFromPage(arg2); | |
25878 | wxPyEndAllowThreads(__tstate); | |
25879 | if (PyErr_Occurred()) SWIG_fail; | |
25880 | } | |
25881 | resultobj = SWIG_Py_Void(); | |
25882 | return resultobj; | |
25883 | fail: | |
25884 | return NULL; | |
25885 | } | |
25886 | ||
25887 | ||
25888 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25889 | PyObject *resultobj = 0; | |
25890 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25891 | int arg2 ; | |
25892 | void *argp1 = 0 ; | |
25893 | int res1 = 0 ; | |
25894 | int val2 ; | |
25895 | int ecode2 = 0 ; | |
25896 | PyObject * obj0 = 0 ; | |
25897 | PyObject * obj1 = 0 ; | |
25898 | char * kwnames[] = { | |
25899 | (char *) "self",(char *) "v", NULL | |
25900 | }; | |
25901 | ||
25902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25904 | if (!SWIG_IsOK(res1)) { | |
25905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25906 | } | |
25907 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25908 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25909 | if (!SWIG_IsOK(ecode2)) { | |
25910 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
25911 | } | |
25912 | arg2 = static_cast< int >(val2); | |
25913 | { | |
25914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25915 | (arg1)->SetToPage(arg2); | |
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
25919 | resultobj = SWIG_Py_Void(); | |
25920 | return resultobj; | |
25921 | fail: | |
25922 | return NULL; | |
25923 | } | |
25924 | ||
25925 | ||
25926 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25927 | PyObject *resultobj = 0; | |
25928 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25929 | int arg2 ; | |
25930 | void *argp1 = 0 ; | |
25931 | int res1 = 0 ; | |
25932 | int val2 ; | |
25933 | int ecode2 = 0 ; | |
25934 | PyObject * obj0 = 0 ; | |
25935 | PyObject * obj1 = 0 ; | |
25936 | char * kwnames[] = { | |
25937 | (char *) "self",(char *) "v", NULL | |
25938 | }; | |
25939 | ||
25940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25942 | if (!SWIG_IsOK(res1)) { | |
25943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25944 | } | |
25945 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25946 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25947 | if (!SWIG_IsOK(ecode2)) { | |
25948 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
25949 | } | |
25950 | arg2 = static_cast< int >(val2); | |
25951 | { | |
25952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25953 | (arg1)->SetMinPage(arg2); | |
25954 | wxPyEndAllowThreads(__tstate); | |
25955 | if (PyErr_Occurred()) SWIG_fail; | |
25956 | } | |
25957 | resultobj = SWIG_Py_Void(); | |
25958 | return resultobj; | |
25959 | fail: | |
25960 | return NULL; | |
25961 | } | |
25962 | ||
25963 | ||
25964 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25965 | PyObject *resultobj = 0; | |
25966 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25967 | int arg2 ; | |
25968 | void *argp1 = 0 ; | |
25969 | int res1 = 0 ; | |
25970 | int val2 ; | |
25971 | int ecode2 = 0 ; | |
25972 | PyObject * obj0 = 0 ; | |
25973 | PyObject * obj1 = 0 ; | |
25974 | char * kwnames[] = { | |
25975 | (char *) "self",(char *) "v", NULL | |
25976 | }; | |
25977 | ||
25978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
25979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25980 | if (!SWIG_IsOK(res1)) { | |
25981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25982 | } | |
25983 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25984 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25985 | if (!SWIG_IsOK(ecode2)) { | |
25986 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
25987 | } | |
25988 | arg2 = static_cast< int >(val2); | |
25989 | { | |
25990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25991 | (arg1)->SetMaxPage(arg2); | |
25992 | wxPyEndAllowThreads(__tstate); | |
25993 | if (PyErr_Occurred()) SWIG_fail; | |
25994 | } | |
25995 | resultobj = SWIG_Py_Void(); | |
25996 | return resultobj; | |
25997 | fail: | |
25998 | return NULL; | |
25999 | } | |
26000 | ||
26001 | ||
26002 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26003 | PyObject *resultobj = 0; | |
26004 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26005 | int arg2 ; | |
26006 | void *argp1 = 0 ; | |
26007 | int res1 = 0 ; | |
26008 | int val2 ; | |
26009 | int ecode2 = 0 ; | |
26010 | PyObject * obj0 = 0 ; | |
26011 | PyObject * obj1 = 0 ; | |
26012 | char * kwnames[] = { | |
26013 | (char *) "self",(char *) "v", NULL | |
26014 | }; | |
26015 | ||
26016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26018 | if (!SWIG_IsOK(res1)) { | |
26019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26020 | } | |
26021 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26022 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26023 | if (!SWIG_IsOK(ecode2)) { | |
26024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26025 | } | |
26026 | arg2 = static_cast< int >(val2); | |
26027 | { | |
26028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26029 | (arg1)->SetNoCopies(arg2); | |
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | resultobj = SWIG_Py_Void(); | |
26034 | return resultobj; | |
26035 | fail: | |
26036 | return NULL; | |
26037 | } | |
26038 | ||
26039 | ||
26040 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26041 | PyObject *resultobj = 0; | |
26042 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26043 | bool arg2 ; | |
26044 | void *argp1 = 0 ; | |
26045 | int res1 = 0 ; | |
26046 | bool val2 ; | |
26047 | int ecode2 = 0 ; | |
26048 | PyObject * obj0 = 0 ; | |
26049 | PyObject * obj1 = 0 ; | |
26050 | char * kwnames[] = { | |
26051 | (char *) "self",(char *) "flag", NULL | |
26052 | }; | |
26053 | ||
26054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26056 | if (!SWIG_IsOK(res1)) { | |
26057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26058 | } | |
26059 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26060 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26061 | if (!SWIG_IsOK(ecode2)) { | |
26062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26063 | } | |
26064 | arg2 = static_cast< bool >(val2); | |
26065 | { | |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | (arg1)->SetAllPages(arg2); | |
26068 | wxPyEndAllowThreads(__tstate); | |
26069 | if (PyErr_Occurred()) SWIG_fail; | |
26070 | } | |
26071 | resultobj = SWIG_Py_Void(); | |
26072 | return resultobj; | |
26073 | fail: | |
26074 | return NULL; | |
26075 | } | |
26076 | ||
26077 | ||
26078 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26079 | PyObject *resultobj = 0; | |
26080 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26081 | bool arg2 ; | |
26082 | void *argp1 = 0 ; | |
26083 | int res1 = 0 ; | |
26084 | bool val2 ; | |
26085 | int ecode2 = 0 ; | |
26086 | PyObject * obj0 = 0 ; | |
26087 | PyObject * obj1 = 0 ; | |
26088 | char * kwnames[] = { | |
26089 | (char *) "self",(char *) "flag", NULL | |
26090 | }; | |
26091 | ||
26092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26094 | if (!SWIG_IsOK(res1)) { | |
26095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26096 | } | |
26097 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26098 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26099 | if (!SWIG_IsOK(ecode2)) { | |
26100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26101 | } | |
26102 | arg2 = static_cast< bool >(val2); | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | (arg1)->SetSelection(arg2); | |
26106 | wxPyEndAllowThreads(__tstate); | |
26107 | if (PyErr_Occurred()) SWIG_fail; | |
26108 | } | |
26109 | resultobj = SWIG_Py_Void(); | |
26110 | return resultobj; | |
26111 | fail: | |
26112 | return NULL; | |
26113 | } | |
26114 | ||
26115 | ||
26116 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26117 | PyObject *resultobj = 0; | |
26118 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26119 | bool arg2 ; | |
26120 | void *argp1 = 0 ; | |
26121 | int res1 = 0 ; | |
26122 | bool val2 ; | |
26123 | int ecode2 = 0 ; | |
26124 | PyObject * obj0 = 0 ; | |
26125 | PyObject * obj1 = 0 ; | |
26126 | char * kwnames[] = { | |
26127 | (char *) "self",(char *) "flag", NULL | |
26128 | }; | |
26129 | ||
26130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26132 | if (!SWIG_IsOK(res1)) { | |
26133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26134 | } | |
26135 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26136 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26137 | if (!SWIG_IsOK(ecode2)) { | |
26138 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26139 | } | |
26140 | arg2 = static_cast< bool >(val2); | |
26141 | { | |
26142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26143 | (arg1)->SetCollate(arg2); | |
26144 | wxPyEndAllowThreads(__tstate); | |
26145 | if (PyErr_Occurred()) SWIG_fail; | |
26146 | } | |
26147 | resultobj = SWIG_Py_Void(); | |
26148 | return resultobj; | |
26149 | fail: | |
26150 | return NULL; | |
26151 | } | |
26152 | ||
26153 | ||
26154 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26155 | PyObject *resultobj = 0; | |
26156 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26157 | bool arg2 ; | |
26158 | void *argp1 = 0 ; | |
26159 | int res1 = 0 ; | |
26160 | bool val2 ; | |
26161 | int ecode2 = 0 ; | |
26162 | PyObject * obj0 = 0 ; | |
26163 | PyObject * obj1 = 0 ; | |
26164 | char * kwnames[] = { | |
26165 | (char *) "self",(char *) "flag", NULL | |
26166 | }; | |
26167 | ||
26168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26170 | if (!SWIG_IsOK(res1)) { | |
26171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26172 | } | |
26173 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26174 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26175 | if (!SWIG_IsOK(ecode2)) { | |
26176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26177 | } | |
26178 | arg2 = static_cast< bool >(val2); | |
26179 | { | |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | (arg1)->SetPrintToFile(arg2); | |
26182 | wxPyEndAllowThreads(__tstate); | |
26183 | if (PyErr_Occurred()) SWIG_fail; | |
26184 | } | |
26185 | resultobj = SWIG_Py_Void(); | |
26186 | return resultobj; | |
26187 | fail: | |
26188 | return NULL; | |
26189 | } | |
26190 | ||
26191 | ||
26192 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26193 | PyObject *resultobj = 0; | |
26194 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26195 | bool arg2 ; | |
26196 | void *argp1 = 0 ; | |
26197 | int res1 = 0 ; | |
26198 | bool val2 ; | |
26199 | int ecode2 = 0 ; | |
26200 | PyObject * obj0 = 0 ; | |
26201 | PyObject * obj1 = 0 ; | |
26202 | char * kwnames[] = { | |
26203 | (char *) "self",(char *) "flag", NULL | |
26204 | }; | |
26205 | ||
26206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26208 | if (!SWIG_IsOK(res1)) { | |
26209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26210 | } | |
26211 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26212 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26213 | if (!SWIG_IsOK(ecode2)) { | |
26214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26215 | } | |
26216 | arg2 = static_cast< bool >(val2); | |
26217 | { | |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | (arg1)->EnablePrintToFile(arg2); | |
26220 | wxPyEndAllowThreads(__tstate); | |
26221 | if (PyErr_Occurred()) SWIG_fail; | |
26222 | } | |
26223 | resultobj = SWIG_Py_Void(); | |
26224 | return resultobj; | |
26225 | fail: | |
26226 | return NULL; | |
26227 | } | |
26228 | ||
26229 | ||
26230 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26231 | PyObject *resultobj = 0; | |
26232 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26233 | bool arg2 ; | |
26234 | void *argp1 = 0 ; | |
26235 | int res1 = 0 ; | |
26236 | bool val2 ; | |
26237 | int ecode2 = 0 ; | |
26238 | PyObject * obj0 = 0 ; | |
26239 | PyObject * obj1 = 0 ; | |
26240 | char * kwnames[] = { | |
26241 | (char *) "self",(char *) "flag", NULL | |
26242 | }; | |
26243 | ||
26244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26246 | if (!SWIG_IsOK(res1)) { | |
26247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26248 | } | |
26249 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26250 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26251 | if (!SWIG_IsOK(ecode2)) { | |
26252 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26253 | } | |
26254 | arg2 = static_cast< bool >(val2); | |
26255 | { | |
26256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26257 | (arg1)->EnableSelection(arg2); | |
26258 | wxPyEndAllowThreads(__tstate); | |
26259 | if (PyErr_Occurred()) SWIG_fail; | |
26260 | } | |
26261 | resultobj = SWIG_Py_Void(); | |
26262 | return resultobj; | |
26263 | fail: | |
26264 | return NULL; | |
26265 | } | |
26266 | ||
26267 | ||
26268 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26269 | PyObject *resultobj = 0; | |
26270 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26271 | bool arg2 ; | |
26272 | void *argp1 = 0 ; | |
26273 | int res1 = 0 ; | |
26274 | bool val2 ; | |
26275 | int ecode2 = 0 ; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | PyObject * obj1 = 0 ; | |
26278 | char * kwnames[] = { | |
26279 | (char *) "self",(char *) "flag", NULL | |
26280 | }; | |
26281 | ||
26282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26283 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26284 | if (!SWIG_IsOK(res1)) { | |
26285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26286 | } | |
26287 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26288 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26289 | if (!SWIG_IsOK(ecode2)) { | |
26290 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26291 | } | |
26292 | arg2 = static_cast< bool >(val2); | |
26293 | { | |
26294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26295 | (arg1)->EnablePageNumbers(arg2); | |
26296 | wxPyEndAllowThreads(__tstate); | |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
26299 | resultobj = SWIG_Py_Void(); | |
26300 | return resultobj; | |
26301 | fail: | |
26302 | return NULL; | |
26303 | } | |
26304 | ||
26305 | ||
26306 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26307 | PyObject *resultobj = 0; | |
26308 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26309 | bool arg2 ; | |
26310 | void *argp1 = 0 ; | |
26311 | int res1 = 0 ; | |
26312 | bool val2 ; | |
26313 | int ecode2 = 0 ; | |
26314 | PyObject * obj0 = 0 ; | |
26315 | PyObject * obj1 = 0 ; | |
26316 | char * kwnames[] = { | |
26317 | (char *) "self",(char *) "flag", NULL | |
26318 | }; | |
26319 | ||
26320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26322 | if (!SWIG_IsOK(res1)) { | |
26323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26324 | } | |
26325 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26326 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26327 | if (!SWIG_IsOK(ecode2)) { | |
26328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26329 | } | |
26330 | arg2 = static_cast< bool >(val2); | |
26331 | { | |
26332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26333 | (arg1)->EnableHelp(arg2); | |
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
26337 | resultobj = SWIG_Py_Void(); | |
26338 | return resultobj; | |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
d55e5bfc | 26342 | |
1bd55598 RD |
26343 | |
26344 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26345 | PyObject *resultobj = 0; | |
26346 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26347 | bool result; | |
26348 | void *argp1 = 0 ; | |
26349 | int res1 = 0 ; | |
26350 | PyObject *swig_obj[1] ; | |
26351 | ||
26352 | if (!args) SWIG_fail; | |
26353 | swig_obj[0] = args; | |
26354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26355 | if (!SWIG_IsOK(res1)) { | |
26356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26357 | } | |
26358 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26359 | { | |
26360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26361 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
26365 | { | |
26366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26367 | } | |
26368 | return resultobj; | |
26369 | fail: | |
26370 | return NULL; | |
d55e5bfc RD |
26371 | } |
26372 | ||
26373 | ||
1bd55598 RD |
26374 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26375 | PyObject *resultobj = 0; | |
26376 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26377 | bool result; | |
26378 | void *argp1 = 0 ; | |
26379 | int res1 = 0 ; | |
26380 | PyObject *swig_obj[1] ; | |
26381 | ||
26382 | if (!args) SWIG_fail; | |
26383 | swig_obj[0] = args; | |
26384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26385 | if (!SWIG_IsOK(res1)) { | |
26386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26387 | } | |
26388 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26389 | { | |
26390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26391 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
26392 | wxPyEndAllowThreads(__tstate); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | } | |
26395 | { | |
26396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26397 | } | |
26398 | return resultobj; | |
26399 | fail: | |
26400 | return NULL; | |
d55e5bfc RD |
26401 | } |
26402 | ||
26403 | ||
1bd55598 RD |
26404 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26405 | PyObject *resultobj = 0; | |
26406 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26407 | bool result; | |
26408 | void *argp1 = 0 ; | |
26409 | int res1 = 0 ; | |
26410 | PyObject *swig_obj[1] ; | |
26411 | ||
26412 | if (!args) SWIG_fail; | |
26413 | swig_obj[0] = args; | |
26414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26415 | if (!SWIG_IsOK(res1)) { | |
26416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26417 | } | |
26418 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26419 | { | |
26420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26421 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
26422 | wxPyEndAllowThreads(__tstate); | |
26423 | if (PyErr_Occurred()) SWIG_fail; | |
26424 | } | |
26425 | { | |
26426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26427 | } | |
26428 | return resultobj; | |
26429 | fail: | |
26430 | return NULL; | |
d55e5bfc RD |
26431 | } |
26432 | ||
26433 | ||
1bd55598 RD |
26434 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26435 | PyObject *resultobj = 0; | |
26436 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26437 | bool result; | |
26438 | void *argp1 = 0 ; | |
26439 | int res1 = 0 ; | |
26440 | PyObject *swig_obj[1] ; | |
26441 | ||
26442 | if (!args) SWIG_fail; | |
26443 | swig_obj[0] = args; | |
26444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26445 | if (!SWIG_IsOK(res1)) { | |
26446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26447 | } | |
26448 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26449 | { | |
26450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26451 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
26452 | wxPyEndAllowThreads(__tstate); | |
26453 | if (PyErr_Occurred()) SWIG_fail; | |
26454 | } | |
26455 | { | |
26456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26457 | } | |
26458 | return resultobj; | |
26459 | fail: | |
26460 | return NULL; | |
d55e5bfc RD |
26461 | } |
26462 | ||
26463 | ||
1bd55598 RD |
26464 | SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26465 | PyObject *resultobj = 0; | |
26466 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26467 | bool result; | |
26468 | void *argp1 = 0 ; | |
26469 | int res1 = 0 ; | |
26470 | PyObject *swig_obj[1] ; | |
26471 | ||
26472 | if (!args) SWIG_fail; | |
26473 | swig_obj[0] = args; | |
26474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26475 | if (!SWIG_IsOK(res1)) { | |
26476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_Ok" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26477 | } | |
26478 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26479 | { | |
26480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26481 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
26482 | wxPyEndAllowThreads(__tstate); | |
26483 | if (PyErr_Occurred()) SWIG_fail; | |
26484 | } | |
26485 | { | |
26486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26487 | } | |
26488 | return resultobj; | |
26489 | fail: | |
26490 | return NULL; | |
d55e5bfc RD |
26491 | } |
26492 | ||
26493 | ||
1bd55598 RD |
26494 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26495 | PyObject *resultobj = 0; | |
26496 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26497 | wxPrintData *result = 0 ; | |
26498 | void *argp1 = 0 ; | |
26499 | int res1 = 0 ; | |
26500 | PyObject *swig_obj[1] ; | |
26501 | ||
26502 | if (!args) SWIG_fail; | |
26503 | swig_obj[0] = args; | |
26504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26505 | if (!SWIG_IsOK(res1)) { | |
26506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26507 | } | |
26508 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26509 | { | |
26510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26511 | { |
1bd55598 RD |
26512 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26513 | result = (wxPrintData *) &_result_ref; | |
26514 | } | |
26515 | wxPyEndAllowThreads(__tstate); | |
26516 | if (PyErr_Occurred()) SWIG_fail; | |
26517 | } | |
26518 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26519 | return resultobj; | |
26520 | fail: | |
26521 | return NULL; | |
26522 | } | |
26523 | ||
26524 | ||
26525 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26526 | PyObject *resultobj = 0; | |
26527 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26528 | wxPrintData *arg2 = 0 ; | |
26529 | void *argp1 = 0 ; | |
26530 | int res1 = 0 ; | |
26531 | void *argp2 = 0 ; | |
26532 | int res2 = 0 ; | |
26533 | PyObject * obj0 = 0 ; | |
26534 | PyObject * obj1 = 0 ; | |
26535 | char * kwnames[] = { | |
26536 | (char *) "self",(char *) "printData", NULL | |
26537 | }; | |
26538 | ||
26539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26541 | if (!SWIG_IsOK(res1)) { | |
26542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26543 | } | |
26544 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26545 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26546 | if (!SWIG_IsOK(res2)) { | |
26547 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26548 | } | |
26549 | if (!argp2) { | |
26550 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26551 | } | |
26552 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
26553 | { | |
26554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26555 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | resultobj = SWIG_Py_Void(); | |
26560 | return resultobj; | |
26561 | fail: | |
26562 | return NULL; | |
d55e5bfc RD |
26563 | } |
26564 | ||
26565 | ||
1bd55598 RD |
26566 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26567 | PyObject *obj; | |
26568 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26569 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
26570 | return SWIG_Py_Void(); | |
26571 | } | |
26572 | ||
26573 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26574 | return SWIG_Python_InitShadowInstance(args); | |
26575 | } | |
26576 | ||
26577 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26578 | PyObject *resultobj = 0; | |
26579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26580 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
26581 | wxPrintDialog *result = 0 ; | |
26582 | void *argp1 = 0 ; | |
26583 | int res1 = 0 ; | |
26584 | void *argp2 = 0 ; | |
26585 | int res2 = 0 ; | |
26586 | PyObject * obj0 = 0 ; | |
26587 | PyObject * obj1 = 0 ; | |
26588 | char * kwnames[] = { | |
26589 | (char *) "parent",(char *) "data", NULL | |
26590 | }; | |
26591 | ||
26592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26594 | if (!SWIG_IsOK(res1)) { | |
26595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
26596 | } | |
26597 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
26598 | if (obj1) { | |
26599 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26600 | if (!SWIG_IsOK(res2)) { | |
26601 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 26602 | } |
1bd55598 RD |
26603 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
26604 | } | |
26605 | { | |
26606 | if (!wxPyCheckForApp()) SWIG_fail; | |
26607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26608 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
26609 | wxPyEndAllowThreads(__tstate); | |
26610 | if (PyErr_Occurred()) SWIG_fail; | |
26611 | } | |
26612 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
26613 | return resultobj; | |
26614 | fail: | |
26615 | return NULL; | |
d55e5bfc RD |
26616 | } |
26617 | ||
26618 | ||
06810ecf RD |
26619 | SWIGINTERN PyObject *_wrap_delete_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26620 | PyObject *resultobj = 0; | |
26621 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26622 | void *argp1 = 0 ; | |
26623 | int res1 = 0 ; | |
26624 | PyObject *swig_obj[1] ; | |
26625 | ||
26626 | if (!args) SWIG_fail; | |
26627 | swig_obj[0] = args; | |
26628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_DISOWN | 0 ); | |
26629 | if (!SWIG_IsOK(res1)) { | |
26630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialog" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26631 | } | |
26632 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26633 | { | |
26634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26635 | delete arg1; | |
26636 | ||
26637 | wxPyEndAllowThreads(__tstate); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | } | |
26640 | resultobj = SWIG_Py_Void(); | |
26641 | return resultobj; | |
26642 | fail: | |
26643 | return NULL; | |
26644 | } | |
26645 | ||
26646 | ||
1bd55598 RD |
26647 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26648 | PyObject *resultobj = 0; | |
26649 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26650 | int result; | |
26651 | void *argp1 = 0 ; | |
26652 | int res1 = 0 ; | |
26653 | PyObject *swig_obj[1] ; | |
26654 | ||
26655 | if (!args) SWIG_fail; | |
26656 | swig_obj[0] = args; | |
26657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26658 | if (!SWIG_IsOK(res1)) { | |
26659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26660 | } | |
26661 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26662 | { | |
26663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26664 | result = (int)(arg1)->ShowModal(); | |
26665 | wxPyEndAllowThreads(__tstate); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | } | |
26668 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26669 | return resultobj; | |
26670 | fail: | |
26671 | return NULL; | |
d55e5bfc RD |
26672 | } |
26673 | ||
26674 | ||
1bd55598 RD |
26675 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26676 | PyObject *resultobj = 0; | |
26677 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26678 | wxPrintDialogData *result = 0 ; | |
26679 | void *argp1 = 0 ; | |
26680 | int res1 = 0 ; | |
26681 | PyObject *swig_obj[1] ; | |
26682 | ||
26683 | if (!args) SWIG_fail; | |
26684 | swig_obj[0] = args; | |
26685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26686 | if (!SWIG_IsOK(res1)) { | |
26687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26688 | } | |
26689 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26690 | { | |
26691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26692 | { |
1bd55598 RD |
26693 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
26694 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 26695 | } |
1bd55598 RD |
26696 | wxPyEndAllowThreads(__tstate); |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
26698 | } | |
26699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26700 | return resultobj; | |
26701 | fail: | |
26702 | return NULL; | |
d55e5bfc RD |
26703 | } |
26704 | ||
26705 | ||
1bd55598 RD |
26706 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26707 | PyObject *resultobj = 0; | |
26708 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26709 | wxPrintData *result = 0 ; | |
26710 | void *argp1 = 0 ; | |
26711 | int res1 = 0 ; | |
26712 | PyObject *swig_obj[1] ; | |
26713 | ||
26714 | if (!args) SWIG_fail; | |
26715 | swig_obj[0] = args; | |
26716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26717 | if (!SWIG_IsOK(res1)) { | |
26718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26719 | } | |
26720 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26721 | { | |
26722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26723 | { |
1bd55598 RD |
26724 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26725 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 26726 | } |
1bd55598 RD |
26727 | wxPyEndAllowThreads(__tstate); |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | } | |
26730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | return NULL; | |
d55e5bfc RD |
26734 | } |
26735 | ||
26736 | ||
1bd55598 RD |
26737 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26738 | PyObject *resultobj = 0; | |
26739 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26740 | wxDC *result = 0 ; | |
26741 | void *argp1 = 0 ; | |
26742 | int res1 = 0 ; | |
26743 | PyObject *swig_obj[1] ; | |
26744 | ||
26745 | if (!args) SWIG_fail; | |
26746 | swig_obj[0] = args; | |
26747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26748 | if (!SWIG_IsOK(res1)) { | |
26749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26750 | } | |
26751 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26752 | { | |
26753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26754 | result = (wxDC *)(arg1)->GetPrintDC(); | |
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | { | |
26759 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
26760 | } | |
26761 | return resultobj; | |
26762 | fail: | |
26763 | return NULL; | |
d55e5bfc RD |
26764 | } |
26765 | ||
26766 | ||
1bd55598 RD |
26767 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26768 | PyObject *obj; | |
26769 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26770 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
26771 | return SWIG_Py_Void(); | |
d55e5bfc RD |
26772 | } |
26773 | ||
1bd55598 RD |
26774 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26775 | return SWIG_Python_InitShadowInstance(args); | |
26776 | } | |
d55e5bfc | 26777 | |
1bd55598 RD |
26778 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26779 | PyObject *resultobj = 0; | |
26780 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
26781 | wxPrinter *result = 0 ; | |
26782 | void *argp1 = 0 ; | |
26783 | int res1 = 0 ; | |
26784 | PyObject * obj0 = 0 ; | |
26785 | char * kwnames[] = { | |
26786 | (char *) "data", NULL | |
26787 | }; | |
26788 | ||
26789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
26790 | if (obj0) { | |
26791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26792 | if (!SWIG_IsOK(res1)) { | |
26793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 26794 | } |
1bd55598 RD |
26795 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
26796 | } | |
26797 | { | |
26798 | if (!wxPyCheckForApp()) SWIG_fail; | |
26799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26800 | result = (wxPrinter *)new wxPrinter(arg1); | |
26801 | wxPyEndAllowThreads(__tstate); | |
26802 | if (PyErr_Occurred()) SWIG_fail; | |
26803 | } | |
26804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
26805 | return resultobj; | |
26806 | fail: | |
26807 | return NULL; | |
d55e5bfc RD |
26808 | } |
26809 | ||
26810 | ||
1bd55598 RD |
26811 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26812 | PyObject *resultobj = 0; | |
26813 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26814 | void *argp1 = 0 ; | |
26815 | int res1 = 0 ; | |
26816 | PyObject *swig_obj[1] ; | |
26817 | ||
26818 | if (!args) SWIG_fail; | |
26819 | swig_obj[0] = args; | |
26820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
26821 | if (!SWIG_IsOK(res1)) { | |
26822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26823 | } | |
26824 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26825 | { | |
26826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26827 | delete arg1; | |
d55e5bfc | 26828 | |
1bd55598 RD |
26829 | wxPyEndAllowThreads(__tstate); |
26830 | if (PyErr_Occurred()) SWIG_fail; | |
26831 | } | |
26832 | resultobj = SWIG_Py_Void(); | |
26833 | return resultobj; | |
26834 | fail: | |
26835 | return NULL; | |
26836 | } | |
26837 | ||
26838 | ||
26839 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26840 | PyObject *resultobj = 0; | |
26841 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26842 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26843 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26844 | wxWindow *result = 0 ; | |
26845 | void *argp1 = 0 ; | |
26846 | int res1 = 0 ; | |
26847 | void *argp2 = 0 ; | |
26848 | int res2 = 0 ; | |
26849 | void *argp3 = 0 ; | |
26850 | int res3 = 0 ; | |
26851 | PyObject * obj0 = 0 ; | |
26852 | PyObject * obj1 = 0 ; | |
26853 | PyObject * obj2 = 0 ; | |
26854 | char * kwnames[] = { | |
26855 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
26856 | }; | |
26857 | ||
26858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26860 | if (!SWIG_IsOK(res1)) { | |
26861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26862 | } | |
26863 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26864 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26865 | if (!SWIG_IsOK(res2)) { | |
26866 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26867 | } | |
26868 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26869 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
26870 | if (!SWIG_IsOK(res3)) { | |
26871 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
26872 | } | |
26873 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
26874 | { | |
26875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26876 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
26877 | wxPyEndAllowThreads(__tstate); | |
26878 | if (PyErr_Occurred()) SWIG_fail; | |
26879 | } | |
26880 | { | |
26881 | resultobj = wxPyMake_wxObject(result, 0); | |
26882 | } | |
26883 | return resultobj; | |
26884 | fail: | |
26885 | return NULL; | |
26886 | } | |
26887 | ||
26888 | ||
26889 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26890 | PyObject *resultobj = 0; | |
26891 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26892 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26893 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26894 | wxString *arg4 = 0 ; | |
26895 | void *argp1 = 0 ; | |
26896 | int res1 = 0 ; | |
26897 | void *argp2 = 0 ; | |
26898 | int res2 = 0 ; | |
26899 | void *argp3 = 0 ; | |
26900 | int res3 = 0 ; | |
26901 | bool temp4 = false ; | |
26902 | PyObject * obj0 = 0 ; | |
26903 | PyObject * obj1 = 0 ; | |
26904 | PyObject * obj2 = 0 ; | |
26905 | PyObject * obj3 = 0 ; | |
26906 | char * kwnames[] = { | |
26907 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
26908 | }; | |
26909 | ||
26910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26912 | if (!SWIG_IsOK(res1)) { | |
26913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26914 | } | |
26915 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26916 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26917 | if (!SWIG_IsOK(res2)) { | |
26918 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26919 | } | |
26920 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26921 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
26922 | if (!SWIG_IsOK(res3)) { | |
26923 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
26924 | } | |
26925 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
26926 | { | |
26927 | arg4 = wxString_in_helper(obj3); | |
26928 | if (arg4 == NULL) SWIG_fail; | |
26929 | temp4 = true; | |
26930 | } | |
26931 | { | |
26932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26933 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
26934 | wxPyEndAllowThreads(__tstate); | |
26935 | if (PyErr_Occurred()) SWIG_fail; | |
26936 | } | |
26937 | resultobj = SWIG_Py_Void(); | |
26938 | { | |
26939 | if (temp4) | |
26940 | delete arg4; | |
26941 | } | |
26942 | return resultobj; | |
26943 | fail: | |
26944 | { | |
26945 | if (temp4) | |
26946 | delete arg4; | |
26947 | } | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
26952 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26953 | PyObject *resultobj = 0; | |
26954 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26955 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26956 | bool result; | |
26957 | void *argp1 = 0 ; | |
26958 | int res1 = 0 ; | |
26959 | void *argp2 = 0 ; | |
26960 | int res2 = 0 ; | |
26961 | PyObject * obj0 = 0 ; | |
26962 | PyObject * obj1 = 0 ; | |
26963 | char * kwnames[] = { | |
26964 | (char *) "self",(char *) "parent", NULL | |
26965 | }; | |
26966 | ||
26967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
26968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
26969 | if (!SWIG_IsOK(res1)) { | |
26970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
26971 | } | |
26972 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
26973 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26974 | if (!SWIG_IsOK(res2)) { | |
26975 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
26976 | } | |
26977 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
26978 | { | |
26979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26980 | result = (bool)(arg1)->Setup(arg2); | |
26981 | wxPyEndAllowThreads(__tstate); | |
26982 | if (PyErr_Occurred()) SWIG_fail; | |
26983 | } | |
26984 | { | |
26985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26986 | } | |
26987 | return resultobj; | |
26988 | fail: | |
26989 | return NULL; | |
26990 | } | |
26991 | ||
26992 | ||
26993 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26994 | PyObject *resultobj = 0; | |
26995 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
26996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26997 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
26998 | bool arg4 = (bool) true ; | |
26999 | bool result; | |
27000 | void *argp1 = 0 ; | |
27001 | int res1 = 0 ; | |
27002 | void *argp2 = 0 ; | |
27003 | int res2 = 0 ; | |
27004 | void *argp3 = 0 ; | |
27005 | int res3 = 0 ; | |
27006 | bool val4 ; | |
27007 | int ecode4 = 0 ; | |
27008 | PyObject * obj0 = 0 ; | |
27009 | PyObject * obj1 = 0 ; | |
27010 | PyObject * obj2 = 0 ; | |
27011 | PyObject * obj3 = 0 ; | |
27012 | char * kwnames[] = { | |
27013 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27014 | }; | |
27015 | ||
27016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27018 | if (!SWIG_IsOK(res1)) { | |
27019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27020 | } | |
27021 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27022 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27023 | if (!SWIG_IsOK(res2)) { | |
27024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27025 | } | |
27026 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27027 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27028 | if (!SWIG_IsOK(res3)) { | |
27029 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27030 | } | |
27031 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27032 | if (obj3) { | |
27033 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27034 | if (!SWIG_IsOK(ecode4)) { | |
27035 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27036 | } | |
27037 | arg4 = static_cast< bool >(val4); | |
27038 | } | |
27039 | { | |
27040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27041 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27042 | wxPyEndAllowThreads(__tstate); | |
27043 | if (PyErr_Occurred()) SWIG_fail; | |
27044 | } | |
27045 | { | |
27046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27047 | } | |
27048 | return resultobj; | |
27049 | fail: | |
27050 | return NULL; | |
27051 | } | |
27052 | ||
27053 | ||
27054 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27055 | PyObject *resultobj = 0; | |
27056 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27057 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27058 | wxDC *result = 0 ; | |
27059 | void *argp1 = 0 ; | |
27060 | int res1 = 0 ; | |
27061 | void *argp2 = 0 ; | |
27062 | int res2 = 0 ; | |
27063 | PyObject * obj0 = 0 ; | |
27064 | PyObject * obj1 = 0 ; | |
27065 | char * kwnames[] = { | |
27066 | (char *) "self",(char *) "parent", NULL | |
27067 | }; | |
27068 | ||
27069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27071 | if (!SWIG_IsOK(res1)) { | |
27072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27073 | } | |
27074 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27075 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27076 | if (!SWIG_IsOK(res2)) { | |
27077 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27078 | } | |
27079 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27080 | { | |
27081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27082 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27083 | wxPyEndAllowThreads(__tstate); | |
27084 | if (PyErr_Occurred()) SWIG_fail; | |
27085 | } | |
27086 | { | |
27087 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27088 | } | |
27089 | return resultobj; | |
27090 | fail: | |
27091 | return NULL; | |
d55e5bfc RD |
27092 | } |
27093 | ||
27094 | ||
1bd55598 RD |
27095 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27096 | PyObject *resultobj = 0; | |
27097 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27098 | wxPrintDialogData *result = 0 ; | |
27099 | void *argp1 = 0 ; | |
27100 | int res1 = 0 ; | |
27101 | PyObject *swig_obj[1] ; | |
27102 | ||
27103 | if (!args) SWIG_fail; | |
27104 | swig_obj[0] = args; | |
27105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27106 | if (!SWIG_IsOK(res1)) { | |
27107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27108 | } | |
27109 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27110 | { | |
27111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 27112 | { |
1bd55598 RD |
27113 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27114 | result = (wxPrintDialogData *) &_result_ref; | |
36ed4f51 | 27115 | } |
1bd55598 RD |
27116 | wxPyEndAllowThreads(__tstate); |
27117 | if (PyErr_Occurred()) SWIG_fail; | |
27118 | } | |
27119 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27120 | return resultobj; | |
27121 | fail: | |
27122 | return NULL; | |
d55e5bfc RD |
27123 | } |
27124 | ||
27125 | ||
1bd55598 RD |
27126 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27127 | PyObject *resultobj = 0; | |
27128 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27129 | bool result; | |
27130 | void *argp1 = 0 ; | |
27131 | int res1 = 0 ; | |
27132 | PyObject *swig_obj[1] ; | |
27133 | ||
27134 | if (!args) SWIG_fail; | |
27135 | swig_obj[0] = args; | |
27136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27137 | if (!SWIG_IsOK(res1)) { | |
27138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27139 | } | |
27140 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27141 | { | |
27142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27143 | result = (bool)(arg1)->GetAbort(); | |
27144 | wxPyEndAllowThreads(__tstate); | |
27145 | if (PyErr_Occurred()) SWIG_fail; | |
27146 | } | |
27147 | { | |
27148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27149 | } | |
27150 | return resultobj; | |
27151 | fail: | |
27152 | return NULL; | |
d55e5bfc RD |
27153 | } |
27154 | ||
27155 | ||
1bd55598 RD |
27156 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27157 | PyObject *resultobj = 0; | |
27158 | wxPrinterError result; | |
27159 | ||
27160 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27161 | { | |
27162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27163 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27164 | wxPyEndAllowThreads(__tstate); | |
27165 | if (PyErr_Occurred()) SWIG_fail; | |
27166 | } | |
27167 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27168 | return resultobj; | |
27169 | fail: | |
27170 | return NULL; | |
d55e5bfc RD |
27171 | } |
27172 | ||
27173 | ||
1bd55598 RD |
27174 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27175 | PyObject *obj; | |
27176 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27177 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27178 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27179 | } |
27180 | ||
1bd55598 RD |
27181 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27182 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
27183 | } |
27184 | ||
1bd55598 RD |
27185 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27186 | PyObject *resultobj = 0; | |
27187 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27188 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27189 | wxPyPrintout *result = 0 ; | |
27190 | bool temp1 = false ; | |
27191 | PyObject * obj0 = 0 ; | |
27192 | char * kwnames[] = { | |
27193 | (char *) "title", NULL | |
27194 | }; | |
27195 | ||
27196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27197 | if (obj0) { | |
d55e5bfc | 27198 | { |
1bd55598 RD |
27199 | arg1 = wxString_in_helper(obj0); |
27200 | if (arg1 == NULL) SWIG_fail; | |
27201 | temp1 = true; | |
d55e5bfc | 27202 | } |
1bd55598 RD |
27203 | } |
27204 | { | |
27205 | if (!wxPyCheckForApp()) SWIG_fail; | |
27206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27207 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27208 | wxPyEndAllowThreads(__tstate); | |
27209 | if (PyErr_Occurred()) SWIG_fail; | |
27210 | } | |
27211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27212 | { | |
27213 | if (temp1) | |
27214 | delete arg1; | |
27215 | } | |
27216 | return resultobj; | |
27217 | fail: | |
27218 | { | |
27219 | if (temp1) | |
27220 | delete arg1; | |
27221 | } | |
27222 | return NULL; | |
d55e5bfc RD |
27223 | } |
27224 | ||
27225 | ||
1bd55598 RD |
27226 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27227 | PyObject *resultobj = 0; | |
27228 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27229 | void *argp1 = 0 ; | |
27230 | int res1 = 0 ; | |
27231 | PyObject *swig_obj[1] ; | |
27232 | ||
27233 | if (!args) SWIG_fail; | |
27234 | swig_obj[0] = args; | |
27235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27236 | if (!SWIG_IsOK(res1)) { | |
27237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27238 | } | |
27239 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27240 | { | |
27241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27242 | delete arg1; | |
d55e5bfc | 27243 | |
1bd55598 RD |
27244 | wxPyEndAllowThreads(__tstate); |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
27246 | } | |
27247 | resultobj = SWIG_Py_Void(); | |
27248 | return resultobj; | |
27249 | fail: | |
27250 | return NULL; | |
27251 | } | |
27252 | ||
27253 | ||
27254 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27255 | PyObject *resultobj = 0; | |
27256 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27257 | PyObject *arg2 = (PyObject *) 0 ; | |
27258 | PyObject *arg3 = (PyObject *) 0 ; | |
27259 | void *argp1 = 0 ; | |
27260 | int res1 = 0 ; | |
27261 | PyObject * obj0 = 0 ; | |
27262 | PyObject * obj1 = 0 ; | |
27263 | PyObject * obj2 = 0 ; | |
27264 | char * kwnames[] = { | |
27265 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27266 | }; | |
27267 | ||
27268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27270 | if (!SWIG_IsOK(res1)) { | |
27271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27272 | } | |
27273 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27274 | arg2 = obj1; | |
27275 | arg3 = obj2; | |
27276 | { | |
27277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27278 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27279 | wxPyEndAllowThreads(__tstate); | |
27280 | if (PyErr_Occurred()) SWIG_fail; | |
27281 | } | |
27282 | resultobj = SWIG_Py_Void(); | |
27283 | return resultobj; | |
27284 | fail: | |
27285 | return NULL; | |
d55e5bfc RD |
27286 | } |
27287 | ||
27288 | ||
1bd55598 RD |
27289 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27290 | PyObject *resultobj = 0; | |
27291 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27292 | wxString result; | |
27293 | void *argp1 = 0 ; | |
27294 | int res1 = 0 ; | |
27295 | PyObject *swig_obj[1] ; | |
27296 | ||
27297 | if (!args) SWIG_fail; | |
27298 | swig_obj[0] = args; | |
27299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27300 | if (!SWIG_IsOK(res1)) { | |
27301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27302 | } | |
27303 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27304 | { | |
27305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27306 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27307 | wxPyEndAllowThreads(__tstate); | |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | } | |
27310 | { | |
27311 | #if wxUSE_UNICODE | |
27312 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27313 | #else | |
27314 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27315 | #endif | |
27316 | } | |
27317 | return resultobj; | |
27318 | fail: | |
27319 | return NULL; | |
d55e5bfc RD |
27320 | } |
27321 | ||
27322 | ||
1bd55598 RD |
27323 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27324 | PyObject *resultobj = 0; | |
27325 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27326 | wxDC *result = 0 ; | |
27327 | void *argp1 = 0 ; | |
27328 | int res1 = 0 ; | |
27329 | PyObject *swig_obj[1] ; | |
27330 | ||
27331 | if (!args) SWIG_fail; | |
27332 | swig_obj[0] = args; | |
27333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27334 | if (!SWIG_IsOK(res1)) { | |
27335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27336 | } | |
27337 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27338 | { | |
27339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27340 | result = (wxDC *)(arg1)->GetDC(); | |
27341 | wxPyEndAllowThreads(__tstate); | |
27342 | if (PyErr_Occurred()) SWIG_fail; | |
27343 | } | |
27344 | { | |
27345 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27346 | } | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
27353 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27354 | PyObject *resultobj = 0; | |
27355 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27356 | wxDC *arg2 = (wxDC *) 0 ; | |
27357 | void *argp1 = 0 ; | |
27358 | int res1 = 0 ; | |
27359 | void *argp2 = 0 ; | |
27360 | int res2 = 0 ; | |
27361 | PyObject * obj0 = 0 ; | |
27362 | PyObject * obj1 = 0 ; | |
27363 | char * kwnames[] = { | |
27364 | (char *) "self",(char *) "dc", NULL | |
27365 | }; | |
27366 | ||
27367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27369 | if (!SWIG_IsOK(res1)) { | |
27370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27371 | } | |
27372 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27373 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27374 | if (!SWIG_IsOK(res2)) { | |
27375 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27376 | } | |
27377 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27380 | (arg1)->SetDC(arg2); | |
27381 | wxPyEndAllowThreads(__tstate); | |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
27384 | resultobj = SWIG_Py_Void(); | |
27385 | return resultobj; | |
27386 | fail: | |
27387 | return NULL; | |
27388 | } | |
27389 | ||
27390 | ||
27391 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27392 | PyObject *resultobj = 0; | |
27393 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27394 | int arg2 ; | |
27395 | int arg3 ; | |
27396 | void *argp1 = 0 ; | |
27397 | int res1 = 0 ; | |
27398 | int val2 ; | |
27399 | int ecode2 = 0 ; | |
27400 | int val3 ; | |
27401 | int ecode3 = 0 ; | |
27402 | PyObject * obj0 = 0 ; | |
27403 | PyObject * obj1 = 0 ; | |
27404 | PyObject * obj2 = 0 ; | |
27405 | char * kwnames[] = { | |
27406 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27407 | }; | |
27408 | ||
27409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27411 | if (!SWIG_IsOK(res1)) { | |
27412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27413 | } | |
27414 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27416 | if (!SWIG_IsOK(ecode2)) { | |
27417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
27418 | } | |
27419 | arg2 = static_cast< int >(val2); | |
27420 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27421 | if (!SWIG_IsOK(ecode3)) { | |
27422 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
27423 | } | |
27424 | arg3 = static_cast< int >(val3); | |
27425 | { | |
27426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27427 | (arg1)->SetPageSizePixels(arg2,arg3); | |
27428 | wxPyEndAllowThreads(__tstate); | |
27429 | if (PyErr_Occurred()) SWIG_fail; | |
27430 | } | |
27431 | resultobj = SWIG_Py_Void(); | |
27432 | return resultobj; | |
27433 | fail: | |
27434 | return NULL; | |
27435 | } | |
27436 | ||
27437 | ||
27438 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27439 | PyObject *resultobj = 0; | |
27440 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27441 | int *arg2 = (int *) 0 ; | |
27442 | int *arg3 = (int *) 0 ; | |
27443 | void *argp1 = 0 ; | |
27444 | int res1 = 0 ; | |
27445 | int temp2 ; | |
27446 | int res2 = SWIG_TMPOBJ ; | |
27447 | int temp3 ; | |
27448 | int res3 = SWIG_TMPOBJ ; | |
27449 | PyObject *swig_obj[1] ; | |
27450 | ||
27451 | arg2 = &temp2; | |
27452 | arg3 = &temp3; | |
27453 | if (!args) SWIG_fail; | |
27454 | swig_obj[0] = args; | |
27455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27456 | if (!SWIG_IsOK(res1)) { | |
27457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27458 | } | |
27459 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27460 | { | |
27461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27462 | (arg1)->GetPageSizePixels(arg2,arg3); | |
27463 | wxPyEndAllowThreads(__tstate); | |
27464 | if (PyErr_Occurred()) SWIG_fail; | |
27465 | } | |
27466 | resultobj = SWIG_Py_Void(); | |
27467 | if (SWIG_IsTmpObj(res2)) { | |
27468 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27469 | } else { | |
27470 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27471 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27472 | } | |
27473 | if (SWIG_IsTmpObj(res3)) { | |
27474 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27475 | } else { | |
27476 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27477 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27478 | } | |
27479 | return resultobj; | |
27480 | fail: | |
27481 | return NULL; | |
27482 | } | |
27483 | ||
27484 | ||
27485 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27486 | PyObject *resultobj = 0; | |
27487 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27488 | int arg2 ; | |
27489 | int arg3 ; | |
27490 | void *argp1 = 0 ; | |
27491 | int res1 = 0 ; | |
27492 | int val2 ; | |
27493 | int ecode2 = 0 ; | |
27494 | int val3 ; | |
27495 | int ecode3 = 0 ; | |
27496 | PyObject * obj0 = 0 ; | |
27497 | PyObject * obj1 = 0 ; | |
27498 | PyObject * obj2 = 0 ; | |
27499 | char * kwnames[] = { | |
27500 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27501 | }; | |
27502 | ||
27503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27505 | if (!SWIG_IsOK(res1)) { | |
27506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27507 | } | |
27508 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27510 | if (!SWIG_IsOK(ecode2)) { | |
27511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
27512 | } | |
27513 | arg2 = static_cast< int >(val2); | |
27514 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27515 | if (!SWIG_IsOK(ecode3)) { | |
27516 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
27517 | } | |
27518 | arg3 = static_cast< int >(val3); | |
27519 | { | |
27520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27521 | (arg1)->SetPageSizeMM(arg2,arg3); | |
27522 | wxPyEndAllowThreads(__tstate); | |
27523 | if (PyErr_Occurred()) SWIG_fail; | |
27524 | } | |
27525 | resultobj = SWIG_Py_Void(); | |
27526 | return resultobj; | |
27527 | fail: | |
27528 | return NULL; | |
27529 | } | |
27530 | ||
27531 | ||
27532 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27533 | PyObject *resultobj = 0; | |
27534 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27535 | int *arg2 = (int *) 0 ; | |
27536 | int *arg3 = (int *) 0 ; | |
27537 | void *argp1 = 0 ; | |
27538 | int res1 = 0 ; | |
27539 | int temp2 ; | |
27540 | int res2 = SWIG_TMPOBJ ; | |
27541 | int temp3 ; | |
27542 | int res3 = SWIG_TMPOBJ ; | |
27543 | PyObject *swig_obj[1] ; | |
27544 | ||
27545 | arg2 = &temp2; | |
27546 | arg3 = &temp3; | |
27547 | if (!args) SWIG_fail; | |
27548 | swig_obj[0] = args; | |
27549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27550 | if (!SWIG_IsOK(res1)) { | |
27551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27552 | } | |
27553 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27554 | { | |
27555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27556 | (arg1)->GetPageSizeMM(arg2,arg3); | |
27557 | wxPyEndAllowThreads(__tstate); | |
27558 | if (PyErr_Occurred()) SWIG_fail; | |
27559 | } | |
27560 | resultobj = SWIG_Py_Void(); | |
27561 | if (SWIG_IsTmpObj(res2)) { | |
27562 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27563 | } else { | |
27564 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27565 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27566 | } | |
27567 | if (SWIG_IsTmpObj(res3)) { | |
27568 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27569 | } else { | |
27570 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27571 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27572 | } | |
27573 | return resultobj; | |
27574 | fail: | |
27575 | return NULL; | |
27576 | } | |
27577 | ||
27578 | ||
27579 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27580 | PyObject *resultobj = 0; | |
27581 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27582 | int arg2 ; | |
27583 | int arg3 ; | |
27584 | void *argp1 = 0 ; | |
27585 | int res1 = 0 ; | |
27586 | int val2 ; | |
27587 | int ecode2 = 0 ; | |
27588 | int val3 ; | |
27589 | int ecode3 = 0 ; | |
27590 | PyObject * obj0 = 0 ; | |
27591 | PyObject * obj1 = 0 ; | |
27592 | PyObject * obj2 = 0 ; | |
27593 | char * kwnames[] = { | |
27594 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27595 | }; | |
27596 | ||
27597 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27599 | if (!SWIG_IsOK(res1)) { | |
27600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27601 | } | |
27602 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27603 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27604 | if (!SWIG_IsOK(ecode2)) { | |
27605 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
27606 | } | |
27607 | arg2 = static_cast< int >(val2); | |
27608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27609 | if (!SWIG_IsOK(ecode3)) { | |
27610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
27611 | } | |
27612 | arg3 = static_cast< int >(val3); | |
27613 | { | |
27614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27615 | (arg1)->SetPPIScreen(arg2,arg3); | |
27616 | wxPyEndAllowThreads(__tstate); | |
27617 | if (PyErr_Occurred()) SWIG_fail; | |
27618 | } | |
27619 | resultobj = SWIG_Py_Void(); | |
27620 | return resultobj; | |
27621 | fail: | |
27622 | return NULL; | |
27623 | } | |
27624 | ||
27625 | ||
27626 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27627 | PyObject *resultobj = 0; | |
27628 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27629 | int *arg2 = (int *) 0 ; | |
27630 | int *arg3 = (int *) 0 ; | |
27631 | void *argp1 = 0 ; | |
27632 | int res1 = 0 ; | |
27633 | int temp2 ; | |
27634 | int res2 = SWIG_TMPOBJ ; | |
27635 | int temp3 ; | |
27636 | int res3 = SWIG_TMPOBJ ; | |
27637 | PyObject *swig_obj[1] ; | |
27638 | ||
27639 | arg2 = &temp2; | |
27640 | arg3 = &temp3; | |
27641 | if (!args) SWIG_fail; | |
27642 | swig_obj[0] = args; | |
27643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27644 | if (!SWIG_IsOK(res1)) { | |
27645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27646 | } | |
27647 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27648 | { | |
27649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27650 | (arg1)->GetPPIScreen(arg2,arg3); | |
27651 | wxPyEndAllowThreads(__tstate); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | } | |
27654 | resultobj = SWIG_Py_Void(); | |
27655 | if (SWIG_IsTmpObj(res2)) { | |
27656 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27657 | } else { | |
27658 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27659 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27660 | } | |
27661 | if (SWIG_IsTmpObj(res3)) { | |
27662 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27663 | } else { | |
27664 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27665 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27666 | } | |
27667 | return resultobj; | |
27668 | fail: | |
27669 | return NULL; | |
27670 | } | |
27671 | ||
27672 | ||
27673 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27674 | PyObject *resultobj = 0; | |
27675 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27676 | int arg2 ; | |
27677 | int arg3 ; | |
27678 | void *argp1 = 0 ; | |
27679 | int res1 = 0 ; | |
27680 | int val2 ; | |
27681 | int ecode2 = 0 ; | |
27682 | int val3 ; | |
27683 | int ecode3 = 0 ; | |
27684 | PyObject * obj0 = 0 ; | |
27685 | PyObject * obj1 = 0 ; | |
27686 | PyObject * obj2 = 0 ; | |
27687 | char * kwnames[] = { | |
27688 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27689 | }; | |
27690 | ||
27691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27693 | if (!SWIG_IsOK(res1)) { | |
27694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27695 | } | |
27696 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27697 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27698 | if (!SWIG_IsOK(ecode2)) { | |
27699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
27700 | } | |
27701 | arg2 = static_cast< int >(val2); | |
27702 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27703 | if (!SWIG_IsOK(ecode3)) { | |
27704 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
27705 | } | |
27706 | arg3 = static_cast< int >(val3); | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | (arg1)->SetPPIPrinter(arg2,arg3); | |
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | resultobj = SWIG_Py_Void(); | |
27714 | return resultobj; | |
27715 | fail: | |
27716 | return NULL; | |
27717 | } | |
27718 | ||
27719 | ||
27720 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27721 | PyObject *resultobj = 0; | |
27722 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27723 | int *arg2 = (int *) 0 ; | |
27724 | int *arg3 = (int *) 0 ; | |
27725 | void *argp1 = 0 ; | |
27726 | int res1 = 0 ; | |
27727 | int temp2 ; | |
27728 | int res2 = SWIG_TMPOBJ ; | |
27729 | int temp3 ; | |
27730 | int res3 = SWIG_TMPOBJ ; | |
27731 | PyObject *swig_obj[1] ; | |
27732 | ||
27733 | arg2 = &temp2; | |
27734 | arg3 = &temp3; | |
27735 | if (!args) SWIG_fail; | |
27736 | swig_obj[0] = args; | |
27737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27738 | if (!SWIG_IsOK(res1)) { | |
27739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27740 | } | |
27741 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27742 | { | |
27743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27744 | (arg1)->GetPPIPrinter(arg2,arg3); | |
27745 | wxPyEndAllowThreads(__tstate); | |
27746 | if (PyErr_Occurred()) SWIG_fail; | |
27747 | } | |
27748 | resultobj = SWIG_Py_Void(); | |
27749 | if (SWIG_IsTmpObj(res2)) { | |
27750 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27751 | } else { | |
27752 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27753 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27754 | } | |
27755 | if (SWIG_IsTmpObj(res3)) { | |
27756 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27757 | } else { | |
27758 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27759 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27760 | } | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
d55e5bfc RD |
27764 | } |
27765 | ||
27766 | ||
1bd55598 RD |
27767 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27768 | PyObject *resultobj = 0; | |
27769 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27770 | bool result; | |
27771 | void *argp1 = 0 ; | |
27772 | int res1 = 0 ; | |
27773 | PyObject *swig_obj[1] ; | |
27774 | ||
27775 | if (!args) SWIG_fail; | |
27776 | swig_obj[0] = args; | |
27777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27778 | if (!SWIG_IsOK(res1)) { | |
27779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27780 | } | |
27781 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27782 | { | |
27783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27784 | result = (bool)(arg1)->IsPreview(); | |
27785 | wxPyEndAllowThreads(__tstate); | |
27786 | if (PyErr_Occurred()) SWIG_fail; | |
27787 | } | |
27788 | { | |
27789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27790 | } | |
27791 | return resultobj; | |
27792 | fail: | |
27793 | return NULL; | |
27794 | } | |
27795 | ||
27796 | ||
27797 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27798 | PyObject *resultobj = 0; | |
27799 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27800 | bool arg2 ; | |
27801 | void *argp1 = 0 ; | |
27802 | int res1 = 0 ; | |
27803 | bool val2 ; | |
27804 | int ecode2 = 0 ; | |
27805 | PyObject * obj0 = 0 ; | |
27806 | PyObject * obj1 = 0 ; | |
27807 | char * kwnames[] = { | |
27808 | (char *) "self",(char *) "p", NULL | |
27809 | }; | |
27810 | ||
27811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
27812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27813 | if (!SWIG_IsOK(res1)) { | |
27814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27815 | } | |
27816 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27817 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27818 | if (!SWIG_IsOK(ecode2)) { | |
27819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
27820 | } | |
27821 | arg2 = static_cast< bool >(val2); | |
27822 | { | |
27823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27824 | (arg1)->SetIsPreview(arg2); | |
27825 | wxPyEndAllowThreads(__tstate); | |
27826 | if (PyErr_Occurred()) SWIG_fail; | |
27827 | } | |
27828 | resultobj = SWIG_Py_Void(); | |
27829 | return resultobj; | |
27830 | fail: | |
27831 | return NULL; | |
27832 | } | |
27833 | ||
27834 | ||
27835 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27836 | PyObject *resultobj = 0; | |
27837 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27838 | int arg2 ; | |
27839 | int arg3 ; | |
27840 | bool result; | |
27841 | void *argp1 = 0 ; | |
27842 | int res1 = 0 ; | |
27843 | int val2 ; | |
27844 | int ecode2 = 0 ; | |
27845 | int val3 ; | |
27846 | int ecode3 = 0 ; | |
27847 | PyObject * obj0 = 0 ; | |
27848 | PyObject * obj1 = 0 ; | |
27849 | PyObject * obj2 = 0 ; | |
27850 | char * kwnames[] = { | |
27851 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
27852 | }; | |
27853 | ||
27854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27856 | if (!SWIG_IsOK(res1)) { | |
27857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27858 | } | |
27859 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27860 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27861 | if (!SWIG_IsOK(ecode2)) { | |
27862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
27863 | } | |
27864 | arg2 = static_cast< int >(val2); | |
27865 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27866 | if (!SWIG_IsOK(ecode3)) { | |
27867 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
27868 | } | |
27869 | arg3 = static_cast< int >(val3); | |
27870 | { | |
27871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27872 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
27873 | wxPyEndAllowThreads(__tstate); | |
27874 | if (PyErr_Occurred()) SWIG_fail; | |
27875 | } | |
27876 | { | |
27877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27878 | } | |
27879 | return resultobj; | |
27880 | fail: | |
27881 | return NULL; | |
d55e5bfc RD |
27882 | } |
27883 | ||
27884 | ||
1bd55598 RD |
27885 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27886 | PyObject *resultobj = 0; | |
27887 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27888 | void *argp1 = 0 ; | |
27889 | int res1 = 0 ; | |
27890 | PyObject *swig_obj[1] ; | |
27891 | ||
27892 | if (!args) SWIG_fail; | |
27893 | swig_obj[0] = args; | |
27894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27895 | if (!SWIG_IsOK(res1)) { | |
27896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27897 | } | |
27898 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27899 | { | |
27900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27901 | (arg1)->OnEndDocument(); | |
27902 | wxPyEndAllowThreads(__tstate); | |
27903 | if (PyErr_Occurred()) SWIG_fail; | |
27904 | } | |
27905 | resultobj = SWIG_Py_Void(); | |
27906 | return resultobj; | |
27907 | fail: | |
27908 | return NULL; | |
27909 | } | |
27910 | ||
27911 | ||
27912 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27913 | PyObject *resultobj = 0; | |
27914 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27915 | void *argp1 = 0 ; | |
27916 | int res1 = 0 ; | |
27917 | PyObject *swig_obj[1] ; | |
27918 | ||
27919 | if (!args) SWIG_fail; | |
27920 | swig_obj[0] = args; | |
27921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27922 | if (!SWIG_IsOK(res1)) { | |
27923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27924 | } | |
27925 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27926 | { | |
27927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27928 | (arg1)->OnBeginPrinting(); | |
27929 | wxPyEndAllowThreads(__tstate); | |
27930 | if (PyErr_Occurred()) SWIG_fail; | |
27931 | } | |
27932 | resultobj = SWIG_Py_Void(); | |
27933 | return resultobj; | |
27934 | fail: | |
27935 | return NULL; | |
27936 | } | |
27937 | ||
27938 | ||
27939 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27940 | PyObject *resultobj = 0; | |
27941 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27942 | void *argp1 = 0 ; | |
27943 | int res1 = 0 ; | |
27944 | PyObject *swig_obj[1] ; | |
27945 | ||
27946 | if (!args) SWIG_fail; | |
27947 | swig_obj[0] = args; | |
27948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27949 | if (!SWIG_IsOK(res1)) { | |
27950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27951 | } | |
27952 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27953 | { | |
27954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27955 | (arg1)->OnEndPrinting(); | |
27956 | wxPyEndAllowThreads(__tstate); | |
27957 | if (PyErr_Occurred()) SWIG_fail; | |
27958 | } | |
27959 | resultobj = SWIG_Py_Void(); | |
27960 | return resultobj; | |
27961 | fail: | |
27962 | return NULL; | |
27963 | } | |
27964 | ||
27965 | ||
27966 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27967 | PyObject *resultobj = 0; | |
27968 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27969 | void *argp1 = 0 ; | |
27970 | int res1 = 0 ; | |
27971 | PyObject *swig_obj[1] ; | |
27972 | ||
27973 | if (!args) SWIG_fail; | |
27974 | swig_obj[0] = args; | |
27975 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27976 | if (!SWIG_IsOK(res1)) { | |
27977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27978 | } | |
27979 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27980 | { | |
27981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27982 | (arg1)->OnPreparePrinting(); | |
27983 | wxPyEndAllowThreads(__tstate); | |
27984 | if (PyErr_Occurred()) SWIG_fail; | |
27985 | } | |
27986 | resultobj = SWIG_Py_Void(); | |
27987 | return resultobj; | |
27988 | fail: | |
27989 | return NULL; | |
27990 | } | |
27991 | ||
27992 | ||
27993 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27994 | PyObject *resultobj = 0; | |
27995 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27996 | int arg2 ; | |
27997 | bool result; | |
27998 | void *argp1 = 0 ; | |
27999 | int res1 = 0 ; | |
28000 | int val2 ; | |
28001 | int ecode2 = 0 ; | |
28002 | PyObject * obj0 = 0 ; | |
28003 | PyObject * obj1 = 0 ; | |
28004 | char * kwnames[] = { | |
28005 | (char *) "self",(char *) "page", NULL | |
28006 | }; | |
28007 | ||
28008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28010 | if (!SWIG_IsOK(res1)) { | |
28011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28012 | } | |
28013 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28014 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28015 | if (!SWIG_IsOK(ecode2)) { | |
28016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
28017 | } | |
28018 | arg2 = static_cast< int >(val2); | |
28019 | { | |
28020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28021 | result = (bool)(arg1)->HasPage(arg2); | |
28022 | wxPyEndAllowThreads(__tstate); | |
28023 | if (PyErr_Occurred()) SWIG_fail; | |
28024 | } | |
28025 | { | |
28026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28027 | } | |
28028 | return resultobj; | |
28029 | fail: | |
28030 | return NULL; | |
28031 | } | |
28032 | ||
28033 | ||
28034 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28035 | PyObject *resultobj = 0; | |
28036 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28037 | int *arg2 = (int *) 0 ; | |
28038 | int *arg3 = (int *) 0 ; | |
28039 | int *arg4 = (int *) 0 ; | |
28040 | int *arg5 = (int *) 0 ; | |
28041 | void *argp1 = 0 ; | |
28042 | int res1 = 0 ; | |
28043 | int temp2 ; | |
28044 | int res2 = SWIG_TMPOBJ ; | |
28045 | int temp3 ; | |
28046 | int res3 = SWIG_TMPOBJ ; | |
28047 | int temp4 ; | |
28048 | int res4 = SWIG_TMPOBJ ; | |
28049 | int temp5 ; | |
28050 | int res5 = SWIG_TMPOBJ ; | |
28051 | PyObject *swig_obj[1] ; | |
28052 | ||
28053 | arg2 = &temp2; | |
28054 | arg3 = &temp3; | |
28055 | arg4 = &temp4; | |
28056 | arg5 = &temp5; | |
28057 | if (!args) SWIG_fail; | |
28058 | swig_obj[0] = args; | |
28059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28060 | if (!SWIG_IsOK(res1)) { | |
28061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28062 | } | |
28063 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28064 | { | |
28065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28066 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
28067 | wxPyEndAllowThreads(__tstate); | |
28068 | if (PyErr_Occurred()) SWIG_fail; | |
28069 | } | |
28070 | resultobj = SWIG_Py_Void(); | |
28071 | if (SWIG_IsTmpObj(res2)) { | |
28072 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28073 | } else { | |
28074 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28075 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28076 | } | |
28077 | if (SWIG_IsTmpObj(res3)) { | |
28078 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28079 | } else { | |
28080 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28081 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28082 | } | |
28083 | if (SWIG_IsTmpObj(res4)) { | |
28084 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28085 | } else { | |
28086 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28087 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28088 | } | |
28089 | if (SWIG_IsTmpObj(res5)) { | |
28090 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
28091 | } else { | |
28092 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28093 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
28094 | } | |
28095 | return resultobj; | |
28096 | fail: | |
28097 | return NULL; | |
28098 | } | |
28099 | ||
28100 | ||
28101 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28102 | PyObject *obj; | |
28103 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28104 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
28105 | return SWIG_Py_Void(); | |
28106 | } | |
28107 | ||
28108 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28109 | return SWIG_Python_InitShadowInstance(args); | |
28110 | } | |
28111 | ||
28112 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28113 | PyObject *resultobj = 0; | |
28114 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28115 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28116 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28117 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28118 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28119 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28120 | long arg5 = (long) 0 ; | |
28121 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
28122 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
28123 | wxPreviewCanvas *result = 0 ; | |
28124 | void *argp1 = 0 ; | |
28125 | int res1 = 0 ; | |
28126 | void *argp2 = 0 ; | |
28127 | int res2 = 0 ; | |
28128 | wxPoint temp3 ; | |
28129 | wxSize temp4 ; | |
28130 | long val5 ; | |
28131 | int ecode5 = 0 ; | |
28132 | bool temp6 = false ; | |
28133 | PyObject * obj0 = 0 ; | |
28134 | PyObject * obj1 = 0 ; | |
28135 | PyObject * obj2 = 0 ; | |
28136 | PyObject * obj3 = 0 ; | |
28137 | PyObject * obj4 = 0 ; | |
28138 | PyObject * obj5 = 0 ; | |
28139 | char * kwnames[] = { | |
28140 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28141 | }; | |
28142 | ||
28143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28145 | if (!SWIG_IsOK(res1)) { | |
28146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28147 | } | |
28148 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28149 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28150 | if (!SWIG_IsOK(res2)) { | |
28151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28152 | } | |
28153 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28154 | if (obj2) { | |
d55e5bfc | 28155 | { |
1bd55598 RD |
28156 | arg3 = &temp3; |
28157 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 28158 | } |
1bd55598 RD |
28159 | } |
28160 | if (obj3) { | |
d55e5bfc | 28161 | { |
1bd55598 RD |
28162 | arg4 = &temp4; |
28163 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28164 | } |
1bd55598 RD |
28165 | } |
28166 | if (obj4) { | |
28167 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28168 | if (!SWIG_IsOK(ecode5)) { | |
28169 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
28170 | } | |
28171 | arg5 = static_cast< long >(val5); | |
28172 | } | |
28173 | if (obj5) { | |
d55e5bfc | 28174 | { |
1bd55598 RD |
28175 | arg6 = wxString_in_helper(obj5); |
28176 | if (arg6 == NULL) SWIG_fail; | |
28177 | temp6 = true; | |
d55e5bfc | 28178 | } |
1bd55598 RD |
28179 | } |
28180 | { | |
28181 | if (!wxPyCheckForApp()) SWIG_fail; | |
28182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28183 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
28184 | wxPyEndAllowThreads(__tstate); | |
28185 | if (PyErr_Occurred()) SWIG_fail; | |
28186 | } | |
28187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
28188 | { | |
28189 | if (temp6) | |
28190 | delete arg6; | |
28191 | } | |
28192 | return resultobj; | |
28193 | fail: | |
28194 | { | |
28195 | if (temp6) | |
28196 | delete arg6; | |
28197 | } | |
28198 | return NULL; | |
28199 | } | |
28200 | ||
28201 | ||
28202 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28203 | PyObject *obj; | |
28204 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28205 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
28206 | return SWIG_Py_Void(); | |
28207 | } | |
28208 | ||
28209 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28210 | return SWIG_Python_InitShadowInstance(args); | |
28211 | } | |
28212 | ||
28213 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28214 | PyObject *resultobj = 0; | |
28215 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28216 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28217 | wxString *arg3 = 0 ; | |
28218 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28219 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28220 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28221 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28222 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
28223 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
28224 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28225 | wxPreviewFrame *result = 0 ; | |
28226 | int res1 = 0 ; | |
28227 | void *argp2 = 0 ; | |
28228 | int res2 = 0 ; | |
28229 | bool temp3 = false ; | |
28230 | wxPoint temp4 ; | |
28231 | wxSize temp5 ; | |
28232 | long val6 ; | |
28233 | int ecode6 = 0 ; | |
28234 | bool temp7 = false ; | |
28235 | PyObject * obj0 = 0 ; | |
28236 | PyObject * obj1 = 0 ; | |
28237 | PyObject * obj2 = 0 ; | |
28238 | PyObject * obj3 = 0 ; | |
28239 | PyObject * obj4 = 0 ; | |
28240 | PyObject * obj5 = 0 ; | |
28241 | PyObject * obj6 = 0 ; | |
28242 | char * kwnames[] = { | |
28243 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28244 | }; | |
28245 | ||
28246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28247 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28248 | if (!SWIG_IsOK(res1)) { | |
28249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28250 | } | |
28251 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
28252 | if (!SWIG_IsOK(res2)) { | |
28253 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
28254 | } | |
28255 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
28256 | { | |
28257 | arg3 = wxString_in_helper(obj2); | |
28258 | if (arg3 == NULL) SWIG_fail; | |
28259 | temp3 = true; | |
28260 | } | |
28261 | if (obj3) { | |
d55e5bfc | 28262 | { |
1bd55598 RD |
28263 | arg4 = &temp4; |
28264 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28265 | } |
1bd55598 RD |
28266 | } |
28267 | if (obj4) { | |
d55e5bfc | 28268 | { |
1bd55598 RD |
28269 | arg5 = &temp5; |
28270 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 28271 | } |
1bd55598 RD |
28272 | } |
28273 | if (obj5) { | |
28274 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28275 | if (!SWIG_IsOK(ecode6)) { | |
28276 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
28277 | } | |
28278 | arg6 = static_cast< long >(val6); | |
28279 | } | |
28280 | if (obj6) { | |
d55e5bfc | 28281 | { |
1bd55598 RD |
28282 | arg7 = wxString_in_helper(obj6); |
28283 | if (arg7 == NULL) SWIG_fail; | |
28284 | temp7 = true; | |
d55e5bfc | 28285 | } |
1bd55598 RD |
28286 | } |
28287 | { | |
28288 | if (!wxPyCheckForApp()) SWIG_fail; | |
28289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28290 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28291 | wxPyEndAllowThreads(__tstate); | |
28292 | if (PyErr_Occurred()) SWIG_fail; | |
28293 | } | |
28294 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
28295 | { | |
28296 | if (temp3) | |
28297 | delete arg3; | |
28298 | } | |
28299 | { | |
28300 | if (temp7) | |
28301 | delete arg7; | |
28302 | } | |
28303 | return resultobj; | |
28304 | fail: | |
28305 | { | |
28306 | if (temp3) | |
28307 | delete arg3; | |
28308 | } | |
28309 | { | |
28310 | if (temp7) | |
28311 | delete arg7; | |
28312 | } | |
28313 | return NULL; | |
d55e5bfc RD |
28314 | } |
28315 | ||
28316 | ||
1bd55598 RD |
28317 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28318 | PyObject *resultobj = 0; | |
28319 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28320 | void *argp1 = 0 ; | |
28321 | int res1 = 0 ; | |
28322 | PyObject *swig_obj[1] ; | |
28323 | ||
28324 | if (!args) SWIG_fail; | |
28325 | swig_obj[0] = args; | |
28326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28327 | if (!SWIG_IsOK(res1)) { | |
28328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28329 | } | |
28330 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28331 | { | |
28332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28333 | (arg1)->Initialize(); | |
28334 | wxPyEndAllowThreads(__tstate); | |
28335 | if (PyErr_Occurred()) SWIG_fail; | |
28336 | } | |
28337 | resultobj = SWIG_Py_Void(); | |
28338 | return resultobj; | |
28339 | fail: | |
28340 | return NULL; | |
d55e5bfc RD |
28341 | } |
28342 | ||
28343 | ||
1bd55598 RD |
28344 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28345 | PyObject *resultobj = 0; | |
28346 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28347 | void *argp1 = 0 ; | |
28348 | int res1 = 0 ; | |
28349 | PyObject *swig_obj[1] ; | |
28350 | ||
28351 | if (!args) SWIG_fail; | |
28352 | swig_obj[0] = args; | |
28353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28354 | if (!SWIG_IsOK(res1)) { | |
28355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28356 | } | |
28357 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28358 | { | |
28359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28360 | (arg1)->CreateControlBar(); | |
28361 | wxPyEndAllowThreads(__tstate); | |
28362 | if (PyErr_Occurred()) SWIG_fail; | |
28363 | } | |
28364 | resultobj = SWIG_Py_Void(); | |
28365 | return resultobj; | |
28366 | fail: | |
28367 | return NULL; | |
d55e5bfc RD |
28368 | } |
28369 | ||
28370 | ||
1bd55598 RD |
28371 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28372 | PyObject *resultobj = 0; | |
28373 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28374 | void *argp1 = 0 ; | |
28375 | int res1 = 0 ; | |
28376 | PyObject *swig_obj[1] ; | |
28377 | ||
28378 | if (!args) SWIG_fail; | |
28379 | swig_obj[0] = args; | |
28380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28381 | if (!SWIG_IsOK(res1)) { | |
28382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28383 | } | |
28384 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28385 | { | |
28386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28387 | (arg1)->CreateCanvas(); | |
28388 | wxPyEndAllowThreads(__tstate); | |
28389 | if (PyErr_Occurred()) SWIG_fail; | |
28390 | } | |
28391 | resultobj = SWIG_Py_Void(); | |
28392 | return resultobj; | |
28393 | fail: | |
28394 | return NULL; | |
d55e5bfc RD |
28395 | } |
28396 | ||
28397 | ||
1bd55598 RD |
28398 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28399 | PyObject *resultobj = 0; | |
28400 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28401 | wxPreviewControlBar *result = 0 ; | |
28402 | void *argp1 = 0 ; | |
28403 | int res1 = 0 ; | |
28404 | PyObject *swig_obj[1] ; | |
28405 | ||
28406 | if (!args) SWIG_fail; | |
28407 | swig_obj[0] = args; | |
28408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28409 | if (!SWIG_IsOK(res1)) { | |
28410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
28411 | } | |
28412 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28413 | { | |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
28416 | wxPyEndAllowThreads(__tstate); | |
28417 | if (PyErr_Occurred()) SWIG_fail; | |
28418 | } | |
28419 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28420 | return resultobj; | |
28421 | fail: | |
28422 | return NULL; | |
28423 | } | |
28424 | ||
28425 | ||
28426 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28427 | PyObject *obj; | |
28428 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28429 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
28430 | return SWIG_Py_Void(); | |
28431 | } | |
28432 | ||
28433 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28434 | return SWIG_Python_InitShadowInstance(args); | |
28435 | } | |
28436 | ||
28437 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28438 | PyObject *resultobj = 0; | |
28439 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28440 | long arg2 ; | |
28441 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28442 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28443 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28444 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28445 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28446 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
28447 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
28448 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28449 | wxPreviewControlBar *result = 0 ; | |
28450 | void *argp1 = 0 ; | |
28451 | int res1 = 0 ; | |
28452 | long val2 ; | |
28453 | int ecode2 = 0 ; | |
28454 | void *argp3 = 0 ; | |
28455 | int res3 = 0 ; | |
28456 | wxPoint temp4 ; | |
28457 | wxSize temp5 ; | |
28458 | long val6 ; | |
28459 | int ecode6 = 0 ; | |
28460 | bool temp7 = false ; | |
28461 | PyObject * obj0 = 0 ; | |
28462 | PyObject * obj1 = 0 ; | |
28463 | PyObject * obj2 = 0 ; | |
28464 | PyObject * obj3 = 0 ; | |
28465 | PyObject * obj4 = 0 ; | |
28466 | PyObject * obj5 = 0 ; | |
28467 | PyObject * obj6 = 0 ; | |
28468 | char * kwnames[] = { | |
28469 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28470 | }; | |
28471 | ||
28472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28474 | if (!SWIG_IsOK(res1)) { | |
28475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28476 | } | |
28477 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28478 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28479 | if (!SWIG_IsOK(ecode2)) { | |
28480 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
28481 | } | |
28482 | arg2 = static_cast< long >(val2); | |
28483 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28484 | if (!SWIG_IsOK(res3)) { | |
28485 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
28486 | } | |
28487 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
28488 | if (obj3) { | |
28489 | { | |
28490 | arg4 = &temp4; | |
28491 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28492 | } | |
28493 | } | |
28494 | if (obj4) { | |
a5ee0656 | 28495 | { |
1bd55598 RD |
28496 | arg5 = &temp5; |
28497 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
a5ee0656 | 28498 | } |
1bd55598 RD |
28499 | } |
28500 | if (obj5) { | |
28501 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28502 | if (!SWIG_IsOK(ecode6)) { | |
28503 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
28504 | } | |
28505 | arg6 = static_cast< long >(val6); | |
28506 | } | |
28507 | if (obj6) { | |
a5ee0656 | 28508 | { |
1bd55598 RD |
28509 | arg7 = wxString_in_helper(obj6); |
28510 | if (arg7 == NULL) SWIG_fail; | |
28511 | temp7 = true; | |
a5ee0656 | 28512 | } |
1bd55598 RD |
28513 | } |
28514 | { | |
28515 | if (!wxPyCheckForApp()) SWIG_fail; | |
28516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28517 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28518 | wxPyEndAllowThreads(__tstate); | |
28519 | if (PyErr_Occurred()) SWIG_fail; | |
28520 | } | |
28521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
28522 | { | |
28523 | if (temp7) | |
28524 | delete arg7; | |
28525 | } | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | { | |
28529 | if (temp7) | |
28530 | delete arg7; | |
28531 | } | |
28532 | return NULL; | |
a5ee0656 RD |
28533 | } |
28534 | ||
28535 | ||
1bd55598 RD |
28536 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28537 | PyObject *resultobj = 0; | |
28538 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28539 | int result; | |
28540 | void *argp1 = 0 ; | |
28541 | int res1 = 0 ; | |
28542 | PyObject *swig_obj[1] ; | |
28543 | ||
28544 | if (!args) SWIG_fail; | |
28545 | swig_obj[0] = args; | |
28546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28547 | if (!SWIG_IsOK(res1)) { | |
28548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28549 | } | |
28550 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28551 | { | |
28552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28553 | result = (int)(arg1)->GetZoomControl(); | |
28554 | wxPyEndAllowThreads(__tstate); | |
28555 | if (PyErr_Occurred()) SWIG_fail; | |
28556 | } | |
28557 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28565 | PyObject *resultobj = 0; | |
28566 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28567 | int arg2 ; | |
28568 | void *argp1 = 0 ; | |
28569 | int res1 = 0 ; | |
28570 | int val2 ; | |
28571 | int ecode2 = 0 ; | |
28572 | PyObject * obj0 = 0 ; | |
28573 | PyObject * obj1 = 0 ; | |
28574 | char * kwnames[] = { | |
28575 | (char *) "self",(char *) "zoom", NULL | |
28576 | }; | |
28577 | ||
28578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
28579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28580 | if (!SWIG_IsOK(res1)) { | |
28581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28582 | } | |
28583 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28585 | if (!SWIG_IsOK(ecode2)) { | |
28586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
28587 | } | |
28588 | arg2 = static_cast< int >(val2); | |
28589 | { | |
28590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28591 | (arg1)->SetZoomControl(arg2); | |
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = SWIG_Py_Void(); | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | return NULL; | |
8d38bd1d RD |
28599 | } |
28600 | ||
28601 | ||
1bd55598 RD |
28602 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28603 | PyObject *resultobj = 0; | |
28604 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28605 | wxPrintPreview *result = 0 ; | |
28606 | void *argp1 = 0 ; | |
28607 | int res1 = 0 ; | |
28608 | PyObject *swig_obj[1] ; | |
28609 | ||
28610 | if (!args) SWIG_fail; | |
28611 | swig_obj[0] = args; | |
28612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28613 | if (!SWIG_IsOK(res1)) { | |
28614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28615 | } | |
28616 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28617 | { | |
28618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28619 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
28620 | wxPyEndAllowThreads(__tstate); | |
28621 | if (PyErr_Occurred()) SWIG_fail; | |
28622 | } | |
28623 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28624 | return resultobj; | |
28625 | fail: | |
28626 | return NULL; | |
d55e5bfc RD |
28627 | } |
28628 | ||
28629 | ||
1bd55598 RD |
28630 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28631 | PyObject *resultobj = 0; | |
28632 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28633 | void *argp1 = 0 ; | |
28634 | int res1 = 0 ; | |
28635 | PyObject *swig_obj[1] ; | |
28636 | ||
28637 | if (!args) SWIG_fail; | |
28638 | swig_obj[0] = args; | |
28639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28640 | if (!SWIG_IsOK(res1)) { | |
28641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28642 | } | |
28643 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28644 | { | |
28645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28646 | (arg1)->OnNext(); | |
28647 | wxPyEndAllowThreads(__tstate); | |
28648 | if (PyErr_Occurred()) SWIG_fail; | |
28649 | } | |
28650 | resultobj = SWIG_Py_Void(); | |
28651 | return resultobj; | |
28652 | fail: | |
28653 | return NULL; | |
d55e5bfc RD |
28654 | } |
28655 | ||
28656 | ||
1bd55598 RD |
28657 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28658 | PyObject *resultobj = 0; | |
28659 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28660 | void *argp1 = 0 ; | |
28661 | int res1 = 0 ; | |
28662 | PyObject *swig_obj[1] ; | |
28663 | ||
28664 | if (!args) SWIG_fail; | |
28665 | swig_obj[0] = args; | |
28666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28667 | if (!SWIG_IsOK(res1)) { | |
28668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28669 | } | |
28670 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28671 | { | |
28672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28673 | (arg1)->OnPrevious(); | |
28674 | wxPyEndAllowThreads(__tstate); | |
28675 | if (PyErr_Occurred()) SWIG_fail; | |
28676 | } | |
28677 | resultobj = SWIG_Py_Void(); | |
28678 | return resultobj; | |
28679 | fail: | |
28680 | return NULL; | |
d55e5bfc RD |
28681 | } |
28682 | ||
28683 | ||
1bd55598 RD |
28684 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28685 | PyObject *resultobj = 0; | |
28686 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28687 | void *argp1 = 0 ; | |
28688 | int res1 = 0 ; | |
28689 | PyObject *swig_obj[1] ; | |
28690 | ||
28691 | if (!args) SWIG_fail; | |
28692 | swig_obj[0] = args; | |
28693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28694 | if (!SWIG_IsOK(res1)) { | |
28695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28696 | } | |
28697 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28698 | { | |
28699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28700 | (arg1)->OnFirst(); | |
28701 | wxPyEndAllowThreads(__tstate); | |
28702 | if (PyErr_Occurred()) SWIG_fail; | |
28703 | } | |
28704 | resultobj = SWIG_Py_Void(); | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | return NULL; | |
a5ee0656 RD |
28708 | } |
28709 | ||
28710 | ||
1bd55598 RD |
28711 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28712 | PyObject *resultobj = 0; | |
28713 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 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_wxPreviewControlBar, 0 | 0 ); | |
28721 | if (!SWIG_IsOK(res1)) { | |
28722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28723 | } | |
28724 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28725 | { | |
28726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28727 | (arg1)->OnLast(); | |
28728 | wxPyEndAllowThreads(__tstate); | |
28729 | if (PyErr_Occurred()) SWIG_fail; | |
28730 | } | |
28731 | resultobj = SWIG_Py_Void(); | |
28732 | return resultobj; | |
28733 | fail: | |
28734 | return NULL; | |
976dbff5 RD |
28735 | } |
28736 | ||
28737 | ||
1bd55598 RD |
28738 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28739 | PyObject *resultobj = 0; | |
28740 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 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_wxPreviewControlBar, 0 | 0 ); | |
28748 | if (!SWIG_IsOK(res1)) { | |
28749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28750 | } | |
28751 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | (arg1)->OnGoto(); | |
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 *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28766 | PyObject *obj; | |
28767 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28768 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
28769 | return SWIG_Py_Void(); | |
28770 | } | |
28771 | ||
28772 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28773 | return SWIG_Python_InitShadowInstance(args); | |
28774 | } | |
28775 | ||
28776 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28777 | PyObject *resultobj = 0; | |
28778 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28779 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28780 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
28781 | wxPrintPreview *result = 0 ; | |
28782 | int res1 = 0 ; | |
28783 | int res2 = 0 ; | |
28784 | void *argp3 = 0 ; | |
28785 | int res3 = 0 ; | |
28786 | ||
28787 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
28788 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28789 | if (!SWIG_IsOK(res1)) { | |
28790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28791 | } | |
28792 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28793 | if (!SWIG_IsOK(res2)) { | |
28794 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
28795 | } | |
28796 | if (swig_obj[2]) { | |
28797 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
28798 | if (!SWIG_IsOK(res3)) { | |
28799 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
36ed4f51 | 28800 | } |
1bd55598 RD |
28801 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
28802 | } | |
28803 | { | |
28804 | if (!wxPyCheckForApp()) SWIG_fail; | |
28805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28806 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
28807 | wxPyEndAllowThreads(__tstate); | |
28808 | if (PyErr_Occurred()) SWIG_fail; | |
28809 | } | |
28810 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
28811 | return resultobj; | |
28812 | fail: | |
28813 | return NULL; | |
28814 | } | |
28815 | ||
28816 | ||
28817 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28818 | PyObject *resultobj = 0; | |
28819 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28820 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28821 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
28822 | wxPrintPreview *result = 0 ; | |
28823 | int res1 = 0 ; | |
28824 | int res2 = 0 ; | |
28825 | void *argp3 = 0 ; | |
28826 | int res3 = 0 ; | |
28827 | ||
28828 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
28829 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28830 | if (!SWIG_IsOK(res1)) { | |
28831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28832 | } | |
28833 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28834 | if (!SWIG_IsOK(res2)) { | |
28835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
28836 | } | |
28837 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
28838 | if (!SWIG_IsOK(res3)) { | |
28839 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
28840 | } | |
28841 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
28842 | { | |
28843 | if (!wxPyCheckForApp()) SWIG_fail; | |
28844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28845 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
28846 | wxPyEndAllowThreads(__tstate); | |
28847 | if (PyErr_Occurred()) SWIG_fail; | |
28848 | } | |
28849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
28850 | return resultobj; | |
28851 | fail: | |
28852 | return NULL; | |
d55e5bfc RD |
28853 | } |
28854 | ||
28855 | ||
1bd55598 RD |
28856 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
28857 | int argc; | |
28858 | PyObject *argv[4]; | |
28859 | ||
28860 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
28861 | --argc; | |
28862 | if ((argc >= 2) && (argc <= 3)) { | |
28863 | int _v = 0; | |
28864 | if (argc > 2) { | |
28865 | { | |
28866 | void *vptr = 0; | |
28867 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
28868 | _v = SWIG_CheckState(res); | |
28869 | } | |
28870 | if (!_v) goto check_1; | |
36ed4f51 | 28871 | } |
1bd55598 RD |
28872 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
28873 | } | |
28874 | check_1: | |
28875 | ||
28876 | if (argc == 3) { | |
28877 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
28878 | } | |
28879 | ||
28880 | fail: | |
28881 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
28882 | return NULL; | |
d55e5bfc RD |
28883 | } |
28884 | ||
28885 | ||
1bd55598 RD |
28886 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28887 | PyObject *resultobj = 0; | |
28888 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28889 | void *argp1 = 0 ; | |
28890 | int res1 = 0 ; | |
28891 | PyObject *swig_obj[1] ; | |
28892 | ||
28893 | if (!args) SWIG_fail; | |
28894 | swig_obj[0] = args; | |
28895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28896 | if (!SWIG_IsOK(res1)) { | |
28897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28898 | } | |
28899 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28900 | { | |
28901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28902 | delete arg1; | |
d55e5bfc | 28903 | |
1bd55598 RD |
28904 | wxPyEndAllowThreads(__tstate); |
28905 | if (PyErr_Occurred()) SWIG_fail; | |
28906 | } | |
28907 | resultobj = SWIG_Py_Void(); | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | return NULL; | |
28911 | } | |
28912 | ||
28913 | ||
28914 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28915 | PyObject *resultobj = 0; | |
28916 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28917 | int arg2 ; | |
28918 | bool result; | |
28919 | void *argp1 = 0 ; | |
28920 | int res1 = 0 ; | |
28921 | int val2 ; | |
28922 | int ecode2 = 0 ; | |
28923 | PyObject * obj0 = 0 ; | |
28924 | PyObject * obj1 = 0 ; | |
28925 | char * kwnames[] = { | |
28926 | (char *) "self",(char *) "pageNum", NULL | |
28927 | }; | |
28928 | ||
28929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28931 | if (!SWIG_IsOK(res1)) { | |
28932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28933 | } | |
28934 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28935 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28936 | if (!SWIG_IsOK(ecode2)) { | |
28937 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
28938 | } | |
28939 | arg2 = static_cast< int >(val2); | |
28940 | { | |
28941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28942 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
28943 | wxPyEndAllowThreads(__tstate); | |
28944 | if (PyErr_Occurred()) SWIG_fail; | |
28945 | } | |
28946 | { | |
28947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28948 | } | |
28949 | return resultobj; | |
28950 | fail: | |
28951 | return NULL; | |
d55e5bfc RD |
28952 | } |
28953 | ||
28954 | ||
1bd55598 RD |
28955 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28956 | PyObject *resultobj = 0; | |
28957 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28958 | int result; | |
28959 | void *argp1 = 0 ; | |
28960 | int res1 = 0 ; | |
28961 | PyObject *swig_obj[1] ; | |
28962 | ||
28963 | if (!args) SWIG_fail; | |
28964 | swig_obj[0] = args; | |
28965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28966 | if (!SWIG_IsOK(res1)) { | |
28967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28968 | } | |
28969 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28970 | { | |
28971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28972 | result = (int)(arg1)->GetCurrentPage(); | |
28973 | wxPyEndAllowThreads(__tstate); | |
28974 | if (PyErr_Occurred()) SWIG_fail; | |
28975 | } | |
28976 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28977 | return resultobj; | |
28978 | fail: | |
28979 | return NULL; | |
28980 | } | |
28981 | ||
28982 | ||
28983 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28984 | PyObject *resultobj = 0; | |
28985 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28986 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
28987 | void *argp1 = 0 ; | |
28988 | int res1 = 0 ; | |
28989 | int res2 = 0 ; | |
28990 | PyObject * obj0 = 0 ; | |
28991 | PyObject * obj1 = 0 ; | |
28992 | char * kwnames[] = { | |
28993 | (char *) "self",(char *) "printout", NULL | |
28994 | }; | |
28995 | ||
28996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
28997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28998 | if (!SWIG_IsOK(res1)) { | |
28999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29000 | } | |
29001 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29002 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29003 | if (!SWIG_IsOK(res2)) { | |
29004 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29005 | } | |
29006 | { | |
29007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29008 | (arg1)->SetPrintout(arg2); | |
29009 | wxPyEndAllowThreads(__tstate); | |
29010 | if (PyErr_Occurred()) SWIG_fail; | |
29011 | } | |
29012 | resultobj = SWIG_Py_Void(); | |
29013 | return resultobj; | |
29014 | fail: | |
29015 | return NULL; | |
d55e5bfc RD |
29016 | } |
29017 | ||
29018 | ||
1bd55598 RD |
29019 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29020 | PyObject *resultobj = 0; | |
29021 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29022 | wxPyPrintout *result = 0 ; | |
29023 | void *argp1 = 0 ; | |
29024 | int res1 = 0 ; | |
29025 | PyObject *swig_obj[1] ; | |
29026 | ||
29027 | if (!args) SWIG_fail; | |
29028 | swig_obj[0] = args; | |
29029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29030 | if (!SWIG_IsOK(res1)) { | |
29031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29032 | } | |
29033 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29034 | { | |
29035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29036 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
29037 | wxPyEndAllowThreads(__tstate); | |
29038 | if (PyErr_Occurred()) SWIG_fail; | |
29039 | } | |
29040 | { | |
29041 | resultobj = wxPyMake_wxObject(result, 0); | |
29042 | } | |
29043 | return resultobj; | |
29044 | fail: | |
29045 | return NULL; | |
d55e5bfc RD |
29046 | } |
29047 | ||
29048 | ||
1bd55598 RD |
29049 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29050 | PyObject *resultobj = 0; | |
29051 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29052 | wxPyPrintout *result = 0 ; | |
29053 | void *argp1 = 0 ; | |
29054 | int res1 = 0 ; | |
29055 | PyObject *swig_obj[1] ; | |
29056 | ||
29057 | if (!args) SWIG_fail; | |
29058 | swig_obj[0] = args; | |
29059 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29060 | if (!SWIG_IsOK(res1)) { | |
29061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29062 | } | |
29063 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29064 | { | |
29065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29066 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
29067 | wxPyEndAllowThreads(__tstate); | |
29068 | if (PyErr_Occurred()) SWIG_fail; | |
29069 | } | |
29070 | { | |
29071 | resultobj = wxPyMake_wxObject(result, 0); | |
29072 | } | |
29073 | return resultobj; | |
29074 | fail: | |
29075 | return NULL; | |
29076 | } | |
29077 | ||
29078 | ||
29079 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29080 | PyObject *resultobj = 0; | |
29081 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29082 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29083 | void *argp1 = 0 ; | |
29084 | int res1 = 0 ; | |
29085 | void *argp2 = 0 ; | |
29086 | int res2 = 0 ; | |
29087 | PyObject * obj0 = 0 ; | |
29088 | PyObject * obj1 = 0 ; | |
29089 | char * kwnames[] = { | |
29090 | (char *) "self",(char *) "frame", NULL | |
29091 | }; | |
29092 | ||
29093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
29094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29095 | if (!SWIG_IsOK(res1)) { | |
29096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29097 | } | |
29098 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29099 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29100 | if (!SWIG_IsOK(res2)) { | |
29101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29102 | } | |
29103 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29104 | { | |
29105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29106 | (arg1)->SetFrame(arg2); | |
29107 | wxPyEndAllowThreads(__tstate); | |
29108 | if (PyErr_Occurred()) SWIG_fail; | |
29109 | } | |
29110 | resultobj = SWIG_Py_Void(); | |
29111 | return resultobj; | |
29112 | fail: | |
29113 | return NULL; | |
29114 | } | |
29115 | ||
29116 | ||
29117 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29118 | PyObject *resultobj = 0; | |
29119 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29120 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29121 | void *argp1 = 0 ; | |
29122 | int res1 = 0 ; | |
29123 | void *argp2 = 0 ; | |
29124 | int res2 = 0 ; | |
29125 | PyObject * obj0 = 0 ; | |
29126 | PyObject * obj1 = 0 ; | |
29127 | char * kwnames[] = { | |
29128 | (char *) "self",(char *) "canvas", NULL | |
29129 | }; | |
29130 | ||
29131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29133 | if (!SWIG_IsOK(res1)) { | |
29134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29135 | } | |
29136 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29137 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29138 | if (!SWIG_IsOK(res2)) { | |
29139 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29140 | } | |
29141 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29142 | { | |
29143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29144 | (arg1)->SetCanvas(arg2); | |
29145 | wxPyEndAllowThreads(__tstate); | |
29146 | if (PyErr_Occurred()) SWIG_fail; | |
29147 | } | |
29148 | resultobj = SWIG_Py_Void(); | |
29149 | return resultobj; | |
29150 | fail: | |
29151 | return NULL; | |
d55e5bfc RD |
29152 | } |
29153 | ||
29154 | ||
1bd55598 RD |
29155 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29156 | PyObject *resultobj = 0; | |
29157 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29158 | wxFrame *result = 0 ; | |
29159 | void *argp1 = 0 ; | |
29160 | int res1 = 0 ; | |
29161 | PyObject *swig_obj[1] ; | |
29162 | ||
29163 | if (!args) SWIG_fail; | |
29164 | swig_obj[0] = args; | |
29165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29166 | if (!SWIG_IsOK(res1)) { | |
29167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29168 | } | |
29169 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29170 | { | |
29171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29172 | result = (wxFrame *)(arg1)->GetFrame(); | |
29173 | wxPyEndAllowThreads(__tstate); | |
29174 | if (PyErr_Occurred()) SWIG_fail; | |
29175 | } | |
29176 | { | |
29177 | resultobj = wxPyMake_wxObject(result, 0); | |
29178 | } | |
29179 | return resultobj; | |
29180 | fail: | |
29181 | return NULL; | |
d55e5bfc RD |
29182 | } |
29183 | ||
29184 | ||
1bd55598 RD |
29185 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29186 | PyObject *resultobj = 0; | |
29187 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29188 | wxPreviewCanvas *result = 0 ; | |
29189 | void *argp1 = 0 ; | |
29190 | int res1 = 0 ; | |
29191 | PyObject *swig_obj[1] ; | |
29192 | ||
29193 | if (!args) SWIG_fail; | |
29194 | swig_obj[0] = args; | |
29195 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29196 | if (!SWIG_IsOK(res1)) { | |
29197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29198 | } | |
29199 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29200 | { | |
29201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29202 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
29203 | wxPyEndAllowThreads(__tstate); | |
29204 | if (PyErr_Occurred()) SWIG_fail; | |
29205 | } | |
29206 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29207 | return resultobj; | |
29208 | fail: | |
29209 | return NULL; | |
29210 | } | |
29211 | ||
29212 | ||
29213 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29214 | PyObject *resultobj = 0; | |
29215 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29216 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29217 | wxDC *arg3 = 0 ; | |
29218 | bool result; | |
29219 | void *argp1 = 0 ; | |
29220 | int res1 = 0 ; | |
29221 | void *argp2 = 0 ; | |
29222 | int res2 = 0 ; | |
29223 | void *argp3 = 0 ; | |
29224 | int res3 = 0 ; | |
29225 | PyObject * obj0 = 0 ; | |
29226 | PyObject * obj1 = 0 ; | |
29227 | PyObject * obj2 = 0 ; | |
29228 | char * kwnames[] = { | |
29229 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29230 | }; | |
29231 | ||
29232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29234 | if (!SWIG_IsOK(res1)) { | |
29235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29236 | } | |
29237 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29238 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29239 | if (!SWIG_IsOK(res2)) { | |
29240 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29241 | } | |
29242 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29243 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29244 | if (!SWIG_IsOK(res3)) { | |
29245 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29246 | } | |
29247 | if (!argp3) { | |
29248 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29249 | } | |
29250 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29251 | { | |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
29254 | wxPyEndAllowThreads(__tstate); | |
29255 | if (PyErr_Occurred()) SWIG_fail; | |
29256 | } | |
29257 | { | |
29258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29259 | } | |
29260 | return resultobj; | |
29261 | fail: | |
29262 | return NULL; | |
29263 | } | |
29264 | ||
29265 | ||
29266 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29267 | PyObject *resultobj = 0; | |
29268 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29269 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29270 | wxDC *arg3 = 0 ; | |
29271 | bool result; | |
29272 | void *argp1 = 0 ; | |
29273 | int res1 = 0 ; | |
29274 | void *argp2 = 0 ; | |
29275 | int res2 = 0 ; | |
29276 | void *argp3 = 0 ; | |
29277 | int res3 = 0 ; | |
29278 | PyObject * obj0 = 0 ; | |
29279 | PyObject * obj1 = 0 ; | |
29280 | PyObject * obj2 = 0 ; | |
29281 | char * kwnames[] = { | |
29282 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29283 | }; | |
29284 | ||
29285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29287 | if (!SWIG_IsOK(res1)) { | |
29288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29289 | } | |
29290 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29291 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29292 | if (!SWIG_IsOK(res2)) { | |
29293 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29294 | } | |
29295 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29296 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29297 | if (!SWIG_IsOK(res3)) { | |
29298 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29299 | } | |
29300 | if (!argp3) { | |
29301 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29302 | } | |
29303 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29304 | { | |
29305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29306 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
29307 | wxPyEndAllowThreads(__tstate); | |
29308 | if (PyErr_Occurred()) SWIG_fail; | |
29309 | } | |
29310 | { | |
29311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29312 | } | |
29313 | return resultobj; | |
29314 | fail: | |
29315 | return NULL; | |
29316 | } | |
29317 | ||
29318 | ||
29319 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29320 | PyObject *resultobj = 0; | |
29321 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29322 | int arg2 ; | |
29323 | bool result; | |
29324 | void *argp1 = 0 ; | |
29325 | int res1 = 0 ; | |
29326 | int val2 ; | |
29327 | int ecode2 = 0 ; | |
29328 | PyObject * obj0 = 0 ; | |
29329 | PyObject * obj1 = 0 ; | |
29330 | char * kwnames[] = { | |
29331 | (char *) "self",(char *) "pageNum", NULL | |
29332 | }; | |
29333 | ||
29334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29336 | if (!SWIG_IsOK(res1)) { | |
29337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29338 | } | |
29339 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29341 | if (!SWIG_IsOK(ecode2)) { | |
29342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
29343 | } | |
29344 | arg2 = static_cast< int >(val2); | |
29345 | { | |
29346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29347 | result = (bool)(arg1)->RenderPage(arg2); | |
29348 | wxPyEndAllowThreads(__tstate); | |
29349 | if (PyErr_Occurred()) SWIG_fail; | |
29350 | } | |
29351 | { | |
29352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29353 | } | |
29354 | return resultobj; | |
29355 | fail: | |
29356 | return NULL; | |
29357 | } | |
29358 | ||
29359 | ||
29360 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29361 | PyObject *resultobj = 0; | |
29362 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29363 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29364 | void *argp1 = 0 ; | |
29365 | int res1 = 0 ; | |
29366 | void *argp2 = 0 ; | |
29367 | int res2 = 0 ; | |
29368 | PyObject * obj0 = 0 ; | |
29369 | PyObject * obj1 = 0 ; | |
29370 | char * kwnames[] = { | |
29371 | (char *) "self",(char *) "canvas", NULL | |
29372 | }; | |
29373 | ||
29374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
29375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29376 | if (!SWIG_IsOK(res1)) { | |
29377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29378 | } | |
29379 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29380 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29381 | if (!SWIG_IsOK(res2)) { | |
29382 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29383 | } | |
29384 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29385 | { | |
29386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29387 | (arg1)->AdjustScrollbars(arg2); | |
29388 | wxPyEndAllowThreads(__tstate); | |
29389 | if (PyErr_Occurred()) SWIG_fail; | |
29390 | } | |
29391 | resultobj = SWIG_Py_Void(); | |
29392 | return resultobj; | |
29393 | fail: | |
29394 | return NULL; | |
d55e5bfc RD |
29395 | } |
29396 | ||
29397 | ||
1bd55598 RD |
29398 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29399 | PyObject *resultobj = 0; | |
29400 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29401 | wxPrintDialogData *result = 0 ; | |
29402 | void *argp1 = 0 ; | |
29403 | int res1 = 0 ; | |
29404 | PyObject *swig_obj[1] ; | |
29405 | ||
29406 | if (!args) SWIG_fail; | |
29407 | swig_obj[0] = args; | |
29408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29409 | if (!SWIG_IsOK(res1)) { | |
29410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29411 | } | |
29412 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29413 | { | |
29414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 29415 | { |
1bd55598 RD |
29416 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
29417 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 29418 | } |
1bd55598 RD |
29419 | wxPyEndAllowThreads(__tstate); |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | } | |
29422 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29423 | return resultobj; | |
29424 | fail: | |
29425 | return NULL; | |
29426 | } | |
29427 | ||
29428 | ||
29429 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29430 | PyObject *resultobj = 0; | |
29431 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29432 | int arg2 ; | |
29433 | void *argp1 = 0 ; | |
29434 | int res1 = 0 ; | |
29435 | int val2 ; | |
29436 | int ecode2 = 0 ; | |
29437 | PyObject * obj0 = 0 ; | |
29438 | PyObject * obj1 = 0 ; | |
29439 | char * kwnames[] = { | |
29440 | (char *) "self",(char *) "percent", NULL | |
29441 | }; | |
29442 | ||
29443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
29444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29445 | if (!SWIG_IsOK(res1)) { | |
29446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29447 | } | |
29448 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29449 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29450 | if (!SWIG_IsOK(ecode2)) { | |
29451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
29452 | } | |
29453 | arg2 = static_cast< int >(val2); | |
29454 | { | |
29455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29456 | (arg1)->SetZoom(arg2); | |
29457 | wxPyEndAllowThreads(__tstate); | |
29458 | if (PyErr_Occurred()) SWIG_fail; | |
29459 | } | |
29460 | resultobj = SWIG_Py_Void(); | |
29461 | return resultobj; | |
29462 | fail: | |
29463 | return NULL; | |
d55e5bfc RD |
29464 | } |
29465 | ||
29466 | ||
1bd55598 RD |
29467 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29468 | PyObject *resultobj = 0; | |
29469 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29470 | int result; | |
29471 | void *argp1 = 0 ; | |
29472 | int res1 = 0 ; | |
29473 | PyObject *swig_obj[1] ; | |
29474 | ||
29475 | if (!args) SWIG_fail; | |
29476 | swig_obj[0] = args; | |
29477 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29478 | if (!SWIG_IsOK(res1)) { | |
29479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29480 | } | |
29481 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29482 | { | |
29483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29484 | result = (int)(arg1)->GetZoom(); | |
29485 | wxPyEndAllowThreads(__tstate); | |
29486 | if (PyErr_Occurred()) SWIG_fail; | |
29487 | } | |
29488 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29489 | return resultobj; | |
29490 | fail: | |
29491 | return NULL; | |
d55e5bfc RD |
29492 | } |
29493 | ||
29494 | ||
1bd55598 RD |
29495 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29496 | PyObject *resultobj = 0; | |
29497 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29498 | int result; | |
29499 | void *argp1 = 0 ; | |
29500 | int res1 = 0 ; | |
29501 | PyObject *swig_obj[1] ; | |
29502 | ||
29503 | if (!args) SWIG_fail; | |
29504 | swig_obj[0] = args; | |
29505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29506 | if (!SWIG_IsOK(res1)) { | |
29507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29508 | } | |
29509 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29510 | { | |
29511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29512 | result = (int)(arg1)->GetMaxPage(); | |
29513 | wxPyEndAllowThreads(__tstate); | |
29514 | if (PyErr_Occurred()) SWIG_fail; | |
29515 | } | |
29516 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29517 | return resultobj; | |
29518 | fail: | |
29519 | return NULL; | |
d55e5bfc RD |
29520 | } |
29521 | ||
29522 | ||
1bd55598 RD |
29523 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29524 | PyObject *resultobj = 0; | |
29525 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29526 | int result; | |
29527 | void *argp1 = 0 ; | |
29528 | int res1 = 0 ; | |
29529 | PyObject *swig_obj[1] ; | |
29530 | ||
29531 | if (!args) SWIG_fail; | |
29532 | swig_obj[0] = args; | |
29533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29534 | if (!SWIG_IsOK(res1)) { | |
29535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29536 | } | |
29537 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29538 | { | |
29539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29540 | result = (int)(arg1)->GetMinPage(); | |
29541 | wxPyEndAllowThreads(__tstate); | |
29542 | if (PyErr_Occurred()) SWIG_fail; | |
29543 | } | |
29544 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29545 | return resultobj; | |
29546 | fail: | |
29547 | return NULL; | |
d55e5bfc RD |
29548 | } |
29549 | ||
29550 | ||
1bd55598 RD |
29551 | SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29552 | PyObject *resultobj = 0; | |
29553 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29554 | bool result; | |
29555 | void *argp1 = 0 ; | |
29556 | int res1 = 0 ; | |
29557 | PyObject *swig_obj[1] ; | |
29558 | ||
29559 | if (!args) SWIG_fail; | |
29560 | swig_obj[0] = args; | |
29561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29562 | if (!SWIG_IsOK(res1)) { | |
29563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Ok" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29564 | } | |
29565 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29566 | { | |
29567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29568 | result = (bool)(arg1)->Ok(); | |
29569 | wxPyEndAllowThreads(__tstate); | |
29570 | if (PyErr_Occurred()) SWIG_fail; | |
29571 | } | |
29572 | { | |
29573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29574 | } | |
29575 | return resultobj; | |
29576 | fail: | |
29577 | return NULL; | |
29578 | } | |
29579 | ||
29580 | ||
29581 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29582 | PyObject *resultobj = 0; | |
29583 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29584 | bool arg2 ; | |
29585 | void *argp1 = 0 ; | |
29586 | int res1 = 0 ; | |
29587 | bool val2 ; | |
29588 | int ecode2 = 0 ; | |
29589 | PyObject * obj0 = 0 ; | |
29590 | PyObject * obj1 = 0 ; | |
29591 | char * kwnames[] = { | |
29592 | (char *) "self",(char *) "ok", NULL | |
29593 | }; | |
29594 | ||
29595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
29596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29597 | if (!SWIG_IsOK(res1)) { | |
29598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29599 | } | |
29600 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29601 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29602 | if (!SWIG_IsOK(ecode2)) { | |
29603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
29604 | } | |
29605 | arg2 = static_cast< bool >(val2); | |
29606 | { | |
29607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29608 | (arg1)->SetOk(arg2); | |
29609 | wxPyEndAllowThreads(__tstate); | |
29610 | if (PyErr_Occurred()) SWIG_fail; | |
29611 | } | |
29612 | resultobj = SWIG_Py_Void(); | |
29613 | return resultobj; | |
29614 | fail: | |
29615 | return NULL; | |
29616 | } | |
29617 | ||
29618 | ||
29619 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29620 | PyObject *resultobj = 0; | |
29621 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29622 | bool arg2 ; | |
29623 | bool result; | |
29624 | void *argp1 = 0 ; | |
29625 | int res1 = 0 ; | |
29626 | bool val2 ; | |
29627 | int ecode2 = 0 ; | |
29628 | PyObject * obj0 = 0 ; | |
29629 | PyObject * obj1 = 0 ; | |
29630 | char * kwnames[] = { | |
29631 | (char *) "self",(char *) "interactive", NULL | |
29632 | }; | |
29633 | ||
29634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
29635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29636 | if (!SWIG_IsOK(res1)) { | |
29637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29638 | } | |
29639 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29640 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29641 | if (!SWIG_IsOK(ecode2)) { | |
29642 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
29643 | } | |
29644 | arg2 = static_cast< bool >(val2); | |
29645 | { | |
29646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29647 | result = (bool)(arg1)->Print(arg2); | |
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; | |
d55e5bfc RD |
29657 | } |
29658 | ||
29659 | ||
1bd55598 RD |
29660 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29661 | PyObject *resultobj = 0; | |
29662 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29663 | void *argp1 = 0 ; | |
29664 | int res1 = 0 ; | |
29665 | PyObject *swig_obj[1] ; | |
29666 | ||
29667 | if (!args) SWIG_fail; | |
29668 | swig_obj[0] = args; | |
29669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29670 | if (!SWIG_IsOK(res1)) { | |
29671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29672 | } | |
29673 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29674 | { | |
29675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29676 | (arg1)->DetermineScaling(); | |
29677 | wxPyEndAllowThreads(__tstate); | |
29678 | if (PyErr_Occurred()) SWIG_fail; | |
29679 | } | |
29680 | resultobj = SWIG_Py_Void(); | |
29681 | return resultobj; | |
29682 | fail: | |
29683 | return NULL; | |
d55e5bfc RD |
29684 | } |
29685 | ||
29686 | ||
1bd55598 RD |
29687 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29688 | PyObject *obj; | |
29689 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29690 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
29691 | return SWIG_Py_Void(); | |
d55e5bfc RD |
29692 | } |
29693 | ||
1bd55598 RD |
29694 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29695 | return SWIG_Python_InitShadowInstance(args); | |
29696 | } | |
d55e5bfc | 29697 | |
1bd55598 RD |
29698 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29699 | PyObject *resultobj = 0; | |
29700 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29701 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29702 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29703 | wxPyPrintPreview *result = 0 ; | |
29704 | int res1 = 0 ; | |
29705 | int res2 = 0 ; | |
29706 | void *argp3 = 0 ; | |
29707 | int res3 = 0 ; | |
29708 | ||
29709 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29710 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29711 | if (!SWIG_IsOK(res1)) { | |
29712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29713 | } | |
29714 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29715 | if (!SWIG_IsOK(res2)) { | |
29716 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29717 | } | |
29718 | if (swig_obj[2]) { | |
29719 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29720 | if (!SWIG_IsOK(res3)) { | |
29721 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
29722 | } | |
29723 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); | |
29724 | } | |
29725 | { | |
29726 | if (!wxPyCheckForApp()) SWIG_fail; | |
29727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29728 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
29729 | wxPyEndAllowThreads(__tstate); | |
29730 | if (PyErr_Occurred()) SWIG_fail; | |
29731 | } | |
29732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29733 | return resultobj; | |
29734 | fail: | |
29735 | return NULL; | |
29736 | } | |
29737 | ||
29738 | ||
29739 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29740 | PyObject *resultobj = 0; | |
29741 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29742 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29743 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29744 | wxPyPrintPreview *result = 0 ; | |
29745 | int res1 = 0 ; | |
29746 | int res2 = 0 ; | |
29747 | void *argp3 = 0 ; | |
29748 | int res3 = 0 ; | |
29749 | ||
29750 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29751 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29752 | if (!SWIG_IsOK(res1)) { | |
29753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29754 | } | |
29755 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29756 | if (!SWIG_IsOK(res2)) { | |
29757 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29758 | } | |
29759 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29760 | if (!SWIG_IsOK(res3)) { | |
29761 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29762 | } | |
29763 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29764 | { | |
29765 | if (!wxPyCheckForApp()) SWIG_fail; | |
29766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29767 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
29768 | wxPyEndAllowThreads(__tstate); | |
29769 | if (PyErr_Occurred()) SWIG_fail; | |
29770 | } | |
29771 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29772 | return resultobj; | |
29773 | fail: | |
29774 | return NULL; | |
d55e5bfc RD |
29775 | } |
29776 | ||
29777 | ||
1bd55598 RD |
29778 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
29779 | int argc; | |
29780 | PyObject *argv[4]; | |
29781 | ||
29782 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
29783 | --argc; | |
29784 | if ((argc >= 2) && (argc <= 3)) { | |
29785 | int _v = 0; | |
29786 | if (argc > 2) { | |
29787 | { | |
29788 | void *vptr = 0; | |
29789 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29790 | _v = SWIG_CheckState(res); | |
29791 | } | |
29792 | if (!_v) goto check_1; | |
36ed4f51 | 29793 | } |
1bd55598 RD |
29794 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); |
29795 | } | |
29796 | check_1: | |
29797 | ||
29798 | if (argc == 3) { | |
29799 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
29800 | } | |
29801 | ||
29802 | fail: | |
29803 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
29808 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29809 | PyObject *resultobj = 0; | |
29810 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
29811 | PyObject *arg2 = (PyObject *) 0 ; | |
29812 | PyObject *arg3 = (PyObject *) 0 ; | |
29813 | void *argp1 = 0 ; | |
29814 | int res1 = 0 ; | |
29815 | PyObject * obj0 = 0 ; | |
29816 | PyObject * obj1 = 0 ; | |
29817 | PyObject * obj2 = 0 ; | |
29818 | char * kwnames[] = { | |
29819 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29820 | }; | |
29821 | ||
29822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
29824 | if (!SWIG_IsOK(res1)) { | |
29825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
29826 | } | |
29827 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
29828 | arg2 = obj1; | |
29829 | arg3 = obj2; | |
29830 | { | |
29831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29832 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29833 | wxPyEndAllowThreads(__tstate); | |
29834 | if (PyErr_Occurred()) SWIG_fail; | |
29835 | } | |
29836 | resultobj = SWIG_Py_Void(); | |
29837 | return resultobj; | |
29838 | fail: | |
29839 | return NULL; | |
29840 | } | |
29841 | ||
29842 | ||
29843 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29844 | PyObject *obj; | |
29845 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29846 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
29847 | return SWIG_Py_Void(); | |
29848 | } | |
29849 | ||
29850 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29851 | return SWIG_Python_InitShadowInstance(args); | |
29852 | } | |
29853 | ||
29854 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj = 0; | |
29856 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29857 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29858 | wxString *arg3 = 0 ; | |
29859 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29860 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29861 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29862 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29863 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
29864 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
29865 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29866 | wxPyPreviewFrame *result = 0 ; | |
29867 | void *argp1 = 0 ; | |
29868 | int res1 = 0 ; | |
29869 | void *argp2 = 0 ; | |
29870 | int res2 = 0 ; | |
29871 | bool temp3 = false ; | |
29872 | wxPoint temp4 ; | |
29873 | wxSize temp5 ; | |
29874 | long val6 ; | |
29875 | int ecode6 = 0 ; | |
29876 | bool temp7 = false ; | |
29877 | PyObject * obj0 = 0 ; | |
29878 | PyObject * obj1 = 0 ; | |
29879 | PyObject * obj2 = 0 ; | |
29880 | PyObject * obj3 = 0 ; | |
29881 | PyObject * obj4 = 0 ; | |
29882 | PyObject * obj5 = 0 ; | |
29883 | PyObject * obj6 = 0 ; | |
29884 | char * kwnames[] = { | |
29885 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29886 | }; | |
29887 | ||
29888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29890 | if (!SWIG_IsOK(res1)) { | |
29891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29892 | } | |
29893 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29894 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29895 | if (!SWIG_IsOK(res2)) { | |
29896 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29897 | } | |
29898 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29899 | { | |
29900 | arg3 = wxString_in_helper(obj2); | |
29901 | if (arg3 == NULL) SWIG_fail; | |
29902 | temp3 = true; | |
29903 | } | |
29904 | if (obj3) { | |
36ed4f51 | 29905 | { |
1bd55598 RD |
29906 | arg4 = &temp4; |
29907 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36ed4f51 | 29908 | } |
1bd55598 RD |
29909 | } |
29910 | if (obj4) { | |
d55e5bfc | 29911 | { |
1bd55598 RD |
29912 | arg5 = &temp5; |
29913 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
36ed4f51 | 29914 | } |
1bd55598 RD |
29915 | } |
29916 | if (obj5) { | |
29917 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29918 | if (!SWIG_IsOK(ecode6)) { | |
29919 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
29920 | } | |
29921 | arg6 = static_cast< long >(val6); | |
29922 | } | |
29923 | if (obj6) { | |
36ed4f51 | 29924 | { |
1bd55598 RD |
29925 | arg7 = wxString_in_helper(obj6); |
29926 | if (arg7 == NULL) SWIG_fail; | |
29927 | temp7 = true; | |
36ed4f51 | 29928 | } |
1bd55598 RD |
29929 | } |
29930 | { | |
29931 | if (!wxPyCheckForApp()) SWIG_fail; | |
29932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29933 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29934 | wxPyEndAllowThreads(__tstate); | |
29935 | if (PyErr_Occurred()) SWIG_fail; | |
29936 | } | |
29937 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
29938 | { | |
29939 | if (temp3) | |
29940 | delete arg3; | |
29941 | } | |
29942 | { | |
29943 | if (temp7) | |
29944 | delete arg7; | |
29945 | } | |
29946 | return resultobj; | |
29947 | fail: | |
29948 | { | |
29949 | if (temp3) | |
29950 | delete arg3; | |
29951 | } | |
29952 | { | |
29953 | if (temp7) | |
29954 | delete arg7; | |
29955 | } | |
29956 | return NULL; | |
29957 | } | |
29958 | ||
29959 | ||
29960 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29961 | PyObject *resultobj = 0; | |
29962 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29963 | PyObject *arg2 = (PyObject *) 0 ; | |
29964 | PyObject *arg3 = (PyObject *) 0 ; | |
29965 | void *argp1 = 0 ; | |
29966 | int res1 = 0 ; | |
29967 | PyObject * obj0 = 0 ; | |
29968 | PyObject * obj1 = 0 ; | |
29969 | PyObject * obj2 = 0 ; | |
29970 | char * kwnames[] = { | |
29971 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29972 | }; | |
29973 | ||
29974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
29976 | if (!SWIG_IsOK(res1)) { | |
29977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
29978 | } | |
29979 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
29980 | arg2 = obj1; | |
29981 | arg3 = obj2; | |
29982 | { | |
29983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29984 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29985 | wxPyEndAllowThreads(__tstate); | |
29986 | if (PyErr_Occurred()) SWIG_fail; | |
29987 | } | |
29988 | resultobj = SWIG_Py_Void(); | |
29989 | return resultobj; | |
29990 | fail: | |
29991 | return NULL; | |
29992 | } | |
29993 | ||
29994 | ||
29995 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29996 | PyObject *resultobj = 0; | |
29997 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
29998 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29999 | void *argp1 = 0 ; | |
30000 | int res1 = 0 ; | |
30001 | void *argp2 = 0 ; | |
30002 | int res2 = 0 ; | |
30003 | PyObject * obj0 = 0 ; | |
30004 | PyObject * obj1 = 0 ; | |
30005 | char * kwnames[] = { | |
30006 | (char *) "self",(char *) "canvas", NULL | |
30007 | }; | |
30008 | ||
30009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30011 | if (!SWIG_IsOK(res1)) { | |
30012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30013 | } | |
30014 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30015 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30016 | if (!SWIG_IsOK(res2)) { | |
30017 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30018 | } | |
30019 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30020 | { | |
30021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30022 | (arg1)->SetPreviewCanvas(arg2); | |
30023 | wxPyEndAllowThreads(__tstate); | |
30024 | if (PyErr_Occurred()) SWIG_fail; | |
30025 | } | |
30026 | resultobj = SWIG_Py_Void(); | |
30027 | return resultobj; | |
30028 | fail: | |
30029 | return NULL; | |
30030 | } | |
30031 | ||
30032 | ||
30033 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30034 | PyObject *resultobj = 0; | |
30035 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30036 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
30037 | void *argp1 = 0 ; | |
30038 | int res1 = 0 ; | |
30039 | void *argp2 = 0 ; | |
30040 | int res2 = 0 ; | |
30041 | PyObject * obj0 = 0 ; | |
30042 | PyObject * obj1 = 0 ; | |
30043 | char * kwnames[] = { | |
30044 | (char *) "self",(char *) "bar", NULL | |
30045 | }; | |
30046 | ||
30047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
30048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30049 | if (!SWIG_IsOK(res1)) { | |
30050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30051 | } | |
30052 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30053 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30054 | if (!SWIG_IsOK(res2)) { | |
30055 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
30056 | } | |
30057 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
30058 | { | |
30059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30060 | (arg1)->SetControlBar(arg2); | |
30061 | wxPyEndAllowThreads(__tstate); | |
30062 | if (PyErr_Occurred()) SWIG_fail; | |
30063 | } | |
30064 | resultobj = SWIG_Py_Void(); | |
30065 | return resultobj; | |
30066 | fail: | |
30067 | return NULL; | |
d55e5bfc RD |
30068 | } |
30069 | ||
30070 | ||
1bd55598 RD |
30071 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30072 | PyObject *resultobj = 0; | |
30073 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30074 | void *argp1 = 0 ; | |
30075 | int res1 = 0 ; | |
30076 | PyObject *swig_obj[1] ; | |
30077 | ||
30078 | if (!args) SWIG_fail; | |
30079 | swig_obj[0] = args; | |
30080 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30081 | if (!SWIG_IsOK(res1)) { | |
30082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30083 | } | |
30084 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30085 | { | |
30086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30087 | (arg1)->Initialize(); | |
30088 | wxPyEndAllowThreads(__tstate); | |
30089 | if (PyErr_Occurred()) SWIG_fail; | |
30090 | } | |
30091 | resultobj = SWIG_Py_Void(); | |
30092 | return resultobj; | |
30093 | fail: | |
30094 | return NULL; | |
d55e5bfc RD |
30095 | } |
30096 | ||
30097 | ||
1bd55598 RD |
30098 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30099 | PyObject *resultobj = 0; | |
30100 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30101 | void *argp1 = 0 ; | |
30102 | int res1 = 0 ; | |
30103 | PyObject *swig_obj[1] ; | |
30104 | ||
30105 | if (!args) SWIG_fail; | |
30106 | swig_obj[0] = args; | |
30107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30108 | if (!SWIG_IsOK(res1)) { | |
30109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30110 | } | |
30111 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30112 | { | |
30113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30114 | (arg1)->CreateCanvas(); | |
30115 | wxPyEndAllowThreads(__tstate); | |
30116 | if (PyErr_Occurred()) SWIG_fail; | |
30117 | } | |
30118 | resultobj = SWIG_Py_Void(); | |
30119 | return resultobj; | |
30120 | fail: | |
30121 | return NULL; | |
d55e5bfc RD |
30122 | } |
30123 | ||
30124 | ||
1bd55598 RD |
30125 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30126 | PyObject *resultobj = 0; | |
30127 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30128 | void *argp1 = 0 ; | |
30129 | int res1 = 0 ; | |
30130 | PyObject *swig_obj[1] ; | |
30131 | ||
30132 | if (!args) SWIG_fail; | |
30133 | swig_obj[0] = args; | |
30134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30135 | if (!SWIG_IsOK(res1)) { | |
30136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30137 | } | |
30138 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30139 | { | |
30140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30141 | (arg1)->CreateControlBar(); | |
30142 | wxPyEndAllowThreads(__tstate); | |
30143 | if (PyErr_Occurred()) SWIG_fail; | |
30144 | } | |
30145 | resultobj = SWIG_Py_Void(); | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | return NULL; | |
30149 | } | |
30150 | ||
30151 | ||
30152 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30153 | PyObject *obj; | |
30154 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30155 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
30156 | return SWIG_Py_Void(); | |
30157 | } | |
30158 | ||
30159 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30160 | return SWIG_Python_InitShadowInstance(args); | |
30161 | } | |
30162 | ||
30163 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30164 | PyObject *resultobj = 0; | |
30165 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30166 | long arg2 ; | |
30167 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30168 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30169 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30170 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30171 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30172 | long arg6 = (long) 0 ; | |
30173 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
30174 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30175 | wxPyPreviewControlBar *result = 0 ; | |
30176 | void *argp1 = 0 ; | |
30177 | int res1 = 0 ; | |
30178 | long val2 ; | |
30179 | int ecode2 = 0 ; | |
30180 | void *argp3 = 0 ; | |
30181 | int res3 = 0 ; | |
30182 | wxPoint temp4 ; | |
30183 | wxSize temp5 ; | |
30184 | long val6 ; | |
30185 | int ecode6 = 0 ; | |
30186 | bool temp7 = false ; | |
30187 | PyObject * obj0 = 0 ; | |
30188 | PyObject * obj1 = 0 ; | |
30189 | PyObject * obj2 = 0 ; | |
30190 | PyObject * obj3 = 0 ; | |
30191 | PyObject * obj4 = 0 ; | |
30192 | PyObject * obj5 = 0 ; | |
30193 | PyObject * obj6 = 0 ; | |
30194 | char * kwnames[] = { | |
30195 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30196 | }; | |
30197 | ||
30198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30200 | if (!SWIG_IsOK(res1)) { | |
30201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30202 | } | |
30203 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30204 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30205 | if (!SWIG_IsOK(ecode2)) { | |
30206 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
30207 | } | |
30208 | arg2 = static_cast< long >(val2); | |
30209 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30210 | if (!SWIG_IsOK(res3)) { | |
30211 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
30212 | } | |
30213 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
30214 | if (obj3) { | |
d55e5bfc | 30215 | { |
1bd55598 RD |
30216 | arg4 = &temp4; |
30217 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30218 | } |
1bd55598 RD |
30219 | } |
30220 | if (obj4) { | |
d55e5bfc | 30221 | { |
1bd55598 RD |
30222 | arg5 = &temp5; |
30223 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30224 | } |
1bd55598 RD |
30225 | } |
30226 | if (obj5) { | |
30227 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30228 | if (!SWIG_IsOK(ecode6)) { | |
30229 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
30230 | } | |
30231 | arg6 = static_cast< long >(val6); | |
30232 | } | |
30233 | if (obj6) { | |
d55e5bfc | 30234 | { |
1bd55598 RD |
30235 | arg7 = wxString_in_helper(obj6); |
30236 | if (arg7 == NULL) SWIG_fail; | |
30237 | temp7 = true; | |
d55e5bfc | 30238 | } |
1bd55598 RD |
30239 | } |
30240 | { | |
30241 | if (!wxPyCheckForApp()) SWIG_fail; | |
30242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30243 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30244 | wxPyEndAllowThreads(__tstate); | |
30245 | if (PyErr_Occurred()) SWIG_fail; | |
30246 | } | |
30247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
30248 | { | |
30249 | if (temp7) | |
30250 | delete arg7; | |
30251 | } | |
30252 | return resultobj; | |
30253 | fail: | |
30254 | { | |
30255 | if (temp7) | |
30256 | delete arg7; | |
30257 | } | |
30258 | return NULL; | |
30259 | } | |
30260 | ||
30261 | ||
30262 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30263 | PyObject *resultobj = 0; | |
30264 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30265 | PyObject *arg2 = (PyObject *) 0 ; | |
30266 | PyObject *arg3 = (PyObject *) 0 ; | |
30267 | void *argp1 = 0 ; | |
30268 | int res1 = 0 ; | |
30269 | PyObject * obj0 = 0 ; | |
30270 | PyObject * obj1 = 0 ; | |
30271 | PyObject * obj2 = 0 ; | |
30272 | char * kwnames[] = { | |
30273 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30274 | }; | |
30275 | ||
30276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30278 | if (!SWIG_IsOK(res1)) { | |
30279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30280 | } | |
30281 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30282 | arg2 = obj1; | |
30283 | arg3 = obj2; | |
30284 | { | |
30285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30286 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
30290 | resultobj = SWIG_Py_Void(); | |
30291 | return resultobj; | |
30292 | fail: | |
30293 | return NULL; | |
30294 | } | |
30295 | ||
30296 | ||
30297 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30298 | PyObject *resultobj = 0; | |
30299 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30300 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
30301 | void *argp1 = 0 ; | |
30302 | int res1 = 0 ; | |
30303 | void *argp2 = 0 ; | |
30304 | int res2 = 0 ; | |
30305 | PyObject * obj0 = 0 ; | |
30306 | PyObject * obj1 = 0 ; | |
30307 | char * kwnames[] = { | |
30308 | (char *) "self",(char *) "preview", NULL | |
30309 | }; | |
30310 | ||
30311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
30312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30313 | if (!SWIG_IsOK(res1)) { | |
30314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30315 | } | |
30316 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30317 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30318 | if (!SWIG_IsOK(res2)) { | |
30319 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
30320 | } | |
30321 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
30322 | { | |
30323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30324 | (arg1)->SetPrintPreview(arg2); | |
30325 | wxPyEndAllowThreads(__tstate); | |
30326 | if (PyErr_Occurred()) SWIG_fail; | |
30327 | } | |
30328 | resultobj = SWIG_Py_Void(); | |
30329 | return resultobj; | |
30330 | fail: | |
30331 | return NULL; | |
d55e5bfc RD |
30332 | } |
30333 | ||
30334 | ||
1bd55598 RD |
30335 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30336 | PyObject *resultobj = 0; | |
30337 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30338 | void *argp1 = 0 ; | |
30339 | int res1 = 0 ; | |
30340 | PyObject *swig_obj[1] ; | |
30341 | ||
30342 | if (!args) SWIG_fail; | |
30343 | swig_obj[0] = args; | |
30344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30345 | if (!SWIG_IsOK(res1)) { | |
30346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30347 | } | |
30348 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30349 | { | |
30350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30351 | (arg1)->CreateButtons(); | |
30352 | wxPyEndAllowThreads(__tstate); | |
30353 | if (PyErr_Occurred()) SWIG_fail; | |
30354 | } | |
30355 | resultobj = SWIG_Py_Void(); | |
30356 | return resultobj; | |
30357 | fail: | |
30358 | return NULL; | |
30359 | } | |
30360 | ||
30361 | ||
30362 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30363 | PyObject *resultobj = 0; | |
30364 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30365 | int arg2 ; | |
30366 | void *argp1 = 0 ; | |
30367 | int res1 = 0 ; | |
30368 | int val2 ; | |
30369 | int ecode2 = 0 ; | |
30370 | PyObject * obj0 = 0 ; | |
30371 | PyObject * obj1 = 0 ; | |
30372 | char * kwnames[] = { | |
30373 | (char *) "self",(char *) "zoom", NULL | |
30374 | }; | |
30375 | ||
30376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
30377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30378 | if (!SWIG_IsOK(res1)) { | |
30379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30380 | } | |
30381 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30383 | if (!SWIG_IsOK(ecode2)) { | |
30384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
30385 | } | |
30386 | arg2 = static_cast< int >(val2); | |
30387 | { | |
30388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30389 | (arg1)->SetZoomControl(arg2); | |
30390 | wxPyEndAllowThreads(__tstate); | |
30391 | if (PyErr_Occurred()) SWIG_fail; | |
30392 | } | |
30393 | resultobj = SWIG_Py_Void(); | |
30394 | return resultobj; | |
30395 | fail: | |
30396 | return NULL; | |
d55e5bfc RD |
30397 | } |
30398 | ||
30399 | ||
1bd55598 RD |
30400 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30401 | PyObject *obj; | |
30402 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30403 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
30404 | return SWIG_Py_Void(); | |
d55e5bfc RD |
30405 | } |
30406 | ||
1bd55598 RD |
30407 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30408 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
30409 | } |
30410 | ||
d55e5bfc | 30411 | static PyMethodDef SwigMethods[] = { |
36ed4f51 | 30412 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30413 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
36ed4f51 | 30414 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30415 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
36ed4f51 RD |
30416 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30417 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30418 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30419 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30420 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30421 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30422 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30423 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30424 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30425 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30426 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30427 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
36ed4f51 | 30428 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30429 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
36ed4f51 | 30430 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30431 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
30432 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
36ed4f51 RD |
30433 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
30434 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
1bd55598 | 30435 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
36ed4f51 RD |
30436 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
30437 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30438 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
36ed4f51 | 30439 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30440 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction)_wrap_ScrolledWindow_GetTargetRect, METH_O, NULL}, |
36ed4f51 RD |
30441 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
30442 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30443 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30444 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30445 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30446 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
36ed4f51 | 30447 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30448 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
2131d850 | 30449 | { (char *)"TopLevelWindow_IsAlwaysMaximized", (PyCFunction)_wrap_TopLevelWindow_IsAlwaysMaximized, METH_O, NULL}, |
1bd55598 RD |
30450 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, |
30451 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
36ed4f51 RD |
30452 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
30453 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30454 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30455 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
36ed4f51 | 30456 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30457 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
36ed4f51 RD |
30458 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
30459 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30460 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
36ed4f51 | 30461 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30462 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 30463 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
30464 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
30465 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30466 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
36ed4f51 | 30467 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30468 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
36ed4f51 | 30469 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30470 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
36ed4f51 RD |
30471 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
30472 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30473 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
36ed4f51 RD |
30474 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30475 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30476 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30477 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30478 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30479 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30480 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
36ed4f51 | 30481 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30482 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
36ed4f51 RD |
30483 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30484 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30485 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30486 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30487 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30488 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30489 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30490 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
36ed4f51 RD |
30491 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30492 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30493 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 30494 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30495 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 30496 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30497 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
36ed4f51 RD |
30498 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
30499 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f | 30500 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30501 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
30502 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
36ed4f51 RD |
30503 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
30504 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30505 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30506 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30507 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30508 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
36ed4f51 RD |
30509 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30510 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30511 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30512 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30513 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30514 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
36ed4f51 | 30515 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30516 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30517 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30518 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
30519 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
30520 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
36ed4f51 | 30521 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30522 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30523 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30524 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
36ed4f51 RD |
30525 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30526 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30527 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
36ed4f51 RD |
30528 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
30529 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30530 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30531 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30532 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30533 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30534 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30535 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30536 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
30537 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
36ed4f51 RD |
30538 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30539 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30540 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30541 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30542 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
36ed4f51 | 30543 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30544 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
30545 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
36ed4f51 | 30546 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30547 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
36ed4f51 RD |
30548 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30549 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30550 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30551 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30552 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30553 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
30554 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
36ed4f51 RD |
30555 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30556 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30557 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
30558 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
36ed4f51 | 30559 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30560 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
36ed4f51 | 30561 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30562 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
36ed4f51 | 30563 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30564 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
36ed4f51 | 30565 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30566 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
36ed4f51 | 30567 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30568 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
36ed4f51 RD |
30569 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30570 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30571 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30572 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30573 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30574 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
30575 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
30576 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
30577 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
36ed4f51 | 30578 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30579 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30580 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30581 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30582 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30583 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30584 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30585 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30586 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30587 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30588 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30589 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
36ed4f51 | 30590 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30591 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
36ed4f51 RD |
30592 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30593 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30594 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
30595 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
36ed4f51 RD |
30596 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30597 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30598 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
30599 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
36ed4f51 | 30600 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30601 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
36ed4f51 | 30602 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30603 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30604 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30605 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30606 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
36ed4f51 | 30607 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30608 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
36ed4f51 | 30609 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30610 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
36ed4f51 | 30611 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30612 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30613 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30614 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30615 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
36ed4f51 | 30616 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30617 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
36ed4f51 | 30618 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30619 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
36ed4f51 | 30620 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30621 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
36ed4f51 | 30622 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30623 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
36ed4f51 | 30624 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30625 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30626 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30627 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30628 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
36ed4f51 | 30629 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30630 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
36ed4f51 | 30631 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30632 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30633 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30634 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
36ed4f51 | 30635 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30636 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
30637 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
36ed4f51 RD |
30638 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
30639 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30640 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30641 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
30642 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
30643 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
30644 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
36ed4f51 RD |
30645 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
30646 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30647 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30648 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30649 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30650 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30651 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
36ed4f51 | 30652 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30653 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30654 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30655 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
36ed4f51 | 30656 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30657 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30658 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30659 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30660 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
36ed4f51 | 30661 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30662 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30663 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30664 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30665 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30666 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30667 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30668 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
30669 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
30670 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30671 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30672 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30673 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
30674 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
30675 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
30676 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
7993762b | 30677 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30678 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
30679 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
30680 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30681 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 30682 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30683 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30684 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30685 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
36ed4f51 RD |
30686 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30687 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30688 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
30689 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
30690 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
36ed4f51 RD |
30691 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30692 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30693 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
30694 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
36ed4f51 | 30695 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30696 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
30697 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
36ed4f51 | 30698 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30699 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
36ed4f51 RD |
30700 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
30701 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30702 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30703 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30704 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
30705 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
36ed4f51 RD |
30706 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
30707 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30708 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1c71765a RD |
30709 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
30710 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 30711 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30712 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30713 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30714 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
36ed4f51 RD |
30715 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30716 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 30717 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30718 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 30719 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 30720 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
1bd55598 RD |
30721 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
30722 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
30723 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
36ed4f51 | 30724 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30725 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
30726 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
30727 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
36ed4f51 | 30728 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30729 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
36ed4f51 RD |
30730 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
30731 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30732 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30733 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30734 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
30735 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
30736 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
30737 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
30738 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
30739 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
36ed4f51 RD |
30740 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
30741 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30742 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30743 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30744 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30745 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30746 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30747 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
36ed4f51 | 30748 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30749 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 30750 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 30751 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30752 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
30753 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
36ed4f51 RD |
30754 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
30755 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30756 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30757 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30758 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30759 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30760 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30761 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30762 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30763 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 30764 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30765 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
30766 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
30767 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
30768 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
30769 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
1bd55598 RD |
30770 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, |
30771 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
30772 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
36ed4f51 | 30773 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30774 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30775 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30776 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30777 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
36ed4f51 | 30778 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30779 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30780 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30781 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
30782 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
36ed4f51 RD |
30783 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
30784 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30785 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30786 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30787 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
36ed4f51 RD |
30788 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
30789 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30790 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30791 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30792 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 RD |
30793 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
30794 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, | |
30795 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
36ed4f51 | 30796 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30797 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
30798 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
30799 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
30800 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
30801 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
30802 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
36ed4f51 RD |
30803 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
30804 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30805 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30806 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30807 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30808 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30809 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30810 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30811 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30812 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
36ed4f51 | 30813 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30814 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 30815 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
30816 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30817 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30818 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
30819 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
30820 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30821 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
36ed4f51 | 30822 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30823 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30824 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30825 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
30826 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
30827 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
30828 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
36ed4f51 RD |
30829 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
30830 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30831 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30832 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30833 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30834 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30835 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
30836 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
30837 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
30838 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
36ed4f51 RD |
30839 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
30840 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30841 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30842 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30843 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30844 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30845 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
36ed4f51 | 30846 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30847 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
36ed4f51 RD |
30848 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
30849 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30850 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30851 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30852 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
36ed4f51 | 30853 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
30854 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
30855 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
30856 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
30857 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
30858 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
30859 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
30860 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction)_wrap_MDIParentFrame_GetToolBar, METH_O, NULL}, | |
36ed4f51 RD |
30861 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
30862 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30863 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30864 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30865 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
36ed4f51 | 30866 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30867 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
36ed4f51 | 30868 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30869 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30870 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30871 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30872 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30873 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 30874 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30875 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30876 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30877 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30878 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30879 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
30880 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30881 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30882 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30883 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30884 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
30885 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
30886 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
30887 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
30888 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
30889 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
30890 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 30891 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30892 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30893 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30894 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
36ed4f51 RD |
30895 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30896 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30897 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
30898 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30899 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30900 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30901 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30902 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
30903 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
30904 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
30905 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
30906 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
30907 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
30908 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 30909 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30910 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30911 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30912 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
36ed4f51 RD |
30913 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30914 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 30915 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 RD |
30916 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30917 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30918 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30919 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30920 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
30921 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
30922 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
30923 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
30924 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
30925 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
30926 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
36ed4f51 | 30927 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30928 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30929 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
1bd55598 RD |
30930 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
30931 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
30932 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
30933 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
30934 | { (char *)"PrintData_Ok", (PyCFunction)_wrap_PrintData_Ok, METH_O, NULL}, | |
30935 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, | |
30936 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
30937 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
30938 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
30939 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
30940 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
30941 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
30942 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
36ed4f51 RD |
30943 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
30944 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30945 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30946 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30947 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30948 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30949 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30950 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30951 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30952 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30953 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 30954 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
36ed4f51 | 30955 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 30956 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
7fbf8399 | 30957 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 30958 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30959 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30960 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
1bd55598 | 30961 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
36ed4f51 RD |
30962 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
30963 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30964 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30965 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30966 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30967 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
30968 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
30969 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
30970 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
30971 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
30972 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
30973 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
30974 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
30975 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
30976 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
30977 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
30978 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
30979 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
30980 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
30981 | { (char *)"PageSetupDialogData_Ok", (PyCFunction)_wrap_PageSetupDialogData_Ok, METH_O, NULL}, | |
36ed4f51 RD |
30982 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30983 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30984 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30985 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30986 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30987 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30988 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30989 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30990 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
30991 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
30992 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
36ed4f51 | 30993 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 30994 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 30995 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf | 30996 | { (char *)"delete_PageSetupDialog", (PyCFunction)_wrap_delete_PageSetupDialog, METH_O, NULL}, |
1bd55598 RD |
30997 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
30998 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
30999 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
36ed4f51 | 31000 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31001 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31002 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
1bd55598 RD |
31003 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
31004 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
31005 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
31006 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
31007 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
31008 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
31009 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
31010 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
31011 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
31012 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
36ed4f51 RD |
31013 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31014 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31015 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31016 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31017 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31018 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31019 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31020 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31021 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31022 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31023 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31024 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31025 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31026 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
31027 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
31028 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
31029 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
31030 | { (char *)"PrintDialogData_Ok", (PyCFunction)_wrap_PrintDialogData_Ok, METH_O, NULL}, | |
31031 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, | |
36ed4f51 RD |
31032 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31033 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31034 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31035 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf | 31036 | { (char *)"delete_PrintDialog", (PyCFunction)_wrap_delete_PrintDialog, METH_O, NULL}, |
1bd55598 RD |
31037 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
31038 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
31039 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
31040 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
36ed4f51 | 31041 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31042 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31043 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31044 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
36ed4f51 RD |
31045 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31046 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31047 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31048 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31049 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31050 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
31051 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
31052 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
36ed4f51 | 31053 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31054 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31055 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31056 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
36ed4f51 | 31057 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31058 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
31059 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
36ed4f51 RD |
31060 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31061 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31062 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
36ed4f51 | 31063 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31064 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
36ed4f51 | 31065 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31066 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
36ed4f51 | 31067 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31068 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
31069 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, | |
36ed4f51 | 31070 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
7f7aa166 | 31071 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31072 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
31073 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
31074 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
31075 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
7f7aa166 | 31076 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31077 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
36ed4f51 | 31078 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31079 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31080 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
31081 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
1bd55598 | 31082 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31083 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31084 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
31085 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
31086 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
31087 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
36ed4f51 | 31088 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31089 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31090 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31091 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
36ed4f51 | 31092 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31093 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
31094 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
31095 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
31096 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
31097 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
31098 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
36ed4f51 | 31099 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31100 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
36ed4f51 | 31101 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
1bd55598 | 31102 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
36ed4f51 | 31103 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 | 31104 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
36ed4f51 | 31105 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31106 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
31107 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
36ed4f51 RD |
31108 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31109 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31110 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
31111 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
36ed4f51 RD |
31112 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31113 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31114 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31115 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31116 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
36ed4f51 | 31117 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
1bd55598 RD |
31118 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
31119 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
31120 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
31121 | { (char *)"PrintPreview_Ok", (PyCFunction)_wrap_PrintPreview_Ok, METH_O, NULL}, | |
36ed4f51 RD |
31122 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31123 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31124 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
36ed4f51 | 31125 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31126 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31127 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
31128 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 31129 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31130 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31131 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31132 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31133 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31134 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 RD |
31135 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
31136 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
31137 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
36ed4f51 | 31138 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31139 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
36ed4f51 RD |
31140 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31141 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31142 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1bd55598 | 31143 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
7f7aa166 | 31144 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 | 31145 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
1bd55598 | 31146 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c370783e | 31147 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
31148 | }; |
31149 | ||
31150 | ||
31151 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31152 | ||
31153 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
31154 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31155 | } | |
31156 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31157 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31158 | } | |
31159 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31160 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31161 | } | |
31162 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31163 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31164 | } | |
31165 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31166 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31167 | } | |
31168 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31169 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31170 | } | |
31171 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31172 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31173 | } | |
31174 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
31175 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31176 | } | |
31177 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31178 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31179 | } | |
31180 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31181 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31182 | } | |
31183 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
31184 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31185 | } | |
d55e5bfc RD |
31186 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
31187 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31188 | } | |
2131d850 RD |
31189 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
31190 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31191 | } | |
d55e5bfc RD |
31192 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
31193 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31194 | } | |
31195 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31196 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31197 | } | |
31198 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31199 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31200 | } | |
31201 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31202 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31203 | } | |
31204 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31205 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31206 | } | |
31207 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31208 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31209 | } | |
31210 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31211 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31212 | } | |
31213 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31214 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31215 | } | |
31216 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31217 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31218 | } | |
53aa7709 RD |
31219 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
31220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
31221 | } | |
2131d850 RD |
31222 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
31223 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
31224 | } | |
d55e5bfc RD |
31225 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
31226 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31227 | } | |
31228 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31229 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31230 | } | |
31231 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31232 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31233 | } | |
31234 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31235 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31236 | } | |
31237 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31238 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31239 | } | |
31240 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31241 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31242 | } | |
31243 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31244 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31245 | } | |
31246 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31247 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31248 | } | |
31249 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31250 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31251 | } | |
31252 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31253 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31254 | } | |
31255 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
31256 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
31257 | } | |
31258 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
31259 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31260 | } | |
31261 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31262 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31263 | } | |
31264 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31265 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31266 | } | |
31267 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31268 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31269 | } | |
31270 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31271 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31272 | } | |
31273 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31274 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31275 | } | |
31276 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31277 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31278 | } | |
31279 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31280 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31281 | } | |
31282 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
31283 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31284 | } | |
31285 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
31286 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31287 | } | |
070c48b4 RD |
31288 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
31289 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31290 | } | |
d55e5bfc RD |
31291 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
31292 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31293 | } | |
31294 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
31295 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31296 | } | |
31297 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
31298 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31299 | } | |
31300 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31301 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31302 | } | |
31303 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31304 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31305 | } | |
31306 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31307 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31308 | } | |
31309 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31310 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31311 | } | |
070c48b4 RD |
31312 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
31313 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31314 | } | |
d55e5bfc RD |
31315 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
31316 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31317 | } | |
31318 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31319 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31320 | } | |
31321 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31322 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31323 | } | |
31324 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
31325 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31326 | } | |
31327 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
31328 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31329 | } | |
31330 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
31331 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31332 | } | |
31333 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
31334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31335 | } | |
31336 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
31337 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
31338 | } | |
31339 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
31340 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
31341 | } | |
31342 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31343 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31344 | } | |
31345 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
31346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
31347 | } | |
31348 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
31349 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31350 | } | |
31351 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
31352 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
31353 | } | |
31354 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
31355 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31356 | } | |
31357 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
31358 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
31359 | } | |
31360 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
31361 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
31362 | } | |
31363 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
31364 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
31365 | } | |
31366 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31367 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31368 | } | |
31369 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31370 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31371 | } | |
31372 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
31373 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
31374 | } | |
31375 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
31376 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
31377 | } | |
31378 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31379 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31380 | } | |
31381 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31382 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31383 | } | |
31384 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31385 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31386 | } | |
31387 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31388 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31389 | } | |
31390 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
31391 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31392 | } | |
31393 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31394 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31395 | } | |
31396 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31397 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31398 | } | |
31399 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
31400 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
31401 | } | |
31402 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
31403 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31404 | } | |
31405 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
31406 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31407 | } | |
31408 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
31409 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31410 | } | |
31411 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31412 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31413 | } | |
31414 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31415 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31416 | } | |
5e483524 RD |
31417 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
31418 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31419 | } |
31420 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
31421 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31422 | } | |
d55e5bfc RD |
31423 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
31424 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31425 | } | |
31426 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
31427 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31428 | } | |
31429 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
31430 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31431 | } | |
070c48b4 RD |
31432 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
31433 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31434 | } | |
d55e5bfc RD |
31435 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
31436 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31437 | } | |
31438 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
31439 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31440 | } | |
31441 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
31442 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
31443 | } | |
31444 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
31445 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
31446 | } | |
31447 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
31448 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
31449 | } | |
31450 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
31451 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
31452 | } | |
31453 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
31454 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31455 | } | |
31456 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
31457 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
31458 | } | |
31459 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
31460 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
31461 | } | |
31462 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
31463 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
31464 | } | |
31465 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31466 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31467 | } | |
31468 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
31469 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31470 | } | |
31471 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
31472 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31473 | } | |
31474 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
31475 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31476 | } | |
31477 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31478 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31479 | } | |
31480 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31481 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31482 | } | |
31483 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31484 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31485 | } | |
31486 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31487 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31488 | } | |
31489 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31490 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31491 | } | |
31492 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31493 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31494 | } | |
31495 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31496 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31497 | } | |
31498 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31499 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31500 | } | |
31501 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31502 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31503 | } | |
31504 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
31505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31506 | } | |
31507 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31508 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31509 | } | |
31510 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
31511 | return (void *)((wxObject *) ((wxFontData *) x)); | |
31512 | } | |
31513 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
31514 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
31515 | } | |
31516 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31517 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31518 | } | |
31519 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31520 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31521 | } | |
31522 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31523 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31524 | } | |
31525 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
31526 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
31527 | } | |
5e483524 RD |
31528 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
31529 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31530 | } |
31531 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
31532 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31533 | } | |
2131d850 RD |
31534 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
31535 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
31536 | } | |
d55e5bfc RD |
31537 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
31538 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31539 | } | |
31540 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31541 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31542 | } | |
31543 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31544 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31545 | } | |
31546 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31547 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31548 | } | |
31549 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31550 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31551 | } | |
31552 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31553 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31554 | } | |
31555 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
31556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31557 | } | |
31558 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31560 | } | |
31561 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31562 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31563 | } | |
31564 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
31565 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31566 | } | |
31567 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31568 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31569 | } | |
31570 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
31571 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
31572 | } | |
31573 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31574 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31575 | } | |
31576 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
31577 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31578 | } | |
31579 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
31580 | return (void *)((wxObject *) ((wxColourData *) x)); | |
31581 | } | |
31582 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31583 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31584 | } | |
31585 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31586 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31587 | } | |
31588 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
31589 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
31590 | } | |
31591 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
31592 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31593 | } | |
31594 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
31595 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31596 | } | |
31597 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
31598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31599 | } | |
31600 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
31601 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31602 | } | |
31603 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
31604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31605 | } | |
070c48b4 RD |
31606 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
31607 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31608 | } | |
d55e5bfc RD |
31609 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
31610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31611 | } | |
31612 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
31613 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31614 | } | |
31615 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
31616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31617 | } | |
31618 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31619 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31620 | } | |
31621 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
31622 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
31623 | } | |
31624 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31625 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31626 | } | |
53aa7709 RD |
31627 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
31628 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
31629 | } | |
d55e5bfc RD |
31630 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
31631 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31632 | } | |
31633 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31634 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31635 | } | |
31636 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31637 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31638 | } | |
31639 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31640 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31641 | } | |
31642 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31643 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31644 | } | |
31645 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31646 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31647 | } | |
31648 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31649 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31650 | } | |
31651 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31652 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31653 | } | |
d55e5bfc RD |
31654 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
31655 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31656 | } | |
31657 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31658 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31659 | } | |
31660 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31661 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31662 | } | |
31663 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31664 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31665 | } | |
31666 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31667 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31668 | } | |
31669 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31670 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31671 | } | |
31672 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31673 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31674 | } | |
31675 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31676 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31677 | } | |
31678 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31679 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31680 | } | |
943e8dfd RD |
31681 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
31682 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
31683 | } | |
d55e5bfc RD |
31684 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
31685 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31686 | } | |
943e8dfd RD |
31687 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
31688 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31689 | } | |
d55e5bfc RD |
31690 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
31691 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31692 | } | |
31693 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31694 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31695 | } | |
31696 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
31697 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31698 | } | |
31699 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
31700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31701 | } | |
31702 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
31703 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31704 | } | |
62d32a5f RD |
31705 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
31706 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
31707 | } | |
d55e5bfc RD |
31708 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31709 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31710 | } | |
31711 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
31712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31713 | } | |
31714 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31715 | return (void *)((wxObject *) ((wxImage *) x)); | |
31716 | } | |
31717 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
31718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31719 | } | |
31720 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
31721 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
31722 | } | |
31723 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31724 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31725 | } | |
31726 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
31727 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31728 | } | |
31729 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
31730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
31731 | } | |
31732 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
31733 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31734 | } | |
31735 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31736 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31737 | } | |
31738 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31739 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31740 | } | |
31741 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31742 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31743 | } | |
31744 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31745 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31746 | } | |
31747 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31748 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31749 | } | |
31750 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31752 | } | |
31753 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
31754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31755 | } | |
31756 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
31757 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
31758 | } | |
31759 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
31760 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
31761 | } | |
31762 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
31763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
31764 | } | |
31765 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
31766 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
31767 | } | |
31768 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
31769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31770 | } | |
31771 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
31772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
31773 | } | |
31774 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
31775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31776 | } | |
31777 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
31778 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
31779 | } | |
31780 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
31781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31782 | } | |
31783 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
31784 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
31785 | } | |
31786 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
31787 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31788 | } | |
31789 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
31790 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
31791 | } | |
31792 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
31793 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
31794 | } | |
31795 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
31796 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
31797 | } | |
31798 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
31799 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
31800 | } | |
31801 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
31802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31803 | } | |
31804 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
31805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31806 | } | |
31807 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
31808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31809 | } | |
31810 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
31811 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31812 | } | |
31813 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
6e0de3df | 31814 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d55e5bfc RD |
31815 | } |
31816 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
070c48b4 | 31817 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d55e5bfc RD |
31818 | } |
31819 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31820 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31821 | } | |
31822 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31824 | } | |
31825 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31826 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31827 | } | |
31828 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31829 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31830 | } | |
31831 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31832 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31833 | } | |
31834 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31835 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31836 | } | |
31837 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31838 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31839 | } | |
31840 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31842 | } | |
31843 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31844 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31845 | } | |
31846 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
31847 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31848 | } | |
31849 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
31850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31851 | } | |
31852 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31853 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31854 | } | |
31855 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31856 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31857 | } | |
31858 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31859 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31860 | } | |
31861 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31863 | } | |
31864 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
31865 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
31866 | } | |
31867 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
31868 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
31869 | } | |
31870 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31871 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31872 | } | |
31873 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31874 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31875 | } | |
31876 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
31877 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31878 | } | |
31879 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
31880 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31881 | } | |
31882 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
31883 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31884 | } | |
31885 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
31886 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31887 | } | |
31888 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
31889 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
31890 | } | |
31891 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
31892 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
31893 | } | |
31894 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
31895 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
31896 | } | |
31897 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
31898 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
31899 | } | |
31900 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
31901 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
31902 | } | |
31903 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
31904 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
31905 | } | |
d55e5bfc RD |
31906 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
31907 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
31908 | } | |
31909 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
31910 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
31911 | } | |
31912 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
31913 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
31914 | } | |
31915 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
31916 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
31917 | } | |
d55e5bfc RD |
31918 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { |
31919 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
31920 | } | |
070c48b4 RD |
31921 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
31922 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31923 | } | |
d55e5bfc RD |
31924 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
31925 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
31926 | } | |
31927 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
31928 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31929 | } | |
31930 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
31931 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31932 | } | |
31933 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
31934 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
31935 | } | |
070c48b4 RD |
31936 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
31937 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
31938 | } | |
d55e5bfc RD |
31939 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
31940 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
31941 | } | |
31942 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
31943 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
31944 | } | |
31945 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
31946 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31947 | } | |
31948 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
31949 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31950 | } | |
31951 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
31952 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31953 | } | |
31954 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
31955 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
31956 | } | |
31957 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31958 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31959 | } | |
31960 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
31961 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31962 | } | |
31963 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
31964 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31965 | } | |
31966 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
31967 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31968 | } | |
070c48b4 RD |
31969 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
31970 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31971 | } | |
d55e5bfc RD |
31972 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
31973 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31974 | } | |
31975 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
31976 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31977 | } | |
31978 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
31979 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31980 | } | |
31981 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
31982 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31983 | } | |
31984 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
31985 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
31986 | } | |
31987 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
31988 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
31989 | } | |
d55e5bfc RD |
31990 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
31991 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31992 | } | |
31993 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
31994 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
31995 | } | |
31996 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
31997 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31998 | } | |
31999 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
32000 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
32001 | } | |
32002 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
32003 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32004 | } | |
32005 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
32006 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
32007 | } | |
32008 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
32009 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
32010 | } | |
32011 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
32012 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
32013 | } | |
32014 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
32015 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
32016 | } | |
32017 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
32018 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
32019 | } | |
070c48b4 RD |
32020 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
32021 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
32022 | } | |
d55e5bfc RD |
32023 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
32024 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32025 | } | |
32026 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32027 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32028 | } | |
32029 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
32030 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32031 | } | |
32032 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
32033 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32034 | } | |
32035 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
32036 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32037 | } | |
32038 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32039 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32040 | } | |
32041 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
32042 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
32043 | } | |
32044 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
32045 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32046 | } | |
32047 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
32048 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32049 | } | |
32050 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
32051 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32052 | } | |
32053 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
32054 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
32055 | } | |
32056 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
32057 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32058 | } | |
32059 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
32060 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
32061 | } | |
32062 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
32063 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32064 | } | |
32065 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
32066 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32067 | } | |
32068 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
32069 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32070 | } | |
32071 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
32072 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
32073 | } | |
d55e5bfc RD |
32074 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
32075 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32076 | } | |
32077 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
32078 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32079 | } | |
32080 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
32081 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32082 | } | |
32083 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
32084 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32085 | } | |
32086 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
32087 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
32088 | } | |
32089 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
32090 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
32091 | } | |
32092 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
32093 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
32094 | } | |
d55e5bfc RD |
32095 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
32096 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
32097 | } | |
32098 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
32099 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32100 | } | |
32101 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
32102 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32103 | } | |
32104 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
32105 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
32106 | } | |
070c48b4 RD |
32107 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
32108 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32109 | } | |
d55e5bfc RD |
32110 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
32111 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
32112 | } | |
32113 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
32114 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
32115 | } | |
32116 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
32117 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
32118 | } | |
32119 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
32120 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32121 | } | |
32122 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
32123 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32124 | } | |
32125 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
32126 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32127 | } | |
32128 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
32129 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32130 | } | |
32131 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
32132 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
32133 | } | |
32134 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
32135 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32136 | } | |
32137 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
32138 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
32139 | } | |
32140 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
32141 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32142 | } | |
32143 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32144 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32145 | } | |
32146 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32147 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32148 | } | |
32149 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32150 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32151 | } | |
53aa7709 RD |
32152 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
32153 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
32154 | } | |
d55e5bfc RD |
32155 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
32156 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32157 | } | |
2131d850 RD |
32158 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
32159 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32160 | } | |
d55e5bfc RD |
32161 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
32162 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32163 | } | |
32164 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32165 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32166 | } | |
32167 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32168 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32169 | } | |
32170 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
32171 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32172 | } | |
32173 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32174 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32175 | } | |
32176 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32177 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32178 | } | |
32179 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
32180 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
32181 | } | |
32182 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
32183 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32184 | } | |
2131d850 | 32185 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
32186 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32187 | 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}; | |
32188 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32189 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32190 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32191 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
32192 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
32193 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
32194 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
32195 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32196 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
32197 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
32198 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
2131d850 RD |
32199 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; |
32200 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
1bd55598 | 32201 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
2131d850 RD |
32202 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
32203 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32204 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32205 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
32206 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32207 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32208 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; |
32209 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
32210 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
32211 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32212 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
32213 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32214 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32215 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32216 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32217 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32218 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
32219 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
32220 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
32221 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32222 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32223 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32224 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32225 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32226 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32227 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
32228 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32229 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32230 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32231 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32232 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32233 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32234 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32235 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32236 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32237 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32238 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
32239 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32240 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32241 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32242 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32243 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32244 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
32245 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
32246 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
32247 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
32248 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
32249 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32250 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
32251 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
32252 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 32253 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
1bd55598 RD |
32254 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
32255 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32256 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
32257 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
32258 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
32259 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
32260 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
32261 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
32262 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
32263 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
32264 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
32265 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
32266 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
32267 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
32268 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
32269 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
32270 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
32271 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32272 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32273 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32274 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32275 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32276 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32277 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32278 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32279 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
1bd55598 RD |
32280 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
32281 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
32282 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32283 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32284 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32285 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
32286 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
32287 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
32288 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32289 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
2131d850 | 32290 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
1bd55598 RD |
32291 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
32292 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32293 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32294 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
32295 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
32296 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
32297 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
32298 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32299 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
32300 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
32301 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
32302 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
32303 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32304 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
32305 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32306 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
32307 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
32308 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
32309 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
32310 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
32311 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
32312 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
32313 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
32314 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32315 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
32316 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
32317 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
32318 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
32319 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32320 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
32321 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
32322 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
32323 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
32324 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
32325 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32326 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
32327 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
32328 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
32329 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
32330 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
32331 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
32332 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32333 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
32334 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
32335 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
32336 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
32337 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
32338 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
32339 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
32340 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32341 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
32342 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
32343 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
32344 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
32345 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
32346 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
32347 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
32348 | |
32349 | static swig_type_info *swig_type_initial[] = { | |
2131d850 | 32350 | &_swigt__p_bool, |
32fe5131 RD |
32351 | &_swigt__p_char, |
32352 | &_swigt__p_form_ops_t, | |
32353 | &_swigt__p_int, | |
32354 | &_swigt__p_unsigned_char, | |
32355 | &_swigt__p_unsigned_int, | |
32356 | &_swigt__p_unsigned_long, | |
32357 | &_swigt__p_wxANIHandler, | |
32358 | &_swigt__p_wxAcceleratorTable, | |
32359 | &_swigt__p_wxActivateEvent, | |
32360 | &_swigt__p_wxArrayInt, | |
32361 | &_swigt__p_wxBMPHandler, | |
32362 | &_swigt__p_wxBitmap, | |
32363 | &_swigt__p_wxBoxSizer, | |
32364 | &_swigt__p_wxCURHandler, | |
32365 | &_swigt__p_wxCalculateLayoutEvent, | |
32366 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 32367 | &_swigt__p_wxClipboardTextEvent, |
32fe5131 RD |
32368 | &_swigt__p_wxCloseEvent, |
32369 | &_swigt__p_wxColour, | |
32370 | &_swigt__p_wxColourData, | |
32371 | &_swigt__p_wxColourDialog, | |
32372 | &_swigt__p_wxCommandEvent, | |
32373 | &_swigt__p_wxContextMenuEvent, | |
32374 | &_swigt__p_wxControl, | |
32375 | &_swigt__p_wxControlWithItems, | |
32376 | &_swigt__p_wxDC, | |
32377 | &_swigt__p_wxDateEvent, | |
32378 | &_swigt__p_wxDialog, | |
32379 | &_swigt__p_wxDirDialog, | |
32380 | &_swigt__p_wxDisplayChangedEvent, | |
32381 | &_swigt__p_wxDropFilesEvent, | |
32382 | &_swigt__p_wxDuplexMode, | |
32383 | &_swigt__p_wxEraseEvent, | |
32384 | &_swigt__p_wxEvent, | |
32385 | &_swigt__p_wxEvtHandler, | |
32386 | &_swigt__p_wxFSFile, | |
32387 | &_swigt__p_wxFileDialog, | |
32388 | &_swigt__p_wxFileSystem, | |
32389 | &_swigt__p_wxFindDialogEvent, | |
32390 | &_swigt__p_wxFindReplaceData, | |
32391 | &_swigt__p_wxFindReplaceDialog, | |
32392 | &_swigt__p_wxFlexGridSizer, | |
32393 | &_swigt__p_wxFocusEvent, | |
32394 | &_swigt__p_wxFont, | |
32395 | &_swigt__p_wxFontData, | |
32396 | &_swigt__p_wxFontDialog, | |
32397 | &_swigt__p_wxFrame, | |
32398 | &_swigt__p_wxGBSizerItem, | |
32399 | &_swigt__p_wxGIFHandler, | |
32400 | &_swigt__p_wxGridBagSizer, | |
32401 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 32402 | &_swigt__p_wxHtmlLinkInfo, |
32fe5131 RD |
32403 | &_swigt__p_wxICOHandler, |
32404 | &_swigt__p_wxIcon, | |
32405 | &_swigt__p_wxIconBundle, | |
32406 | &_swigt__p_wxIconizeEvent, | |
32407 | &_swigt__p_wxIdleEvent, | |
32408 | &_swigt__p_wxImage, | |
32409 | &_swigt__p_wxImageHandler, | |
32410 | &_swigt__p_wxIndividualLayoutConstraint, | |
32411 | &_swigt__p_wxInitDialogEvent, | |
32412 | &_swigt__p_wxJPEGHandler, | |
32413 | &_swigt__p_wxKeyEvent, | |
32414 | &_swigt__p_wxLayoutAlgorithm, | |
32415 | &_swigt__p_wxLayoutConstraints, | |
32416 | &_swigt__p_wxMDIChildFrame, | |
32417 | &_swigt__p_wxMDIClientWindow, | |
32418 | &_swigt__p_wxMDIParentFrame, | |
32419 | &_swigt__p_wxMaximizeEvent, | |
32420 | &_swigt__p_wxMenu, | |
32421 | &_swigt__p_wxMenuBar, | |
32422 | &_swigt__p_wxMenuEvent, | |
32423 | &_swigt__p_wxMenuItem, | |
32424 | &_swigt__p_wxMessageDialog, | |
32425 | &_swigt__p_wxMiniFrame, | |
32426 | &_swigt__p_wxMouseCaptureChangedEvent, | |
32427 | &_swigt__p_wxMouseEvent, | |
32428 | &_swigt__p_wxMoveEvent, | |
32429 | &_swigt__p_wxMultiChoiceDialog, | |
32430 | &_swigt__p_wxNavigationKeyEvent, | |
32431 | &_swigt__p_wxNcPaintEvent, | |
32432 | &_swigt__p_wxNotifyEvent, | |
32433 | &_swigt__p_wxObject, | |
32434 | &_swigt__p_wxPCXHandler, | |
32435 | &_swigt__p_wxPNGHandler, | |
32436 | &_swigt__p_wxPNMHandler, | |
32437 | &_swigt__p_wxPageSetupDialog, | |
32438 | &_swigt__p_wxPageSetupDialogData, | |
32439 | &_swigt__p_wxPaintEvent, | |
32440 | &_swigt__p_wxPaletteChangedEvent, | |
32441 | &_swigt__p_wxPanel, | |
32442 | &_swigt__p_wxPaperSize, | |
32443 | &_swigt__p_wxPasswordEntryDialog, | |
32444 | &_swigt__p_wxPoint, | |
32445 | &_swigt__p_wxPopupWindow, | |
32446 | &_swigt__p_wxPreviewCanvas, | |
32447 | &_swigt__p_wxPreviewControlBar, | |
32448 | &_swigt__p_wxPreviewFrame, | |
32449 | &_swigt__p_wxPrintData, | |
32450 | &_swigt__p_wxPrintDialog, | |
32451 | &_swigt__p_wxPrintDialogData, | |
32452 | &_swigt__p_wxPrintPreview, | |
32453 | &_swigt__p_wxPrinter, | |
32454 | &_swigt__p_wxProgressDialog, | |
32455 | &_swigt__p_wxPyApp, | |
32456 | &_swigt__p_wxPyCommandEvent, | |
32457 | &_swigt__p_wxPyEvent, | |
32458 | &_swigt__p_wxPyHtmlListBox, | |
32459 | &_swigt__p_wxPyImageHandler, | |
32460 | &_swigt__p_wxPyPanel, | |
32461 | &_swigt__p_wxPyPopupTransientWindow, | |
32462 | &_swigt__p_wxPyPreviewControlBar, | |
32463 | &_swigt__p_wxPyPreviewFrame, | |
32464 | &_swigt__p_wxPyPrintPreview, | |
32465 | &_swigt__p_wxPyPrintout, | |
32466 | &_swigt__p_wxPyScrolledWindow, | |
32467 | &_swigt__p_wxPySizer, | |
32468 | &_swigt__p_wxPyTaskBarIcon, | |
32469 | &_swigt__p_wxPyVListBox, | |
32470 | &_swigt__p_wxPyVScrolledWindow, | |
32471 | &_swigt__p_wxPyValidator, | |
32472 | &_swigt__p_wxPyWindow, | |
32473 | &_swigt__p_wxQueryLayoutInfoEvent, | |
32474 | &_swigt__p_wxQueryNewPaletteEvent, | |
32475 | &_swigt__p_wxRect, | |
32476 | &_swigt__p_wxRegion, | |
32477 | &_swigt__p_wxSashEvent, | |
32478 | &_swigt__p_wxSashLayoutWindow, | |
32479 | &_swigt__p_wxSashWindow, | |
32480 | &_swigt__p_wxScrollEvent, | |
32481 | &_swigt__p_wxScrollWinEvent, | |
32482 | &_swigt__p_wxScrolledWindow, | |
32483 | &_swigt__p_wxSetCursorEvent, | |
32484 | &_swigt__p_wxShowEvent, | |
32485 | &_swigt__p_wxSingleChoiceDialog, | |
32486 | &_swigt__p_wxSize, | |
32487 | &_swigt__p_wxSizeEvent, | |
32488 | &_swigt__p_wxSizer, | |
32489 | &_swigt__p_wxSizerItem, | |
32490 | &_swigt__p_wxSplashScreen, | |
32491 | &_swigt__p_wxSplashScreenWindow, | |
32492 | &_swigt__p_wxSplitterEvent, | |
32493 | &_swigt__p_wxSplitterWindow, | |
32494 | &_swigt__p_wxStaticBoxSizer, | |
32495 | &_swigt__p_wxStatusBar, | |
32496 | &_swigt__p_wxStdDialogButtonSizer, | |
32497 | &_swigt__p_wxString, | |
32498 | &_swigt__p_wxSysColourChangedEvent, | |
32499 | &_swigt__p_wxTIFFHandler, | |
32500 | &_swigt__p_wxTaskBarIcon, | |
32501 | &_swigt__p_wxTaskBarIconEvent, | |
32502 | &_swigt__p_wxTextEntryDialog, | |
32503 | &_swigt__p_wxTipWindow, | |
32504 | &_swigt__p_wxToolBar, | |
32505 | &_swigt__p_wxTopLevelWindow, | |
32506 | &_swigt__p_wxUpdateUIEvent, | |
32507 | &_swigt__p_wxValidator, | |
32508 | &_swigt__p_wxVisualAttributes, | |
32509 | &_swigt__p_wxWindow, | |
32510 | &_swigt__p_wxWindowCreateEvent, | |
32511 | &_swigt__p_wxWindowDestroyEvent, | |
32512 | &_swigt__p_wxXPMHandler, | |
32fe5131 RD |
32513 | }; |
32514 | ||
2131d850 | 32515 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32516 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
32517 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
32518 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32519 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32520 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32521 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
32522 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
32523 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
32524 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32525 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
32526 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
32527 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 RD |
32528 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32529 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 32530 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 RD |
32531 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32532 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32533 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
32534 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32535 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32536 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32537 | 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 RD |
32538 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; |
32539 | 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_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; | |
32540 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32541 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
32542 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32543 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32544 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32545 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32546 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32547 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32548 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32549 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32550 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32551 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32552 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32553 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32554 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32555 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32556 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32557 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32558 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32559 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32560 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32561 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32562 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32563 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32564 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32565 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32566 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32567 | 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_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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 |
32568 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; |
32569 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32570 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
32571 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
32572 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
32573 | 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_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_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_wxFileDialog, _p_wxFileDialogTo_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}}; | |
32574 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32575 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
32576 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32577 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
32578 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32579 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
32580 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
32581 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32582 | 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 | 32583 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32584 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
32585 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
32586 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
32587 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32588 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32589 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32590 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
32591 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32592 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32593 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32594 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32595 | 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}}; | |
32596 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
32597 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32598 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32599 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
32600 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32601 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32602 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32603 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32604 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32605 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32606 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
32607 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32608 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
32609 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32610 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32611 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32612 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32613 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32614 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32615 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32616 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32617 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32618 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32619 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
32620 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32621 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32622 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
32623 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32624 | 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_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_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_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_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 |
32625 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; |
32626 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32627 | 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}}; | |
32628 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32629 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32630 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
32631 | 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}}; | |
32632 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
32633 | 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}}; | |
32634 | 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}}; | |
32635 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
32636 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32637 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32638 | 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}}; | |
32639 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
32640 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32641 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
32642 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
32643 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = { {&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32644 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32645 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32646 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
32647 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
32648 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32649 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32650 | 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}}; | |
32651 | 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}}; | |
32652 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32653 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32654 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
32655 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
32656 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32657 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32658 | 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}}; | |
32659 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32660 | 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}}; | |
32661 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32662 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32663 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
32664 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32665 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32666 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32667 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32668 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32669 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
32670 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32671 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32672 | 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}}; | |
32673 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32674 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32675 | 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_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}}; | |
32676 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
32677 | 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_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_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_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 |
32678 | |
32679 | static swig_cast_info *swig_cast_initial[] = { | |
2131d850 | 32680 | _swigc__p_bool, |
32fe5131 RD |
32681 | _swigc__p_char, |
32682 | _swigc__p_form_ops_t, | |
32683 | _swigc__p_int, | |
32684 | _swigc__p_unsigned_char, | |
32685 | _swigc__p_unsigned_int, | |
32686 | _swigc__p_unsigned_long, | |
32687 | _swigc__p_wxANIHandler, | |
32688 | _swigc__p_wxAcceleratorTable, | |
32689 | _swigc__p_wxActivateEvent, | |
32690 | _swigc__p_wxArrayInt, | |
32691 | _swigc__p_wxBMPHandler, | |
32692 | _swigc__p_wxBitmap, | |
32693 | _swigc__p_wxBoxSizer, | |
32694 | _swigc__p_wxCURHandler, | |
32695 | _swigc__p_wxCalculateLayoutEvent, | |
32696 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 32697 | _swigc__p_wxClipboardTextEvent, |
32fe5131 RD |
32698 | _swigc__p_wxCloseEvent, |
32699 | _swigc__p_wxColour, | |
32700 | _swigc__p_wxColourData, | |
32701 | _swigc__p_wxColourDialog, | |
32702 | _swigc__p_wxCommandEvent, | |
32703 | _swigc__p_wxContextMenuEvent, | |
32704 | _swigc__p_wxControl, | |
32705 | _swigc__p_wxControlWithItems, | |
32706 | _swigc__p_wxDC, | |
32707 | _swigc__p_wxDateEvent, | |
32708 | _swigc__p_wxDialog, | |
32709 | _swigc__p_wxDirDialog, | |
32710 | _swigc__p_wxDisplayChangedEvent, | |
32711 | _swigc__p_wxDropFilesEvent, | |
32712 | _swigc__p_wxDuplexMode, | |
32713 | _swigc__p_wxEraseEvent, | |
32714 | _swigc__p_wxEvent, | |
32715 | _swigc__p_wxEvtHandler, | |
32716 | _swigc__p_wxFSFile, | |
32717 | _swigc__p_wxFileDialog, | |
32718 | _swigc__p_wxFileSystem, | |
32719 | _swigc__p_wxFindDialogEvent, | |
32720 | _swigc__p_wxFindReplaceData, | |
32721 | _swigc__p_wxFindReplaceDialog, | |
32722 | _swigc__p_wxFlexGridSizer, | |
32723 | _swigc__p_wxFocusEvent, | |
32724 | _swigc__p_wxFont, | |
32725 | _swigc__p_wxFontData, | |
32726 | _swigc__p_wxFontDialog, | |
32727 | _swigc__p_wxFrame, | |
32728 | _swigc__p_wxGBSizerItem, | |
32729 | _swigc__p_wxGIFHandler, | |
32730 | _swigc__p_wxGridBagSizer, | |
32731 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 32732 | _swigc__p_wxHtmlLinkInfo, |
32fe5131 RD |
32733 | _swigc__p_wxICOHandler, |
32734 | _swigc__p_wxIcon, | |
32735 | _swigc__p_wxIconBundle, | |
32736 | _swigc__p_wxIconizeEvent, | |
32737 | _swigc__p_wxIdleEvent, | |
32738 | _swigc__p_wxImage, | |
32739 | _swigc__p_wxImageHandler, | |
32740 | _swigc__p_wxIndividualLayoutConstraint, | |
32741 | _swigc__p_wxInitDialogEvent, | |
32742 | _swigc__p_wxJPEGHandler, | |
32743 | _swigc__p_wxKeyEvent, | |
32744 | _swigc__p_wxLayoutAlgorithm, | |
32745 | _swigc__p_wxLayoutConstraints, | |
32746 | _swigc__p_wxMDIChildFrame, | |
32747 | _swigc__p_wxMDIClientWindow, | |
32748 | _swigc__p_wxMDIParentFrame, | |
32749 | _swigc__p_wxMaximizeEvent, | |
32750 | _swigc__p_wxMenu, | |
32751 | _swigc__p_wxMenuBar, | |
32752 | _swigc__p_wxMenuEvent, | |
32753 | _swigc__p_wxMenuItem, | |
32754 | _swigc__p_wxMessageDialog, | |
32755 | _swigc__p_wxMiniFrame, | |
32756 | _swigc__p_wxMouseCaptureChangedEvent, | |
32757 | _swigc__p_wxMouseEvent, | |
32758 | _swigc__p_wxMoveEvent, | |
32759 | _swigc__p_wxMultiChoiceDialog, | |
32760 | _swigc__p_wxNavigationKeyEvent, | |
32761 | _swigc__p_wxNcPaintEvent, | |
32762 | _swigc__p_wxNotifyEvent, | |
32763 | _swigc__p_wxObject, | |
32764 | _swigc__p_wxPCXHandler, | |
32765 | _swigc__p_wxPNGHandler, | |
32766 | _swigc__p_wxPNMHandler, | |
32767 | _swigc__p_wxPageSetupDialog, | |
32768 | _swigc__p_wxPageSetupDialogData, | |
32769 | _swigc__p_wxPaintEvent, | |
32770 | _swigc__p_wxPaletteChangedEvent, | |
32771 | _swigc__p_wxPanel, | |
32772 | _swigc__p_wxPaperSize, | |
32773 | _swigc__p_wxPasswordEntryDialog, | |
32774 | _swigc__p_wxPoint, | |
32775 | _swigc__p_wxPopupWindow, | |
32776 | _swigc__p_wxPreviewCanvas, | |
32777 | _swigc__p_wxPreviewControlBar, | |
32778 | _swigc__p_wxPreviewFrame, | |
32779 | _swigc__p_wxPrintData, | |
32780 | _swigc__p_wxPrintDialog, | |
32781 | _swigc__p_wxPrintDialogData, | |
32782 | _swigc__p_wxPrintPreview, | |
32783 | _swigc__p_wxPrinter, | |
32784 | _swigc__p_wxProgressDialog, | |
32785 | _swigc__p_wxPyApp, | |
32786 | _swigc__p_wxPyCommandEvent, | |
32787 | _swigc__p_wxPyEvent, | |
32788 | _swigc__p_wxPyHtmlListBox, | |
32789 | _swigc__p_wxPyImageHandler, | |
32790 | _swigc__p_wxPyPanel, | |
32791 | _swigc__p_wxPyPopupTransientWindow, | |
32792 | _swigc__p_wxPyPreviewControlBar, | |
32793 | _swigc__p_wxPyPreviewFrame, | |
32794 | _swigc__p_wxPyPrintPreview, | |
32795 | _swigc__p_wxPyPrintout, | |
32796 | _swigc__p_wxPyScrolledWindow, | |
32797 | _swigc__p_wxPySizer, | |
32798 | _swigc__p_wxPyTaskBarIcon, | |
32799 | _swigc__p_wxPyVListBox, | |
32800 | _swigc__p_wxPyVScrolledWindow, | |
32801 | _swigc__p_wxPyValidator, | |
32802 | _swigc__p_wxPyWindow, | |
32803 | _swigc__p_wxQueryLayoutInfoEvent, | |
32804 | _swigc__p_wxQueryNewPaletteEvent, | |
32805 | _swigc__p_wxRect, | |
32806 | _swigc__p_wxRegion, | |
32807 | _swigc__p_wxSashEvent, | |
32808 | _swigc__p_wxSashLayoutWindow, | |
32809 | _swigc__p_wxSashWindow, | |
32810 | _swigc__p_wxScrollEvent, | |
32811 | _swigc__p_wxScrollWinEvent, | |
32812 | _swigc__p_wxScrolledWindow, | |
32813 | _swigc__p_wxSetCursorEvent, | |
32814 | _swigc__p_wxShowEvent, | |
32815 | _swigc__p_wxSingleChoiceDialog, | |
32816 | _swigc__p_wxSize, | |
1bd55598 RD |
32817 | _swigc__p_wxSizeEvent, |
32818 | _swigc__p_wxSizer, | |
32819 | _swigc__p_wxSizerItem, | |
32820 | _swigc__p_wxSplashScreen, | |
32821 | _swigc__p_wxSplashScreenWindow, | |
32822 | _swigc__p_wxSplitterEvent, | |
32823 | _swigc__p_wxSplitterWindow, | |
32824 | _swigc__p_wxStaticBoxSizer, | |
32825 | _swigc__p_wxStatusBar, | |
32826 | _swigc__p_wxStdDialogButtonSizer, | |
32827 | _swigc__p_wxString, | |
32828 | _swigc__p_wxSysColourChangedEvent, | |
32829 | _swigc__p_wxTIFFHandler, | |
32830 | _swigc__p_wxTaskBarIcon, | |
32831 | _swigc__p_wxTaskBarIconEvent, | |
32832 | _swigc__p_wxTextEntryDialog, | |
32833 | _swigc__p_wxTipWindow, | |
32834 | _swigc__p_wxToolBar, | |
32835 | _swigc__p_wxTopLevelWindow, | |
32836 | _swigc__p_wxUpdateUIEvent, | |
32837 | _swigc__p_wxValidator, | |
32838 | _swigc__p_wxVisualAttributes, | |
32839 | _swigc__p_wxWindow, | |
32840 | _swigc__p_wxWindowCreateEvent, | |
32841 | _swigc__p_wxWindowDestroyEvent, | |
32842 | _swigc__p_wxXPMHandler, | |
32843 | }; | |
32844 | ||
32845 | ||
32846 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32847 | ||
32848 | static swig_const_info swig_const_table[] = { | |
32849 | {0, 0, 0, 0.0, 0, 0}}; | |
32850 | ||
36ed4f51 RD |
32851 | #ifdef __cplusplus |
32852 | } | |
32853 | #endif | |
1bd55598 RD |
32854 | /* ----------------------------------------------------------------------------- |
32855 | * Type initialization: | |
32856 | * This problem is tough by the requirement that no dynamic | |
32857 | * memory is used. Also, since swig_type_info structures store pointers to | |
32858 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
32859 | * to swig_type_info structures, we need some lookup code at initialization. | |
32860 | * The idea is that swig generates all the structures that are needed. | |
32861 | * The runtime then collects these partially filled structures. | |
32862 | * The SWIG_InitializeModule function takes these initial arrays out of | |
32863 | * swig_module, and does all the lookup, filling in the swig_module.types | |
32864 | * array with the correct data and linking the correct swig_cast_info | |
32865 | * structures together. | |
32866 | * | |
32867 | * The generated swig_type_info structures are assigned staticly to an initial | |
32868 | * array. We just loop though that array, and handle each type individually. | |
32869 | * First we lookup if this type has been already loaded, and if so, use the | |
32870 | * loaded structure instead of the generated one. Then we have to fill in the | |
32871 | * cast linked list. The cast data is initially stored in something like a | |
32872 | * two-dimensional array. Each row corresponds to a type (there are the same | |
32873 | * number of rows as there are in the swig_type_initial array). Each entry in | |
32874 | * a column is one of the swig_cast_info structures for that type. | |
32875 | * The cast_initial array is actually an array of arrays, because each row has | |
32876 | * a variable number of columns. So to actually build the cast linked list, | |
32877 | * we find the array of casts associated with the type, and loop through it | |
32878 | * adding the casts to the list. The one last trick we need to do is making | |
32879 | * sure the type pointer in the swig_cast_info struct is correct. | |
32880 | * | |
32881 | * First off, we lookup the cast->type name to see if it is already loaded. | |
32882 | * There are three cases to handle: | |
32883 | * 1) If the cast->type has already been loaded AND the type we are adding | |
32884 | * casting info to has not been loaded (it is in this module), THEN we | |
32885 | * replace the cast->type pointer with the type pointer that has already | |
32886 | * been loaded. | |
32887 | * 2) If BOTH types (the one we are adding casting info to, and the | |
32888 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
32889 | * the previous module so we just ignore it. | |
32890 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
32891 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
32892 | * be correct. | |
32893 | * ----------------------------------------------------------------------------- */ | |
36ed4f51 | 32894 | |
d55e5bfc | 32895 | #ifdef __cplusplus |
1bd55598 RD |
32896 | extern "C" { |
32897 | #if 0 | |
32898 | } /* c-mode */ | |
32899 | #endif | |
32900 | #endif | |
32901 | ||
32902 | #if 0 | |
32903 | #define SWIGRUNTIME_DEBUG | |
32904 | #endif | |
32905 | ||
32906 | SWIGRUNTIME void | |
32907 | SWIG_InitializeModule(void *clientdata) { | |
32908 | size_t i; | |
32909 | swig_module_info *module_head; | |
32910 | static int init_run = 0; | |
32911 | ||
32912 | clientdata = clientdata; | |
32913 | ||
32914 | if (init_run) return; | |
32915 | init_run = 1; | |
32916 | ||
32917 | /* Initialize the swig_module */ | |
32918 | swig_module.type_initial = swig_type_initial; | |
32919 | swig_module.cast_initial = swig_cast_initial; | |
32920 | ||
32921 | /* Try and load any already created modules */ | |
32922 | module_head = SWIG_GetModule(clientdata); | |
32923 | if (module_head) { | |
32924 | swig_module.next = module_head->next; | |
32925 | module_head->next = &swig_module; | |
32926 | } else { | |
32927 | /* This is the first module loaded */ | |
32928 | swig_module.next = &swig_module; | |
32929 | SWIG_SetModule(clientdata, &swig_module); | |
32930 | } | |
32931 | ||
32932 | /* Now work on filling in swig_module.types */ | |
32933 | #ifdef SWIGRUNTIME_DEBUG | |
32934 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
32935 | #endif | |
32936 | for (i = 0; i < swig_module.size; ++i) { | |
32937 | swig_type_info *type = 0; | |
32938 | swig_type_info *ret; | |
32939 | swig_cast_info *cast; | |
d55e5bfc | 32940 | |
1bd55598 RD |
32941 | #ifdef SWIGRUNTIME_DEBUG |
32942 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
32943 | #endif | |
d55e5bfc | 32944 | |
1bd55598 RD |
32945 | /* if there is another module already loaded */ |
32946 | if (swig_module.next != &swig_module) { | |
32947 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
36ed4f51 | 32948 | } |
1bd55598 RD |
32949 | if (type) { |
32950 | /* Overwrite clientdata field */ | |
32951 | #ifdef SWIGRUNTIME_DEBUG | |
32952 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
32953 | #endif | |
32954 | if (swig_module.type_initial[i]->clientdata) { | |
32955 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
32956 | #ifdef SWIGRUNTIME_DEBUG | |
32957 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
32958 | #endif | |
32959 | } | |
32960 | } else { | |
32961 | type = swig_module.type_initial[i]; | |
36ed4f51 | 32962 | } |
1bd55598 RD |
32963 | |
32964 | /* Insert casting types */ | |
32965 | cast = swig_module.cast_initial[i]; | |
32966 | while (cast->type) { | |
32967 | /* Don't need to add information already in the list */ | |
32968 | ret = 0; | |
32969 | #ifdef SWIGRUNTIME_DEBUG | |
32970 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
32971 | #endif | |
32972 | if (swig_module.next != &swig_module) { | |
32973 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
32974 | #ifdef SWIGRUNTIME_DEBUG | |
32975 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
32976 | #endif | |
32977 | } | |
32978 | if (ret) { | |
32979 | if (type == swig_module.type_initial[i]) { | |
32980 | #ifdef SWIGRUNTIME_DEBUG | |
32981 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
32982 | #endif | |
32983 | cast->type = ret; | |
32984 | ret = 0; | |
32985 | } else { | |
32986 | /* Check for casting already in the list */ | |
32987 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
32988 | #ifdef SWIGRUNTIME_DEBUG | |
32989 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
32990 | #endif | |
32991 | if (!ocast) ret = 0; | |
32992 | } | |
32993 | } | |
32994 | ||
32995 | if (!ret) { | |
32996 | #ifdef SWIGRUNTIME_DEBUG | |
32997 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
32998 | #endif | |
32999 | if (type->cast) { | |
33000 | type->cast->prev = cast; | |
33001 | cast->next = type->cast; | |
33002 | } | |
33003 | type->cast = cast; | |
33004 | } | |
33005 | cast++; | |
36ed4f51 | 33006 | } |
1bd55598 RD |
33007 | /* Set entry in modules->types array equal to the type */ |
33008 | swig_module.types[i] = type; | |
33009 | } | |
33010 | swig_module.types[i] = 0; | |
33011 | ||
33012 | #ifdef SWIGRUNTIME_DEBUG | |
33013 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33014 | for (i = 0; i < swig_module.size; ++i) { | |
33015 | int j = 0; | |
33016 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
33017 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33018 | while (cast->type) { | |
33019 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
33020 | cast++; | |
33021 | ++j; | |
33022 | } | |
33023 | printf("---- Total casts: %d\n",j); | |
33024 | } | |
33025 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33026 | #endif | |
33027 | } | |
33028 | ||
33029 | /* This function will propagate the clientdata field of type to | |
33030 | * any new swig_type_info structures that have been added into the list | |
33031 | * of equivalent types. It is like calling | |
33032 | * SWIG_TypeClientData(type, clientdata) a second time. | |
33033 | */ | |
33034 | SWIGRUNTIME void | |
33035 | SWIG_PropagateClientData(void) { | |
33036 | size_t i; | |
33037 | swig_cast_info *equiv; | |
33038 | static int init_run = 0; | |
33039 | ||
33040 | if (init_run) return; | |
33041 | init_run = 1; | |
33042 | ||
33043 | for (i = 0; i < swig_module.size; i++) { | |
33044 | if (swig_module.types[i]->clientdata) { | |
33045 | equiv = swig_module.types[i]->cast; | |
33046 | while (equiv) { | |
33047 | if (!equiv->converter) { | |
33048 | if (equiv->type && !equiv->type->clientdata) | |
33049 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
33050 | } | |
33051 | equiv = equiv->next; | |
33052 | } | |
36ed4f51 | 33053 | } |
1bd55598 RD |
33054 | } |
33055 | } | |
33056 | ||
33057 | #ifdef __cplusplus | |
33058 | #if 0 | |
33059 | { | |
33060 | /* c-mode */ | |
33061 | #endif | |
33062 | } | |
33063 | #endif | |
33064 | ||
33065 | ||
33066 | ||
33067 | #ifdef __cplusplus | |
33068 | extern "C" { | |
33069 | #endif | |
33070 | ||
33071 | /* Python-specific SWIG API */ | |
33072 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
33073 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
33074 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
33075 | ||
33076 | /* ----------------------------------------------------------------------------- | |
33077 | * global variable support code. | |
33078 | * ----------------------------------------------------------------------------- */ | |
33079 | ||
33080 | typedef struct swig_globalvar { | |
33081 | char *name; /* Name of global variable */ | |
33082 | PyObject *(*get_attr)(void); /* Return the current value */ | |
33083 | int (*set_attr)(PyObject *); /* Set the value */ | |
33084 | struct swig_globalvar *next; | |
33085 | } swig_globalvar; | |
33086 | ||
33087 | typedef struct swig_varlinkobject { | |
33088 | PyObject_HEAD | |
33089 | swig_globalvar *vars; | |
33090 | } swig_varlinkobject; | |
33091 | ||
33092 | SWIGINTERN PyObject * | |
33093 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
33094 | return PyString_FromString("<Swig global variables>"); | |
33095 | } | |
33096 | ||
33097 | SWIGINTERN PyObject * | |
33098 | swig_varlink_str(swig_varlinkobject *v) { | |
33099 | PyObject *str = PyString_FromString("("); | |
33100 | swig_globalvar *var; | |
33101 | for (var = v->vars; var; var=var->next) { | |
33102 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33103 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33104 | } | |
33105 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33106 | return str; | |
33107 | } | |
33108 | ||
33109 | SWIGINTERN int | |
33110 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33111 | PyObject *str = swig_varlink_str(v); | |
33112 | fprintf(fp,"Swig global variables "); | |
33113 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33114 | Py_DECREF(str); | |
33115 | return 0; | |
33116 | } | |
33117 | ||
33118 | SWIGINTERN void | |
33119 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33120 | swig_globalvar *var = v->vars; | |
33121 | while (var) { | |
33122 | swig_globalvar *n = var->next; | |
33123 | free(var->name); | |
33124 | free(var); | |
33125 | var = n; | |
36ed4f51 | 33126 | } |
1bd55598 RD |
33127 | } |
33128 | ||
33129 | SWIGINTERN PyObject * | |
33130 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33131 | PyObject *res = NULL; | |
33132 | swig_globalvar *var = v->vars; | |
33133 | while (var) { | |
33134 | if (strcmp(var->name,n) == 0) { | |
33135 | res = (*var->get_attr)(); | |
33136 | break; | |
33137 | } | |
33138 | var = var->next; | |
36ed4f51 | 33139 | } |
1bd55598 RD |
33140 | if (res == NULL && !PyErr_Occurred()) { |
33141 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 33142 | } |
1bd55598 RD |
33143 | return res; |
33144 | } | |
33145 | ||
33146 | SWIGINTERN int | |
33147 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33148 | int res = 1; | |
33149 | swig_globalvar *var = v->vars; | |
33150 | while (var) { | |
33151 | if (strcmp(var->name,n) == 0) { | |
33152 | res = (*var->set_attr)(p); | |
33153 | break; | |
33154 | } | |
33155 | var = var->next; | |
36ed4f51 | 33156 | } |
1bd55598 RD |
33157 | if (res == 1 && !PyErr_Occurred()) { |
33158 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36ed4f51 | 33159 | } |
1bd55598 RD |
33160 | return res; |
33161 | } | |
33162 | ||
33163 | SWIGINTERN PyTypeObject* | |
33164 | swig_varlink_type(void) { | |
33165 | static char varlink__doc__[] = "Swig var link object"; | |
33166 | static PyTypeObject varlink_type; | |
33167 | static int type_init = 0; | |
33168 | if (!type_init) { | |
33169 | const PyTypeObject tmp | |
33170 | = { | |
33171 | PyObject_HEAD_INIT(NULL) | |
33172 | 0, /* Number of items in variable part (ob_size) */ | |
33173 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33174 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33175 | 0, /* Itemsize (tp_itemsize) */ | |
33176 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33177 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33178 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33179 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33180 | 0, /* tp_compare */ | |
33181 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33182 | 0, /* tp_as_number */ | |
33183 | 0, /* tp_as_sequence */ | |
33184 | 0, /* tp_as_mapping */ | |
33185 | 0, /* tp_hash */ | |
33186 | 0, /* tp_call */ | |
33187 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33188 | 0, /* tp_getattro */ | |
33189 | 0, /* tp_setattro */ | |
33190 | 0, /* tp_as_buffer */ | |
33191 | 0, /* tp_flags */ | |
33192 | varlink__doc__, /* tp_doc */ | |
33193 | 0, /* tp_traverse */ | |
33194 | 0, /* tp_clear */ | |
33195 | 0, /* tp_richcompare */ | |
33196 | 0, /* tp_weaklistoffset */ | |
33197 | #if PY_VERSION_HEX >= 0x02020000 | |
33198 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33199 | #endif | |
33200 | #if PY_VERSION_HEX >= 0x02030000 | |
33201 | 0, /* tp_del */ | |
33202 | #endif | |
33203 | #ifdef COUNT_ALLOCS | |
33204 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33205 | #endif | |
33206 | }; | |
33207 | varlink_type = tmp; | |
33208 | varlink_type.ob_type = &PyType_Type; | |
33209 | type_init = 1; | |
36ed4f51 | 33210 | } |
1bd55598 RD |
33211 | return &varlink_type; |
33212 | } | |
33213 | ||
33214 | /* Create a variable linking object for use later */ | |
33215 | SWIGINTERN PyObject * | |
33216 | SWIG_Python_newvarlink(void) { | |
33217 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33218 | if (result) { | |
33219 | result->vars = 0; | |
33220 | } | |
33221 | return ((PyObject*) result); | |
33222 | } | |
33223 | ||
33224 | SWIGINTERN void | |
33225 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33226 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33227 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33228 | if (gv) { | |
33229 | size_t size = strlen(name)+1; | |
33230 | gv->name = (char *)malloc(size); | |
33231 | if (gv->name) { | |
33232 | strncpy(gv->name,name,size); | |
33233 | gv->get_attr = get_attr; | |
33234 | gv->set_attr = set_attr; | |
33235 | gv->next = v->vars; | |
33236 | } | |
36ed4f51 | 33237 | } |
1bd55598 RD |
33238 | v->vars = gv; |
33239 | } | |
33240 | ||
33241 | SWIGINTERN PyObject * | |
33242 | SWIG_globals() { | |
33243 | static PyObject *_SWIG_globals = 0; | |
33244 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33245 | return _SWIG_globals; | |
33246 | } | |
33247 | ||
33248 | /* ----------------------------------------------------------------------------- | |
33249 | * constants/methods manipulation | |
33250 | * ----------------------------------------------------------------------------- */ | |
33251 | ||
33252 | /* Install Constants */ | |
33253 | SWIGINTERN void | |
33254 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33255 | PyObject *obj = 0; | |
33256 | size_t i; | |
33257 | for (i = 0; constants[i].type; ++i) { | |
33258 | switch(constants[i].type) { | |
33259 | case SWIG_PY_POINTER: | |
33260 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33261 | break; | |
33262 | case SWIG_PY_BINARY: | |
33263 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33264 | break; | |
33265 | default: | |
33266 | obj = 0; | |
33267 | break; | |
33268 | } | |
33269 | if (obj) { | |
33270 | PyDict_SetItemString(d, constants[i].name, obj); | |
33271 | Py_DECREF(obj); | |
33272 | } | |
36ed4f51 | 33273 | } |
1bd55598 RD |
33274 | } |
33275 | ||
33276 | /* -----------------------------------------------------------------------------*/ | |
33277 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33278 | /* -----------------------------------------------------------------------------*/ | |
33279 | ||
33280 | SWIGINTERN void | |
33281 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33282 | swig_const_info *const_table, | |
33283 | swig_type_info **types, | |
33284 | swig_type_info **types_initial) { | |
33285 | size_t i; | |
33286 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 33287 | const char *c = methods[i].ml_doc; |
1bd55598 RD |
33288 | if (c && (c = strstr(c, "swig_ptr: "))) { |
33289 | int j; | |
33290 | swig_const_info *ci = 0; | |
3d6c9062 | 33291 | const char *name = c + 10; |
1bd55598 RD |
33292 | for (j = 0; const_table[j].type; ++j) { |
33293 | if (strncmp(const_table[j].name, name, | |
33294 | strlen(const_table[j].name)) == 0) { | |
33295 | ci = &(const_table[j]); | |
33296 | break; | |
33297 | } | |
33298 | } | |
33299 | if (ci) { | |
33300 | size_t shift = (ci->ptype) - types; | |
33301 | swig_type_info *ty = types_initial[shift]; | |
33302 | size_t ldoc = (c - methods[i].ml_doc); | |
33303 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33304 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33305 | if (ndoc) { | |
33306 | char *buff = ndoc; | |
33307 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33308 | if (ptr) { | |
33309 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33310 | buff += ldoc; | |
33311 | strncpy(buff, "swig_ptr: ", 10); | |
33312 | buff += 10; | |
33313 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33314 | methods[i].ml_doc = ndoc; | |
33315 | } | |
33316 | } | |
33317 | } | |
33318 | } | |
36ed4f51 | 33319 | } |
1bd55598 RD |
33320 | } |
33321 | ||
33322 | #ifdef __cplusplus | |
33323 | } | |
33324 | #endif | |
33325 | ||
33326 | /* -----------------------------------------------------------------------------* | |
33327 | * Partial Init method | |
33328 | * -----------------------------------------------------------------------------*/ | |
33329 | ||
33330 | #ifdef __cplusplus | |
33331 | extern "C" | |
33332 | #endif | |
33333 | SWIGEXPORT void SWIG_init(void) { | |
33334 | PyObject *m, *d; | |
33335 | ||
33336 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33337 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33338 | ||
33339 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33340 | d = PyModule_GetDict(m); | |
33341 | ||
33342 | SWIG_InitializeModule(0); | |
33343 | SWIG_InstallConstants(d,swig_const_table); | |
33344 | ||
33345 | ||
33346 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
33347 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
33348 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
33349 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
33350 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
33351 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
33352 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
33353 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
33354 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
33355 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
33356 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
33357 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
33358 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
33359 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
33360 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
33361 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
33362 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
33363 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
33364 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
33365 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
33366 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
33367 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
33368 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
33369 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
33370 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
33371 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
33372 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
33373 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
33374 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
33375 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); | |
33376 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
33377 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
33378 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
33379 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); | |
33380 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
33381 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
33382 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
33383 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
33384 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
33385 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
33386 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
33387 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
33388 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
33389 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
33390 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
33391 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
33392 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
33393 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
33394 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
33395 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
33396 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
33397 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
33398 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
33399 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
33400 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
33401 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
33402 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
33403 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
33404 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
33405 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
33406 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
33407 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
33408 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
33409 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
33410 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
33411 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
33412 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
33413 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
33414 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
33415 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
33416 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
33417 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
33418 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
33419 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
33420 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
33421 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
33422 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
33423 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
33424 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
33425 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
33426 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
33427 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
33428 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
33429 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
33430 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
33431 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
33432 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
33433 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
33434 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
33435 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
33436 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
33437 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
33438 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
33439 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
33440 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
33441 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
33442 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
33443 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
33444 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
33445 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
33446 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
33447 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
33448 | ||
33449 | // Map renamed classes back to their common name for OOR | |
33450 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
33451 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
33452 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
33453 | ||
33454 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
33455 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
33456 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
33457 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
33458 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
33459 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
33460 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
33461 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
33462 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
33463 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
33464 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
33465 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
33466 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
704eda0c RD |
33467 | SWIG_Python_SetConstant(d, "DD_NEW_DIR_BUTTON",SWIG_From_int(static_cast< int >(wxDD_NEW_DIR_BUTTON))); |
33468 | SWIG_Python_SetConstant(d, "DD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDD_DEFAULT_STYLE))); | |
33469 | SWIG_Python_SetConstant(d, "DD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDD_CHANGE_DIR))); | |
33470 | SWIG_Python_SetConstant(d, "OPEN",SWIG_From_int(static_cast< int >(wxOPEN))); | |
33471 | SWIG_Python_SetConstant(d, "SAVE",SWIG_From_int(static_cast< int >(wxSAVE))); | |
33472 | SWIG_Python_SetConstant(d, "OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxOVERWRITE_PROMPT))); | |
33473 | SWIG_Python_SetConstant(d, "FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFILE_MUST_EXIST))); | |
33474 | SWIG_Python_SetConstant(d, "MULTIPLE",SWIG_From_int(static_cast< int >(wxMULTIPLE))); | |
33475 | SWIG_Python_SetConstant(d, "CHANGE_DIR",SWIG_From_int(static_cast< int >(wxCHANGE_DIR))); | |
b02396e8 | 33476 | SWIG_Python_SetConstant(d, "HIDE_READONLY",SWIG_From_int(static_cast< int >(wxHIDE_READONLY))); |
704eda0c RD |
33477 | SWIG_Python_SetConstant(d, "FD_OPEN",SWIG_From_int(static_cast< int >(wxFD_OPEN))); |
33478 | SWIG_Python_SetConstant(d, "FD_SAVE",SWIG_From_int(static_cast< int >(wxFD_SAVE))); | |
33479 | SWIG_Python_SetConstant(d, "FD_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFD_OVERWRITE_PROMPT))); | |
33480 | SWIG_Python_SetConstant(d, "FD_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFD_FILE_MUST_EXIST))); | |
33481 | SWIG_Python_SetConstant(d, "FD_MULTIPLE",SWIG_From_int(static_cast< int >(wxFD_MULTIPLE))); | |
33482 | SWIG_Python_SetConstant(d, "FD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFD_CHANGE_DIR))); | |
33483 | SWIG_Python_SetConstant(d, "FD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFD_DEFAULT_STYLE))); | |
1bd55598 RD |
33484 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); |
33485 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
33486 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
33487 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); | |
33488 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
33489 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
33490 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
33491 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
33492 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
33493 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
33494 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
33495 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
33496 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
33497 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
33498 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
33499 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
33500 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
33501 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
33502 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
33503 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
33504 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
33505 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
33506 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
33507 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
33508 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
33509 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
33510 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
33511 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
33512 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
33513 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
33514 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
33515 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
33516 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
33517 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
33518 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
33519 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
33520 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
33521 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
33522 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
33523 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
33524 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
33525 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
33526 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
33527 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
33528 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
33529 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
33530 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
33531 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
33532 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
33533 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
33534 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
33535 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
33536 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
33537 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
33538 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
33539 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
33540 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
33541 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
33542 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
33543 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
33544 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
33545 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
33546 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
33547 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
33548 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
33549 | ||
33550 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
33551 | ||
d55e5bfc RD |
33552 | } |
33553 |