]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 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 | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 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 | |
0085ce49 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 | ||
0085ce49 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 | ||
0085ce49 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 | |
0085ce49 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 | ||
0085ce49 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 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 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) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 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 | ||
d14a1e28 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 */ |
d14a1e28 | 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 */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 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 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 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 | |
093d3ff1 | 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; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 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 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 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); | |
093d3ff1 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) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
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); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 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); | |
093d3ff1 | 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); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 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; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 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 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 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 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 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 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 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 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d14a1e28 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
d14a1e28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
15afbcd0 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
15afbcd0 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
994141e6 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
994141e6 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
15afbcd0 RD |
1048 | } |
1049 | ||
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
15afbcd0 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
c32bde28 | 1058 | } |
15afbcd0 | 1059 | |
0085ce49 | 1060 | /* Append a value to the result obj */ |
994141e6 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
c32bde28 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
c32bde28 RD |
1103 | } |
1104 | ||
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c32bde28 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
093d3ff1 | 1698 | } |
d14a1e28 | 1699 | |
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 1703 | |
093d3ff1 RD |
1704 | typedef struct { |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
c32bde28 | 1710 | |
093d3ff1 | 1711 | SWIGRUNTIME int |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
994141e6 | 1713 | { |
093d3ff1 RD |
1714 | char result[SWIG_BUFFER_SIZE]; |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
15afbcd0 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
15afbcd0 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
15afbcd0 | 1749 | { |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
994141e6 | 1757 | |
093d3ff1 | 1758 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 | 1848 | } |
d14a1e28 | 1849 | |
093d3ff1 | 1850 | SWIGRUNTIME PyObject * |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
093d3ff1 | 1867 | } |
d14a1e28 | 1868 | |
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 | 1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d14a1e28 | 1871 | { |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 | 1880 | } |
d14a1e28 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 | 1884 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 1885 | |
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d14a1e28 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d14a1e28 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d14a1e28 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
d14a1e28 | 1949 | |
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
093d3ff1 | 1963 | } |
d14a1e28 | 1964 | |
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
d14a1e28 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
d14a1e28 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
093d3ff1 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
093d3ff1 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2251 | } |
2252 | ||
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
093d3ff1 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
093d3ff1 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
093d3ff1 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
01f6b6d3 RD |
2466 | #define SWIGTYPE_p_bool swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
f9bf356b RD |
2477 | #define SWIGTYPE_p_wxArrayString swig_types[11] |
2478 | #define SWIGTYPE_p_wxBMPHandler swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBitmap swig_types[13] | |
2480 | #define SWIGTYPE_p_wxBoxSizer swig_types[14] | |
2481 | #define SWIGTYPE_p_wxCURHandler swig_types[15] | |
2482 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[16] | |
2483 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[17] | |
2484 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxCloseEvent swig_types[19] | |
2486 | #define SWIGTYPE_p_wxColour swig_types[20] | |
2487 | #define SWIGTYPE_p_wxColourData swig_types[21] | |
2488 | #define SWIGTYPE_p_wxColourDialog swig_types[22] | |
2489 | #define SWIGTYPE_p_wxCommandEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxControl swig_types[25] | |
2492 | #define SWIGTYPE_p_wxControlWithItems swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDC swig_types[27] | |
2494 | #define SWIGTYPE_p_wxDateEvent swig_types[28] | |
2495 | #define SWIGTYPE_p_wxDialog swig_types[29] | |
2496 | #define SWIGTYPE_p_wxDirDialog swig_types[30] | |
2497 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[32] | |
2499 | #define SWIGTYPE_p_wxDuplexMode swig_types[33] | |
2500 | #define SWIGTYPE_p_wxEraseEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxEvent swig_types[35] | |
2502 | #define SWIGTYPE_p_wxEvtHandler swig_types[36] | |
2503 | #define SWIGTYPE_p_wxFSFile swig_types[37] | |
2504 | #define SWIGTYPE_p_wxFileDialog swig_types[38] | |
2505 | #define SWIGTYPE_p_wxFileSystem swig_types[39] | |
2506 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[40] | |
2507 | #define SWIGTYPE_p_wxFindReplaceData swig_types[41] | |
2508 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[42] | |
2509 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFocusEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFont swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFontData swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFontDialog swig_types[47] | |
2514 | #define SWIGTYPE_p_wxFrame swig_types[48] | |
2515 | #define SWIGTYPE_p_wxGBSizerItem swig_types[49] | |
2516 | #define SWIGTYPE_p_wxGIFHandler swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGridBagSizer swig_types[51] | |
2518 | #define SWIGTYPE_p_wxGridSizer swig_types[52] | |
2519 | #define SWIGTYPE_p_wxHtmlLinkInfo swig_types[53] | |
2520 | #define SWIGTYPE_p_wxICOHandler swig_types[54] | |
2521 | #define SWIGTYPE_p_wxIcon swig_types[55] | |
2522 | #define SWIGTYPE_p_wxIconBundle swig_types[56] | |
2523 | #define SWIGTYPE_p_wxIconizeEvent swig_types[57] | |
2524 | #define SWIGTYPE_p_wxIdleEvent swig_types[58] | |
2525 | #define SWIGTYPE_p_wxImage swig_types[59] | |
2526 | #define SWIGTYPE_p_wxImageHandler swig_types[60] | |
2527 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61] | |
2528 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[62] | |
2529 | #define SWIGTYPE_p_wxItemContainer swig_types[63] | |
2530 | #define SWIGTYPE_p_wxJPEGHandler swig_types[64] | |
2531 | #define SWIGTYPE_p_wxKeyEvent swig_types[65] | |
2532 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[66] | |
2533 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[67] | |
2534 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[68] | |
2535 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[69] | |
2536 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[70] | |
2537 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[71] | |
2538 | #define SWIGTYPE_p_wxMenu swig_types[72] | |
2539 | #define SWIGTYPE_p_wxMenuBar swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMenuEvent swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMenuItem swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMessageDialog swig_types[76] | |
2543 | #define SWIGTYPE_p_wxMiniFrame swig_types[77] | |
2544 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxMouseEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxMoveEvent swig_types[81] | |
2548 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[82] | |
2549 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxNotifyEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[86] | |
2553 | #define SWIGTYPE_p_wxObject swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPCXHandler swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPNGHandler swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPNMHandler swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPaintEvent swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPanel swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPaperSize swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPoint swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPopupWindow swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPreviewFrame swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPrintData swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPrintDialog swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPrintDialogData swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPrintPreview swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPrinter swig_types[107] | |
2574 | #define SWIGTYPE_p_wxProgressDialog swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyApp swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyEvent swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyImageHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyPanel swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyPrintout swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPySizer swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyVListBox swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPyValidator swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPyWindow swig_types[126] | |
2593 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[127] | |
2594 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[128] | |
2595 | #define SWIGTYPE_p_wxRect swig_types[129] | |
2596 | #define SWIGTYPE_p_wxRegion swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashEvent swig_types[131] | |
2598 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[132] | |
2599 | #define SWIGTYPE_p_wxSashWindow swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxScrolledWindow swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxShowEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSimpleHtmlListBox swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSize swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizeEvent swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSizer swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSizerItem swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplashScreen swig_types[145] | |
2612 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[146] | |
2613 | #define SWIGTYPE_p_wxSplitterEvent swig_types[147] | |
2614 | #define SWIGTYPE_p_wxSplitterWindow swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[149] | |
2616 | #define SWIGTYPE_p_wxStatusBar swig_types[150] | |
2617 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[151] | |
2618 | #define SWIGTYPE_p_wxString swig_types[152] | |
2619 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTGAHandler swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTIFFHandler swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[157] | |
2624 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[158] | |
2625 | #define SWIGTYPE_p_wxTipWindow swig_types[159] | |
2626 | #define SWIGTYPE_p_wxToolBar swig_types[160] | |
2627 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[161] | |
2628 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxValidator swig_types[163] | |
2630 | #define SWIGTYPE_p_wxVisualAttributes swig_types[164] | |
2631 | #define SWIGTYPE_p_wxWindow swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167] | |
2634 | #define SWIGTYPE_p_wxXPMHandler swig_types[168] | |
2635 | static swig_type_info *swig_types[170]; | |
2636 | static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0}; | |
32fe5131 RD |
2637 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2638 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2639 | |
2640 | /* -------- TYPES TABLE (END) -------- */ | |
2641 | ||
0085ce49 RD |
2642 | #if (PY_VERSION_HEX <= 0x02000000) |
2643 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2644 | # error "This python version requires to use swig with the '-classic' option" | |
2645 | # endif | |
2646 | #endif | |
2647 | #if (PY_VERSION_HEX <= 0x02020000) | |
2648 | # error "This python version requires to use swig with the '-nomodern' option" | |
2649 | #endif | |
2650 | #if (PY_VERSION_HEX <= 0x02020000) | |
2651 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2652 | #endif | |
2653 | #ifndef METH_O | |
2654 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2655 | #endif | |
093d3ff1 RD |
2656 | |
2657 | /*----------------------------------------------- | |
2658 | @(target):= _windows_.so | |
2659 | ------------------------------------------------*/ | |
2660 | #define SWIG_init init_windows_ | |
2661 | ||
2662 | #define SWIG_name "_windows_" | |
2663 | ||
0085ce49 | 2664 | #define SWIGVERSION 0x010329 |
093d3ff1 | 2665 | |
093d3ff1 | 2666 | |
0085ce49 RD |
2667 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2668 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
093d3ff1 RD |
2669 | |
2670 | ||
0085ce49 | 2671 | #include <stdexcept> |
093d3ff1 RD |
2672 | |
2673 | ||
0085ce49 RD |
2674 | namespace swig { |
2675 | class PyObject_ptr { | |
2676 | protected: | |
2677 | PyObject *_obj; | |
093d3ff1 | 2678 | |
0085ce49 RD |
2679 | public: |
2680 | PyObject_ptr() :_obj(0) | |
2681 | { | |
2682 | } | |
093d3ff1 | 2683 | |
0085ce49 RD |
2684 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2685 | { | |
2686 | Py_XINCREF(_obj); | |
093d3ff1 | 2687 | } |
0085ce49 RD |
2688 | |
2689 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2690 | { | |
2691 | if (initial_ref) Py_XINCREF(_obj); | |
093d3ff1 | 2692 | } |
0085ce49 RD |
2693 | |
2694 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2695 | { | |
2696 | Py_XINCREF(item._obj); | |
2697 | Py_XDECREF(_obj); | |
2698 | _obj = item._obj; | |
2699 | return *this; | |
2700 | } | |
2701 | ||
2702 | ~PyObject_ptr() | |
2703 | { | |
2704 | Py_XDECREF(_obj); | |
2705 | } | |
2706 | ||
2707 | operator PyObject *() const | |
2708 | { | |
2709 | return _obj; | |
2710 | } | |
2711 | ||
2712 | PyObject *operator->() const | |
2713 | { | |
2714 | return _obj; | |
2715 | } | |
2716 | }; | |
093d3ff1 RD |
2717 | } |
2718 | ||
2719 | ||
0085ce49 RD |
2720 | namespace swig { |
2721 | struct PyObject_var : PyObject_ptr { | |
2722 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2723 | ||
2724 | PyObject_var & operator = (PyObject* obj) | |
2725 | { | |
2726 | Py_XDECREF(_obj); | |
2727 | _obj = obj; | |
2728 | return *this; | |
093d3ff1 | 2729 | } |
0085ce49 | 2730 | }; |
093d3ff1 | 2731 | } |
093d3ff1 RD |
2732 | |
2733 | ||
0085ce49 RD |
2734 | #include "wx/wxPython/wxPython.h" |
2735 | #include "wx/wxPython/pyclasses.h" | |
2736 | ||
093d3ff1 | 2737 | |
0085ce49 RD |
2738 | static const wxString wxPyEmptyString(wxEmptyString); |
2739 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 | 2740 | |
093d3ff1 | 2741 | |
0085ce49 RD |
2742 | |
2743 | #include <limits.h> | |
2744 | #ifndef LLONG_MIN | |
2745 | # define LLONG_MIN LONG_LONG_MIN | |
2746 | #endif | |
2747 | #ifndef LLONG_MAX | |
2748 | # define LLONG_MAX LONG_LONG_MAX | |
2749 | #endif | |
2750 | #ifndef ULLONG_MAX | |
2751 | # define ULLONG_MAX ULONG_LONG_MAX | |
2752 | #endif | |
2753 | ||
2754 | ||
2755 | SWIGINTERN int | |
2756 | SWIG_AsVal_long (PyObject* obj, long* val) | |
093d3ff1 | 2757 | { |
0085ce49 RD |
2758 | if (PyNumber_Check(obj)) { |
2759 | if (val) *val = PyInt_AsLong(obj); | |
2760 | return SWIG_OK; | |
2761 | } | |
2762 | return SWIG_TypeError; | |
093d3ff1 RD |
2763 | } |
2764 | ||
0085ce49 RD |
2765 | |
2766 | SWIGINTERN int | |
2767 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2768 | { |
0085ce49 RD |
2769 | long v; |
2770 | int res = SWIG_AsVal_long (obj, &v); | |
2771 | if (SWIG_IsOK(res)) { | |
2772 | if ((v < INT_MIN || v > INT_MAX)) { | |
2773 | return SWIG_OverflowError; | |
2774 | } else { | |
2775 | if (val) *val = static_cast< int >(v); | |
2776 | } | |
2777 | } | |
2778 | return res; | |
093d3ff1 RD |
2779 | } |
2780 | ||
2781 | ||
2782 | SWIGINTERN int | |
0085ce49 | 2783 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2784 | { |
2785 | if (obj == Py_True) { | |
2786 | if (val) *val = true; | |
0085ce49 RD |
2787 | return SWIG_OK; |
2788 | } else if (obj == Py_False) { | |
093d3ff1 | 2789 | if (val) *val = false; |
0085ce49 | 2790 | return SWIG_OK; |
093d3ff1 | 2791 | } else { |
0085ce49 RD |
2792 | long v = 0; |
2793 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2794 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2795 | return res; | |
093d3ff1 | 2796 | } |
093d3ff1 RD |
2797 | } |
2798 | ||
2799 | ||
0085ce49 | 2800 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2801 | |
2802 | ||
0085ce49 RD |
2803 | SWIGINTERNINLINE PyObject * |
2804 | SWIG_From_int (int value) | |
2805 | { | |
2806 | return SWIG_From_long (value); | |
2807 | } | |
093d3ff1 RD |
2808 | |
2809 | ||
2810 | SWIGINTERN int | |
0085ce49 | 2811 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
2812 | { |
2813 | if (PyNumber_Check(obj)) { | |
2814 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 2815 | return SWIG_OK; |
093d3ff1 | 2816 | } |
0085ce49 | 2817 | return SWIG_TypeError; |
093d3ff1 RD |
2818 | } |
2819 | ||
2820 | ||
0085ce49 | 2821 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 RD |
2822 | |
2823 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2824 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2825 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2826 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
0085ce49 RD |
2827 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ /*wxPyRaiseNotImplemented();*/ } |
2828 | SWIGINTERN bool wxTopLevelWindow_MacGetMetalAppearance(wxTopLevelWindow const *self){ /*wxPyRaiseNotImplemented();*/ return false; } | |
10044bf1 | 2829 | |
5eb8189c RD |
2830 | #define wxDEFAULT_MINIFRAME_STYLE wxCAPTION | wxRESIZE_BORDER | wxTINY_CAPTION_HORIZ |
2831 | ||
2832 | ||
093d3ff1 | 2833 | |
0085ce49 | 2834 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
093d3ff1 RD |
2835 | wxRect r; |
2836 | self->GetFieldRect(i, r); | |
2837 | return r; | |
2838 | } | |
2839 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2840 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2841 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2842 | ||
2843 | #include <wx/popupwin.h> | |
2844 | ||
2845 | ||
2846 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
2847 | { | |
2848 | public: | |
2849 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
2850 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
2851 | : wxPopupTransientWindow(parent, style) {} | |
2852 | ||
2853 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
2854 | DEC_PYCALLBACK__(OnDismiss); | |
2855 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
2856 | PYPRIVATE; | |
2857 | }; | |
2858 | ||
2859 | ||
2860 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
2861 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
2862 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
2863 | ||
2864 | ||
2865 | #include <wx/tipwin.h> | |
2866 | ||
0085ce49 | 2867 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
093d3ff1 RD |
2868 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2869 | } | |
2870 | ||
2871 | #include <wx/tipwin.h> | |
2872 | ||
2873 | ||
2874 | #include <wx/vscroll.h> | |
2875 | ||
2876 | ||
2877 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2878 | { | |
32fe5131 | 2879 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
093d3ff1 RD |
2880 | public: |
2881 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2882 | ||
2883 | wxPyVScrolledWindow(wxWindow *parent, | |
2884 | wxWindowID id = wxID_ANY, | |
2885 | const wxPoint& pos = wxDefaultPosition, | |
2886 | const wxSize& size = wxDefaultSize, | |
2887 | long style = 0, | |
2888 | const wxString& name = wxPyPanelNameStr) | |
2889 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2890 | {} | |
2891 | ||
2892 | // Overridable virtuals | |
2893 | ||
2894 | // this function must be overridden in the derived class and it should | |
2895 | // return the height of the given line in pixels | |
2896 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2897 | ||
2898 | ||
2899 | // this function doesn't have to be overridden but it may be useful to do | |
2900 | // it if calculating the lines heights is a relatively expensive operation | |
2901 | // as it gives the user code a possibility to calculate several of them at | |
2902 | // once | |
2903 | // | |
2904 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2905 | // shouldn't rely on the latter being called for all lines in the interval | |
2906 | // specified here. It is also possible that OnGetLineHeight() will be | |
2907 | // called for the lines outside of this interval, so this is really just a | |
2908 | // hint, not a promise. | |
2909 | // | |
2910 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2911 | // usual | |
2912 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2913 | ||
2914 | ||
2915 | // when the number of lines changes, we try to estimate the total height | |
2916 | // of all lines which is a rather expensive operation in terms of lines | |
2917 | // access, so if the user code may estimate the average height | |
2918 | // better/faster than we do, it should override this function to implement | |
2919 | // its own logic | |
2920 | // | |
2921 | // this function should return the best guess for the total height it may | |
2922 | // make | |
2923 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2924 | ||
2925 | ||
2926 | // Also expose some other interesting protected methods | |
2927 | ||
2928 | ||
2929 | // find the index of the line we need to show at the top of the window such | |
2930 | // that the last (fully or partially) visible line is the given one | |
2931 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2932 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2933 | ||
2934 | // get the total height of the lines between lineMin (inclusive) and | |
2935 | // lineMax (exclusive) | |
2936 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2937 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
d14a1e28 | 2938 | |
01f6b6d3 RD |
2939 | // update the thumb size shown by the scrollbar |
2940 | void UpdateScrollbar() { wxVScrolledWindow::UpdateScrollbar(); } | |
2941 | ||
2942 | // remove the scrollbar completely because we don't need it | |
2943 | void RemoveScrollbar() { wxVScrolledWindow::RemoveScrollbar(); } | |
d14a1e28 RD |
2944 | |
2945 | PYPRIVATE; | |
2946 | }; | |
2947 | ||
2948 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
2949 | ||
2950 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2951 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2952 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2953 | ||
2954 | ||
fc46b7f3 RD |
2955 | SWIGINTERN int |
2956 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2957 | { | |
2958 | long v = 0; | |
2959 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2960 | return SWIG_TypeError; | |
2961 | } | |
2962 | else if (val) | |
2963 | *val = (unsigned long)v; | |
2964 | return SWIG_OK; | |
2965 | } | |
2966 | ||
2967 | ||
32fe5131 | 2968 | SWIGINTERNINLINE int |
0085ce49 | 2969 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c32bde28 | 2970 | { |
0085ce49 RD |
2971 | unsigned long v; |
2972 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2973 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2974 | return res; | |
15afbcd0 RD |
2975 | } |
2976 | ||
2977 | ||
32fe5131 | 2978 | SWIGINTERNINLINE PyObject* |
0085ce49 | 2979 | SWIG_From_unsigned_SS_long (unsigned long value) |
994141e6 | 2980 | { |
15afbcd0 | 2981 | return (value > LONG_MAX) ? |
0085ce49 RD |
2982 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2983 | } | |
2984 | ||
2985 | ||
2986 | SWIGINTERNINLINE PyObject * | |
2987 | SWIG_From_size_t (size_t value) | |
2988 | { | |
2989 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
994141e6 RD |
2990 | } |
2991 | ||
2992 | ||
d14a1e28 | 2993 | #include <wx/vlbox.h> |
d14a1e28 | 2994 | |
b2dc1044 | 2995 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); |
d14a1e28 RD |
2996 | |
2997 | class wxPyVListBox : public wxVListBox | |
2998 | { | |
32fe5131 | 2999 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d14a1e28 RD |
3000 | public: |
3001 | wxPyVListBox() : wxVListBox() {} | |
3002 | ||
3003 | wxPyVListBox(wxWindow *parent, | |
3004 | wxWindowID id = wxID_ANY, | |
3005 | const wxPoint& pos = wxDefaultPosition, | |
3006 | const wxSize& size = wxDefaultSize, | |
3007 | long style = 0, | |
3008 | const wxString& name = wxPyVListBoxNameStr) | |
3009 | : wxVListBox(parent, id, pos, size, style, name) | |
3010 | {} | |
3011 | ||
3012 | // Overridable virtuals | |
3013 | ||
3014 | // the derived class must implement this function to actually draw the item | |
3015 | // with the given index on the provided DC | |
3016 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
3017 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
3018 | ||
3019 | ||
3020 | // the derived class must implement this method to return the height of the | |
3021 | // specified item | |
3022 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3023 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3024 | ||
3025 | ||
3026 | // this method may be used to draw separators between the lines; note that | |
3027 | // the rectangle may be modified, typically to deflate it a bit before | |
3028 | // passing to OnDrawItem() | |
3029 | // | |
3030 | // the base class version doesn't do anything | |
3031 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
75219dcb | 3032 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d14a1e28 RD |
3033 | |
3034 | ||
3035 | // this method is used to draw the items background and, maybe, a border | |
3036 | // around it | |
3037 | // | |
3038 | // the base class version implements a reasonable default behaviour which | |
3039 | // consists in drawing the selected item with the standard background | |
3040 | // colour and drawing a border around the item if it is either selected or | |
3041 | // current | |
3042 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3043 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3044 | ||
3045 | ||
3046 | PYPRIVATE; | |
3047 | }; | |
3048 | ||
3049 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3050 | ||
3051 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3052 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
75219dcb | 3053 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d14a1e28 RD |
3054 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3055 | ||
3056 | ||
0085ce49 | 3057 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3058 | unsigned long cookie = 0; |
3059 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3060 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3061 | PyObject* tup = PyTuple_New(2); |
3062 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3063 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3064 | wxPyEndBlockThreads(blocked); | |
3065 | return tup; | |
3066 | } | |
0085ce49 | 3067 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3068 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3069 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3070 | PyObject* tup = PyTuple_New(2); |
3071 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3072 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3073 | wxPyEndBlockThreads(blocked); | |
3074 | return tup; | |
3075 | } | |
d14a1e28 RD |
3076 | |
3077 | #include <wx/htmllbox.h> | |
3078 | ||
3079 | ||
3080 | class wxPyHtmlListBox : public wxHtmlListBox | |
3081 | { | |
32fe5131 | 3082 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d14a1e28 RD |
3083 | public: |
3084 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3085 | ||
3086 | wxPyHtmlListBox(wxWindow *parent, | |
3087 | wxWindowID id = wxID_ANY, | |
3088 | const wxPoint& pos = wxDefaultPosition, | |
3089 | const wxSize& size = wxDefaultSize, | |
3090 | long style = 0, | |
3091 | const wxString& name = wxPyVListBoxNameStr) | |
3092 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3093 | {} | |
3094 | ||
3095 | // Overridable virtuals | |
3096 | ||
3097 | // this method must be implemented in the derived class and should return | |
3098 | // the body (i.e. without <html>) of the HTML for the given item | |
3099 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3100 | ||
3101 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3102 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3103 | ||
75219dcb RD |
3104 | // These are from wxVListBox |
3105 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3106 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3107 | ||
d14a1e28 RD |
3108 | // TODO: |
3109 | // // this method allows to customize the selection appearance: it may be used | |
3110 | // // to specify the colour of the text which normally has the given colour | |
3111 | // // colFg when it is inside the selection | |
3112 | // // | |
3113 | // // by default, the original colour is not used at all and all text has the | |
3114 | // // same (default for this system) colour inside selection | |
3115 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3116 | ||
3117 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3118 | // // background colour -- this is even more rarely used as you can change it | |
3119 | // // globally using SetSelectionBackground() | |
3120 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3121 | ||
e9d6f3a4 RD |
3122 | |
3123 | // This method may be overriden to handle clicking on a link in | |
3124 | // the listbox. By default, clicking links is ignored. | |
3125 | virtual void OnLinkClicked(size_t n, | |
3126 | const wxHtmlLinkInfo& link); | |
d14a1e28 RD |
3127 | |
3128 | PYPRIVATE; | |
3129 | }; | |
3130 | ||
3131 | ||
3132 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3133 | ||
3134 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3135 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
75219dcb RD |
3136 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3137 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d14a1e28 RD |
3138 | |
3139 | ||
e9d6f3a4 RD |
3140 | void wxPyHtmlListBox::OnLinkClicked(size_t n, |
3141 | const wxHtmlLinkInfo& link) { | |
3142 | bool found; | |
3143 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3144 | if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) { | |
3145 | PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0); | |
3146 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", n, obj)); | |
3147 | Py_DECREF(obj); | |
3148 | } | |
3149 | wxPyEndBlockThreads(blocked); | |
3150 | if (! found) | |
3151 | wxPyHtmlListBox::OnLinkClicked(n, link); | |
3152 | } | |
3153 | ||
3154 | ||
d14a1e28 | 3155 | |
f9bf356b RD |
3156 | const wxArrayString wxPyEmptyStringArray; |
3157 | ||
3158 | static const wxString wxPySimpleHtmlListBoxNameStr(wxSimpleHtmlListBoxNameStr); | |
3159 | ||
d14a1e28 RD |
3160 | |
3161 | ||
ae8162c8 RD |
3162 | #ifndef wxHAS_TASK_BAR_ICON |
3163 | // implement dummy classes for platforms that don't have it | |
d14a1e28 RD |
3164 | |
3165 | class wxTaskBarIcon : public wxEvtHandler | |
3166 | { | |
3167 | public: | |
39f61e25 | 3168 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } |
d14a1e28 | 3169 | }; |
09c21d3b | 3170 | |
d14a1e28 RD |
3171 | |
3172 | class wxTaskBarIconEvent : public wxEvent | |
3173 | { | |
3174 | public: | |
3175 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
39f61e25 | 3176 | { wxPyRaiseNotImplemented(); } |
d14a1e28 | 3177 | virtual wxEvent* Clone() const { return NULL; } |
ae8162c8 RD |
3178 | bool IsOk() const { return false; } |
3179 | bool IsIconInstalled() const { return false; } | |
3180 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3181 | bool RemoveIcon() { return false; } | |
3182 | bool PopupMenu(wxMenu *menu) { return false; } | |
d14a1e28 RD |
3183 | }; |
3184 | ||
3185 | enum { | |
3186 | wxEVT_TASKBAR_MOVE = 0, | |
3187 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3188 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3189 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3190 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3191 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3192 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3193 | }; | |
09c21d3b RD |
3194 | |
3195 | ||
3196 | #else | |
5e483524 RD |
3197 | // Otherwise make a class that can virtualize CreatePopupMenu |
3198 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3199 | { | |
32fe5131 | 3200 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3201 | public: |
3202 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3203 | {} | |
3204 | ||
3205 | wxMenu* CreatePopupMenu() { | |
3206 | wxMenu *rval = NULL; | |
3207 | bool found; | |
5a446332 | 3208 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3209 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3210 | PyObject* ro; | |
3211 | wxMenu* ptr; | |
3212 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3213 | if (ro) { | |
3214 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3215 | rval = ptr; | |
3216 | Py_DECREF(ro); | |
3217 | } | |
3218 | } | |
3219 | wxPyEndBlockThreads(blocked); | |
3220 | if (! found) | |
3221 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3222 | return rval; | |
3223 | } | |
3224 | ||
3225 | PYPRIVATE; | |
3226 | }; | |
3227 | ||
3228 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
09c21d3b | 3229 | |
d14a1e28 RD |
3230 | #endif |
3231 | ||
0085ce49 | 3232 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
74a57fcd | 3233 | self->RemoveIcon(); |
5e483524 | 3234 | delete self; |
74a57fcd | 3235 | } |
b2dc1044 RD |
3236 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
3237 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3238 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3239 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3240 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3241 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
b02396e8 RD |
3242 | |
3243 | // for compatibility only | |
3244 | #define wxHIDE_READONLY 0 | |
3245 | ||
0085ce49 | 3246 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d14a1e28 RD |
3247 | wxArrayString arr; |
3248 | self->GetFilenames(arr); | |
3249 | return wxArrayString2PyList_helper(arr); | |
3250 | } | |
0085ce49 | 3251 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d14a1e28 RD |
3252 | wxArrayString arr; |
3253 | self->GetPaths(arr); | |
3254 | return wxArrayString2PyList_helper(arr); | |
3255 | } | |
0085ce49 | 3256 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d14a1e28 RD |
3257 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3258 | } | |
0085ce49 | 3259 | 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){ |
d14a1e28 RD |
3260 | return new wxSingleChoiceDialog(parent, message, caption, |
3261 | choices, choices_array, NULL, style, pos); | |
3262 | } | |
d3b6e4ff | 3263 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d14a1e28 | 3264 | |
01f6b6d3 RD |
3265 | SWIGINTERNINLINE PyObject* |
3266 | SWIG_From_bool (bool value) | |
3267 | { | |
3268 | return PyBool_FromLong(value ? 1 : 0); | |
3269 | } | |
3270 | ||
3271 | ||
d14a1e28 RD |
3272 | #include <wx/mdi.h> |
3273 | ||
3274 | // C++ version of Python aware wxWindow | |
3275 | class wxPyWindow : public wxWindow | |
3276 | { | |
3277 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3278 | public: | |
3279 | wxPyWindow() : wxWindow() {} | |
3280 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3281 | const wxPoint& pos = wxDefaultPosition, | |
3282 | const wxSize& size = wxDefaultSize, | |
3283 | long style = 0, | |
3284 | const wxString& name = wxPyPanelNameStr) | |
3285 | : wxWindow(parent, id, pos, size, style, name) {} | |
3286 | ||
3287 | ||
976dbff5 RD |
3288 | bool DoEraseBackground(wxDC* dc) { |
3289 | #ifdef __WXMSW__ | |
3290 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3291 | #else | |
3292 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3293 | dc->Clear(); | |
3294 | return true; | |
3295 | #endif | |
3296 | } | |
3297 | ||
d14a1e28 RD |
3298 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3299 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3300 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3301 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3302 | ||
3303 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3304 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3305 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3306 | ||
3307 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3308 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3309 | ||
3310 | DEC_PYCALLBACK__(InitDialog); | |
3311 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3312 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3313 | DEC_PYCALLBACK_BOOL_(Validate); | |
3314 | ||
3315 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3316 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3317 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3318 | ||
3319 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3320 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3321 | ||
db3e571a | 3322 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3323 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3324 | |
51b83b37 RD |
3325 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3326 | ||
8d38bd1d RD |
3327 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3328 | ||
d14a1e28 RD |
3329 | PYPRIVATE; |
3330 | }; | |
3331 | ||
3332 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3333 | ||
3334 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3335 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3336 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3337 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3338 | ||
3339 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3340 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3341 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3342 | ||
3343 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3344 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3345 | ||
3346 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3347 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3348 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3349 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3350 | ||
3351 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3352 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3353 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3354 | ||
3355 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3356 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3357 | ||
db3e571a | 3358 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
db3e571a | 3359 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3360 | |
3361 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d14a1e28 | 3362 | |
8d38bd1d RD |
3363 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3364 | ||
d14a1e28 RD |
3365 | // C++ version of Python aware wxPanel |
3366 | class wxPyPanel : public wxPanel | |
3367 | { | |
3368 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3369 | public: | |
3370 | wxPyPanel() : wxPanel() {} | |
3371 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3372 | const wxPoint& pos = wxDefaultPosition, | |
3373 | const wxSize& size = wxDefaultSize, | |
3374 | long style = 0, | |
3375 | const wxString& name = wxPyPanelNameStr) | |
3376 | : wxPanel(parent, id, pos, size, style, name) {} | |
3377 | ||
976dbff5 RD |
3378 | bool DoEraseBackground(wxDC* dc) { |
3379 | #ifdef __WXMSW__ | |
3380 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3381 | #else | |
3382 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3383 | dc->Clear(); | |
3384 | return true; | |
3385 | #endif | |
3386 | } | |
db3e571a | 3387 | |
d14a1e28 RD |
3388 | |
3389 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3390 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3391 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3392 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3393 | ||
3394 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3395 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3396 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3397 | ||
3398 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3399 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3400 | ||
3401 | DEC_PYCALLBACK__(InitDialog); | |
3402 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3403 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3404 | DEC_PYCALLBACK_BOOL_(Validate); | |
3405 | ||
3406 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3407 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3408 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3409 | ||
3410 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3411 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3412 | ||
db3e571a | 3413 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3414 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3415 | |
51b83b37 RD |
3416 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3417 | ||
8d38bd1d RD |
3418 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3419 | ||
d14a1e28 RD |
3420 | PYPRIVATE; |
3421 | }; | |
3422 | ||
3423 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3424 | ||
3425 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3426 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3427 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3428 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3429 | ||
3430 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3431 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3432 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3433 | ||
3434 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3435 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3436 | ||
3437 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3438 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3439 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3440 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3441 | ||
3442 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3443 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3444 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3445 | ||
3446 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3447 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3448 | ||
db3e571a | 3449 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
db3e571a | 3450 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
1cb4a8aa | 3451 | |
51b83b37 RD |
3452 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3453 | ||
8d38bd1d RD |
3454 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3455 | ||
1cb4a8aa RD |
3456 | // C++ version of Python aware wxScrolledWindow |
3457 | class wxPyScrolledWindow : public wxScrolledWindow | |
3458 | { | |
3459 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3460 | public: | |
3461 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3462 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3463 | const wxPoint& pos = wxDefaultPosition, | |
3464 | const wxSize& size = wxDefaultSize, | |
3465 | long style = 0, | |
3466 | const wxString& name = wxPyPanelNameStr) | |
3467 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3468 | ||
976dbff5 RD |
3469 | bool DoEraseBackground(wxDC* dc) { |
3470 | #ifdef __WXMSW__ | |
3471 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3472 | #else | |
3473 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3474 | dc->Clear(); | |
3475 | return true; | |
3476 | #endif | |
3477 | } | |
1cb4a8aa RD |
3478 | |
3479 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3480 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3481 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3482 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3483 | ||
3484 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3485 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3486 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3487 | ||
3488 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3489 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3490 | ||
3491 | DEC_PYCALLBACK__(InitDialog); | |
3492 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3493 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3494 | DEC_PYCALLBACK_BOOL_(Validate); | |
3495 | ||
3496 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3497 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3498 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3499 | ||
3500 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3501 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3502 | ||
db3e571a | 3503 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3504 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
1cb4a8aa | 3505 | |
51b83b37 RD |
3506 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3507 | ||
8d38bd1d RD |
3508 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3509 | ||
1cb4a8aa RD |
3510 | PYPRIVATE; |
3511 | }; | |
3512 | ||
3513 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3514 | ||
3515 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3516 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3517 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3518 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3519 | ||
3520 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3521 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3522 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3523 | ||
3524 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3525 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3526 | ||
3527 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3528 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3529 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3530 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3531 | ||
3532 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3533 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3534 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3535 | ||
3536 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3537 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3538 | ||
db3e571a | 3539 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
db3e571a RD |
3540 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3541 | ||
51b83b37 | 3542 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d14a1e28 | 3543 | |
8d38bd1d RD |
3544 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3545 | ||
d14a1e28 RD |
3546 | |
3547 | #include "wx/wxPython/printfw.h" | |
3548 | ||
d14a1e28 | 3549 | |
33b885b9 RD |
3550 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); |
3551 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
0085ce49 | 3552 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
b9d6a5f3 | 3553 | PyObject* data; |
5a446332 | 3554 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3555 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3556 | self->GetPrivDataLen()); | |
3557 | wxPyEndBlockThreads(blocked); | |
3558 | return data; | |
3559 | } | |
0085ce49 | 3560 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
b9d6a5f3 RD |
3561 | if (! PyString_Check(data)) { |
3562 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3563 | "Expected string object")); | |
3564 | return /* NULL */ ; | |
3565 | } | |
3566 | ||
5a446332 | 3567 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3568 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3569 | wxPyEndBlockThreads(blocked); | |
3570 | } | |
d14a1e28 RD |
3571 | |
3572 | ||
a68b8331 | 3573 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d14a1e28 RD |
3574 | |
3575 | // Since this one would be tough and ugly to do with the Macros... | |
3576 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
ae8162c8 | 3577 | bool hadErr = false; |
d14a1e28 RD |
3578 | bool found; |
3579 | ||
5a446332 | 3580 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
3581 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3582 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3583 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3584 | PyObject* val; | |
3585 | ||
3586 | val = PyTuple_GetItem(result, 0); | |
3587 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
ae8162c8 | 3588 | else hadErr = true; |
d14a1e28 RD |
3589 | |
3590 | val = PyTuple_GetItem(result, 1); | |
3591 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
ae8162c8 | 3592 | else hadErr = true; |
d14a1e28 RD |
3593 | |
3594 | val = PyTuple_GetItem(result, 2); | |
3595 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
ae8162c8 | 3596 | else hadErr = true; |
d14a1e28 RD |
3597 | |
3598 | val = PyTuple_GetItem(result, 3); | |
3599 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
ae8162c8 | 3600 | else hadErr = true; |
d14a1e28 RD |
3601 | } |
3602 | else | |
ae8162c8 | 3603 | hadErr = true; |
d14a1e28 RD |
3604 | |
3605 | if (hadErr) { | |
3606 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3607 | PyErr_Print(); | |
3608 | } | |
3609 | Py_DECREF(result); | |
3610 | } | |
4f89f6a3 | 3611 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3612 | if (! found) |
3613 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3614 | } | |
3615 | ||
d14a1e28 RD |
3616 | |
3617 | ||
3618 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3619 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3620 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3621 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3622 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3623 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3624 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3625 | ||
3626 | ||
3627 | ||
3628 | ||
3629 | ||
ae8162c8 | 3630 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
c26d9ab4 | 3631 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d14a1e28 RD |
3632 | |
3633 | ||
ae8162c8 RD |
3634 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3635 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3636 | bool rval=false; \ | |
3637 | bool found; \ | |
32fe5131 | 3638 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
ae8162c8 RD |
3639 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3640 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3641 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3642 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3643 | Py_DECREF(win); \ | |
3644 | Py_DECREF(dc); \ | |
3645 | } \ | |
3646 | wxPyEndBlockThreads(blocked); \ | |
3647 | if (! found) \ | |
3648 | rval = PCLASS::CBNAME(a, b); \ | |
3649 | return rval; \ | |
c26d9ab4 | 3650 | } |
d14a1e28 RD |
3651 | |
3652 | ||
3653 | ||
3654 | ||
3655 | class wxPyPrintPreview : public wxPrintPreview | |
3656 | { | |
3657 | DECLARE_CLASS(wxPyPrintPreview) | |
3658 | public: | |
4276dc52 RD |
3659 | wxPyPrintPreview(wxPyPrintout* printout, |
3660 | wxPyPrintout* printoutForPrinting, | |
3661 | wxPrintDialogData* data=NULL) | |
3662 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3663 | {} | |
d14a1e28 RD |
3664 | wxPyPrintPreview(wxPyPrintout* printout, |
3665 | wxPyPrintout* printoutForPrinting, | |
32fe5131 | 3666 | wxPrintData* data) |
d14a1e28 RD |
3667 | : wxPrintPreview(printout, printoutForPrinting, data) |
3668 | {} | |
3669 | ||
3670 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3671 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3672 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3673 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3674 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3675 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3676 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3677 | ||
3678 | PYPRIVATE; | |
3679 | }; | |
3680 | ||
3681 | // Stupid renamed classes... Fix this in 2.5... | |
3682 | #if defined(__WXMSW__) | |
3683 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3684 | #elif defined(__WXMAC__) | |
3685 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3686 | #else | |
3687 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3688 | #endif | |
3689 | ||
3690 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3691 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3692 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3693 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3694 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3695 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3696 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3697 | ||
3698 | ||
3699 | class wxPyPreviewFrame : public wxPreviewFrame | |
3700 | { | |
32fe5131 | 3701 | DECLARE_CLASS(wxPyPreviewFrame) |
d14a1e28 RD |
3702 | public: |
3703 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3704 | const wxString& title, | |
3705 | const wxPoint& pos = wxDefaultPosition, | |
3706 | const wxSize& size = wxDefaultSize, | |
3707 | long style = wxDEFAULT_FRAME_STYLE, | |
3708 | const wxString& name = wxPyFrameNameStr) | |
3709 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3710 | {} | |
3711 | ||
3712 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3713 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3714 | ||
3715 | DEC_PYCALLBACK_VOID_(Initialize); | |
3716 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3717 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3718 | ||
3719 | PYPRIVATE; | |
3720 | }; | |
3721 | ||
3722 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3723 | ||
3724 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3725 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3726 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3727 | ||
3728 | ||
3729 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3730 | { | |
32fe5131 | 3731 | DECLARE_CLASS(wxPyPreviewControlBar) |
d14a1e28 RD |
3732 | public: |
3733 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3734 | long buttons, | |
3735 | wxWindow *parent, | |
3736 | const wxPoint& pos = wxDefaultPosition, | |
3737 | const wxSize& size = wxDefaultSize, | |
3738 | long style = 0, | |
3739 | const wxString& name = wxPyPanelNameStr) | |
3740 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3741 | {} | |
3742 | ||
3743 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3744 | ||
3745 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3746 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3747 | ||
3748 | PYPRIVATE; | |
3749 | }; | |
3750 | ||
3751 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3752 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3753 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3754 | ||
3755 | #ifdef __cplusplus | |
3756 | extern "C" { | |
3757 | #endif | |
0085ce49 RD |
3758 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3759 | PyObject *resultobj = 0; | |
3760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3761 | int arg2 = (int) (int)-1 ; | |
3762 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3763 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3764 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3765 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3766 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3767 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3768 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3769 | wxPanel *result = 0 ; | |
3770 | void *argp1 = 0 ; | |
3771 | int res1 = 0 ; | |
3772 | int val2 ; | |
3773 | int ecode2 = 0 ; | |
3774 | wxPoint temp3 ; | |
3775 | wxSize temp4 ; | |
3776 | long val5 ; | |
3777 | int ecode5 = 0 ; | |
3778 | bool temp6 = false ; | |
3779 | PyObject * obj0 = 0 ; | |
3780 | PyObject * obj1 = 0 ; | |
3781 | PyObject * obj2 = 0 ; | |
3782 | PyObject * obj3 = 0 ; | |
3783 | PyObject * obj4 = 0 ; | |
3784 | PyObject * obj5 = 0 ; | |
3785 | char * kwnames[] = { | |
3786 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3787 | }; | |
3788 | ||
3789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3791 | if (!SWIG_IsOK(res1)) { | |
3792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3793 | } | |
3794 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3795 | if (obj1) { | |
3796 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3797 | if (!SWIG_IsOK(ecode2)) { | |
3798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3799 | } | |
3800 | arg2 = static_cast< int >(val2); | |
3801 | } | |
3802 | if (obj2) { | |
d14a1e28 | 3803 | { |
0085ce49 RD |
3804 | arg3 = &temp3; |
3805 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 3806 | } |
0085ce49 RD |
3807 | } |
3808 | if (obj3) { | |
d14a1e28 | 3809 | { |
0085ce49 RD |
3810 | arg4 = &temp4; |
3811 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3812 | } |
0085ce49 RD |
3813 | } |
3814 | if (obj4) { | |
3815 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3816 | if (!SWIG_IsOK(ecode5)) { | |
3817 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3818 | } | |
3819 | arg5 = static_cast< long >(val5); | |
3820 | } | |
3821 | if (obj5) { | |
d14a1e28 | 3822 | { |
0085ce49 RD |
3823 | arg6 = wxString_in_helper(obj5); |
3824 | if (arg6 == NULL) SWIG_fail; | |
3825 | temp6 = true; | |
3826 | } | |
3827 | } | |
3828 | { | |
3829 | if (!wxPyCheckForApp()) SWIG_fail; | |
3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3831 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3836 | { | |
3837 | if (temp6) | |
3838 | delete arg6; | |
3839 | } | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | { | |
3843 | if (temp6) | |
3844 | delete arg6; | |
3845 | } | |
3846 | return NULL; | |
d14a1e28 RD |
3847 | } |
3848 | ||
3849 | ||
0085ce49 RD |
3850 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3851 | PyObject *resultobj = 0; | |
3852 | wxPanel *result = 0 ; | |
3853 | ||
3854 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3855 | { | |
3856 | if (!wxPyCheckForApp()) SWIG_fail; | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (wxPanel *)new wxPanel(); | |
3859 | wxPyEndAllowThreads(__tstate); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
3862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3863 | return resultobj; | |
3864 | fail: | |
3865 | return NULL; | |
3866 | } | |
3867 | ||
3868 | ||
3869 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3870 | PyObject *resultobj = 0; | |
3871 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3872 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3873 | int arg3 = (int) (int)-1 ; | |
3874 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3875 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3876 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3877 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3878 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3879 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3880 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3881 | bool result; | |
3882 | void *argp1 = 0 ; | |
3883 | int res1 = 0 ; | |
3884 | void *argp2 = 0 ; | |
3885 | int res2 = 0 ; | |
3886 | int val3 ; | |
3887 | int ecode3 = 0 ; | |
3888 | wxPoint temp4 ; | |
3889 | wxSize temp5 ; | |
3890 | long val6 ; | |
3891 | int ecode6 = 0 ; | |
3892 | bool temp7 = false ; | |
3893 | PyObject * obj0 = 0 ; | |
3894 | PyObject * obj1 = 0 ; | |
3895 | PyObject * obj2 = 0 ; | |
3896 | PyObject * obj3 = 0 ; | |
3897 | PyObject * obj4 = 0 ; | |
3898 | PyObject * obj5 = 0 ; | |
3899 | PyObject * obj6 = 0 ; | |
3900 | char * kwnames[] = { | |
3901 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3902 | }; | |
3903 | ||
3904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3906 | if (!SWIG_IsOK(res1)) { | |
3907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3908 | } | |
3909 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3910 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3911 | if (!SWIG_IsOK(res2)) { | |
3912 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3913 | } | |
3914 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3915 | if (obj2) { | |
3916 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3917 | if (!SWIG_IsOK(ecode3)) { | |
3918 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3919 | } | |
3920 | arg3 = static_cast< int >(val3); | |
3921 | } | |
3922 | if (obj3) { | |
4f89f6a3 | 3923 | { |
0085ce49 RD |
3924 | arg4 = &temp4; |
3925 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 3926 | } |
0085ce49 RD |
3927 | } |
3928 | if (obj4) { | |
d14a1e28 | 3929 | { |
0085ce49 RD |
3930 | arg5 = &temp5; |
3931 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3932 | } |
0085ce49 RD |
3933 | } |
3934 | if (obj5) { | |
3935 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3936 | if (!SWIG_IsOK(ecode6)) { | |
3937 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3938 | } | |
3939 | arg6 = static_cast< long >(val6); | |
3940 | } | |
3941 | if (obj6) { | |
d14a1e28 | 3942 | { |
0085ce49 RD |
3943 | arg7 = wxString_in_helper(obj6); |
3944 | if (arg7 == NULL) SWIG_fail; | |
3945 | temp7 = true; | |
d14a1e28 | 3946 | } |
0085ce49 RD |
3947 | } |
3948 | { | |
3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3950 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | { | |
3955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3956 | } | |
3957 | { | |
3958 | if (temp7) | |
3959 | delete arg7; | |
3960 | } | |
3961 | return resultobj; | |
3962 | fail: | |
3963 | { | |
3964 | if (temp7) | |
3965 | delete arg7; | |
3966 | } | |
3967 | return NULL; | |
5cbf236d RD |
3968 | } |
3969 | ||
3970 | ||
0085ce49 RD |
3971 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3972 | PyObject *resultobj = 0; | |
3973 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3974 | void *argp1 = 0 ; | |
3975 | int res1 = 0 ; | |
3976 | PyObject *swig_obj[1] ; | |
3977 | ||
3978 | if (!args) SWIG_fail; | |
3979 | swig_obj[0] = args; | |
3980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3981 | if (!SWIG_IsOK(res1)) { | |
3982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3983 | } | |
3984 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3985 | { | |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3987 | (arg1)->SetFocusIgnoringChildren(); | |
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | resultobj = SWIG_Py_Void(); | |
3992 | return resultobj; | |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
3998 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3999 | PyObject *resultobj = 0; | |
4000 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
4001 | SwigValueWrapper<wxVisualAttributes > result; | |
4002 | int val1 ; | |
4003 | int ecode1 = 0 ; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | char * kwnames[] = { | |
4006 | (char *) "variant", NULL | |
4007 | }; | |
4008 | ||
4009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
4010 | if (obj0) { | |
4011 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4012 | if (!SWIG_IsOK(ecode1)) { | |
4013 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
4014 | } | |
4015 | arg1 = static_cast< wxWindowVariant >(val1); | |
4016 | } | |
4017 | { | |
4018 | if (!wxPyCheckForApp()) SWIG_fail; | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
4021 | wxPyEndAllowThreads(__tstate); | |
4022 | if (PyErr_Occurred()) SWIG_fail; | |
4023 | } | |
4024 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
4025 | return resultobj; | |
4026 | fail: | |
4027 | return NULL; | |
4028 | } | |
4029 | ||
4030 | ||
4031 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4032 | PyObject *obj; | |
4033 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4034 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
4035 | return SWIG_Py_Void(); | |
4036 | } | |
4037 | ||
4038 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4039 | return SWIG_Python_InitShadowInstance(args); | |
4040 | } | |
4041 | ||
4042 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4043 | PyObject *resultobj = 0; | |
4044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4045 | int arg2 = (int) (int)-1 ; | |
4046 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4047 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4048 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4049 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4050 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
4051 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
4052 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4053 | wxScrolledWindow *result = 0 ; | |
4054 | void *argp1 = 0 ; | |
4055 | int res1 = 0 ; | |
4056 | int val2 ; | |
4057 | int ecode2 = 0 ; | |
4058 | wxPoint temp3 ; | |
4059 | wxSize temp4 ; | |
4060 | long val5 ; | |
4061 | int ecode5 = 0 ; | |
4062 | bool temp6 = false ; | |
4063 | PyObject * obj0 = 0 ; | |
4064 | PyObject * obj1 = 0 ; | |
4065 | PyObject * obj2 = 0 ; | |
4066 | PyObject * obj3 = 0 ; | |
4067 | PyObject * obj4 = 0 ; | |
4068 | PyObject * obj5 = 0 ; | |
4069 | char * kwnames[] = { | |
4070 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4071 | }; | |
4072 | ||
4073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4075 | if (!SWIG_IsOK(res1)) { | |
4076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4077 | } | |
4078 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4079 | if (obj1) { | |
4080 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4081 | if (!SWIG_IsOK(ecode2)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4083 | } | |
4084 | arg2 = static_cast< int >(val2); | |
4085 | } | |
4086 | if (obj2) { | |
5cbf236d | 4087 | { |
0085ce49 RD |
4088 | arg3 = &temp3; |
4089 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22bfe96c | 4090 | } |
0085ce49 RD |
4091 | } |
4092 | if (obj3) { | |
22bfe96c | 4093 | { |
0085ce49 RD |
4094 | arg4 = &temp4; |
4095 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 4096 | } |
0085ce49 RD |
4097 | } |
4098 | if (obj4) { | |
4099 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4100 | if (!SWIG_IsOK(ecode5)) { | |
4101 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4102 | } | |
4103 | arg5 = static_cast< long >(val5); | |
4104 | } | |
4105 | if (obj5) { | |
22bfe96c | 4106 | { |
0085ce49 RD |
4107 | arg6 = wxString_in_helper(obj5); |
4108 | if (arg6 == NULL) SWIG_fail; | |
4109 | temp6 = true; | |
22bfe96c | 4110 | } |
0085ce49 RD |
4111 | } |
4112 | { | |
4113 | if (!wxPyCheckForApp()) SWIG_fail; | |
4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4115 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
4119 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4120 | { | |
4121 | if (temp6) | |
4122 | delete arg6; | |
4123 | } | |
4124 | return resultobj; | |
4125 | fail: | |
4126 | { | |
4127 | if (temp6) | |
4128 | delete arg6; | |
4129 | } | |
4130 | return NULL; | |
22bfe96c RD |
4131 | } |
4132 | ||
4133 | ||
0085ce49 RD |
4134 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4135 | PyObject *resultobj = 0; | |
4136 | wxScrolledWindow *result = 0 ; | |
4137 | ||
4138 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4139 | { | |
4140 | if (!wxPyCheckForApp()) SWIG_fail; | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj = 0; | |
4155 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4156 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4157 | int arg3 = (int) (int)-1 ; | |
4158 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4159 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4160 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4161 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4162 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4163 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4164 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4165 | bool result; | |
4166 | void *argp1 = 0 ; | |
4167 | int res1 = 0 ; | |
4168 | void *argp2 = 0 ; | |
4169 | int res2 = 0 ; | |
4170 | int val3 ; | |
4171 | int ecode3 = 0 ; | |
4172 | wxPoint temp4 ; | |
4173 | wxSize temp5 ; | |
4174 | long val6 ; | |
4175 | int ecode6 = 0 ; | |
4176 | bool temp7 = false ; | |
4177 | PyObject * obj0 = 0 ; | |
4178 | PyObject * obj1 = 0 ; | |
4179 | PyObject * obj2 = 0 ; | |
4180 | PyObject * obj3 = 0 ; | |
4181 | PyObject * obj4 = 0 ; | |
4182 | PyObject * obj5 = 0 ; | |
4183 | PyObject * obj6 = 0 ; | |
4184 | char * kwnames[] = { | |
4185 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4186 | }; | |
4187 | ||
4188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4190 | if (!SWIG_IsOK(res1)) { | |
4191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4192 | } | |
4193 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4194 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4195 | if (!SWIG_IsOK(res2)) { | |
4196 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4197 | } | |
4198 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4199 | if (obj2) { | |
4200 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4201 | if (!SWIG_IsOK(ecode3)) { | |
4202 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4203 | } | |
4204 | arg3 = static_cast< int >(val3); | |
4205 | } | |
4206 | if (obj3) { | |
d14a1e28 | 4207 | { |
0085ce49 RD |
4208 | arg4 = &temp4; |
4209 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4210 | } | |
4211 | } | |
4212 | if (obj4) { | |
d14a1e28 | 4213 | { |
0085ce49 RD |
4214 | arg5 = &temp5; |
4215 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4216 | } |
0085ce49 RD |
4217 | } |
4218 | if (obj5) { | |
4219 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4220 | if (!SWIG_IsOK(ecode6)) { | |
4221 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4222 | } | |
4223 | arg6 = static_cast< long >(val6); | |
4224 | } | |
4225 | if (obj6) { | |
d14a1e28 | 4226 | { |
0085ce49 RD |
4227 | arg7 = wxString_in_helper(obj6); |
4228 | if (arg7 == NULL) SWIG_fail; | |
4229 | temp7 = true; | |
d14a1e28 | 4230 | } |
0085ce49 RD |
4231 | } |
4232 | { | |
4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4234 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4235 | wxPyEndAllowThreads(__tstate); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
4238 | { | |
4239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4240 | } | |
4241 | { | |
4242 | if (temp7) | |
4243 | delete arg7; | |
4244 | } | |
4245 | return resultobj; | |
4246 | fail: | |
4247 | { | |
4248 | if (temp7) | |
4249 | delete arg7; | |
4250 | } | |
4251 | return NULL; | |
4252 | } | |
4253 | ||
4254 | ||
4255 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4256 | PyObject *resultobj = 0; | |
4257 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4258 | int arg2 ; | |
4259 | int arg3 ; | |
4260 | int arg4 ; | |
4261 | int arg5 ; | |
4262 | int arg6 = (int) 0 ; | |
4263 | int arg7 = (int) 0 ; | |
4264 | bool arg8 = (bool) false ; | |
4265 | void *argp1 = 0 ; | |
4266 | int res1 = 0 ; | |
4267 | int val2 ; | |
4268 | int ecode2 = 0 ; | |
4269 | int val3 ; | |
4270 | int ecode3 = 0 ; | |
4271 | int val4 ; | |
4272 | int ecode4 = 0 ; | |
4273 | int val5 ; | |
4274 | int ecode5 = 0 ; | |
4275 | int val6 ; | |
4276 | int ecode6 = 0 ; | |
4277 | int val7 ; | |
4278 | int ecode7 = 0 ; | |
4279 | bool val8 ; | |
4280 | int ecode8 = 0 ; | |
4281 | PyObject * obj0 = 0 ; | |
4282 | PyObject * obj1 = 0 ; | |
4283 | PyObject * obj2 = 0 ; | |
4284 | PyObject * obj3 = 0 ; | |
4285 | PyObject * obj4 = 0 ; | |
4286 | PyObject * obj5 = 0 ; | |
4287 | PyObject * obj6 = 0 ; | |
4288 | PyObject * obj7 = 0 ; | |
4289 | char * kwnames[] = { | |
4290 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4291 | }; | |
4292 | ||
4293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4295 | if (!SWIG_IsOK(res1)) { | |
4296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4297 | } | |
4298 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4299 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4300 | if (!SWIG_IsOK(ecode2)) { | |
4301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4302 | } | |
4303 | arg2 = static_cast< int >(val2); | |
4304 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4305 | if (!SWIG_IsOK(ecode3)) { | |
4306 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4307 | } | |
4308 | arg3 = static_cast< int >(val3); | |
4309 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4310 | if (!SWIG_IsOK(ecode4)) { | |
4311 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4312 | } | |
4313 | arg4 = static_cast< int >(val4); | |
4314 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4315 | if (!SWIG_IsOK(ecode5)) { | |
4316 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4317 | } | |
4318 | arg5 = static_cast< int >(val5); | |
4319 | if (obj5) { | |
4320 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4321 | if (!SWIG_IsOK(ecode6)) { | |
4322 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4323 | } | |
4324 | arg6 = static_cast< int >(val6); | |
4325 | } | |
4326 | if (obj6) { | |
4327 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4328 | if (!SWIG_IsOK(ecode7)) { | |
4329 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4330 | } | |
4331 | arg7 = static_cast< int >(val7); | |
4332 | } | |
4333 | if (obj7) { | |
4334 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4335 | if (!SWIG_IsOK(ecode8)) { | |
4336 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4337 | } | |
4338 | arg8 = static_cast< bool >(val8); | |
4339 | } | |
4340 | { | |
4341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4342 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | resultobj = SWIG_Py_Void(); | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj = 0; | |
4355 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4356 | int arg2 ; | |
4357 | int arg3 ; | |
4358 | void *argp1 = 0 ; | |
4359 | int res1 = 0 ; | |
4360 | int val2 ; | |
4361 | int ecode2 = 0 ; | |
4362 | int val3 ; | |
4363 | int ecode3 = 0 ; | |
4364 | PyObject * obj0 = 0 ; | |
4365 | PyObject * obj1 = 0 ; | |
4366 | PyObject * obj2 = 0 ; | |
4367 | char * kwnames[] = { | |
4368 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4369 | }; | |
4370 | ||
4371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4373 | if (!SWIG_IsOK(res1)) { | |
4374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4375 | } | |
4376 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4378 | if (!SWIG_IsOK(ecode2)) { | |
4379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4380 | } | |
4381 | arg2 = static_cast< int >(val2); | |
4382 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4383 | if (!SWIG_IsOK(ecode3)) { | |
4384 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4385 | } | |
4386 | arg3 = static_cast< int >(val3); | |
4387 | { | |
4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4389 | (arg1)->Scroll(arg2,arg3); | |
4390 | wxPyEndAllowThreads(__tstate); | |
4391 | if (PyErr_Occurred()) SWIG_fail; | |
4392 | } | |
4393 | resultobj = SWIG_Py_Void(); | |
4394 | return resultobj; | |
4395 | fail: | |
4396 | return NULL; | |
4397 | } | |
4398 | ||
4399 | ||
4400 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4401 | PyObject *resultobj = 0; | |
4402 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4403 | int arg2 ; | |
4404 | int result; | |
4405 | void *argp1 = 0 ; | |
4406 | int res1 = 0 ; | |
4407 | int val2 ; | |
4408 | int ecode2 = 0 ; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | PyObject * obj1 = 0 ; | |
4411 | char * kwnames[] = { | |
4412 | (char *) "self",(char *) "orient", NULL | |
4413 | }; | |
4414 | ||
4415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4417 | if (!SWIG_IsOK(res1)) { | |
4418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4419 | } | |
4420 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4421 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4422 | if (!SWIG_IsOK(ecode2)) { | |
4423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4424 | } | |
4425 | arg2 = static_cast< int >(val2); | |
4426 | { | |
4427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4428 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4429 | wxPyEndAllowThreads(__tstate); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
4432 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4433 | return resultobj; | |
4434 | fail: | |
4435 | return NULL; | |
4436 | } | |
4437 | ||
4438 | ||
4439 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4440 | PyObject *resultobj = 0; | |
4441 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4442 | int arg2 ; | |
4443 | int arg3 ; | |
4444 | void *argp1 = 0 ; | |
4445 | int res1 = 0 ; | |
4446 | int val2 ; | |
4447 | int ecode2 = 0 ; | |
4448 | int val3 ; | |
4449 | int ecode3 = 0 ; | |
4450 | PyObject * obj0 = 0 ; | |
4451 | PyObject * obj1 = 0 ; | |
4452 | PyObject * obj2 = 0 ; | |
4453 | char * kwnames[] = { | |
4454 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4455 | }; | |
4456 | ||
4457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4459 | if (!SWIG_IsOK(res1)) { | |
4460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4461 | } | |
4462 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4463 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4464 | if (!SWIG_IsOK(ecode2)) { | |
4465 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4466 | } | |
4467 | arg2 = static_cast< int >(val2); | |
4468 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4469 | if (!SWIG_IsOK(ecode3)) { | |
4470 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4471 | } | |
4472 | arg3 = static_cast< int >(val3); | |
4473 | { | |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | resultobj = SWIG_Py_Void(); | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4487 | PyObject *resultobj = 0; | |
4488 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4489 | int arg2 ; | |
4490 | int arg3 ; | |
4491 | void *argp1 = 0 ; | |
4492 | int res1 = 0 ; | |
4493 | int val2 ; | |
4494 | int ecode2 = 0 ; | |
4495 | int val3 ; | |
4496 | int ecode3 = 0 ; | |
4497 | PyObject * obj0 = 0 ; | |
4498 | PyObject * obj1 = 0 ; | |
4499 | PyObject * obj2 = 0 ; | |
4500 | char * kwnames[] = { | |
4501 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4502 | }; | |
4503 | ||
4504 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4505 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4506 | if (!SWIG_IsOK(res1)) { | |
4507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4508 | } | |
4509 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4510 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4511 | if (!SWIG_IsOK(ecode2)) { | |
4512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4513 | } | |
4514 | arg2 = static_cast< int >(val2); | |
4515 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4516 | if (!SWIG_IsOK(ecode3)) { | |
4517 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4518 | } | |
4519 | arg3 = static_cast< int >(val3); | |
4520 | { | |
4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4522 | (arg1)->SetScrollRate(arg2,arg3); | |
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | resultobj = SWIG_Py_Void(); | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
4533 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4534 | PyObject *resultobj = 0; | |
4535 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4536 | int *arg2 = (int *) 0 ; | |
4537 | int *arg3 = (int *) 0 ; | |
4538 | void *argp1 = 0 ; | |
4539 | int res1 = 0 ; | |
4540 | int temp2 ; | |
4541 | int res2 = SWIG_TMPOBJ ; | |
4542 | int temp3 ; | |
4543 | int res3 = SWIG_TMPOBJ ; | |
4544 | PyObject *swig_obj[1] ; | |
4545 | ||
4546 | arg2 = &temp2; | |
4547 | arg3 = &temp3; | |
4548 | if (!args) SWIG_fail; | |
4549 | swig_obj[0] = args; | |
4550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4551 | if (!SWIG_IsOK(res1)) { | |
4552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4553 | } | |
4554 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4555 | { | |
4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4557 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4558 | wxPyEndAllowThreads(__tstate); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
4560 | } | |
4561 | resultobj = SWIG_Py_Void(); | |
4562 | if (SWIG_IsTmpObj(res2)) { | |
4563 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4564 | } else { | |
4565 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4566 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4567 | } | |
4568 | if (SWIG_IsTmpObj(res3)) { | |
4569 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4570 | } else { | |
4571 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4572 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4573 | } | |
4574 | return resultobj; | |
4575 | fail: | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
4580 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4581 | PyObject *resultobj = 0; | |
4582 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4583 | bool arg2 ; | |
4584 | bool arg3 ; | |
4585 | void *argp1 = 0 ; | |
4586 | int res1 = 0 ; | |
4587 | bool val2 ; | |
4588 | int ecode2 = 0 ; | |
4589 | bool val3 ; | |
4590 | int ecode3 = 0 ; | |
4591 | PyObject * obj0 = 0 ; | |
4592 | PyObject * obj1 = 0 ; | |
4593 | PyObject * obj2 = 0 ; | |
4594 | char * kwnames[] = { | |
4595 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4596 | }; | |
4597 | ||
4598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4600 | if (!SWIG_IsOK(res1)) { | |
4601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4602 | } | |
4603 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4604 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4605 | if (!SWIG_IsOK(ecode2)) { | |
4606 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4607 | } | |
4608 | arg2 = static_cast< bool >(val2); | |
4609 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4610 | if (!SWIG_IsOK(ecode3)) { | |
4611 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4612 | } | |
4613 | arg3 = static_cast< bool >(val3); | |
4614 | { | |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4616 | (arg1)->EnableScrolling(arg2,arg3); | |
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | resultobj = SWIG_Py_Void(); | |
4621 | return resultobj; | |
4622 | fail: | |
4623 | return NULL; | |
4624 | } | |
4625 | ||
4626 | ||
4627 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4628 | PyObject *resultobj = 0; | |
4629 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4630 | int *arg2 = (int *) 0 ; | |
4631 | int *arg3 = (int *) 0 ; | |
4632 | void *argp1 = 0 ; | |
4633 | int res1 = 0 ; | |
4634 | int temp2 ; | |
4635 | int res2 = SWIG_TMPOBJ ; | |
4636 | int temp3 ; | |
4637 | int res3 = SWIG_TMPOBJ ; | |
4638 | PyObject *swig_obj[1] ; | |
4639 | ||
4640 | arg2 = &temp2; | |
4641 | arg3 = &temp3; | |
4642 | if (!args) SWIG_fail; | |
4643 | swig_obj[0] = args; | |
4644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4645 | if (!SWIG_IsOK(res1)) { | |
4646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4647 | } | |
4648 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | resultobj = SWIG_Py_Void(); | |
4656 | if (SWIG_IsTmpObj(res2)) { | |
4657 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4658 | } else { | |
4659 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4660 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4661 | } | |
4662 | if (SWIG_IsTmpObj(res3)) { | |
4663 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4664 | } else { | |
4665 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4666 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4667 | } | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj = 0; | |
4676 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4677 | double arg2 ; | |
4678 | double arg3 ; | |
4679 | void *argp1 = 0 ; | |
4680 | int res1 = 0 ; | |
4681 | double val2 ; | |
4682 | int ecode2 = 0 ; | |
4683 | double val3 ; | |
4684 | int ecode3 = 0 ; | |
4685 | PyObject * obj0 = 0 ; | |
4686 | PyObject * obj1 = 0 ; | |
4687 | PyObject * obj2 = 0 ; | |
4688 | char * kwnames[] = { | |
4689 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4690 | }; | |
4691 | ||
4692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4694 | if (!SWIG_IsOK(res1)) { | |
4695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4696 | } | |
4697 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4698 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4699 | if (!SWIG_IsOK(ecode2)) { | |
4700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4701 | } | |
4702 | arg2 = static_cast< double >(val2); | |
4703 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4704 | if (!SWIG_IsOK(ecode3)) { | |
4705 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4706 | } | |
4707 | arg3 = static_cast< double >(val3); | |
4708 | { | |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | (arg1)->SetScale(arg2,arg3); | |
4711 | wxPyEndAllowThreads(__tstate); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | resultobj = SWIG_Py_Void(); | |
4715 | return resultobj; | |
4716 | fail: | |
4717 | return NULL; | |
d14a1e28 RD |
4718 | } |
4719 | ||
4720 | ||
0085ce49 RD |
4721 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4722 | PyObject *resultobj = 0; | |
4723 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4724 | double result; | |
4725 | void *argp1 = 0 ; | |
4726 | int res1 = 0 ; | |
4727 | PyObject *swig_obj[1] ; | |
4728 | ||
4729 | if (!args) SWIG_fail; | |
4730 | swig_obj[0] = args; | |
4731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4732 | if (!SWIG_IsOK(res1)) { | |
4733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4734 | } | |
4735 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4739 | wxPyEndAllowThreads(__tstate); | |
4740 | if (PyErr_Occurred()) SWIG_fail; | |
4741 | } | |
4742 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4743 | return resultobj; | |
4744 | fail: | |
4745 | return NULL; | |
d14a1e28 RD |
4746 | } |
4747 | ||
4748 | ||
0085ce49 RD |
4749 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4750 | PyObject *resultobj = 0; | |
4751 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4752 | double result; | |
4753 | void *argp1 = 0 ; | |
4754 | int res1 = 0 ; | |
4755 | PyObject *swig_obj[1] ; | |
4756 | ||
4757 | if (!args) SWIG_fail; | |
4758 | swig_obj[0] = args; | |
4759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4760 | if (!SWIG_IsOK(res1)) { | |
4761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4762 | } | |
4763 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4764 | { | |
4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4766 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4767 | wxPyEndAllowThreads(__tstate); | |
4768 | if (PyErr_Occurred()) SWIG_fail; | |
4769 | } | |
4770 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4771 | return resultobj; | |
4772 | fail: | |
4773 | return NULL; | |
d14a1e28 RD |
4774 | } |
4775 | ||
4776 | ||
0085ce49 RD |
4777 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4778 | PyObject *resultobj = 0; | |
4779 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4780 | wxPoint *arg2 = 0 ; | |
4781 | wxPoint result; | |
4782 | void *argp1 = 0 ; | |
4783 | int res1 = 0 ; | |
4784 | wxPoint temp2 ; | |
4785 | ||
4786 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4788 | if (!SWIG_IsOK(res1)) { | |
4789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4790 | } | |
4791 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4792 | { | |
4793 | arg2 = &temp2; | |
4794 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4795 | } | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4799 | wxPyEndAllowThreads(__tstate); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4803 | return resultobj; | |
4804 | fail: | |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
4809 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4810 | PyObject *resultobj = 0; | |
4811 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4812 | int arg2 ; | |
4813 | int arg3 ; | |
4814 | int *arg4 = (int *) 0 ; | |
4815 | int *arg5 = (int *) 0 ; | |
4816 | void *argp1 = 0 ; | |
4817 | int res1 = 0 ; | |
4818 | int val2 ; | |
4819 | int ecode2 = 0 ; | |
4820 | int val3 ; | |
4821 | int ecode3 = 0 ; | |
4822 | int temp4 ; | |
4823 | int res4 = SWIG_TMPOBJ ; | |
4824 | int temp5 ; | |
4825 | int res5 = SWIG_TMPOBJ ; | |
4826 | ||
4827 | arg4 = &temp4; | |
4828 | arg5 = &temp5; | |
4829 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4831 | if (!SWIG_IsOK(res1)) { | |
4832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4833 | } | |
4834 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4835 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4836 | if (!SWIG_IsOK(ecode2)) { | |
4837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4838 | } | |
4839 | arg2 = static_cast< int >(val2); | |
4840 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4841 | if (!SWIG_IsOK(ecode3)) { | |
4842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4843 | } | |
4844 | arg3 = static_cast< int >(val3); | |
4845 | { | |
4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4847 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4848 | wxPyEndAllowThreads(__tstate); | |
4849 | if (PyErr_Occurred()) SWIG_fail; | |
4850 | } | |
4851 | resultobj = SWIG_Py_Void(); | |
4852 | if (SWIG_IsTmpObj(res4)) { | |
4853 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4854 | } else { | |
4855 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4856 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4857 | } | |
4858 | if (SWIG_IsTmpObj(res5)) { | |
4859 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4860 | } else { | |
4861 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4862 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4863 | } | |
4864 | return resultobj; | |
4865 | fail: | |
4866 | return NULL; | |
d14a1e28 RD |
4867 | } |
4868 | ||
4869 | ||
0085ce49 RD |
4870 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4871 | int argc; | |
4872 | PyObject *argv[4]; | |
4873 | ||
4874 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4875 | --argc; | |
4876 | if (argc == 2) { | |
4877 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4878 | } | |
4879 | if (argc == 3) { | |
4880 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4881 | } | |
4882 | ||
4883 | fail: | |
4884 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4885 | return NULL; | |
d14a1e28 RD |
4886 | } |
4887 | ||
4888 | ||
0085ce49 RD |
4889 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4890 | PyObject *resultobj = 0; | |
4891 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4892 | wxPoint *arg2 = 0 ; | |
4893 | wxPoint result; | |
4894 | void *argp1 = 0 ; | |
4895 | int res1 = 0 ; | |
4896 | wxPoint temp2 ; | |
4897 | ||
4898 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4900 | if (!SWIG_IsOK(res1)) { | |
4901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4902 | } | |
4903 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4904 | { | |
4905 | arg2 = &temp2; | |
4906 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4907 | } | |
4908 | { | |
4909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4910 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4911 | wxPyEndAllowThreads(__tstate); | |
4912 | if (PyErr_Occurred()) SWIG_fail; | |
4913 | } | |
4914 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4915 | return resultobj; | |
4916 | fail: | |
4917 | return NULL; | |
4918 | } | |
4919 | ||
4920 | ||
4921 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4922 | PyObject *resultobj = 0; | |
4923 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4924 | int arg2 ; | |
4925 | int arg3 ; | |
4926 | int *arg4 = (int *) 0 ; | |
4927 | int *arg5 = (int *) 0 ; | |
4928 | void *argp1 = 0 ; | |
4929 | int res1 = 0 ; | |
4930 | int val2 ; | |
4931 | int ecode2 = 0 ; | |
4932 | int val3 ; | |
4933 | int ecode3 = 0 ; | |
4934 | int temp4 ; | |
4935 | int res4 = SWIG_TMPOBJ ; | |
4936 | int temp5 ; | |
4937 | int res5 = SWIG_TMPOBJ ; | |
4938 | ||
4939 | arg4 = &temp4; | |
4940 | arg5 = &temp5; | |
4941 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4943 | if (!SWIG_IsOK(res1)) { | |
4944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4945 | } | |
4946 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4947 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4948 | if (!SWIG_IsOK(ecode2)) { | |
4949 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4950 | } | |
4951 | arg2 = static_cast< int >(val2); | |
4952 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4953 | if (!SWIG_IsOK(ecode3)) { | |
4954 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4955 | } | |
4956 | arg3 = static_cast< int >(val3); | |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | resultobj = SWIG_Py_Void(); | |
4964 | if (SWIG_IsTmpObj(res4)) { | |
4965 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4966 | } else { | |
4967 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4968 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4969 | } | |
4970 | if (SWIG_IsTmpObj(res5)) { | |
4971 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4972 | } else { | |
4973 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4974 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4975 | } | |
4976 | return resultobj; | |
4977 | fail: | |
4978 | return NULL; | |
d14a1e28 RD |
4979 | } |
4980 | ||
4981 | ||
0085ce49 RD |
4982 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4983 | int argc; | |
4984 | PyObject *argv[4]; | |
4985 | ||
4986 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4987 | --argc; | |
4988 | if (argc == 2) { | |
4989 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4990 | } | |
4991 | if (argc == 3) { | |
4992 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4993 | } | |
4994 | ||
4995 | fail: | |
4996 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4997 | return NULL; | |
d14a1e28 RD |
4998 | } |
4999 | ||
5000 | ||
0085ce49 RD |
5001 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5002 | PyObject *resultobj = 0; | |
5003 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5004 | void *argp1 = 0 ; | |
5005 | int res1 = 0 ; | |
5006 | PyObject *swig_obj[1] ; | |
5007 | ||
5008 | if (!args) SWIG_fail; | |
5009 | swig_obj[0] = args; | |
5010 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5011 | if (!SWIG_IsOK(res1)) { | |
5012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5013 | } | |
5014 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | (arg1)->AdjustScrollbars(); | |
5018 | wxPyEndAllowThreads(__tstate); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | } | |
5021 | resultobj = SWIG_Py_Void(); | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
5028 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5029 | PyObject *resultobj = 0; | |
5030 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5031 | wxScrollWinEvent *arg2 = 0 ; | |
5032 | int result; | |
5033 | void *argp1 = 0 ; | |
5034 | int res1 = 0 ; | |
5035 | void *argp2 = 0 ; | |
5036 | int res2 = 0 ; | |
5037 | PyObject * obj0 = 0 ; | |
5038 | PyObject * obj1 = 0 ; | |
5039 | char * kwnames[] = { | |
5040 | (char *) "self",(char *) "event", NULL | |
5041 | }; | |
5042 | ||
5043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
5044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5045 | if (!SWIG_IsOK(res1)) { | |
5046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5047 | } | |
5048 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5049 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
5050 | if (!SWIG_IsOK(res2)) { | |
5051 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5052 | } | |
5053 | if (!argp2) { | |
5054 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5055 | } | |
5056 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
5057 | { | |
5058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5059 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) SWIG_fail; | |
5062 | } | |
5063 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5064 | return resultobj; | |
5065 | fail: | |
5066 | return NULL; | |
5067 | } | |
5068 | ||
5069 | ||
5070 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5071 | PyObject *resultobj = 0; | |
5072 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5073 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5074 | void *argp1 = 0 ; | |
5075 | int res1 = 0 ; | |
5076 | void *argp2 = 0 ; | |
5077 | int res2 = 0 ; | |
5078 | PyObject * obj0 = 0 ; | |
5079 | PyObject * obj1 = 0 ; | |
5080 | char * kwnames[] = { | |
5081 | (char *) "self",(char *) "target", NULL | |
5082 | }; | |
5083 | ||
5084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5086 | if (!SWIG_IsOK(res1)) { | |
5087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5088 | } | |
5089 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5090 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5091 | if (!SWIG_IsOK(res2)) { | |
5092 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5093 | } | |
5094 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5095 | { | |
5096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5097 | (arg1)->SetTargetWindow(arg2); | |
5098 | wxPyEndAllowThreads(__tstate); | |
5099 | if (PyErr_Occurred()) SWIG_fail; | |
5100 | } | |
5101 | resultobj = SWIG_Py_Void(); | |
5102 | return resultobj; | |
5103 | fail: | |
5104 | return NULL; | |
d14a1e28 RD |
5105 | } |
5106 | ||
5107 | ||
0085ce49 RD |
5108 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5109 | PyObject *resultobj = 0; | |
5110 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5111 | wxWindow *result = 0 ; | |
5112 | void *argp1 = 0 ; | |
5113 | int res1 = 0 ; | |
5114 | PyObject *swig_obj[1] ; | |
5115 | ||
5116 | if (!args) SWIG_fail; | |
5117 | swig_obj[0] = args; | |
5118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5119 | if (!SWIG_IsOK(res1)) { | |
5120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5121 | } | |
5122 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5123 | { | |
5124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5125 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5126 | wxPyEndAllowThreads(__tstate); | |
5127 | if (PyErr_Occurred()) SWIG_fail; | |
5128 | } | |
5129 | { | |
5130 | resultobj = wxPyMake_wxObject(result, 0); | |
5131 | } | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
5138 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5139 | PyObject *resultobj = 0; | |
5140 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5141 | wxDC *arg2 = 0 ; | |
5142 | void *argp1 = 0 ; | |
5143 | int res1 = 0 ; | |
5144 | void *argp2 = 0 ; | |
5145 | int res2 = 0 ; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | char * kwnames[] = { | |
5149 | (char *) "self",(char *) "dc", NULL | |
5150 | }; | |
5151 | ||
5152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5154 | if (!SWIG_IsOK(res1)) { | |
5155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5156 | } | |
5157 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5158 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5159 | if (!SWIG_IsOK(res2)) { | |
5160 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5161 | } | |
5162 | if (!argp2) { | |
5163 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5164 | } | |
5165 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | (arg1)->DoPrepareDC(*arg2); | |
5169 | wxPyEndAllowThreads(__tstate); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
5172 | resultobj = SWIG_Py_Void(); | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | return NULL; | |
5176 | } | |
5177 | ||
5178 | ||
5179 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5180 | PyObject *resultobj = 0; | |
5181 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5182 | SwigValueWrapper<wxVisualAttributes > result; | |
5183 | int val1 ; | |
5184 | int ecode1 = 0 ; | |
5185 | PyObject * obj0 = 0 ; | |
5186 | char * kwnames[] = { | |
5187 | (char *) "variant", NULL | |
5188 | }; | |
5189 | ||
5190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5191 | if (obj0) { | |
5192 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5193 | if (!SWIG_IsOK(ecode1)) { | |
5194 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5195 | } | |
5196 | arg1 = static_cast< wxWindowVariant >(val1); | |
5197 | } | |
5198 | { | |
5199 | if (!wxPyCheckForApp()) SWIG_fail; | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5206 | return resultobj; | |
5207 | fail: | |
5208 | return NULL; | |
d14a1e28 RD |
5209 | } |
5210 | ||
5211 | ||
0085ce49 RD |
5212 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5213 | PyObject *obj; | |
5214 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5215 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5216 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5217 | } |
5218 | ||
0085ce49 RD |
5219 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5220 | return SWIG_Python_InitShadowInstance(args); | |
5221 | } | |
d14a1e28 | 5222 | |
0085ce49 RD |
5223 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5224 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5225 | return 1; | |
d14a1e28 RD |
5226 | } |
5227 | ||
5228 | ||
0085ce49 RD |
5229 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5230 | PyObject *pyobj = 0; | |
5231 | ||
5232 | { | |
5233 | #if wxUSE_UNICODE | |
5234 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5235 | #else | |
5236 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5237 | #endif | |
5238 | } | |
5239 | return pyobj; | |
d14a1e28 RD |
5240 | } |
5241 | ||
5242 | ||
0085ce49 RD |
5243 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5244 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5245 | return 1; | |
d14a1e28 RD |
5246 | } |
5247 | ||
5248 | ||
0085ce49 RD |
5249 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5250 | PyObject *pyobj = 0; | |
5251 | ||
5252 | { | |
5253 | #if wxUSE_UNICODE | |
5254 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5255 | #else | |
5256 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5257 | #endif | |
5258 | } | |
5259 | return pyobj; | |
d14a1e28 RD |
5260 | } |
5261 | ||
5262 | ||
0085ce49 RD |
5263 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5264 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5265 | return 1; | |
d14a1e28 RD |
5266 | } |
5267 | ||
5268 | ||
0085ce49 RD |
5269 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5270 | PyObject *pyobj = 0; | |
5271 | ||
5272 | { | |
5273 | #if wxUSE_UNICODE | |
5274 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5275 | #else | |
5276 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5277 | #endif | |
5278 | } | |
5279 | return pyobj; | |
d14a1e28 RD |
5280 | } |
5281 | ||
5282 | ||
0085ce49 RD |
5283 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5284 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5285 | return 1; | |
d14a1e28 RD |
5286 | } |
5287 | ||
5288 | ||
0085ce49 RD |
5289 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5290 | PyObject *pyobj = 0; | |
5291 | ||
5292 | { | |
5293 | #if wxUSE_UNICODE | |
5294 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5295 | #else | |
5296 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5297 | #endif | |
5298 | } | |
5299 | return pyobj; | |
5300 | } | |
5301 | ||
5302 | ||
5303 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5304 | PyObject *resultobj = 0; | |
5305 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5306 | bool arg2 = (bool) true ; | |
5307 | void *argp1 = 0 ; | |
5308 | int res1 = 0 ; | |
5309 | bool val2 ; | |
5310 | int ecode2 = 0 ; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | PyObject * obj1 = 0 ; | |
5313 | char * kwnames[] = { | |
5314 | (char *) "self",(char *) "maximize", NULL | |
5315 | }; | |
5316 | ||
5317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5319 | if (!SWIG_IsOK(res1)) { | |
5320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5321 | } | |
5322 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5323 | if (obj1) { | |
5324 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5325 | if (!SWIG_IsOK(ecode2)) { | |
5326 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5327 | } | |
5328 | arg2 = static_cast< bool >(val2); | |
5329 | } | |
5330 | { | |
5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5332 | (arg1)->Maximize(arg2); | |
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | resultobj = SWIG_Py_Void(); | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
d14a1e28 RD |
5340 | } |
5341 | ||
5342 | ||
0085ce49 RD |
5343 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5344 | PyObject *resultobj = 0; | |
5345 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5346 | void *argp1 = 0 ; | |
5347 | int res1 = 0 ; | |
5348 | PyObject *swig_obj[1] ; | |
5349 | ||
5350 | if (!args) SWIG_fail; | |
5351 | swig_obj[0] = args; | |
5352 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5353 | if (!SWIG_IsOK(res1)) { | |
5354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5355 | } | |
5356 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | (arg1)->Restore(); | |
5360 | wxPyEndAllowThreads(__tstate); | |
5361 | if (PyErr_Occurred()) SWIG_fail; | |
5362 | } | |
5363 | resultobj = SWIG_Py_Void(); | |
5364 | return resultobj; | |
5365 | fail: | |
5366 | return NULL; | |
5367 | } | |
5368 | ||
5369 | ||
5370 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5371 | PyObject *resultobj = 0; | |
5372 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5373 | bool arg2 = (bool) true ; | |
5374 | void *argp1 = 0 ; | |
5375 | int res1 = 0 ; | |
5376 | bool val2 ; | |
5377 | int ecode2 = 0 ; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | PyObject * obj1 = 0 ; | |
5380 | char * kwnames[] = { | |
5381 | (char *) "self",(char *) "iconize", NULL | |
5382 | }; | |
5383 | ||
5384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5386 | if (!SWIG_IsOK(res1)) { | |
5387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5388 | } | |
5389 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5390 | if (obj1) { | |
5391 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5392 | if (!SWIG_IsOK(ecode2)) { | |
5393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5394 | } | |
5395 | arg2 = static_cast< bool >(val2); | |
5396 | } | |
5397 | { | |
5398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5399 | (arg1)->Iconize(arg2); | |
5400 | wxPyEndAllowThreads(__tstate); | |
5401 | if (PyErr_Occurred()) SWIG_fail; | |
5402 | } | |
5403 | resultobj = SWIG_Py_Void(); | |
5404 | return resultobj; | |
5405 | fail: | |
5406 | return NULL; | |
d14a1e28 RD |
5407 | } |
5408 | ||
5409 | ||
0085ce49 RD |
5410 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5411 | PyObject *resultobj = 0; | |
5412 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5413 | bool result; | |
5414 | void *argp1 = 0 ; | |
5415 | int res1 = 0 ; | |
5416 | PyObject *swig_obj[1] ; | |
5417 | ||
5418 | if (!args) SWIG_fail; | |
5419 | swig_obj[0] = args; | |
5420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5421 | if (!SWIG_IsOK(res1)) { | |
5422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5423 | } | |
5424 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5425 | { | |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5427 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5428 | wxPyEndAllowThreads(__tstate); | |
5429 | if (PyErr_Occurred()) SWIG_fail; | |
5430 | } | |
5431 | { | |
5432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5433 | } | |
5434 | return resultobj; | |
5435 | fail: | |
5436 | return NULL; | |
d14a1e28 RD |
5437 | } |
5438 | ||
5439 | ||
01f6b6d3 RD |
5440 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsAlwaysMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5441 | PyObject *resultobj = 0; | |
5442 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5443 | bool result; | |
5444 | void *argp1 = 0 ; | |
5445 | int res1 = 0 ; | |
5446 | PyObject *swig_obj[1] ; | |
5447 | ||
5448 | if (!args) SWIG_fail; | |
5449 | swig_obj[0] = args; | |
5450 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5451 | if (!SWIG_IsOK(res1)) { | |
5452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsAlwaysMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5453 | } | |
5454 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | result = (bool)((wxTopLevelWindow const *)arg1)->IsAlwaysMaximized(); | |
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | { | |
5462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5463 | } | |
5464 | return resultobj; | |
5465 | fail: | |
5466 | return NULL; | |
5467 | } | |
5468 | ||
5469 | ||
0085ce49 RD |
5470 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5471 | PyObject *resultobj = 0; | |
5472 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5473 | bool result; | |
5474 | void *argp1 = 0 ; | |
5475 | int res1 = 0 ; | |
5476 | PyObject *swig_obj[1] ; | |
5477 | ||
5478 | if (!args) SWIG_fail; | |
5479 | swig_obj[0] = args; | |
5480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5481 | if (!SWIG_IsOK(res1)) { | |
5482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5483 | } | |
5484 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5488 | wxPyEndAllowThreads(__tstate); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
5490 | } | |
5491 | { | |
5492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5493 | } | |
5494 | return resultobj; | |
5495 | fail: | |
5496 | return NULL; | |
f5b96ee1 RD |
5497 | } |
5498 | ||
5499 | ||
0085ce49 RD |
5500 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5501 | PyObject *resultobj = 0; | |
5502 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5503 | wxIcon result; | |
5504 | void *argp1 = 0 ; | |
5505 | int res1 = 0 ; | |
5506 | PyObject *swig_obj[1] ; | |
5507 | ||
5508 | if (!args) SWIG_fail; | |
5509 | swig_obj[0] = args; | |
5510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5511 | if (!SWIG_IsOK(res1)) { | |
5512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5513 | } | |
5514 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5515 | { | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
5521 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj = 0; | |
5530 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5531 | wxIcon *arg2 = 0 ; | |
5532 | void *argp1 = 0 ; | |
5533 | int res1 = 0 ; | |
5534 | void *argp2 = 0 ; | |
5535 | int res2 = 0 ; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | PyObject * obj1 = 0 ; | |
5538 | char * kwnames[] = { | |
5539 | (char *) "self",(char *) "icon", NULL | |
5540 | }; | |
5541 | ||
5542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5544 | if (!SWIG_IsOK(res1)) { | |
5545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5546 | } | |
5547 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5548 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5549 | if (!SWIG_IsOK(res2)) { | |
5550 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5551 | } | |
5552 | if (!argp2) { | |
5553 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5554 | } | |
5555 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5556 | { | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
5562 | resultobj = SWIG_Py_Void(); | |
5563 | return resultobj; | |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
5569 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj = 0; | |
5571 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5572 | wxIconBundle *arg2 = 0 ; | |
5573 | void *argp1 = 0 ; | |
5574 | int res1 = 0 ; | |
5575 | void *argp2 = 0 ; | |
5576 | int res2 = 0 ; | |
5577 | PyObject * obj0 = 0 ; | |
5578 | PyObject * obj1 = 0 ; | |
5579 | char * kwnames[] = { | |
5580 | (char *) "self",(char *) "icons", NULL | |
5581 | }; | |
5582 | ||
5583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5585 | if (!SWIG_IsOK(res1)) { | |
5586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5587 | } | |
5588 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5589 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5590 | if (!SWIG_IsOK(res2)) { | |
5591 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5592 | } | |
5593 | if (!argp2) { | |
5594 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5595 | } | |
5596 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5600 | wxPyEndAllowThreads(__tstate); | |
5601 | if (PyErr_Occurred()) SWIG_fail; | |
5602 | } | |
5603 | resultobj = SWIG_Py_Void(); | |
5604 | return resultobj; | |
5605 | fail: | |
5606 | return NULL; | |
5607 | } | |
5608 | ||
5609 | ||
5610 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5611 | PyObject *resultobj = 0; | |
5612 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5613 | bool arg2 ; | |
5614 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5615 | bool result; | |
5616 | void *argp1 = 0 ; | |
5617 | int res1 = 0 ; | |
5618 | bool val2 ; | |
5619 | int ecode2 = 0 ; | |
5620 | long val3 ; | |
5621 | int ecode3 = 0 ; | |
5622 | PyObject * obj0 = 0 ; | |
5623 | PyObject * obj1 = 0 ; | |
5624 | PyObject * obj2 = 0 ; | |
5625 | char * kwnames[] = { | |
5626 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5627 | }; | |
5628 | ||
5629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5631 | if (!SWIG_IsOK(res1)) { | |
5632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5633 | } | |
5634 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5635 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5636 | if (!SWIG_IsOK(ecode2)) { | |
5637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5638 | } | |
5639 | arg2 = static_cast< bool >(val2); | |
5640 | if (obj2) { | |
5641 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5642 | if (!SWIG_IsOK(ecode3)) { | |
5643 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5644 | } | |
5645 | arg3 = static_cast< long >(val3); | |
5646 | } | |
5647 | { | |
5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5649 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5650 | wxPyEndAllowThreads(__tstate); | |
5651 | if (PyErr_Occurred()) SWIG_fail; | |
5652 | } | |
5653 | { | |
5654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5655 | } | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
22bfe96c RD |
5659 | } |
5660 | ||
5661 | ||
0085ce49 RD |
5662 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5663 | PyObject *resultobj = 0; | |
5664 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5665 | bool result; | |
5666 | void *argp1 = 0 ; | |
5667 | int res1 = 0 ; | |
5668 | PyObject *swig_obj[1] ; | |
5669 | ||
5670 | if (!args) SWIG_fail; | |
5671 | swig_obj[0] = args; | |
5672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5673 | if (!SWIG_IsOK(res1)) { | |
5674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5675 | } | |
5676 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5677 | { | |
5678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5679 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5680 | wxPyEndAllowThreads(__tstate); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | } | |
5683 | { | |
5684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5685 | } | |
5686 | return resultobj; | |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj = 0; | |
5694 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5695 | wxString *arg2 = 0 ; | |
5696 | void *argp1 = 0 ; | |
5697 | int res1 = 0 ; | |
5698 | bool temp2 = false ; | |
5699 | PyObject * obj0 = 0 ; | |
5700 | PyObject * obj1 = 0 ; | |
5701 | char * kwnames[] = { | |
5702 | (char *) "self",(char *) "title", NULL | |
5703 | }; | |
5704 | ||
5705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5707 | if (!SWIG_IsOK(res1)) { | |
5708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5709 | } | |
5710 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5711 | { | |
5712 | arg2 = wxString_in_helper(obj1); | |
5713 | if (arg2 == NULL) SWIG_fail; | |
5714 | temp2 = true; | |
5715 | } | |
5716 | { | |
5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5718 | (arg1)->SetTitle((wxString const &)*arg2); | |
5719 | wxPyEndAllowThreads(__tstate); | |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
5721 | } | |
5722 | resultobj = SWIG_Py_Void(); | |
5723 | { | |
5724 | if (temp2) | |
5725 | delete arg2; | |
5726 | } | |
5727 | return resultobj; | |
5728 | fail: | |
5729 | { | |
5730 | if (temp2) | |
5731 | delete arg2; | |
5732 | } | |
5733 | return NULL; | |
b2dc1044 RD |
5734 | } |
5735 | ||
5736 | ||
0085ce49 RD |
5737 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5738 | PyObject *resultobj = 0; | |
5739 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5740 | wxString result; | |
5741 | void *argp1 = 0 ; | |
5742 | int res1 = 0 ; | |
5743 | PyObject *swig_obj[1] ; | |
5744 | ||
5745 | if (!args) SWIG_fail; | |
5746 | swig_obj[0] = args; | |
5747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5748 | if (!SWIG_IsOK(res1)) { | |
5749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5750 | } | |
5751 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5752 | { | |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | { | |
b2dc1044 | 5759 | #if wxUSE_UNICODE |
0085ce49 | 5760 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5761 | #else |
0085ce49 | 5762 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5763 | #endif |
0085ce49 RD |
5764 | } |
5765 | return resultobj; | |
5766 | fail: | |
5767 | return NULL; | |
5768 | } | |
5769 | ||
5770 | ||
70d7cb34 RD |
5771 | SWIGINTERN PyObject *_wrap_TopLevelWindow_EnableCloseButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5772 | PyObject *resultobj = 0; | |
5773 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5774 | bool arg2 ; | |
5775 | bool result; | |
5776 | void *argp1 = 0 ; | |
5777 | int res1 = 0 ; | |
5778 | bool val2 ; | |
5779 | int ecode2 = 0 ; | |
5780 | PyObject * obj0 = 0 ; | |
5781 | PyObject * obj1 = 0 ; | |
5782 | char * kwnames[] = { | |
5783 | (char *) "self",(char *) "enable", NULL | |
5784 | }; | |
5785 | ||
5786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_EnableCloseButton",kwnames,&obj0,&obj1)) SWIG_fail; | |
5787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5788 | if (!SWIG_IsOK(res1)) { | |
5789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5790 | } | |
5791 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5792 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5793 | if (!SWIG_IsOK(ecode2)) { | |
5794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "2"" of type '" "bool""'"); | |
5795 | } | |
5796 | arg2 = static_cast< bool >(val2); | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | result = (bool)(arg1)->EnableCloseButton(arg2); | |
5800 | wxPyEndAllowThreads(__tstate); | |
5801 | if (PyErr_Occurred()) SWIG_fail; | |
5802 | } | |
5803 | { | |
5804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5805 | } | |
5806 | return resultobj; | |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
0085ce49 RD |
5812 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5813 | PyObject *resultobj = 0; | |
5814 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5815 | wxRegion *arg2 = 0 ; | |
5816 | bool result; | |
5817 | void *argp1 = 0 ; | |
5818 | int res1 = 0 ; | |
5819 | void *argp2 = 0 ; | |
5820 | int res2 = 0 ; | |
5821 | PyObject * obj0 = 0 ; | |
5822 | PyObject * obj1 = 0 ; | |
5823 | char * kwnames[] = { | |
5824 | (char *) "self",(char *) "region", NULL | |
5825 | }; | |
5826 | ||
5827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5829 | if (!SWIG_IsOK(res1)) { | |
5830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5831 | } | |
5832 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5833 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5834 | if (!SWIG_IsOK(res2)) { | |
5835 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5836 | } | |
5837 | if (!argp2) { | |
5838 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5839 | } | |
5840 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5841 | { | |
5842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5843 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5844 | wxPyEndAllowThreads(__tstate); | |
5845 | if (PyErr_Occurred()) SWIG_fail; | |
5846 | } | |
5847 | { | |
5848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5849 | } | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj = 0; | |
5858 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5859 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5860 | void *argp1 = 0 ; | |
5861 | int res1 = 0 ; | |
5862 | int val2 ; | |
5863 | int ecode2 = 0 ; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | PyObject * obj1 = 0 ; | |
5866 | char * kwnames[] = { | |
5867 | (char *) "self",(char *) "flags", NULL | |
5868 | }; | |
5869 | ||
5870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5872 | if (!SWIG_IsOK(res1)) { | |
5873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5874 | } | |
5875 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5876 | if (obj1) { | |
5877 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5878 | if (!SWIG_IsOK(ecode2)) { | |
5879 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5880 | } | |
5881 | arg2 = static_cast< int >(val2); | |
5882 | } | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | (arg1)->RequestUserAttention(arg2); | |
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | resultobj = SWIG_Py_Void(); | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
b2dc1044 RD |
5893 | } |
5894 | ||
5895 | ||
0085ce49 RD |
5896 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5897 | PyObject *resultobj = 0; | |
5898 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5899 | bool result; | |
5900 | void *argp1 = 0 ; | |
5901 | int res1 = 0 ; | |
5902 | PyObject *swig_obj[1] ; | |
5903 | ||
5904 | if (!args) SWIG_fail; | |
5905 | swig_obj[0] = args; | |
5906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5907 | if (!SWIG_IsOK(res1)) { | |
5908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5909 | } | |
5910 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5911 | { | |
5912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5913 | result = (bool)(arg1)->IsActive(); | |
5914 | wxPyEndAllowThreads(__tstate); | |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
5916 | } | |
5917 | { | |
5918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5919 | } | |
5920 | return resultobj; | |
5921 | fail: | |
5922 | return NULL; | |
5923 | } | |
5924 | ||
5925 | ||
5926 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5927 | PyObject *resultobj = 0; | |
5928 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5929 | bool arg2 ; | |
5930 | void *argp1 = 0 ; | |
5931 | int res1 = 0 ; | |
5932 | bool val2 ; | |
5933 | int ecode2 = 0 ; | |
5934 | PyObject * obj0 = 0 ; | |
5935 | PyObject * obj1 = 0 ; | |
5936 | char * kwnames[] = { | |
5937 | (char *) "self",(char *) "on", NULL | |
5938 | }; | |
5939 | ||
5940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5942 | if (!SWIG_IsOK(res1)) { | |
5943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5944 | } | |
5945 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5946 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5947 | if (!SWIG_IsOK(ecode2)) { | |
5948 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5949 | } | |
5950 | arg2 = static_cast< bool >(val2); | |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | resultobj = SWIG_Py_Void(); | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
b2dc1044 RD |
5961 | } |
5962 | ||
5963 | ||
0085ce49 RD |
5964 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5965 | PyObject *resultobj = 0; | |
5966 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5967 | bool result; | |
5968 | void *argp1 = 0 ; | |
5969 | int res1 = 0 ; | |
5970 | PyObject *swig_obj[1] ; | |
5971 | ||
5972 | if (!args) SWIG_fail; | |
5973 | swig_obj[0] = args; | |
5974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5975 | if (!SWIG_IsOK(res1)) { | |
5976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5977 | } | |
5978 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5979 | { | |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1); | |
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | { | |
5986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5987 | } | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
5994 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj = 0; | |
5996 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5997 | int arg2 = (int) wxBOTH ; | |
5998 | void *argp1 = 0 ; | |
5999 | int res1 = 0 ; | |
6000 | int val2 ; | |
6001 | int ecode2 = 0 ; | |
6002 | PyObject * obj0 = 0 ; | |
6003 | PyObject * obj1 = 0 ; | |
6004 | char * kwnames[] = { | |
6005 | (char *) "self",(char *) "dir", NULL | |
6006 | }; | |
6007 | ||
6008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
6009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6010 | if (!SWIG_IsOK(res1)) { | |
6011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6012 | } | |
6013 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6014 | if (obj1) { | |
6015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6016 | if (!SWIG_IsOK(ecode2)) { | |
6017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
6018 | } | |
6019 | arg2 = static_cast< int >(val2); | |
6020 | } | |
6021 | { | |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | (arg1)->CenterOnScreen(arg2); | |
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | resultobj = SWIG_Py_Void(); | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
10044bf1 RD |
6034 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6035 | PyObject *resultobj = 0; | |
6036 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6037 | wxWindow *result = 0 ; | |
6038 | void *argp1 = 0 ; | |
6039 | int res1 = 0 ; | |
6040 | PyObject *swig_obj[1] ; | |
6041 | ||
6042 | if (!args) SWIG_fail; | |
6043 | swig_obj[0] = args; | |
6044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6045 | if (!SWIG_IsOK(res1)) { | |
6046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6047 | } | |
6048 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6049 | { | |
6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6051 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetDefaultItem(); | |
6052 | wxPyEndAllowThreads(__tstate); | |
6053 | if (PyErr_Occurred()) SWIG_fail; | |
6054 | } | |
6055 | { | |
6056 | resultobj = wxPyMake_wxObject(result, 0); | |
6057 | } | |
6058 | return resultobj; | |
6059 | fail: | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6065 | PyObject *resultobj = 0; | |
6066 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6068 | wxWindow *result = 0 ; | |
6069 | void *argp1 = 0 ; | |
6070 | int res1 = 0 ; | |
6071 | void *argp2 = 0 ; | |
6072 | int res2 = 0 ; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | PyObject * obj1 = 0 ; | |
6075 | char * kwnames[] = { | |
6076 | (char *) "self",(char *) "child", NULL | |
6077 | }; | |
6078 | ||
6079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6081 | if (!SWIG_IsOK(res1)) { | |
6082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6083 | } | |
6084 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6085 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6086 | if (!SWIG_IsOK(res2)) { | |
6087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6088 | } | |
6089 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
6096 | { | |
6097 | resultobj = wxPyMake_wxObject(result, 0); | |
6098 | } | |
6099 | return resultobj; | |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
6105 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6106 | PyObject *resultobj = 0; | |
6107 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6108 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6109 | void *argp1 = 0 ; | |
6110 | int res1 = 0 ; | |
6111 | void *argp2 = 0 ; | |
6112 | int res2 = 0 ; | |
6113 | PyObject * obj0 = 0 ; | |
6114 | PyObject * obj1 = 0 ; | |
6115 | char * kwnames[] = { | |
6116 | (char *) "self",(char *) "win", NULL | |
6117 | }; | |
6118 | ||
6119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTmpDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6121 | if (!SWIG_IsOK(res1)) { | |
6122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6123 | } | |
6124 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6125 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6126 | if (!SWIG_IsOK(res2)) { | |
6127 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6128 | } | |
6129 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | (arg1)->SetTmpDefaultItem(arg2); | |
6133 | wxPyEndAllowThreads(__tstate); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
6136 | resultobj = SWIG_Py_Void(); | |
6137 | return resultobj; | |
6138 | fail: | |
6139 | return NULL; | |
6140 | } | |
6141 | ||
6142 | ||
6143 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6144 | PyObject *resultobj = 0; | |
6145 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6146 | wxWindow *result = 0 ; | |
6147 | void *argp1 = 0 ; | |
6148 | int res1 = 0 ; | |
6149 | PyObject *swig_obj[1] ; | |
6150 | ||
6151 | if (!args) SWIG_fail; | |
6152 | swig_obj[0] = args; | |
6153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6154 | if (!SWIG_IsOK(res1)) { | |
6155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6156 | } | |
6157 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetTmpDefaultItem(); | |
6161 | wxPyEndAllowThreads(__tstate); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | } | |
6164 | { | |
6165 | resultobj = wxPyMake_wxObject(result, 0); | |
6166 | } | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
0085ce49 RD |
6173 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6174 | PyObject *obj; | |
6175 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6176 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
6177 | return SWIG_Py_Void(); | |
6178 | } | |
6179 | ||
6180 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6181 | PyObject *resultobj = 0; | |
6182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6183 | int arg2 = (int) (int)-1 ; | |
6184 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6185 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6186 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6187 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6188 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6189 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6190 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6191 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6192 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6193 | wxFrame *result = 0 ; | |
6194 | void *argp1 = 0 ; | |
6195 | int res1 = 0 ; | |
6196 | int val2 ; | |
6197 | int ecode2 = 0 ; | |
6198 | bool temp3 = false ; | |
6199 | wxPoint temp4 ; | |
6200 | wxSize temp5 ; | |
6201 | long val6 ; | |
6202 | int ecode6 = 0 ; | |
6203 | bool temp7 = false ; | |
6204 | PyObject * obj0 = 0 ; | |
6205 | PyObject * obj1 = 0 ; | |
6206 | PyObject * obj2 = 0 ; | |
6207 | PyObject * obj3 = 0 ; | |
6208 | PyObject * obj4 = 0 ; | |
6209 | PyObject * obj5 = 0 ; | |
6210 | PyObject * obj6 = 0 ; | |
6211 | char * kwnames[] = { | |
6212 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6213 | }; | |
6214 | ||
6215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6217 | if (!SWIG_IsOK(res1)) { | |
6218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6219 | } | |
6220 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6221 | if (obj1) { | |
6222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6223 | if (!SWIG_IsOK(ecode2)) { | |
6224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6225 | } | |
6226 | arg2 = static_cast< int >(val2); | |
6227 | } | |
6228 | if (obj2) { | |
b2dc1044 | 6229 | { |
0085ce49 RD |
6230 | arg3 = wxString_in_helper(obj2); |
6231 | if (arg3 == NULL) SWIG_fail; | |
6232 | temp3 = true; | |
b2dc1044 | 6233 | } |
0085ce49 RD |
6234 | } |
6235 | if (obj3) { | |
b2dc1044 | 6236 | { |
0085ce49 RD |
6237 | arg4 = &temp4; |
6238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
b2dc1044 | 6239 | } |
0085ce49 RD |
6240 | } |
6241 | if (obj4) { | |
b2dc1044 | 6242 | { |
0085ce49 RD |
6243 | arg5 = &temp5; |
6244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 6245 | } |
0085ce49 RD |
6246 | } |
6247 | if (obj5) { | |
6248 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6249 | if (!SWIG_IsOK(ecode6)) { | |
6250 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6251 | } | |
6252 | arg6 = static_cast< long >(val6); | |
6253 | } | |
6254 | if (obj6) { | |
d14a1e28 | 6255 | { |
0085ce49 RD |
6256 | arg7 = wxString_in_helper(obj6); |
6257 | if (arg7 == NULL) SWIG_fail; | |
6258 | temp7 = true; | |
d14a1e28 | 6259 | } |
0085ce49 RD |
6260 | } |
6261 | { | |
6262 | if (!wxPyCheckForApp()) SWIG_fail; | |
6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6264 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6265 | wxPyEndAllowThreads(__tstate); | |
6266 | if (PyErr_Occurred()) SWIG_fail; | |
6267 | } | |
6268 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6269 | { | |
6270 | if (temp3) | |
6271 | delete arg3; | |
6272 | } | |
6273 | { | |
6274 | if (temp7) | |
6275 | delete arg7; | |
6276 | } | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | { | |
6280 | if (temp3) | |
6281 | delete arg3; | |
6282 | } | |
6283 | { | |
6284 | if (temp7) | |
6285 | delete arg7; | |
6286 | } | |
6287 | return NULL; | |
d14a1e28 RD |
6288 | } |
6289 | ||
6290 | ||
0085ce49 RD |
6291 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6292 | PyObject *resultobj = 0; | |
6293 | wxFrame *result = 0 ; | |
6294 | ||
6295 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6296 | { | |
6297 | if (!wxPyCheckForApp()) SWIG_fail; | |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | result = (wxFrame *)new wxFrame(); | |
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6304 | return resultobj; | |
6305 | fail: | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
6310 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6311 | PyObject *resultobj = 0; | |
6312 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6314 | int arg3 = (int) (int)-1 ; | |
6315 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6316 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6317 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6318 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6319 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6320 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6321 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6322 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6323 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6324 | bool result; | |
6325 | void *argp1 = 0 ; | |
6326 | int res1 = 0 ; | |
6327 | void *argp2 = 0 ; | |
6328 | int res2 = 0 ; | |
6329 | int val3 ; | |
6330 | int ecode3 = 0 ; | |
6331 | bool temp4 = false ; | |
6332 | wxPoint temp5 ; | |
6333 | wxSize temp6 ; | |
6334 | long val7 ; | |
6335 | int ecode7 = 0 ; | |
6336 | bool temp8 = false ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | PyObject * obj1 = 0 ; | |
6339 | PyObject * obj2 = 0 ; | |
6340 | PyObject * obj3 = 0 ; | |
6341 | PyObject * obj4 = 0 ; | |
6342 | PyObject * obj5 = 0 ; | |
6343 | PyObject * obj6 = 0 ; | |
6344 | PyObject * obj7 = 0 ; | |
6345 | char * kwnames[] = { | |
6346 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6347 | }; | |
6348 | ||
6349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6351 | if (!SWIG_IsOK(res1)) { | |
6352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6353 | } | |
6354 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6355 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6356 | if (!SWIG_IsOK(res2)) { | |
6357 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6358 | } | |
6359 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6360 | if (obj2) { | |
6361 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6362 | if (!SWIG_IsOK(ecode3)) { | |
6363 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6364 | } | |
6365 | arg3 = static_cast< int >(val3); | |
6366 | } | |
6367 | if (obj3) { | |
d14a1e28 | 6368 | { |
0085ce49 RD |
6369 | arg4 = wxString_in_helper(obj3); |
6370 | if (arg4 == NULL) SWIG_fail; | |
6371 | temp4 = true; | |
d14a1e28 | 6372 | } |
0085ce49 RD |
6373 | } |
6374 | if (obj4) { | |
4f89f6a3 | 6375 | { |
0085ce49 RD |
6376 | arg5 = &temp5; |
6377 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 6378 | } |
0085ce49 RD |
6379 | } |
6380 | if (obj5) { | |
d14a1e28 | 6381 | { |
0085ce49 RD |
6382 | arg6 = &temp6; |
6383 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 6384 | } |
0085ce49 RD |
6385 | } |
6386 | if (obj6) { | |
6387 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6388 | if (!SWIG_IsOK(ecode7)) { | |
6389 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6390 | } | |
6391 | arg7 = static_cast< long >(val7); | |
6392 | } | |
6393 | if (obj7) { | |
4f89f6a3 | 6394 | { |
0085ce49 RD |
6395 | arg8 = wxString_in_helper(obj7); |
6396 | if (arg8 == NULL) SWIG_fail; | |
6397 | temp8 = true; | |
4f89f6a3 | 6398 | } |
0085ce49 RD |
6399 | } |
6400 | { | |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6403 | wxPyEndAllowThreads(__tstate); | |
6404 | if (PyErr_Occurred()) SWIG_fail; | |
6405 | } | |
6406 | { | |
6407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6408 | } | |
6409 | { | |
6410 | if (temp4) | |
6411 | delete arg4; | |
6412 | } | |
6413 | { | |
6414 | if (temp8) | |
6415 | delete arg8; | |
6416 | } | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | { | |
6420 | if (temp4) | |
6421 | delete arg4; | |
6422 | } | |
6423 | { | |
6424 | if (temp8) | |
6425 | delete arg8; | |
6426 | } | |
6427 | return NULL; | |
d14a1e28 RD |
6428 | } |
6429 | ||
6430 | ||
0085ce49 RD |
6431 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6432 | PyObject *resultobj = 0; | |
6433 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6434 | void *argp1 = 0 ; | |
6435 | int res1 = 0 ; | |
6436 | PyObject *swig_obj[1] ; | |
6437 | ||
6438 | if (!args) SWIG_fail; | |
6439 | swig_obj[0] = args; | |
6440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6441 | if (!SWIG_IsOK(res1)) { | |
6442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6443 | } | |
6444 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | (arg1)->SendSizeEvent(); | |
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | resultobj = SWIG_Py_Void(); | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
6458 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6459 | PyObject *resultobj = 0; | |
6460 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6461 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6462 | void *argp1 = 0 ; | |
6463 | int res1 = 0 ; | |
6464 | void *argp2 = 0 ; | |
6465 | int res2 = 0 ; | |
6466 | PyObject * obj0 = 0 ; | |
6467 | PyObject * obj1 = 0 ; | |
6468 | char * kwnames[] = { | |
6469 | (char *) "self",(char *) "menubar", NULL | |
6470 | }; | |
6471 | ||
6472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6474 | if (!SWIG_IsOK(res1)) { | |
6475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6476 | } | |
6477 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6478 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6479 | if (!SWIG_IsOK(res2)) { | |
6480 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6481 | } | |
6482 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6483 | { | |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6485 | (arg1)->SetMenuBar(arg2); | |
6486 | wxPyEndAllowThreads(__tstate); | |
6487 | if (PyErr_Occurred()) SWIG_fail; | |
6488 | } | |
6489 | resultobj = SWIG_Py_Void(); | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | return NULL; | |
d14a1e28 RD |
6493 | } |
6494 | ||
6495 | ||
0085ce49 RD |
6496 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6497 | PyObject *resultobj = 0; | |
6498 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6499 | wxMenuBar *result = 0 ; | |
6500 | void *argp1 = 0 ; | |
6501 | int res1 = 0 ; | |
6502 | PyObject *swig_obj[1] ; | |
6503 | ||
6504 | if (!args) SWIG_fail; | |
6505 | swig_obj[0] = args; | |
6506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6507 | if (!SWIG_IsOK(res1)) { | |
6508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6509 | } | |
6510 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6511 | { | |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | { | |
6518 | resultobj = wxPyMake_wxObject(result, 0); | |
6519 | } | |
6520 | return resultobj; | |
6521 | fail: | |
6522 | return NULL; | |
6523 | } | |
6524 | ||
6525 | ||
6526 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6527 | PyObject *resultobj = 0; | |
6528 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6529 | int arg2 ; | |
6530 | bool result; | |
6531 | void *argp1 = 0 ; | |
6532 | int res1 = 0 ; | |
6533 | int val2 ; | |
6534 | int ecode2 = 0 ; | |
6535 | PyObject * obj0 = 0 ; | |
6536 | PyObject * obj1 = 0 ; | |
6537 | char * kwnames[] = { | |
6538 | (char *) "self",(char *) "winid", NULL | |
6539 | }; | |
6540 | ||
6541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6543 | if (!SWIG_IsOK(res1)) { | |
6544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6545 | } | |
6546 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6548 | if (!SWIG_IsOK(ecode2)) { | |
6549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6550 | } | |
6551 | arg2 = static_cast< int >(val2); | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | { | |
6559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6560 | } | |
6561 | return resultobj; | |
6562 | fail: | |
6563 | return NULL; | |
6564 | } | |
6565 | ||
6566 | ||
6567 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6568 | PyObject *resultobj = 0; | |
6569 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6570 | int arg2 = (int) 1 ; | |
6571 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6572 | int arg4 = (int) 0 ; | |
6573 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6574 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6575 | wxStatusBar *result = 0 ; | |
6576 | void *argp1 = 0 ; | |
6577 | int res1 = 0 ; | |
6578 | int val2 ; | |
6579 | int ecode2 = 0 ; | |
6580 | long val3 ; | |
6581 | int ecode3 = 0 ; | |
6582 | int val4 ; | |
6583 | int ecode4 = 0 ; | |
6584 | bool temp5 = false ; | |
6585 | PyObject * obj0 = 0 ; | |
6586 | PyObject * obj1 = 0 ; | |
6587 | PyObject * obj2 = 0 ; | |
6588 | PyObject * obj3 = 0 ; | |
6589 | PyObject * obj4 = 0 ; | |
6590 | char * kwnames[] = { | |
6591 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6592 | }; | |
6593 | ||
6594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6596 | if (!SWIG_IsOK(res1)) { | |
6597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6598 | } | |
6599 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6600 | if (obj1) { | |
6601 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6602 | if (!SWIG_IsOK(ecode2)) { | |
6603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6604 | } | |
6605 | arg2 = static_cast< int >(val2); | |
6606 | } | |
6607 | if (obj2) { | |
6608 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6609 | if (!SWIG_IsOK(ecode3)) { | |
6610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6611 | } | |
6612 | arg3 = static_cast< long >(val3); | |
6613 | } | |
6614 | if (obj3) { | |
6615 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6616 | if (!SWIG_IsOK(ecode4)) { | |
6617 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6618 | } | |
6619 | arg4 = static_cast< int >(val4); | |
6620 | } | |
6621 | if (obj4) { | |
093d3ff1 | 6622 | { |
0085ce49 RD |
6623 | arg5 = wxString_in_helper(obj4); |
6624 | if (arg5 == NULL) SWIG_fail; | |
6625 | temp5 = true; | |
d14a1e28 | 6626 | } |
0085ce49 RD |
6627 | } |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | { | |
6635 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6636 | } | |
6637 | { | |
6638 | if (temp5) | |
6639 | delete arg5; | |
6640 | } | |
6641 | return resultobj; | |
6642 | fail: | |
6643 | { | |
6644 | if (temp5) | |
6645 | delete arg5; | |
6646 | } | |
6647 | return NULL; | |
d14a1e28 RD |
6648 | } |
6649 | ||
6650 | ||
0085ce49 RD |
6651 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6652 | PyObject *resultobj = 0; | |
6653 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6654 | wxStatusBar *result = 0 ; | |
6655 | void *argp1 = 0 ; | |
6656 | int res1 = 0 ; | |
6657 | PyObject *swig_obj[1] ; | |
6658 | ||
6659 | if (!args) SWIG_fail; | |
6660 | swig_obj[0] = args; | |
6661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6662 | if (!SWIG_IsOK(res1)) { | |
6663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6664 | } | |
6665 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6666 | { | |
6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6668 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) SWIG_fail; | |
6671 | } | |
6672 | { | |
6673 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6674 | } | |
6675 | return resultobj; | |
6676 | fail: | |
6677 | return NULL; | |
6678 | } | |
6679 | ||
6680 | ||
6681 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6682 | PyObject *resultobj = 0; | |
6683 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6684 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6685 | void *argp1 = 0 ; | |
6686 | int res1 = 0 ; | |
6687 | void *argp2 = 0 ; | |
6688 | int res2 = 0 ; | |
6689 | PyObject * obj0 = 0 ; | |
6690 | PyObject * obj1 = 0 ; | |
6691 | char * kwnames[] = { | |
6692 | (char *) "self",(char *) "statBar", NULL | |
6693 | }; | |
6694 | ||
6695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6697 | if (!SWIG_IsOK(res1)) { | |
6698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6699 | } | |
6700 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6701 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6702 | if (!SWIG_IsOK(res2)) { | |
6703 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6704 | } | |
6705 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6706 | { | |
6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6708 | (arg1)->SetStatusBar(arg2); | |
6709 | wxPyEndAllowThreads(__tstate); | |
6710 | if (PyErr_Occurred()) SWIG_fail; | |
6711 | } | |
6712 | resultobj = SWIG_Py_Void(); | |
6713 | return resultobj; | |
6714 | fail: | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
6719 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6720 | PyObject *resultobj = 0; | |
6721 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6722 | wxString *arg2 = 0 ; | |
6723 | int arg3 = (int) 0 ; | |
6724 | void *argp1 = 0 ; | |
6725 | int res1 = 0 ; | |
6726 | bool temp2 = false ; | |
6727 | int val3 ; | |
6728 | int ecode3 = 0 ; | |
6729 | PyObject * obj0 = 0 ; | |
6730 | PyObject * obj1 = 0 ; | |
6731 | PyObject * obj2 = 0 ; | |
6732 | char * kwnames[] = { | |
6733 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6734 | }; | |
6735 | ||
6736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6738 | if (!SWIG_IsOK(res1)) { | |
6739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6740 | } | |
6741 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6742 | { | |
6743 | arg2 = wxString_in_helper(obj1); | |
6744 | if (arg2 == NULL) SWIG_fail; | |
6745 | temp2 = true; | |
6746 | } | |
6747 | if (obj2) { | |
6748 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6749 | if (!SWIG_IsOK(ecode3)) { | |
6750 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6751 | } | |
6752 | arg3 = static_cast< int >(val3); | |
6753 | } | |
6754 | { | |
6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6756 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6757 | wxPyEndAllowThreads(__tstate); | |
6758 | if (PyErr_Occurred()) SWIG_fail; | |
6759 | } | |
6760 | resultobj = SWIG_Py_Void(); | |
6761 | { | |
6762 | if (temp2) | |
6763 | delete arg2; | |
6764 | } | |
6765 | return resultobj; | |
6766 | fail: | |
6767 | { | |
6768 | if (temp2) | |
6769 | delete arg2; | |
6770 | } | |
6771 | return NULL; | |
d14a1e28 RD |
6772 | } |
6773 | ||
6774 | ||
0085ce49 RD |
6775 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6776 | PyObject *resultobj = 0; | |
6777 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6778 | int arg2 ; | |
6779 | int *arg3 = (int *) 0 ; | |
6780 | void *argp1 = 0 ; | |
6781 | int res1 = 0 ; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | PyObject * obj1 = 0 ; | |
6784 | char * kwnames[] = { | |
6785 | (char *) "self",(char *) "widths", NULL | |
6786 | }; | |
6787 | ||
6788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6790 | if (!SWIG_IsOK(res1)) { | |
6791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6792 | } | |
6793 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6794 | { | |
6795 | arg2 = PyList_Size(obj1); | |
6796 | arg3 = int_LIST_helper(obj1); | |
6797 | if (arg3 == NULL) SWIG_fail; | |
6798 | } | |
6799 | { | |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6801 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6802 | wxPyEndAllowThreads(__tstate); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
6804 | } | |
6805 | resultobj = SWIG_Py_Void(); | |
6806 | { | |
6807 | if (arg3) delete [] arg3; | |
6808 | } | |
6809 | return resultobj; | |
6810 | fail: | |
6811 | { | |
6812 | if (arg3) delete [] arg3; | |
6813 | } | |
6814 | return NULL; | |
6815 | } | |
6816 | ||
6817 | ||
6818 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6819 | PyObject *resultobj = 0; | |
6820 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6821 | wxString *arg2 = 0 ; | |
6822 | int arg3 = (int) 0 ; | |
6823 | void *argp1 = 0 ; | |
6824 | int res1 = 0 ; | |
6825 | bool temp2 = false ; | |
6826 | int val3 ; | |
6827 | int ecode3 = 0 ; | |
6828 | PyObject * obj0 = 0 ; | |
6829 | PyObject * obj1 = 0 ; | |
6830 | PyObject * obj2 = 0 ; | |
6831 | char * kwnames[] = { | |
6832 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6833 | }; | |
6834 | ||
6835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6837 | if (!SWIG_IsOK(res1)) { | |
6838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6839 | } | |
6840 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6841 | { | |
6842 | arg2 = wxString_in_helper(obj1); | |
6843 | if (arg2 == NULL) SWIG_fail; | |
6844 | temp2 = true; | |
6845 | } | |
6846 | if (obj2) { | |
6847 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6848 | if (!SWIG_IsOK(ecode3)) { | |
6849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6850 | } | |
6851 | arg3 = static_cast< int >(val3); | |
6852 | } | |
6853 | { | |
6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6855 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6856 | wxPyEndAllowThreads(__tstate); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | } | |
6859 | resultobj = SWIG_Py_Void(); | |
6860 | { | |
6861 | if (temp2) | |
6862 | delete arg2; | |
6863 | } | |
6864 | return resultobj; | |
6865 | fail: | |
6866 | { | |
6867 | if (temp2) | |
6868 | delete arg2; | |
6869 | } | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6875 | PyObject *resultobj = 0; | |
6876 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6877 | int arg2 = (int) 0 ; | |
6878 | void *argp1 = 0 ; | |
6879 | int res1 = 0 ; | |
6880 | int val2 ; | |
6881 | int ecode2 = 0 ; | |
6882 | PyObject * obj0 = 0 ; | |
6883 | PyObject * obj1 = 0 ; | |
6884 | char * kwnames[] = { | |
6885 | (char *) "self",(char *) "number", NULL | |
6886 | }; | |
6887 | ||
6888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6890 | if (!SWIG_IsOK(res1)) { | |
6891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6892 | } | |
6893 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6894 | if (obj1) { | |
6895 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6896 | if (!SWIG_IsOK(ecode2)) { | |
6897 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6898 | } | |
6899 | arg2 = static_cast< int >(val2); | |
6900 | } | |
6901 | { | |
6902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6903 | (arg1)->PopStatusText(arg2); | |
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
6907 | resultobj = SWIG_Py_Void(); | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | return NULL; | |
6911 | } | |
6912 | ||
6913 | ||
6914 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6915 | PyObject *resultobj = 0; | |
6916 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6917 | int arg2 ; | |
6918 | void *argp1 = 0 ; | |
6919 | int res1 = 0 ; | |
6920 | int val2 ; | |
6921 | int ecode2 = 0 ; | |
6922 | PyObject * obj0 = 0 ; | |
6923 | PyObject * obj1 = 0 ; | |
6924 | char * kwnames[] = { | |
6925 | (char *) "self",(char *) "n", NULL | |
6926 | }; | |
6927 | ||
6928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6930 | if (!SWIG_IsOK(res1)) { | |
6931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6932 | } | |
6933 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6934 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6935 | if (!SWIG_IsOK(ecode2)) { | |
6936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6937 | } | |
6938 | arg2 = static_cast< int >(val2); | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | (arg1)->SetStatusBarPane(arg2); | |
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | resultobj = SWIG_Py_Void(); | |
6946 | return resultobj; | |
6947 | fail: | |
6948 | return NULL; | |
d14a1e28 RD |
6949 | } |
6950 | ||
6951 | ||
0085ce49 RD |
6952 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6953 | PyObject *resultobj = 0; | |
6954 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6955 | int result; | |
6956 | void *argp1 = 0 ; | |
6957 | int res1 = 0 ; | |
6958 | PyObject *swig_obj[1] ; | |
6959 | ||
6960 | if (!args) SWIG_fail; | |
6961 | swig_obj[0] = args; | |
6962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6963 | if (!SWIG_IsOK(res1)) { | |
6964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6965 | } | |
6966 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6967 | { | |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6981 | PyObject *resultobj = 0; | |
6982 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6983 | long arg2 = (long) -1 ; | |
6984 | int arg3 = (int) -1 ; | |
6985 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
6986 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6987 | wxToolBar *result = 0 ; | |
6988 | void *argp1 = 0 ; | |
6989 | int res1 = 0 ; | |
6990 | long val2 ; | |
6991 | int ecode2 = 0 ; | |
6992 | int val3 ; | |
6993 | int ecode3 = 0 ; | |
6994 | bool temp4 = false ; | |
6995 | PyObject * obj0 = 0 ; | |
6996 | PyObject * obj1 = 0 ; | |
6997 | PyObject * obj2 = 0 ; | |
6998 | PyObject * obj3 = 0 ; | |
6999 | char * kwnames[] = { | |
7000 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
7001 | }; | |
7002 | ||
7003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7005 | if (!SWIG_IsOK(res1)) { | |
7006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7007 | } | |
7008 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7009 | if (obj1) { | |
7010 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7011 | if (!SWIG_IsOK(ecode2)) { | |
7012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
7013 | } | |
7014 | arg2 = static_cast< long >(val2); | |
7015 | } | |
7016 | if (obj2) { | |
7017 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7018 | if (!SWIG_IsOK(ecode3)) { | |
7019 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
7020 | } | |
7021 | arg3 = static_cast< int >(val3); | |
7022 | } | |
7023 | if (obj3) { | |
4f89f6a3 | 7024 | { |
0085ce49 RD |
7025 | arg4 = wxString_in_helper(obj3); |
7026 | if (arg4 == NULL) SWIG_fail; | |
7027 | temp4 = true; | |
4f89f6a3 | 7028 | } |
0085ce49 RD |
7029 | } |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
7036 | { | |
7037 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7038 | } | |
7039 | { | |
7040 | if (temp4) | |
7041 | delete arg4; | |
7042 | } | |
7043 | return resultobj; | |
7044 | fail: | |
7045 | { | |
7046 | if (temp4) | |
7047 | delete arg4; | |
7048 | } | |
7049 | return NULL; | |
d14a1e28 RD |
7050 | } |
7051 | ||
7052 | ||
0085ce49 RD |
7053 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7054 | PyObject *resultobj = 0; | |
7055 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7056 | wxToolBar *result = 0 ; | |
7057 | void *argp1 = 0 ; | |
7058 | int res1 = 0 ; | |
7059 | PyObject *swig_obj[1] ; | |
7060 | ||
7061 | if (!args) SWIG_fail; | |
7062 | swig_obj[0] = args; | |
7063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7064 | if (!SWIG_IsOK(res1)) { | |
7065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7066 | } | |
7067 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | { | |
7075 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj = 0; | |
7085 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7086 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
7087 | void *argp1 = 0 ; | |
7088 | int res1 = 0 ; | |
7089 | void *argp2 = 0 ; | |
7090 | int res2 = 0 ; | |
7091 | PyObject * obj0 = 0 ; | |
7092 | PyObject * obj1 = 0 ; | |
7093 | char * kwnames[] = { | |
7094 | (char *) "self",(char *) "toolbar", NULL | |
7095 | }; | |
7096 | ||
7097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
7098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7099 | if (!SWIG_IsOK(res1)) { | |
7100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7101 | } | |
7102 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7103 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
7104 | if (!SWIG_IsOK(res2)) { | |
7105 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
7106 | } | |
7107 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
7108 | { | |
7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7110 | (arg1)->SetToolBar(arg2); | |
7111 | wxPyEndAllowThreads(__tstate); | |
7112 | if (PyErr_Occurred()) SWIG_fail; | |
7113 | } | |
7114 | resultobj = SWIG_Py_Void(); | |
7115 | return resultobj; | |
7116 | fail: | |
7117 | return NULL; | |
7118 | } | |
7119 | ||
7120 | ||
7121 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7122 | PyObject *resultobj = 0; | |
7123 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7124 | wxString *arg2 = 0 ; | |
7125 | bool arg3 ; | |
7126 | void *argp1 = 0 ; | |
7127 | int res1 = 0 ; | |
7128 | bool temp2 = false ; | |
7129 | bool val3 ; | |
7130 | int ecode3 = 0 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | PyObject * obj1 = 0 ; | |
7133 | PyObject * obj2 = 0 ; | |
7134 | char * kwnames[] = { | |
7135 | (char *) "self",(char *) "text",(char *) "show", NULL | |
7136 | }; | |
7137 | ||
7138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7140 | if (!SWIG_IsOK(res1)) { | |
7141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7142 | } | |
7143 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7144 | { | |
7145 | arg2 = wxString_in_helper(obj1); | |
7146 | if (arg2 == NULL) SWIG_fail; | |
7147 | temp2 = true; | |
7148 | } | |
7149 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7150 | if (!SWIG_IsOK(ecode3)) { | |
7151 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
7152 | } | |
7153 | arg3 = static_cast< bool >(val3); | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
7157 | wxPyEndAllowThreads(__tstate); | |
7158 | if (PyErr_Occurred()) SWIG_fail; | |
7159 | } | |
7160 | resultobj = SWIG_Py_Void(); | |
7161 | { | |
7162 | if (temp2) | |
7163 | delete arg2; | |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | { | |
7168 | if (temp2) | |
7169 | delete arg2; | |
7170 | } | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj = 0; | |
7177 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7178 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7179 | void *argp1 = 0 ; | |
7180 | int res1 = 0 ; | |
7181 | void *argp2 = 0 ; | |
7182 | int res2 = 0 ; | |
7183 | PyObject * obj0 = 0 ; | |
7184 | PyObject * obj1 = 0 ; | |
7185 | char * kwnames[] = { | |
7186 | (char *) "self",(char *) "menu", NULL | |
7187 | }; | |
7188 | ||
7189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7191 | if (!SWIG_IsOK(res1)) { | |
7192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7193 | } | |
7194 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7195 | if (obj1) { | |
7196 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7197 | if (!SWIG_IsOK(res2)) { | |
7198 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d14a1e28 | 7199 | } |
0085ce49 RD |
7200 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7201 | } | |
7202 | { | |
7203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7204 | (arg1)->DoMenuUpdates(arg2); | |
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
7208 | resultobj = SWIG_Py_Void(); | |
7209 | return resultobj; | |
7210 | fail: | |
7211 | return NULL; | |
7212 | } | |
7213 | ||
7214 | ||
7215 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7216 | PyObject *resultobj = 0; | |
7217 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7218 | SwigValueWrapper<wxVisualAttributes > result; | |
7219 | int val1 ; | |
7220 | int ecode1 = 0 ; | |
7221 | PyObject * obj0 = 0 ; | |
7222 | char * kwnames[] = { | |
7223 | (char *) "variant", NULL | |
7224 | }; | |
7225 | ||
7226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7227 | if (obj0) { | |
7228 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7229 | if (!SWIG_IsOK(ecode1)) { | |
7230 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7231 | } | |
7232 | arg1 = static_cast< wxWindowVariant >(val1); | |
7233 | } | |
7234 | { | |
7235 | if (!wxPyCheckForApp()) SWIG_fail; | |
7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7237 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7238 | wxPyEndAllowThreads(__tstate); | |
7239 | if (PyErr_Occurred()) SWIG_fail; | |
7240 | } | |
7241 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
7248 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7249 | PyObject *obj; | |
7250 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7251 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7252 | return SWIG_Py_Void(); | |
7253 | } | |
7254 | ||
7255 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7256 | return SWIG_Python_InitShadowInstance(args); | |
7257 | } | |
7258 | ||
7259 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7260 | PyObject *resultobj = 0; | |
7261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7262 | int arg2 = (int) (int)-1 ; | |
7263 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7264 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7265 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7266 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7267 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7268 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7269 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7270 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7271 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7272 | wxDialog *result = 0 ; | |
7273 | void *argp1 = 0 ; | |
7274 | int res1 = 0 ; | |
7275 | int val2 ; | |
7276 | int ecode2 = 0 ; | |
7277 | bool temp3 = false ; | |
7278 | wxPoint temp4 ; | |
7279 | wxSize temp5 ; | |
7280 | long val6 ; | |
7281 | int ecode6 = 0 ; | |
7282 | bool temp7 = false ; | |
7283 | PyObject * obj0 = 0 ; | |
7284 | PyObject * obj1 = 0 ; | |
7285 | PyObject * obj2 = 0 ; | |
7286 | PyObject * obj3 = 0 ; | |
7287 | PyObject * obj4 = 0 ; | |
7288 | PyObject * obj5 = 0 ; | |
7289 | PyObject * obj6 = 0 ; | |
7290 | char * kwnames[] = { | |
7291 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7292 | }; | |
7293 | ||
7294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7296 | if (!SWIG_IsOK(res1)) { | |
7297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7298 | } | |
7299 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7300 | if (obj1) { | |
7301 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7302 | if (!SWIG_IsOK(ecode2)) { | |
7303 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7304 | } | |
7305 | arg2 = static_cast< int >(val2); | |
7306 | } | |
7307 | if (obj2) { | |
d14a1e28 | 7308 | { |
0085ce49 RD |
7309 | arg3 = wxString_in_helper(obj2); |
7310 | if (arg3 == NULL) SWIG_fail; | |
7311 | temp3 = true; | |
d14a1e28 | 7312 | } |
0085ce49 RD |
7313 | } |
7314 | if (obj3) { | |
d14a1e28 | 7315 | { |
0085ce49 RD |
7316 | arg4 = &temp4; |
7317 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7318 | } |
0085ce49 RD |
7319 | } |
7320 | if (obj4) { | |
d14a1e28 | 7321 | { |
0085ce49 RD |
7322 | arg5 = &temp5; |
7323 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7324 | } |
0085ce49 RD |
7325 | } |
7326 | if (obj5) { | |
7327 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7328 | if (!SWIG_IsOK(ecode6)) { | |
7329 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7330 | } | |
7331 | arg6 = static_cast< long >(val6); | |
7332 | } | |
7333 | if (obj6) { | |
d14a1e28 | 7334 | { |
0085ce49 RD |
7335 | arg7 = wxString_in_helper(obj6); |
7336 | if (arg7 == NULL) SWIG_fail; | |
7337 | temp7 = true; | |
d14a1e28 | 7338 | } |
0085ce49 RD |
7339 | } |
7340 | { | |
7341 | if (!wxPyCheckForApp()) SWIG_fail; | |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
7347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7348 | { | |
7349 | if (temp3) | |
7350 | delete arg3; | |
7351 | } | |
7352 | { | |
7353 | if (temp7) | |
7354 | delete arg7; | |
7355 | } | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | { | |
7359 | if (temp3) | |
7360 | delete arg3; | |
7361 | } | |
7362 | { | |
7363 | if (temp7) | |
7364 | delete arg7; | |
7365 | } | |
7366 | return NULL; | |
d14a1e28 RD |
7367 | } |
7368 | ||
7369 | ||
0085ce49 RD |
7370 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7371 | PyObject *resultobj = 0; | |
7372 | wxDialog *result = 0 ; | |
7373 | ||
7374 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7375 | { | |
7376 | if (!wxPyCheckForApp()) SWIG_fail; | |
7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7378 | result = (wxDialog *)new wxDialog(); | |
7379 | wxPyEndAllowThreads(__tstate); | |
7380 | if (PyErr_Occurred()) SWIG_fail; | |
7381 | } | |
7382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7383 | return resultobj; | |
7384 | fail: | |
7385 | return NULL; | |
7386 | } | |
7387 | ||
7388 | ||
7389 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7390 | PyObject *resultobj = 0; | |
7391 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7392 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7393 | int arg3 = (int) (int)-1 ; | |
7394 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7395 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7396 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7397 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7398 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7399 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7400 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7401 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7402 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7403 | bool result; | |
7404 | void *argp1 = 0 ; | |
7405 | int res1 = 0 ; | |
7406 | void *argp2 = 0 ; | |
7407 | int res2 = 0 ; | |
7408 | int val3 ; | |
7409 | int ecode3 = 0 ; | |
7410 | bool temp4 = false ; | |
7411 | wxPoint temp5 ; | |
7412 | wxSize temp6 ; | |
7413 | long val7 ; | |
7414 | int ecode7 = 0 ; | |
7415 | bool temp8 = false ; | |
7416 | PyObject * obj0 = 0 ; | |
7417 | PyObject * obj1 = 0 ; | |
7418 | PyObject * obj2 = 0 ; | |
7419 | PyObject * obj3 = 0 ; | |
7420 | PyObject * obj4 = 0 ; | |
7421 | PyObject * obj5 = 0 ; | |
7422 | PyObject * obj6 = 0 ; | |
7423 | PyObject * obj7 = 0 ; | |
7424 | char * kwnames[] = { | |
7425 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7426 | }; | |
7427 | ||
7428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7430 | if (!SWIG_IsOK(res1)) { | |
7431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7432 | } | |
7433 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7434 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7435 | if (!SWIG_IsOK(res2)) { | |
7436 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7437 | } | |
7438 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7439 | if (obj2) { | |
7440 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7441 | if (!SWIG_IsOK(ecode3)) { | |
7442 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7443 | } | |
7444 | arg3 = static_cast< int >(val3); | |
7445 | } | |
7446 | if (obj3) { | |
093d3ff1 | 7447 | { |
0085ce49 RD |
7448 | arg4 = wxString_in_helper(obj3); |
7449 | if (arg4 == NULL) SWIG_fail; | |
7450 | temp4 = true; | |
d14a1e28 | 7451 | } |
0085ce49 RD |
7452 | } |
7453 | if (obj4) { | |
d14a1e28 | 7454 | { |
0085ce49 RD |
7455 | arg5 = &temp5; |
7456 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7457 | } |
0085ce49 RD |
7458 | } |
7459 | if (obj5) { | |
4f89f6a3 | 7460 | { |
0085ce49 RD |
7461 | arg6 = &temp6; |
7462 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
c32bde28 | 7463 | } |
0085ce49 RD |
7464 | } |
7465 | if (obj6) { | |
7466 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7467 | if (!SWIG_IsOK(ecode7)) { | |
7468 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7469 | } | |
7470 | arg7 = static_cast< long >(val7); | |
7471 | } | |
7472 | if (obj7) { | |
c32bde28 | 7473 | { |
0085ce49 RD |
7474 | arg8 = wxString_in_helper(obj7); |
7475 | if (arg8 == NULL) SWIG_fail; | |
7476 | temp8 = true; | |
7477 | } | |
7478 | } | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7482 | wxPyEndAllowThreads(__tstate); | |
7483 | if (PyErr_Occurred()) SWIG_fail; | |
7484 | } | |
7485 | { | |
7486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7487 | } | |
7488 | { | |
7489 | if (temp4) | |
7490 | delete arg4; | |
7491 | } | |
7492 | { | |
7493 | if (temp8) | |
7494 | delete arg8; | |
7495 | } | |
7496 | return resultobj; | |
7497 | fail: | |
7498 | { | |
7499 | if (temp4) | |
7500 | delete arg4; | |
7501 | } | |
7502 | { | |
7503 | if (temp8) | |
7504 | delete arg8; | |
7505 | } | |
7506 | return NULL; | |
7507 | } | |
7508 | ||
7509 | ||
7510 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7511 | PyObject *resultobj = 0; | |
7512 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7513 | int arg2 ; | |
7514 | void *argp1 = 0 ; | |
7515 | int res1 = 0 ; | |
7516 | int val2 ; | |
7517 | int ecode2 = 0 ; | |
7518 | PyObject * obj0 = 0 ; | |
7519 | PyObject * obj1 = 0 ; | |
7520 | char * kwnames[] = { | |
7521 | (char *) "self",(char *) "returnCode", NULL | |
7522 | }; | |
7523 | ||
7524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7526 | if (!SWIG_IsOK(res1)) { | |
7527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7528 | } | |
7529 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7530 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7531 | if (!SWIG_IsOK(ecode2)) { | |
7532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7533 | } | |
7534 | arg2 = static_cast< int >(val2); | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | (arg1)->SetReturnCode(arg2); | |
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | resultobj = SWIG_Py_Void(); | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | return NULL; | |
c32bde28 RD |
7545 | } |
7546 | ||
7547 | ||
0085ce49 RD |
7548 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7549 | PyObject *resultobj = 0; | |
7550 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7551 | int result; | |
7552 | void *argp1 = 0 ; | |
7553 | int res1 = 0 ; | |
7554 | PyObject *swig_obj[1] ; | |
7555 | ||
7556 | if (!args) SWIG_fail; | |
7557 | swig_obj[0] = args; | |
7558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7559 | if (!SWIG_IsOK(res1)) { | |
7560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7561 | } | |
7562 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7563 | { | |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
7568 | } | |
7569 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
7576 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj = 0; | |
7578 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7579 | int arg2 ; | |
7580 | void *argp1 = 0 ; | |
7581 | int res1 = 0 ; | |
7582 | int val2 ; | |
7583 | int ecode2 = 0 ; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | PyObject * obj1 = 0 ; | |
7586 | char * kwnames[] = { | |
7587 | (char *) "self",(char *) "affirmativeId", NULL | |
7588 | }; | |
7589 | ||
7590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7592 | if (!SWIG_IsOK(res1)) { | |
7593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7594 | } | |
7595 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7596 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7597 | if (!SWIG_IsOK(ecode2)) { | |
7598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7599 | } | |
7600 | arg2 = static_cast< int >(val2); | |
7601 | { | |
7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7603 | (arg1)->SetAffirmativeId(arg2); | |
7604 | wxPyEndAllowThreads(__tstate); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
7607 | resultobj = SWIG_Py_Void(); | |
7608 | return resultobj; | |
7609 | fail: | |
7610 | return NULL; | |
b6294124 RD |
7611 | } |
7612 | ||
7613 | ||
0085ce49 RD |
7614 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7615 | PyObject *resultobj = 0; | |
7616 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7617 | int result; | |
7618 | void *argp1 = 0 ; | |
7619 | int res1 = 0 ; | |
7620 | PyObject *swig_obj[1] ; | |
7621 | ||
7622 | if (!args) SWIG_fail; | |
7623 | swig_obj[0] = args; | |
7624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7625 | if (!SWIG_IsOK(res1)) { | |
7626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7627 | } | |
7628 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7629 | { | |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7632 | wxPyEndAllowThreads(__tstate); | |
7633 | if (PyErr_Occurred()) SWIG_fail; | |
7634 | } | |
7635 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7636 | return resultobj; | |
7637 | fail: | |
7638 | return NULL; | |
7639 | } | |
7640 | ||
7641 | ||
7642 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7643 | PyObject *resultobj = 0; | |
7644 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7645 | int arg2 ; | |
7646 | void *argp1 = 0 ; | |
7647 | int res1 = 0 ; | |
7648 | int val2 ; | |
7649 | int ecode2 = 0 ; | |
7650 | PyObject * obj0 = 0 ; | |
7651 | PyObject * obj1 = 0 ; | |
7652 | char * kwnames[] = { | |
7653 | (char *) "self",(char *) "escapeId", NULL | |
7654 | }; | |
7655 | ||
7656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7658 | if (!SWIG_IsOK(res1)) { | |
7659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7660 | } | |
7661 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7662 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7663 | if (!SWIG_IsOK(ecode2)) { | |
7664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7665 | } | |
7666 | arg2 = static_cast< int >(val2); | |
7667 | { | |
7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7669 | (arg1)->SetEscapeId(arg2); | |
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | resultobj = SWIG_Py_Void(); | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
84f85550 RD |
7677 | } |
7678 | ||
7679 | ||
0085ce49 RD |
7680 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7681 | PyObject *resultobj = 0; | |
7682 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7683 | int result; | |
7684 | void *argp1 = 0 ; | |
7685 | int res1 = 0 ; | |
7686 | PyObject *swig_obj[1] ; | |
7687 | ||
7688 | if (!args) SWIG_fail; | |
7689 | swig_obj[0] = args; | |
7690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7691 | if (!SWIG_IsOK(res1)) { | |
7692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7693 | } | |
7694 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7695 | { | |
7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7697 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7702 | return resultobj; | |
7703 | fail: | |
7704 | return NULL; | |
7705 | } | |
7706 | ||
7707 | ||
7708 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7709 | PyObject *resultobj = 0; | |
7710 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7711 | wxString *arg2 = 0 ; | |
7712 | wxSizer *result = 0 ; | |
7713 | void *argp1 = 0 ; | |
7714 | int res1 = 0 ; | |
7715 | bool temp2 = false ; | |
7716 | PyObject * obj0 = 0 ; | |
7717 | PyObject * obj1 = 0 ; | |
7718 | char * kwnames[] = { | |
7719 | (char *) "self",(char *) "message", NULL | |
7720 | }; | |
7721 | ||
7722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7724 | if (!SWIG_IsOK(res1)) { | |
7725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7726 | } | |
7727 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7728 | { | |
7729 | arg2 = wxString_in_helper(obj1); | |
7730 | if (arg2 == NULL) SWIG_fail; | |
7731 | temp2 = true; | |
7732 | } | |
7733 | { | |
7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7735 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | { | |
7740 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7741 | } | |
7742 | { | |
7743 | if (temp2) | |
7744 | delete arg2; | |
7745 | } | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | { | |
7749 | if (temp2) | |
7750 | delete arg2; | |
7751 | } | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
b39fe951 | 7756 | SWIGINTERN PyObject *_wrap_Dialog__CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
7757 | PyObject *resultobj = 0; |
7758 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7759 | long arg2 ; | |
0085ce49 RD |
7760 | wxSizer *result = 0 ; |
7761 | void *argp1 = 0 ; | |
7762 | int res1 = 0 ; | |
7763 | long val2 ; | |
7764 | int ecode2 = 0 ; | |
0085ce49 RD |
7765 | PyObject * obj0 = 0 ; |
7766 | PyObject * obj1 = 0 ; | |
0085ce49 | 7767 | char * kwnames[] = { |
b39fe951 | 7768 | (char *) "self",(char *) "flags", NULL |
0085ce49 RD |
7769 | }; |
7770 | ||
b39fe951 | 7771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog__CreateButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
7772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); |
7773 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 7774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); |
0085ce49 RD |
7775 | } |
7776 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7777 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7778 | if (!SWIG_IsOK(ecode2)) { | |
b39fe951 | 7779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); |
0085ce49 RD |
7780 | } |
7781 | arg2 = static_cast< long >(val2); | |
b39fe951 RD |
7782 | { |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 7787 | } |
b39fe951 RD |
7788 | { |
7789 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
0085ce49 | 7790 | } |
b39fe951 RD |
7791 | return resultobj; |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | SWIGINTERN PyObject *_wrap_Dialog_CreateSeparatedButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7798 | PyObject *resultobj = 0; | |
7799 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7800 | long arg2 ; | |
7801 | wxSizer *result = 0 ; | |
7802 | void *argp1 = 0 ; | |
7803 | int res1 = 0 ; | |
7804 | long val2 ; | |
7805 | int ecode2 = 0 ; | |
7806 | PyObject * obj0 = 0 ; | |
7807 | PyObject * obj1 = 0 ; | |
7808 | char * kwnames[] = { | |
7809 | (char *) "self",(char *) "flags", NULL | |
7810 | }; | |
7811 | ||
7812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateSeparatedButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7814 | if (!SWIG_IsOK(res1)) { | |
7815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7816 | } | |
7817 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7818 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7819 | if (!SWIG_IsOK(ecode2)) { | |
7820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7821 | } | |
7822 | arg2 = static_cast< long >(val2); | |
0085ce49 RD |
7823 | { |
7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 7825 | result = (wxSizer *)(arg1)->CreateSeparatedButtonSizer(arg2); |
0085ce49 RD |
7826 | wxPyEndAllowThreads(__tstate); |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | { | |
7830 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7831 | } | |
7832 | return resultobj; | |
7833 | fail: | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
7838 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7839 | PyObject *resultobj = 0; | |
7840 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7841 | long arg2 ; | |
7842 | wxStdDialogButtonSizer *result = 0 ; | |
7843 | void *argp1 = 0 ; | |
7844 | int res1 = 0 ; | |
7845 | long val2 ; | |
7846 | int ecode2 = 0 ; | |
7847 | PyObject * obj0 = 0 ; | |
7848 | PyObject * obj1 = 0 ; | |
7849 | char * kwnames[] = { | |
7850 | (char *) "self",(char *) "flags", NULL | |
7851 | }; | |
7852 | ||
7853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7855 | if (!SWIG_IsOK(res1)) { | |
7856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7857 | } | |
7858 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7859 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7860 | if (!SWIG_IsOK(ecode2)) { | |
7861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7862 | } | |
7863 | arg2 = static_cast< long >(val2); | |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
84f85550 RD |
7874 | } |
7875 | ||
7876 | ||
0085ce49 RD |
7877 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7878 | PyObject *resultobj = 0; | |
7879 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7880 | bool result; | |
7881 | void *argp1 = 0 ; | |
7882 | int res1 = 0 ; | |
7883 | PyObject *swig_obj[1] ; | |
7884 | ||
7885 | if (!args) SWIG_fail; | |
7886 | swig_obj[0] = args; | |
7887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7888 | if (!SWIG_IsOK(res1)) { | |
7889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7890 | } | |
7891 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7892 | { | |
7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7894 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7895 | wxPyEndAllowThreads(__tstate); | |
7896 | if (PyErr_Occurred()) SWIG_fail; | |
7897 | } | |
7898 | { | |
7899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7900 | } | |
7901 | return resultobj; | |
7902 | fail: | |
7903 | return NULL; | |
b1fcee84 RD |
7904 | } |
7905 | ||
7906 | ||
0085ce49 RD |
7907 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7908 | PyObject *resultobj = 0; | |
7909 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7910 | int result; | |
7911 | void *argp1 = 0 ; | |
7912 | int res1 = 0 ; | |
7913 | PyObject *swig_obj[1] ; | |
7914 | ||
7915 | if (!args) SWIG_fail; | |
7916 | swig_obj[0] = args; | |
7917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7918 | if (!SWIG_IsOK(res1)) { | |
7919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7920 | } | |
7921 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7922 | { | |
7923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7924 | result = (int)(arg1)->ShowModal(); | |
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj = 0; | |
7937 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7938 | int arg2 ; | |
7939 | void *argp1 = 0 ; | |
7940 | int res1 = 0 ; | |
7941 | int val2 ; | |
7942 | int ecode2 = 0 ; | |
7943 | PyObject * obj0 = 0 ; | |
7944 | PyObject * obj1 = 0 ; | |
7945 | char * kwnames[] = { | |
7946 | (char *) "self",(char *) "retCode", NULL | |
7947 | }; | |
7948 | ||
7949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7951 | if (!SWIG_IsOK(res1)) { | |
7952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7953 | } | |
7954 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7955 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7956 | if (!SWIG_IsOK(ecode2)) { | |
7957 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7958 | } | |
7959 | arg2 = static_cast< int >(val2); | |
7960 | { | |
7961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7962 | (arg1)->EndModal(arg2); | |
7963 | wxPyEndAllowThreads(__tstate); | |
7964 | if (PyErr_Occurred()) SWIG_fail; | |
7965 | } | |
7966 | resultobj = SWIG_Py_Void(); | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7974 | PyObject *resultobj = 0; | |
7975 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7976 | SwigValueWrapper<wxVisualAttributes > result; | |
7977 | int val1 ; | |
7978 | int ecode1 = 0 ; | |
7979 | PyObject * obj0 = 0 ; | |
7980 | char * kwnames[] = { | |
7981 | (char *) "variant", NULL | |
7982 | }; | |
7983 | ||
7984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7985 | if (obj0) { | |
7986 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7987 | if (!SWIG_IsOK(ecode1)) { | |
7988 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7989 | } | |
7990 | arg1 = static_cast< wxWindowVariant >(val1); | |
7991 | } | |
7992 | { | |
7993 | if (!wxPyCheckForApp()) SWIG_fail; | |
7994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7995 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8007 | PyObject *obj; | |
8008 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8009 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
8010 | return SWIG_Py_Void(); | |
8011 | } | |
8012 | ||
8013 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8014 | return SWIG_Python_InitShadowInstance(args); | |
8015 | } | |
8016 | ||
8017 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8018 | PyObject *resultobj = 0; | |
8019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8020 | int arg2 = (int) (int)-1 ; | |
8021 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8022 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8023 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8024 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8025 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8026 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5eb8189c | 8027 | long arg6 = (long) wxDEFAULT_MINIFRAME_STYLE ; |
0085ce49 RD |
8028 | wxString const &arg7_defvalue = wxPyFrameNameStr ; |
8029 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8030 | wxMiniFrame *result = 0 ; | |
8031 | void *argp1 = 0 ; | |
8032 | int res1 = 0 ; | |
8033 | int val2 ; | |
8034 | int ecode2 = 0 ; | |
8035 | bool temp3 = false ; | |
8036 | wxPoint temp4 ; | |
8037 | wxSize temp5 ; | |
8038 | long val6 ; | |
8039 | int ecode6 = 0 ; | |
8040 | bool temp7 = false ; | |
8041 | PyObject * obj0 = 0 ; | |
8042 | PyObject * obj1 = 0 ; | |
8043 | PyObject * obj2 = 0 ; | |
8044 | PyObject * obj3 = 0 ; | |
8045 | PyObject * obj4 = 0 ; | |
8046 | PyObject * obj5 = 0 ; | |
8047 | PyObject * obj6 = 0 ; | |
8048 | char * kwnames[] = { | |
8049 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8050 | }; | |
8051 | ||
8052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8054 | if (!SWIG_IsOK(res1)) { | |
8055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8056 | } | |
8057 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8058 | if (obj1) { | |
8059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8060 | if (!SWIG_IsOK(ecode2)) { | |
8061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
8062 | } | |
8063 | arg2 = static_cast< int >(val2); | |
8064 | } | |
8065 | if (obj2) { | |
d14a1e28 | 8066 | { |
0085ce49 RD |
8067 | arg3 = wxString_in_helper(obj2); |
8068 | if (arg3 == NULL) SWIG_fail; | |
8069 | temp3 = true; | |
d14a1e28 | 8070 | } |
0085ce49 RD |
8071 | } |
8072 | if (obj3) { | |
d14a1e28 | 8073 | { |
0085ce49 RD |
8074 | arg4 = &temp4; |
8075 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8076 | } |
0085ce49 RD |
8077 | } |
8078 | if (obj4) { | |
d14a1e28 | 8079 | { |
0085ce49 RD |
8080 | arg5 = &temp5; |
8081 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8082 | } |
0085ce49 RD |
8083 | } |
8084 | if (obj5) { | |
8085 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8086 | if (!SWIG_IsOK(ecode6)) { | |
8087 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
8088 | } | |
8089 | arg6 = static_cast< long >(val6); | |
8090 | } | |
8091 | if (obj6) { | |
d14a1e28 | 8092 | { |
0085ce49 RD |
8093 | arg7 = wxString_in_helper(obj6); |
8094 | if (arg7 == NULL) SWIG_fail; | |
8095 | temp7 = true; | |
d14a1e28 | 8096 | } |
0085ce49 RD |
8097 | } |
8098 | { | |
8099 | if (!wxPyCheckForApp()) SWIG_fail; | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
8105 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
8106 | { | |
8107 | if (temp3) | |
8108 | delete arg3; | |
8109 | } | |
8110 | { | |
8111 | if (temp7) | |
8112 | delete arg7; | |
8113 | } | |
8114 | return resultobj; | |
8115 | fail: | |
8116 | { | |
8117 | if (temp3) | |
8118 | delete arg3; | |
8119 | } | |
8120 | { | |
8121 | if (temp7) | |
8122 | delete arg7; | |
8123 | } | |
8124 | return NULL; | |
d14a1e28 RD |
8125 | } |
8126 | ||
8127 | ||
0085ce49 RD |
8128 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8129 | PyObject *resultobj = 0; | |
8130 | wxMiniFrame *result = 0 ; | |
8131 | ||
8132 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
8133 | { | |
8134 | if (!wxPyCheckForApp()) SWIG_fail; | |
8135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8136 | result = (wxMiniFrame *)new wxMiniFrame(); | |
8137 | wxPyEndAllowThreads(__tstate); | |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
8139 | } | |
8140 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
8141 | return resultobj; | |
8142 | fail: | |
8143 | return NULL; | |
8144 | } | |
8145 | ||
8146 | ||
8147 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8148 | PyObject *resultobj = 0; | |
8149 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
8150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8151 | int arg3 = (int) (int)-1 ; | |
8152 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8153 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8154 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8155 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8156 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8157 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5eb8189c | 8158 | long arg7 = (long) wxDEFAULT_MINIFRAME_STYLE ; |
0085ce49 RD |
8159 | wxString const &arg8_defvalue = wxPyFrameNameStr ; |
8160 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8161 | bool result; | |
8162 | void *argp1 = 0 ; | |
8163 | int res1 = 0 ; | |
8164 | void *argp2 = 0 ; | |
8165 | int res2 = 0 ; | |
8166 | int val3 ; | |
8167 | int ecode3 = 0 ; | |
8168 | bool temp4 = false ; | |
8169 | wxPoint temp5 ; | |
8170 | wxSize temp6 ; | |
8171 | long val7 ; | |
8172 | int ecode7 = 0 ; | |
8173 | bool temp8 = false ; | |
8174 | PyObject * obj0 = 0 ; | |
8175 | PyObject * obj1 = 0 ; | |
8176 | PyObject * obj2 = 0 ; | |
8177 | PyObject * obj3 = 0 ; | |
8178 | PyObject * obj4 = 0 ; | |
8179 | PyObject * obj5 = 0 ; | |
8180 | PyObject * obj6 = 0 ; | |
8181 | PyObject * obj7 = 0 ; | |
8182 | char * kwnames[] = { | |
8183 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8184 | }; | |
8185 | ||
8186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
8188 | if (!SWIG_IsOK(res1)) { | |
8189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
8190 | } | |
8191 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
8192 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8193 | if (!SWIG_IsOK(res2)) { | |
8194 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8195 | } | |
8196 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8197 | if (obj2) { | |
8198 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8199 | if (!SWIG_IsOK(ecode3)) { | |
8200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8201 | } | |
8202 | arg3 = static_cast< int >(val3); | |
8203 | } | |
8204 | if (obj3) { | |
d14a1e28 | 8205 | { |
0085ce49 RD |
8206 | arg4 = wxString_in_helper(obj3); |
8207 | if (arg4 == NULL) SWIG_fail; | |
8208 | temp4 = true; | |
d14a1e28 | 8209 | } |
0085ce49 RD |
8210 | } |
8211 | if (obj4) { | |
4f89f6a3 | 8212 | { |
0085ce49 RD |
8213 | arg5 = &temp5; |
8214 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 8215 | } |
0085ce49 RD |
8216 | } |
8217 | if (obj5) { | |
d14a1e28 | 8218 | { |
0085ce49 RD |
8219 | arg6 = &temp6; |
8220 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 8221 | } |
0085ce49 RD |
8222 | } |
8223 | if (obj6) { | |
8224 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8225 | if (!SWIG_IsOK(ecode7)) { | |
8226 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8227 | } | |
8228 | arg7 = static_cast< long >(val7); | |
8229 | } | |
8230 | if (obj7) { | |
d14a1e28 | 8231 | { |
0085ce49 RD |
8232 | arg8 = wxString_in_helper(obj7); |
8233 | if (arg8 == NULL) SWIG_fail; | |
8234 | temp8 = true; | |
d14a1e28 | 8235 | } |
0085ce49 RD |
8236 | } |
8237 | { | |
8238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8239 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | } | |
8243 | { | |
8244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8245 | } | |
8246 | { | |
8247 | if (temp4) | |
8248 | delete arg4; | |
8249 | } | |
8250 | { | |
8251 | if (temp8) | |
8252 | delete arg8; | |
8253 | } | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | { | |
8257 | if (temp4) | |
8258 | delete arg4; | |
8259 | } | |
8260 | { | |
8261 | if (temp8) | |
8262 | delete arg8; | |
8263 | } | |
8264 | return NULL; | |
8265 | } | |
8266 | ||
8267 | ||
8268 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8269 | PyObject *obj; | |
8270 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8271 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8272 | return SWIG_Py_Void(); | |
8273 | } | |
8274 | ||
8275 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8276 | return SWIG_Python_InitShadowInstance(args); | |
8277 | } | |
8278 | ||
8279 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8280 | PyObject *resultobj = 0; | |
8281 | wxBitmap *arg1 = 0 ; | |
8282 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8283 | int arg3 ; | |
8284 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8285 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8286 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8287 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8288 | long arg6 = (long) wxNO_BORDER ; | |
8289 | wxSplashScreenWindow *result = 0 ; | |
8290 | void *argp1 = 0 ; | |
8291 | int res1 = 0 ; | |
8292 | void *argp2 = 0 ; | |
8293 | int res2 = 0 ; | |
8294 | int val3 ; | |
8295 | int ecode3 = 0 ; | |
8296 | wxPoint temp4 ; | |
8297 | wxSize temp5 ; | |
8298 | long val6 ; | |
8299 | int ecode6 = 0 ; | |
8300 | PyObject * obj0 = 0 ; | |
8301 | PyObject * obj1 = 0 ; | |
8302 | PyObject * obj2 = 0 ; | |
8303 | PyObject * obj3 = 0 ; | |
8304 | PyObject * obj4 = 0 ; | |
8305 | PyObject * obj5 = 0 ; | |
8306 | char * kwnames[] = { | |
8307 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8308 | }; | |
8309 | ||
8310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8311 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8312 | if (!SWIG_IsOK(res1)) { | |
8313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8314 | } | |
8315 | if (!argp1) { | |
8316 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8317 | } | |
8318 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8319 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8320 | if (!SWIG_IsOK(res2)) { | |
8321 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8322 | } | |
8323 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8324 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8325 | if (!SWIG_IsOK(ecode3)) { | |
8326 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8327 | } | |
8328 | arg3 = static_cast< int >(val3); | |
8329 | if (obj3) { | |
d14a1e28 | 8330 | { |
0085ce49 RD |
8331 | arg4 = &temp4; |
8332 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8333 | } |
0085ce49 RD |
8334 | } |
8335 | if (obj4) { | |
d14a1e28 | 8336 | { |
0085ce49 RD |
8337 | arg5 = &temp5; |
8338 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8339 | } |
0085ce49 RD |
8340 | } |
8341 | if (obj5) { | |
8342 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8343 | if (!SWIG_IsOK(ecode6)) { | |
8344 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8345 | } | |
8346 | arg6 = static_cast< long >(val6); | |
8347 | } | |
8348 | { | |
8349 | if (!wxPyCheckForApp()) SWIG_fail; | |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8352 | wxPyEndAllowThreads(__tstate); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8356 | return resultobj; | |
8357 | fail: | |
8358 | return NULL; | |
8359 | } | |
8360 | ||
8361 | ||
8362 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8363 | PyObject *resultobj = 0; | |
8364 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8365 | wxBitmap *arg2 = 0 ; | |
8366 | void *argp1 = 0 ; | |
8367 | int res1 = 0 ; | |
8368 | void *argp2 = 0 ; | |
8369 | int res2 = 0 ; | |
8370 | PyObject * obj0 = 0 ; | |
8371 | PyObject * obj1 = 0 ; | |
8372 | char * kwnames[] = { | |
8373 | (char *) "self",(char *) "bitmap", NULL | |
8374 | }; | |
8375 | ||
8376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8378 | if (!SWIG_IsOK(res1)) { | |
8379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8380 | } | |
8381 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8382 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8383 | if (!SWIG_IsOK(res2)) { | |
8384 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8385 | } | |
8386 | if (!argp2) { | |
8387 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8388 | } | |
8389 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8390 | { | |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | resultobj = SWIG_Py_Void(); | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | return NULL; | |
d14a1e28 RD |
8400 | } |
8401 | ||
8402 | ||
0085ce49 RD |
8403 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8404 | PyObject *resultobj = 0; | |
8405 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8406 | wxBitmap *result = 0 ; | |
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_wxSplashScreenWindow, 0 | 0 ); | |
8414 | if (!SWIG_IsOK(res1)) { | |
8415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8416 | } | |
8417 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8418 | { | |
8419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8420 | { | |
8421 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
8422 | result = (wxBitmap *) &_result_ref; | |
8423 | } | |
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
8427 | { | |
8428 | wxBitmap* resultptr = new wxBitmap(*result); | |
8429 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8430 | } | |
8431 | return resultobj; | |
8432 | fail: | |
8433 | return NULL; | |
8434 | } | |
8435 | ||
8436 | ||
8437 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8438 | PyObject *obj; | |
8439 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8440 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8441 | return SWIG_Py_Void(); | |
8442 | } | |
8443 | ||
8444 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8445 | return SWIG_Python_InitShadowInstance(args); | |
8446 | } | |
8447 | ||
8448 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj = 0; | |
8450 | wxBitmap *arg1 = 0 ; | |
8451 | long arg2 ; | |
8452 | int arg3 ; | |
8453 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8454 | int arg5 = (int) -1 ; | |
8455 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8456 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8457 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8458 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8459 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8460 | wxSplashScreen *result = 0 ; | |
8461 | void *argp1 = 0 ; | |
8462 | int res1 = 0 ; | |
8463 | long val2 ; | |
8464 | int ecode2 = 0 ; | |
8465 | int val3 ; | |
8466 | int ecode3 = 0 ; | |
8467 | void *argp4 = 0 ; | |
8468 | int res4 = 0 ; | |
8469 | int val5 ; | |
8470 | int ecode5 = 0 ; | |
8471 | wxPoint temp6 ; | |
8472 | wxSize temp7 ; | |
8473 | long val8 ; | |
8474 | int ecode8 = 0 ; | |
8475 | PyObject * obj0 = 0 ; | |
8476 | PyObject * obj1 = 0 ; | |
8477 | PyObject * obj2 = 0 ; | |
8478 | PyObject * obj3 = 0 ; | |
8479 | PyObject * obj4 = 0 ; | |
8480 | PyObject * obj5 = 0 ; | |
8481 | PyObject * obj6 = 0 ; | |
8482 | PyObject * obj7 = 0 ; | |
8483 | char * kwnames[] = { | |
8484 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8485 | }; | |
8486 | ||
8487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8488 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8489 | if (!SWIG_IsOK(res1)) { | |
8490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8491 | } | |
8492 | if (!argp1) { | |
8493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8494 | } | |
8495 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8496 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8497 | if (!SWIG_IsOK(ecode2)) { | |
8498 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8499 | } | |
8500 | arg2 = static_cast< long >(val2); | |
8501 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8502 | if (!SWIG_IsOK(ecode3)) { | |
8503 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8504 | } | |
8505 | arg3 = static_cast< int >(val3); | |
8506 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8507 | if (!SWIG_IsOK(res4)) { | |
8508 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8509 | } | |
8510 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8511 | if (obj4) { | |
8512 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8513 | if (!SWIG_IsOK(ecode5)) { | |
8514 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8515 | } | |
8516 | arg5 = static_cast< int >(val5); | |
8517 | } | |
8518 | if (obj5) { | |
d14a1e28 | 8519 | { |
0085ce49 RD |
8520 | arg6 = &temp6; |
8521 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 8522 | } |
0085ce49 RD |
8523 | } |
8524 | if (obj6) { | |
d14a1e28 | 8525 | { |
0085ce49 RD |
8526 | arg7 = &temp7; |
8527 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 8528 | } |
0085ce49 RD |
8529 | } |
8530 | if (obj7) { | |
8531 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8532 | if (!SWIG_IsOK(ecode8)) { | |
8533 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8534 | } | |
8535 | arg8 = static_cast< long >(val8); | |
8536 | } | |
8537 | { | |
8538 | if (!wxPyCheckForApp()) SWIG_fail; | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8540 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8545 | return resultobj; | |
8546 | fail: | |
8547 | return NULL; | |
d14a1e28 RD |
8548 | } |
8549 | ||
8550 | ||
0085ce49 RD |
8551 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8552 | PyObject *resultobj = 0; | |
8553 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8554 | long result; | |
8555 | void *argp1 = 0 ; | |
8556 | int res1 = 0 ; | |
8557 | PyObject *swig_obj[1] ; | |
8558 | ||
8559 | if (!args) SWIG_fail; | |
8560 | swig_obj[0] = args; | |
8561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8562 | if (!SWIG_IsOK(res1)) { | |
8563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8564 | } | |
8565 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8569 | wxPyEndAllowThreads(__tstate); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8573 | return resultobj; | |
8574 | fail: | |
8575 | return NULL; | |
d14a1e28 RD |
8576 | } |
8577 | ||
8578 | ||
0085ce49 RD |
8579 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8580 | PyObject *resultobj = 0; | |
8581 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8582 | wxSplashScreenWindow *result = 0 ; | |
8583 | void *argp1 = 0 ; | |
8584 | int res1 = 0 ; | |
8585 | PyObject *swig_obj[1] ; | |
8586 | ||
8587 | if (!args) SWIG_fail; | |
8588 | swig_obj[0] = args; | |
8589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8590 | if (!SWIG_IsOK(res1)) { | |
8591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8592 | } | |
8593 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8594 | { | |
8595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8596 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8597 | wxPyEndAllowThreads(__tstate); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8601 | return resultobj; | |
8602 | fail: | |
8603 | return NULL; | |
d14a1e28 RD |
8604 | } |
8605 | ||
8606 | ||
0085ce49 RD |
8607 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8608 | PyObject *resultobj = 0; | |
8609 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8610 | int result; | |
8611 | void *argp1 = 0 ; | |
8612 | int res1 = 0 ; | |
8613 | PyObject *swig_obj[1] ; | |
8614 | ||
8615 | if (!args) SWIG_fail; | |
8616 | swig_obj[0] = args; | |
8617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8618 | if (!SWIG_IsOK(res1)) { | |
8619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8620 | } | |
8621 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8622 | { | |
8623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8624 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8625 | wxPyEndAllowThreads(__tstate); | |
8626 | if (PyErr_Occurred()) SWIG_fail; | |
8627 | } | |
8628 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8629 | return resultobj; | |
8630 | fail: | |
8631 | return NULL; | |
8632 | } | |
8633 | ||
8634 | ||
8635 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8636 | PyObject *obj; | |
8637 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8638 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8639 | return SWIG_Py_Void(); | |
8640 | } | |
8641 | ||
8642 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8643 | return SWIG_Python_InitShadowInstance(args); | |
8644 | } | |
8645 | ||
8646 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj = 0; | |
8648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8649 | int arg2 = (int) -1 ; | |
8650 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8651 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8652 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8653 | wxStatusBar *result = 0 ; | |
8654 | void *argp1 = 0 ; | |
8655 | int res1 = 0 ; | |
8656 | int val2 ; | |
8657 | int ecode2 = 0 ; | |
8658 | long val3 ; | |
8659 | int ecode3 = 0 ; | |
8660 | bool temp4 = false ; | |
8661 | PyObject * obj0 = 0 ; | |
8662 | PyObject * obj1 = 0 ; | |
8663 | PyObject * obj2 = 0 ; | |
8664 | PyObject * obj3 = 0 ; | |
8665 | char * kwnames[] = { | |
8666 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8667 | }; | |
8668 | ||
8669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8671 | if (!SWIG_IsOK(res1)) { | |
8672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8673 | } | |
8674 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8675 | if (obj1) { | |
8676 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8677 | if (!SWIG_IsOK(ecode2)) { | |
8678 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8679 | } | |
8680 | arg2 = static_cast< int >(val2); | |
8681 | } | |
8682 | if (obj2) { | |
8683 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8684 | if (!SWIG_IsOK(ecode3)) { | |
8685 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8686 | } | |
8687 | arg3 = static_cast< long >(val3); | |
8688 | } | |
8689 | if (obj3) { | |
d14a1e28 | 8690 | { |
0085ce49 RD |
8691 | arg4 = wxString_in_helper(obj3); |
8692 | if (arg4 == NULL) SWIG_fail; | |
8693 | temp4 = true; | |
d14a1e28 | 8694 | } |
0085ce49 RD |
8695 | } |
8696 | { | |
8697 | if (!wxPyCheckForApp()) SWIG_fail; | |
8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8699 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8700 | wxPyEndAllowThreads(__tstate); | |
8701 | if (PyErr_Occurred()) SWIG_fail; | |
8702 | } | |
8703 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8704 | { | |
8705 | if (temp4) | |
8706 | delete arg4; | |
8707 | } | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | { | |
8711 | if (temp4) | |
8712 | delete arg4; | |
8713 | } | |
8714 | return NULL; | |
d14a1e28 RD |
8715 | } |
8716 | ||
8717 | ||
0085ce49 RD |
8718 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8719 | PyObject *resultobj = 0; | |
8720 | wxStatusBar *result = 0 ; | |
8721 | ||
8722 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8723 | { | |
8724 | if (!wxPyCheckForApp()) SWIG_fail; | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | result = (wxStatusBar *)new wxStatusBar(); | |
8727 | wxPyEndAllowThreads(__tstate); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | } | |
8730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8731 | return resultobj; | |
8732 | fail: | |
8733 | return NULL; | |
8734 | } | |
8735 | ||
8736 | ||
8737 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8738 | PyObject *resultobj = 0; | |
8739 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8741 | int arg3 = (int) -1 ; | |
8742 | long arg4 = (long) wxST_SIZEGRIP ; | |
8743 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8744 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8745 | bool result; | |
8746 | void *argp1 = 0 ; | |
8747 | int res1 = 0 ; | |
8748 | void *argp2 = 0 ; | |
8749 | int res2 = 0 ; | |
8750 | int val3 ; | |
8751 | int ecode3 = 0 ; | |
8752 | long val4 ; | |
8753 | int ecode4 = 0 ; | |
8754 | bool temp5 = false ; | |
8755 | PyObject * obj0 = 0 ; | |
8756 | PyObject * obj1 = 0 ; | |
8757 | PyObject * obj2 = 0 ; | |
8758 | PyObject * obj3 = 0 ; | |
8759 | PyObject * obj4 = 0 ; | |
8760 | char * kwnames[] = { | |
8761 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8762 | }; | |
8763 | ||
8764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8766 | if (!SWIG_IsOK(res1)) { | |
8767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8768 | } | |
8769 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8770 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8771 | if (!SWIG_IsOK(res2)) { | |
8772 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8773 | } | |
8774 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8775 | if (obj2) { | |
8776 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8777 | if (!SWIG_IsOK(ecode3)) { | |
8778 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8779 | } | |
8780 | arg3 = static_cast< int >(val3); | |
8781 | } | |
8782 | if (obj3) { | |
8783 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8784 | if (!SWIG_IsOK(ecode4)) { | |
8785 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8786 | } | |
8787 | arg4 = static_cast< long >(val4); | |
8788 | } | |
8789 | if (obj4) { | |
d14a1e28 | 8790 | { |
0085ce49 RD |
8791 | arg5 = wxString_in_helper(obj4); |
8792 | if (arg5 == NULL) SWIG_fail; | |
8793 | temp5 = true; | |
d14a1e28 | 8794 | } |
0085ce49 RD |
8795 | } |
8796 | { | |
8797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8798 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8799 | wxPyEndAllowThreads(__tstate); | |
8800 | if (PyErr_Occurred()) SWIG_fail; | |
8801 | } | |
8802 | { | |
8803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8804 | } | |
8805 | { | |
8806 | if (temp5) | |
8807 | delete arg5; | |
8808 | } | |
8809 | return resultobj; | |
8810 | fail: | |
8811 | { | |
8812 | if (temp5) | |
8813 | delete arg5; | |
8814 | } | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
8819 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8820 | PyObject *resultobj = 0; | |
8821 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8822 | int arg2 = (int) 1 ; | |
8823 | void *argp1 = 0 ; | |
8824 | int res1 = 0 ; | |
8825 | int val2 ; | |
8826 | int ecode2 = 0 ; | |
8827 | PyObject * obj0 = 0 ; | |
8828 | PyObject * obj1 = 0 ; | |
8829 | char * kwnames[] = { | |
8830 | (char *) "self",(char *) "number", NULL | |
8831 | }; | |
8832 | ||
8833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8835 | if (!SWIG_IsOK(res1)) { | |
8836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8837 | } | |
8838 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8839 | if (obj1) { | |
8840 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8841 | if (!SWIG_IsOK(ecode2)) { | |
8842 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8843 | } | |
8844 | arg2 = static_cast< int >(val2); | |
8845 | } | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | (arg1)->SetFieldsCount(arg2); | |
8849 | wxPyEndAllowThreads(__tstate); | |
8850 | if (PyErr_Occurred()) SWIG_fail; | |
8851 | } | |
8852 | resultobj = SWIG_Py_Void(); | |
8853 | return resultobj; | |
8854 | fail: | |
8855 | return NULL; | |
d14a1e28 RD |
8856 | } |
8857 | ||
8858 | ||
0085ce49 RD |
8859 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8860 | PyObject *resultobj = 0; | |
8861 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8862 | int result; | |
8863 | void *argp1 = 0 ; | |
8864 | int res1 = 0 ; | |
8865 | PyObject *swig_obj[1] ; | |
8866 | ||
8867 | if (!args) SWIG_fail; | |
8868 | swig_obj[0] = args; | |
8869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8870 | if (!SWIG_IsOK(res1)) { | |
8871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8872 | } | |
8873 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8877 | wxPyEndAllowThreads(__tstate); | |
8878 | if (PyErr_Occurred()) SWIG_fail; | |
8879 | } | |
8880 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8881 | return resultobj; | |
8882 | fail: | |
8883 | return NULL; | |
8884 | } | |
8885 | ||
8886 | ||
8887 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8888 | PyObject *resultobj = 0; | |
8889 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8890 | wxString *arg2 = 0 ; | |
8891 | int arg3 = (int) 0 ; | |
8892 | void *argp1 = 0 ; | |
8893 | int res1 = 0 ; | |
8894 | bool temp2 = false ; | |
8895 | int val3 ; | |
8896 | int ecode3 = 0 ; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | PyObject * obj1 = 0 ; | |
8899 | PyObject * obj2 = 0 ; | |
8900 | char * kwnames[] = { | |
8901 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8902 | }; | |
8903 | ||
8904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8906 | if (!SWIG_IsOK(res1)) { | |
8907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8908 | } | |
8909 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8910 | { | |
8911 | arg2 = wxString_in_helper(obj1); | |
8912 | if (arg2 == NULL) SWIG_fail; | |
8913 | temp2 = true; | |
8914 | } | |
8915 | if (obj2) { | |
8916 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8917 | if (!SWIG_IsOK(ecode3)) { | |
8918 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8919 | } | |
8920 | arg3 = static_cast< int >(val3); | |
8921 | } | |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8925 | wxPyEndAllowThreads(__tstate); | |
8926 | if (PyErr_Occurred()) SWIG_fail; | |
8927 | } | |
8928 | resultobj = SWIG_Py_Void(); | |
8929 | { | |
8930 | if (temp2) | |
8931 | delete arg2; | |
8932 | } | |
8933 | return resultobj; | |
8934 | fail: | |
8935 | { | |
8936 | if (temp2) | |
8937 | delete arg2; | |
8938 | } | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj = 0; | |
8945 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8946 | int arg2 = (int) 0 ; | |
8947 | wxString result; | |
8948 | void *argp1 = 0 ; | |
8949 | int res1 = 0 ; | |
8950 | int val2 ; | |
8951 | int ecode2 = 0 ; | |
8952 | PyObject * obj0 = 0 ; | |
8953 | PyObject * obj1 = 0 ; | |
8954 | char * kwnames[] = { | |
8955 | (char *) "self",(char *) "number", NULL | |
8956 | }; | |
8957 | ||
8958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8960 | if (!SWIG_IsOK(res1)) { | |
8961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8962 | } | |
8963 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8964 | if (obj1) { | |
8965 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8966 | if (!SWIG_IsOK(ecode2)) { | |
8967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8968 | } | |
8969 | arg2 = static_cast< int >(val2); | |
8970 | } | |
8971 | { | |
8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8973 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
8974 | wxPyEndAllowThreads(__tstate); | |
8975 | if (PyErr_Occurred()) SWIG_fail; | |
8976 | } | |
8977 | { | |
8978 | #if wxUSE_UNICODE | |
8979 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8980 | #else | |
8981 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8982 | #endif | |
8983 | } | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | return NULL; | |
8987 | } | |
8988 | ||
8989 | ||
8990 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8991 | PyObject *resultobj = 0; | |
8992 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8993 | wxString *arg2 = 0 ; | |
8994 | int arg3 = (int) 0 ; | |
8995 | void *argp1 = 0 ; | |
8996 | int res1 = 0 ; | |
8997 | bool temp2 = false ; | |
8998 | int val3 ; | |
8999 | int ecode3 = 0 ; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | PyObject * obj1 = 0 ; | |
9002 | PyObject * obj2 = 0 ; | |
9003 | char * kwnames[] = { | |
9004 | (char *) "self",(char *) "text",(char *) "number", NULL | |
9005 | }; | |
9006 | ||
9007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9009 | if (!SWIG_IsOK(res1)) { | |
9010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9011 | } | |
9012 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9013 | { | |
9014 | arg2 = wxString_in_helper(obj1); | |
9015 | if (arg2 == NULL) SWIG_fail; | |
9016 | temp2 = true; | |
9017 | } | |
9018 | if (obj2) { | |
9019 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9020 | if (!SWIG_IsOK(ecode3)) { | |
9021 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
9022 | } | |
9023 | arg3 = static_cast< int >(val3); | |
9024 | } | |
9025 | { | |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
9028 | wxPyEndAllowThreads(__tstate); | |
9029 | if (PyErr_Occurred()) SWIG_fail; | |
9030 | } | |
9031 | resultobj = SWIG_Py_Void(); | |
9032 | { | |
9033 | if (temp2) | |
9034 | delete arg2; | |
9035 | } | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | { | |
9039 | if (temp2) | |
9040 | delete arg2; | |
9041 | } | |
9042 | return NULL; | |
9043 | } | |
9044 | ||
9045 | ||
9046 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9047 | PyObject *resultobj = 0; | |
9048 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9049 | int arg2 = (int) 0 ; | |
9050 | void *argp1 = 0 ; | |
9051 | int res1 = 0 ; | |
9052 | int val2 ; | |
9053 | int ecode2 = 0 ; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | PyObject * obj1 = 0 ; | |
9056 | char * kwnames[] = { | |
9057 | (char *) "self",(char *) "number", NULL | |
9058 | }; | |
9059 | ||
9060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
9061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9062 | if (!SWIG_IsOK(res1)) { | |
9063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9064 | } | |
9065 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9066 | if (obj1) { | |
9067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9068 | if (!SWIG_IsOK(ecode2)) { | |
9069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9070 | } | |
9071 | arg2 = static_cast< int >(val2); | |
9072 | } | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | (arg1)->PopStatusText(arg2); | |
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | resultobj = SWIG_Py_Void(); | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj = 0; | |
9088 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9089 | int arg2 ; | |
9090 | int *arg3 = (int *) 0 ; | |
9091 | void *argp1 = 0 ; | |
9092 | int res1 = 0 ; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | PyObject * obj1 = 0 ; | |
9095 | char * kwnames[] = { | |
9096 | (char *) "self",(char *) "widths", NULL | |
9097 | }; | |
9098 | ||
9099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
9100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9101 | if (!SWIG_IsOK(res1)) { | |
9102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9103 | } | |
9104 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9105 | { | |
9106 | arg2 = PyList_Size(obj1); | |
9107 | arg3 = int_LIST_helper(obj1); | |
9108 | if (arg3 == NULL) SWIG_fail; | |
9109 | } | |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
9113 | wxPyEndAllowThreads(__tstate); | |
9114 | if (PyErr_Occurred()) SWIG_fail; | |
9115 | } | |
9116 | resultobj = SWIG_Py_Void(); | |
9117 | { | |
9118 | if (arg3) delete [] arg3; | |
9119 | } | |
9120 | return resultobj; | |
9121 | fail: | |
9122 | { | |
9123 | if (arg3) delete [] arg3; | |
9124 | } | |
9125 | return NULL; | |
d14a1e28 RD |
9126 | } |
9127 | ||
9128 | ||
0085ce49 RD |
9129 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9130 | PyObject *resultobj = 0; | |
9131 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9132 | int arg2 ; | |
9133 | int *arg3 = (int *) 0 ; | |
9134 | void *argp1 = 0 ; | |
9135 | int res1 = 0 ; | |
9136 | PyObject * obj0 = 0 ; | |
9137 | PyObject * obj1 = 0 ; | |
9138 | char * kwnames[] = { | |
9139 | (char *) "self",(char *) "styles", NULL | |
9140 | }; | |
9141 | ||
9142 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
9143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9144 | if (!SWIG_IsOK(res1)) { | |
9145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9146 | } | |
9147 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9148 | { | |
9149 | arg2 = PyList_Size(obj1); | |
9150 | arg3 = int_LIST_helper(obj1); | |
9151 | if (arg3 == NULL) SWIG_fail; | |
9152 | } | |
9153 | { | |
9154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9155 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
9159 | resultobj = SWIG_Py_Void(); | |
9160 | { | |
9161 | if (arg3) delete [] arg3; | |
9162 | } | |
9163 | return resultobj; | |
9164 | fail: | |
9165 | { | |
9166 | if (arg3) delete [] arg3; | |
9167 | } | |
9168 | return NULL; | |
9169 | } | |
9170 | ||
9171 | ||
9172 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9173 | PyObject *resultobj = 0; | |
9174 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9175 | int arg2 ; | |
9176 | wxRect result; | |
9177 | void *argp1 = 0 ; | |
9178 | int res1 = 0 ; | |
9179 | int val2 ; | |
9180 | int ecode2 = 0 ; | |
9181 | PyObject * obj0 = 0 ; | |
9182 | PyObject * obj1 = 0 ; | |
9183 | char * kwnames[] = { | |
9184 | (char *) "self",(char *) "i", NULL | |
9185 | }; | |
9186 | ||
9187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9189 | if (!SWIG_IsOK(res1)) { | |
9190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9191 | } | |
9192 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9194 | if (!SWIG_IsOK(ecode2)) { | |
9195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
9196 | } | |
9197 | arg2 = static_cast< int >(val2); | |
9198 | { | |
9199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9200 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9205 | return resultobj; | |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj = 0; | |
9213 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9214 | int arg2 ; | |
9215 | void *argp1 = 0 ; | |
9216 | int res1 = 0 ; | |
9217 | int val2 ; | |
9218 | int ecode2 = 0 ; | |
9219 | PyObject * obj0 = 0 ; | |
9220 | PyObject * obj1 = 0 ; | |
9221 | char * kwnames[] = { | |
9222 | (char *) "self",(char *) "height", NULL | |
9223 | }; | |
9224 | ||
9225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9227 | if (!SWIG_IsOK(res1)) { | |
9228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9229 | } | |
9230 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9232 | if (!SWIG_IsOK(ecode2)) { | |
9233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9234 | } | |
9235 | arg2 = static_cast< int >(val2); | |
9236 | { | |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | (arg1)->SetMinHeight(arg2); | |
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | resultobj = SWIG_Py_Void(); | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
d14a1e28 RD |
9246 | } |
9247 | ||
9248 | ||
0085ce49 RD |
9249 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9250 | PyObject *resultobj = 0; | |
9251 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9252 | int result; | |
9253 | void *argp1 = 0 ; | |
9254 | int res1 = 0 ; | |
9255 | PyObject *swig_obj[1] ; | |
9256 | ||
9257 | if (!args) SWIG_fail; | |
9258 | swig_obj[0] = args; | |
9259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9260 | if (!SWIG_IsOK(res1)) { | |
9261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9262 | } | |
9263 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9264 | { | |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9267 | wxPyEndAllowThreads(__tstate); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | } | |
9270 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9271 | return resultobj; | |
9272 | fail: | |
9273 | return NULL; | |
d14a1e28 RD |
9274 | } |
9275 | ||
9276 | ||
0085ce49 RD |
9277 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9278 | PyObject *resultobj = 0; | |
9279 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9280 | int result; | |
9281 | void *argp1 = 0 ; | |
9282 | int res1 = 0 ; | |
9283 | PyObject *swig_obj[1] ; | |
9284 | ||
9285 | if (!args) SWIG_fail; | |
9286 | swig_obj[0] = args; | |
9287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9288 | if (!SWIG_IsOK(res1)) { | |
9289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9290 | } | |
9291 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9292 | { | |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9294 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
9305 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj = 0; | |
9307 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9308 | SwigValueWrapper<wxVisualAttributes > result; | |
9309 | int val1 ; | |
9310 | int ecode1 = 0 ; | |
9311 | PyObject * obj0 = 0 ; | |
9312 | char * kwnames[] = { | |
9313 | (char *) "variant", NULL | |
9314 | }; | |
9315 | ||
9316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9317 | if (obj0) { | |
9318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9319 | if (!SWIG_IsOK(ecode1)) { | |
9320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9321 | } | |
9322 | arg1 = static_cast< wxWindowVariant >(val1); | |
9323 | } | |
9324 | { | |
9325 | if (!wxPyCheckForApp()) SWIG_fail; | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9328 | wxPyEndAllowThreads(__tstate); | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | return NULL; | |
d14a1e28 RD |
9335 | } |
9336 | ||
9337 | ||
0085ce49 RD |
9338 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9339 | PyObject *obj; | |
9340 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9341 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9342 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9343 | } |
9344 | ||
0085ce49 RD |
9345 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9346 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9347 | } |
9348 | ||
0085ce49 RD |
9349 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9350 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9351 | return 1; | |
d14a1e28 RD |
9352 | } |
9353 | ||
9354 | ||
0085ce49 RD |
9355 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9356 | PyObject *pyobj = 0; | |
9357 | ||
9358 | { | |
9359 | #if wxUSE_UNICODE | |
9360 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9361 | #else | |
9362 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9363 | #endif | |
9364 | } | |
9365 | return pyobj; | |
9366 | } | |
9367 | ||
9368 | ||
9369 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9370 | PyObject *resultobj = 0; | |
9371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9372 | int arg2 = (int) -1 ; | |
9373 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9374 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9375 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9376 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9377 | long arg5 = (long) wxSP_3D ; | |
9378 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9379 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9380 | wxSplitterWindow *result = 0 ; | |
9381 | void *argp1 = 0 ; | |
9382 | int res1 = 0 ; | |
9383 | int val2 ; | |
9384 | int ecode2 = 0 ; | |
9385 | wxPoint temp3 ; | |
9386 | wxSize temp4 ; | |
9387 | long val5 ; | |
9388 | int ecode5 = 0 ; | |
9389 | bool temp6 = false ; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | PyObject * obj1 = 0 ; | |
9392 | PyObject * obj2 = 0 ; | |
9393 | PyObject * obj3 = 0 ; | |
9394 | PyObject * obj4 = 0 ; | |
9395 | PyObject * obj5 = 0 ; | |
9396 | char * kwnames[] = { | |
9397 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9398 | }; | |
9399 | ||
9400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9402 | if (!SWIG_IsOK(res1)) { | |
9403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9404 | } | |
9405 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9406 | if (obj1) { | |
9407 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9408 | if (!SWIG_IsOK(ecode2)) { | |
9409 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9410 | } | |
9411 | arg2 = static_cast< int >(val2); | |
9412 | } | |
9413 | if (obj2) { | |
093d3ff1 | 9414 | { |
0085ce49 RD |
9415 | arg3 = &temp3; |
9416 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 9417 | } |
0085ce49 RD |
9418 | } |
9419 | if (obj3) { | |
d14a1e28 | 9420 | { |
0085ce49 RD |
9421 | arg4 = &temp4; |
9422 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9423 | } |
0085ce49 RD |
9424 | } |
9425 | if (obj4) { | |
9426 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9427 | if (!SWIG_IsOK(ecode5)) { | |
9428 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9429 | } | |
9430 | arg5 = static_cast< long >(val5); | |
9431 | } | |
9432 | if (obj5) { | |
093d3ff1 | 9433 | { |
0085ce49 RD |
9434 | arg6 = wxString_in_helper(obj5); |
9435 | if (arg6 == NULL) SWIG_fail; | |
9436 | temp6 = true; | |
093d3ff1 | 9437 | } |
0085ce49 RD |
9438 | } |
9439 | { | |
9440 | if (!wxPyCheckForApp()) SWIG_fail; | |
9441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9442 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9443 | wxPyEndAllowThreads(__tstate); | |
9444 | if (PyErr_Occurred()) SWIG_fail; | |
9445 | } | |
9446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9447 | { | |
9448 | if (temp6) | |
9449 | delete arg6; | |
9450 | } | |
9451 | return resultobj; | |
9452 | fail: | |
9453 | { | |
9454 | if (temp6) | |
9455 | delete arg6; | |
9456 | } | |
9457 | return NULL; | |
d14a1e28 RD |
9458 | } |
9459 | ||
9460 | ||
0085ce49 RD |
9461 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9462 | PyObject *resultobj = 0; | |
9463 | wxSplitterWindow *result = 0 ; | |
9464 | ||
9465 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9466 | { | |
9467 | if (!wxPyCheckForApp()) SWIG_fail; | |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9469 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9470 | wxPyEndAllowThreads(__tstate); | |
9471 | if (PyErr_Occurred()) SWIG_fail; | |
9472 | } | |
9473 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9474 | return resultobj; | |
9475 | fail: | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj = 0; | |
9482 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9483 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9484 | int arg3 = (int) -1 ; | |
9485 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9486 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9487 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9488 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9489 | long arg6 = (long) wxSP_3D ; | |
9490 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9491 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9492 | bool result; | |
9493 | void *argp1 = 0 ; | |
9494 | int res1 = 0 ; | |
9495 | void *argp2 = 0 ; | |
9496 | int res2 = 0 ; | |
9497 | int val3 ; | |
9498 | int ecode3 = 0 ; | |
9499 | wxPoint temp4 ; | |
9500 | wxSize temp5 ; | |
9501 | long val6 ; | |
9502 | int ecode6 = 0 ; | |
9503 | bool temp7 = false ; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | PyObject * obj1 = 0 ; | |
9506 | PyObject * obj2 = 0 ; | |
9507 | PyObject * obj3 = 0 ; | |
9508 | PyObject * obj4 = 0 ; | |
9509 | PyObject * obj5 = 0 ; | |
9510 | PyObject * obj6 = 0 ; | |
9511 | char * kwnames[] = { | |
9512 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9513 | }; | |
9514 | ||
9515 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9516 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9517 | if (!SWIG_IsOK(res1)) { | |
9518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9519 | } | |
9520 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9521 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9522 | if (!SWIG_IsOK(res2)) { | |
9523 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9524 | } | |
9525 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9526 | if (obj2) { | |
9527 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9528 | if (!SWIG_IsOK(ecode3)) { | |
9529 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9530 | } | |
9531 | arg3 = static_cast< int >(val3); | |
9532 | } | |
9533 | if (obj3) { | |
d14a1e28 | 9534 | { |
0085ce49 RD |
9535 | arg4 = &temp4; |
9536 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9537 | } |
0085ce49 RD |
9538 | } |
9539 | if (obj4) { | |
d14a1e28 | 9540 | { |
0085ce49 RD |
9541 | arg5 = &temp5; |
9542 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9543 | } |
0085ce49 RD |
9544 | } |
9545 | if (obj5) { | |
9546 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9547 | if (!SWIG_IsOK(ecode6)) { | |
9548 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9549 | } | |
9550 | arg6 = static_cast< long >(val6); | |
9551 | } | |
9552 | if (obj6) { | |
d14a1e28 | 9553 | { |
0085ce49 RD |
9554 | arg7 = wxString_in_helper(obj6); |
9555 | if (arg7 == NULL) SWIG_fail; | |
9556 | temp7 = true; | |
d14a1e28 | 9557 | } |
0085ce49 RD |
9558 | } |
9559 | { | |
9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9561 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | } | |
9565 | { | |
9566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9567 | } | |
9568 | { | |
9569 | if (temp7) | |
9570 | delete arg7; | |
9571 | } | |
9572 | return resultobj; | |
9573 | fail: | |
9574 | { | |
9575 | if (temp7) | |
9576 | delete arg7; | |
9577 | } | |
9578 | return NULL; | |
d14a1e28 RD |
9579 | } |
9580 | ||
9581 | ||
0085ce49 RD |
9582 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9583 | PyObject *resultobj = 0; | |
9584 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9585 | wxWindow *result = 0 ; | |
9586 | void *argp1 = 0 ; | |
9587 | int res1 = 0 ; | |
9588 | PyObject *swig_obj[1] ; | |
9589 | ||
9590 | if (!args) SWIG_fail; | |
9591 | swig_obj[0] = args; | |
9592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9593 | if (!SWIG_IsOK(res1)) { | |
9594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9595 | } | |
9596 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9599 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9600 | wxPyEndAllowThreads(__tstate); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
9603 | { | |
9604 | resultobj = wxPyMake_wxObject(result, 0); | |
9605 | } | |
9606 | return resultobj; | |
9607 | fail: | |
9608 | return NULL; | |
d14a1e28 RD |
9609 | } |
9610 | ||
9611 | ||
0085ce49 RD |
9612 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9613 | PyObject *resultobj = 0; | |
9614 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9615 | wxWindow *result = 0 ; | |
9616 | void *argp1 = 0 ; | |
9617 | int res1 = 0 ; | |
9618 | PyObject *swig_obj[1] ; | |
9619 | ||
9620 | if (!args) SWIG_fail; | |
9621 | swig_obj[0] = args; | |
9622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9623 | if (!SWIG_IsOK(res1)) { | |
9624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9625 | } | |
9626 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9630 | wxPyEndAllowThreads(__tstate); | |
9631 | if (PyErr_Occurred()) SWIG_fail; | |
9632 | } | |
9633 | { | |
9634 | resultobj = wxPyMake_wxObject(result, 0); | |
9635 | } | |
9636 | return resultobj; | |
9637 | fail: | |
9638 | return NULL; | |
9639 | } | |
9640 | ||
9641 | ||
9642 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9643 | PyObject *resultobj = 0; | |
9644 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9645 | int arg2 ; | |
9646 | void *argp1 = 0 ; | |
9647 | int res1 = 0 ; | |
9648 | int val2 ; | |
9649 | int ecode2 = 0 ; | |
9650 | PyObject * obj0 = 0 ; | |
9651 | PyObject * obj1 = 0 ; | |
9652 | char * kwnames[] = { | |
9653 | (char *) "self",(char *) "mode", NULL | |
9654 | }; | |
9655 | ||
9656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9658 | if (!SWIG_IsOK(res1)) { | |
9659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9660 | } | |
9661 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9662 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9663 | if (!SWIG_IsOK(ecode2)) { | |
9664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9665 | } | |
9666 | arg2 = static_cast< int >(val2); | |
9667 | { | |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | (arg1)->SetSplitMode(arg2); | |
9670 | wxPyEndAllowThreads(__tstate); | |
9671 | if (PyErr_Occurred()) SWIG_fail; | |
9672 | } | |
9673 | resultobj = SWIG_Py_Void(); | |
9674 | return resultobj; | |
9675 | fail: | |
9676 | return NULL; | |
d14a1e28 RD |
9677 | } |
9678 | ||
9679 | ||
0085ce49 RD |
9680 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9681 | PyObject *resultobj = 0; | |
9682 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9683 | wxSplitMode result; | |
9684 | void *argp1 = 0 ; | |
9685 | int res1 = 0 ; | |
9686 | PyObject *swig_obj[1] ; | |
9687 | ||
9688 | if (!args) SWIG_fail; | |
9689 | swig_obj[0] = args; | |
9690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9691 | if (!SWIG_IsOK(res1)) { | |
9692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9693 | } | |
9694 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9695 | { | |
9696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9697 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
9701 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9702 | return resultobj; | |
9703 | fail: | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
9708 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9709 | PyObject *resultobj = 0; | |
9710 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9711 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9712 | void *argp1 = 0 ; | |
9713 | int res1 = 0 ; | |
9714 | void *argp2 = 0 ; | |
9715 | int res2 = 0 ; | |
9716 | PyObject * obj0 = 0 ; | |
9717 | PyObject * obj1 = 0 ; | |
9718 | char * kwnames[] = { | |
9719 | (char *) "self",(char *) "window", NULL | |
9720 | }; | |
9721 | ||
9722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9724 | if (!SWIG_IsOK(res1)) { | |
9725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9726 | } | |
9727 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9728 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9729 | if (!SWIG_IsOK(res2)) { | |
9730 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9731 | } | |
9732 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9735 | (arg1)->Initialize(arg2); | |
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) SWIG_fail; | |
9738 | } | |
9739 | resultobj = SWIG_Py_Void(); | |
9740 | return resultobj; | |
9741 | fail: | |
9742 | return NULL; | |
9743 | } | |
9744 | ||
9745 | ||
9746 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9747 | PyObject *resultobj = 0; | |
9748 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9750 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9751 | int arg4 = (int) 0 ; | |
9752 | bool result; | |
9753 | void *argp1 = 0 ; | |
9754 | int res1 = 0 ; | |
9755 | void *argp2 = 0 ; | |
9756 | int res2 = 0 ; | |
9757 | void *argp3 = 0 ; | |
9758 | int res3 = 0 ; | |
9759 | int val4 ; | |
9760 | int ecode4 = 0 ; | |
9761 | PyObject * obj0 = 0 ; | |
9762 | PyObject * obj1 = 0 ; | |
9763 | PyObject * obj2 = 0 ; | |
9764 | PyObject * obj3 = 0 ; | |
9765 | char * kwnames[] = { | |
9766 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9767 | }; | |
9768 | ||
9769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9771 | if (!SWIG_IsOK(res1)) { | |
9772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9773 | } | |
9774 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9775 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9776 | if (!SWIG_IsOK(res2)) { | |
9777 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9778 | } | |
9779 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9780 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9781 | if (!SWIG_IsOK(res3)) { | |
9782 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9783 | } | |
9784 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9785 | if (obj3) { | |
9786 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9787 | if (!SWIG_IsOK(ecode4)) { | |
9788 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9789 | } | |
9790 | arg4 = static_cast< int >(val4); | |
9791 | } | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | { | |
9799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9800 | } | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | return NULL; | |
9804 | } | |
9805 | ||
9806 | ||
9807 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9808 | PyObject *resultobj = 0; | |
9809 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9810 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9811 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9812 | int arg4 = (int) 0 ; | |
9813 | bool result; | |
9814 | void *argp1 = 0 ; | |
9815 | int res1 = 0 ; | |
9816 | void *argp2 = 0 ; | |
9817 | int res2 = 0 ; | |
9818 | void *argp3 = 0 ; | |
9819 | int res3 = 0 ; | |
9820 | int val4 ; | |
9821 | int ecode4 = 0 ; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | PyObject * obj1 = 0 ; | |
9824 | PyObject * obj2 = 0 ; | |
9825 | PyObject * obj3 = 0 ; | |
9826 | char * kwnames[] = { | |
9827 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9828 | }; | |
9829 | ||
9830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9832 | if (!SWIG_IsOK(res1)) { | |
9833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9834 | } | |
9835 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9836 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9837 | if (!SWIG_IsOK(res2)) { | |
9838 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9839 | } | |
9840 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9841 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9842 | if (!SWIG_IsOK(res3)) { | |
9843 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9844 | } | |
9845 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9846 | if (obj3) { | |
9847 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9848 | if (!SWIG_IsOK(ecode4)) { | |
9849 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9850 | } | |
9851 | arg4 = static_cast< int >(val4); | |
9852 | } | |
9853 | { | |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9856 | wxPyEndAllowThreads(__tstate); | |
9857 | if (PyErr_Occurred()) SWIG_fail; | |
9858 | } | |
9859 | { | |
9860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9861 | } | |
9862 | return resultobj; | |
9863 | fail: | |
9864 | return NULL; | |
9865 | } | |
9866 | ||
9867 | ||
9868 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9869 | PyObject *resultobj = 0; | |
9870 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9871 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9872 | bool result; | |
9873 | void *argp1 = 0 ; | |
9874 | int res1 = 0 ; | |
9875 | void *argp2 = 0 ; | |
9876 | int res2 = 0 ; | |
9877 | PyObject * obj0 = 0 ; | |
9878 | PyObject * obj1 = 0 ; | |
9879 | char * kwnames[] = { | |
9880 | (char *) "self",(char *) "toRemove", NULL | |
9881 | }; | |
9882 | ||
9883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9885 | if (!SWIG_IsOK(res1)) { | |
9886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9887 | } | |
9888 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9889 | if (obj1) { | |
9890 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9891 | if (!SWIG_IsOK(res2)) { | |
9892 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d14a1e28 | 9893 | } |
0085ce49 RD |
9894 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9895 | } | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | result = (bool)(arg1)->Unsplit(arg2); | |
9899 | wxPyEndAllowThreads(__tstate); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | { | |
9903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9904 | } | |
9905 | return resultobj; | |
9906 | fail: | |
9907 | return NULL; | |
9908 | } | |
9909 | ||
9910 | ||
9911 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9912 | PyObject *resultobj = 0; | |
9913 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9914 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9915 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9916 | bool result; | |
9917 | void *argp1 = 0 ; | |
9918 | int res1 = 0 ; | |
9919 | void *argp2 = 0 ; | |
9920 | int res2 = 0 ; | |
9921 | void *argp3 = 0 ; | |
9922 | int res3 = 0 ; | |
9923 | PyObject * obj0 = 0 ; | |
9924 | PyObject * obj1 = 0 ; | |
9925 | PyObject * obj2 = 0 ; | |
9926 | char * kwnames[] = { | |
9927 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9928 | }; | |
9929 | ||
9930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9932 | if (!SWIG_IsOK(res1)) { | |
9933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9934 | } | |
9935 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9936 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9937 | if (!SWIG_IsOK(res2)) { | |
9938 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9939 | } | |
9940 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9941 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9942 | if (!SWIG_IsOK(res3)) { | |
9943 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9944 | } | |
9945 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
9952 | { | |
9953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9954 | } | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
d14a1e28 RD |
9958 | } |
9959 | ||
9960 | ||
0085ce49 RD |
9961 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9962 | PyObject *resultobj = 0; | |
9963 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9964 | void *argp1 = 0 ; | |
9965 | int res1 = 0 ; | |
9966 | PyObject *swig_obj[1] ; | |
9967 | ||
9968 | if (!args) SWIG_fail; | |
9969 | swig_obj[0] = args; | |
9970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9971 | if (!SWIG_IsOK(res1)) { | |
9972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9973 | } | |
9974 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | (arg1)->UpdateSize(); | |
9978 | wxPyEndAllowThreads(__tstate); | |
9979 | if (PyErr_Occurred()) SWIG_fail; | |
9980 | } | |
9981 | resultobj = SWIG_Py_Void(); | |
9982 | return resultobj; | |
9983 | fail: | |
9984 | return NULL; | |
22bfe96c RD |
9985 | } |
9986 | ||
9987 | ||
0085ce49 RD |
9988 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9989 | PyObject *resultobj = 0; | |
9990 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9991 | bool result; | |
9992 | void *argp1 = 0 ; | |
9993 | int res1 = 0 ; | |
9994 | PyObject *swig_obj[1] ; | |
9995 | ||
9996 | if (!args) SWIG_fail; | |
9997 | swig_obj[0] = args; | |
9998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9999 | if (!SWIG_IsOK(res1)) { | |
10000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10001 | } | |
10002 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
10006 | wxPyEndAllowThreads(__tstate); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
10009 | { | |
10010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10011 | } | |
10012 | return resultobj; | |
10013 | fail: | |
10014 | return NULL; | |
10015 | } | |
10016 | ||
10017 | ||
10018 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10019 | PyObject *resultobj = 0; | |
10020 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10021 | int arg2 ; | |
10022 | void *argp1 = 0 ; | |
10023 | int res1 = 0 ; | |
10024 | int val2 ; | |
10025 | int ecode2 = 0 ; | |
10026 | PyObject * obj0 = 0 ; | |
10027 | PyObject * obj1 = 0 ; | |
10028 | char * kwnames[] = { | |
10029 | (char *) "self",(char *) "width", NULL | |
10030 | }; | |
10031 | ||
10032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10034 | if (!SWIG_IsOK(res1)) { | |
10035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10036 | } | |
10037 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10038 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10039 | if (!SWIG_IsOK(ecode2)) { | |
10040 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
10041 | } | |
10042 | arg2 = static_cast< int >(val2); | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | (arg1)->SetSashSize(arg2); | |
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | resultobj = SWIG_Py_Void(); | |
10050 | return resultobj; | |
10051 | fail: | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10057 | PyObject *resultobj = 0; | |
10058 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10059 | int arg2 ; | |
10060 | void *argp1 = 0 ; | |
10061 | int res1 = 0 ; | |
10062 | int val2 ; | |
10063 | int ecode2 = 0 ; | |
10064 | PyObject * obj0 = 0 ; | |
10065 | PyObject * obj1 = 0 ; | |
10066 | char * kwnames[] = { | |
10067 | (char *) "self",(char *) "width", NULL | |
10068 | }; | |
10069 | ||
10070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10072 | if (!SWIG_IsOK(res1)) { | |
10073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10074 | } | |
10075 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10076 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10077 | if (!SWIG_IsOK(ecode2)) { | |
10078 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
10079 | } | |
10080 | arg2 = static_cast< int >(val2); | |
10081 | { | |
10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10083 | (arg1)->SetBorderSize(arg2); | |
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
10087 | resultobj = SWIG_Py_Void(); | |
10088 | return resultobj; | |
10089 | fail: | |
10090 | return NULL; | |
d14a1e28 RD |
10091 | } |
10092 | ||
10093 | ||
0085ce49 RD |
10094 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10095 | PyObject *resultobj = 0; | |
10096 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10097 | int result; | |
10098 | void *argp1 = 0 ; | |
10099 | int res1 = 0 ; | |
10100 | PyObject *swig_obj[1] ; | |
10101 | ||
10102 | if (!args) SWIG_fail; | |
10103 | swig_obj[0] = args; | |
10104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10105 | if (!SWIG_IsOK(res1)) { | |
10106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10107 | } | |
10108 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10109 | { | |
10110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10111 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
10112 | wxPyEndAllowThreads(__tstate); | |
10113 | if (PyErr_Occurred()) SWIG_fail; | |
10114 | } | |
10115 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10116 | return resultobj; | |
10117 | fail: | |
10118 | return NULL; | |
d14a1e28 RD |
10119 | } |
10120 | ||
10121 | ||
0085ce49 RD |
10122 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10123 | PyObject *resultobj = 0; | |
10124 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10125 | int result; | |
10126 | void *argp1 = 0 ; | |
10127 | int res1 = 0 ; | |
10128 | PyObject *swig_obj[1] ; | |
10129 | ||
10130 | if (!args) SWIG_fail; | |
10131 | swig_obj[0] = args; | |
10132 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10133 | if (!SWIG_IsOK(res1)) { | |
10134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10135 | } | |
10136 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10137 | { | |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
10140 | wxPyEndAllowThreads(__tstate); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10144 | return resultobj; | |
10145 | fail: | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10151 | PyObject *resultobj = 0; | |
10152 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10153 | int arg2 ; | |
10154 | bool arg3 = (bool) true ; | |
10155 | void *argp1 = 0 ; | |
10156 | int res1 = 0 ; | |
10157 | int val2 ; | |
10158 | int ecode2 = 0 ; | |
10159 | bool val3 ; | |
10160 | int ecode3 = 0 ; | |
10161 | PyObject * obj0 = 0 ; | |
10162 | PyObject * obj1 = 0 ; | |
10163 | PyObject * obj2 = 0 ; | |
10164 | char * kwnames[] = { | |
10165 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
10166 | }; | |
10167 | ||
10168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10170 | if (!SWIG_IsOK(res1)) { | |
10171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10172 | } | |
10173 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10174 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10175 | if (!SWIG_IsOK(ecode2)) { | |
10176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10177 | } | |
10178 | arg2 = static_cast< int >(val2); | |
10179 | if (obj2) { | |
10180 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10181 | if (!SWIG_IsOK(ecode3)) { | |
10182 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
10183 | } | |
10184 | arg3 = static_cast< bool >(val3); | |
10185 | } | |
10186 | { | |
10187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10188 | (arg1)->SetSashPosition(arg2,arg3); | |
10189 | wxPyEndAllowThreads(__tstate); | |
10190 | if (PyErr_Occurred()) SWIG_fail; | |
10191 | } | |
10192 | resultobj = SWIG_Py_Void(); | |
10193 | return resultobj; | |
10194 | fail: | |
10195 | return NULL; | |
d14a1e28 RD |
10196 | } |
10197 | ||
10198 | ||
0085ce49 RD |
10199 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10200 | PyObject *resultobj = 0; | |
10201 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10202 | int result; | |
10203 | void *argp1 = 0 ; | |
10204 | int res1 = 0 ; | |
10205 | PyObject *swig_obj[1] ; | |
10206 | ||
10207 | if (!args) SWIG_fail; | |
10208 | swig_obj[0] = args; | |
10209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10210 | if (!SWIG_IsOK(res1)) { | |
10211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10212 | } | |
10213 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10221 | return resultobj; | |
10222 | fail: | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10228 | PyObject *resultobj = 0; | |
10229 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10230 | double arg2 ; | |
10231 | void *argp1 = 0 ; | |
10232 | int res1 = 0 ; | |
10233 | double val2 ; | |
10234 | int ecode2 = 0 ; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | PyObject * obj1 = 0 ; | |
10237 | char * kwnames[] = { | |
10238 | (char *) "self",(char *) "gravity", NULL | |
10239 | }; | |
10240 | ||
10241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10243 | if (!SWIG_IsOK(res1)) { | |
10244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10245 | } | |
10246 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10247 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10248 | if (!SWIG_IsOK(ecode2)) { | |
10249 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10250 | } | |
10251 | arg2 = static_cast< double >(val2); | |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10254 | (arg1)->SetSashGravity(arg2); | |
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | resultobj = SWIG_Py_Void(); | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
d14a1e28 RD |
10262 | } |
10263 | ||
10264 | ||
0085ce49 RD |
10265 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10266 | PyObject *resultobj = 0; | |
10267 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10268 | double result; | |
10269 | void *argp1 = 0 ; | |
10270 | int res1 = 0 ; | |
10271 | PyObject *swig_obj[1] ; | |
10272 | ||
10273 | if (!args) SWIG_fail; | |
10274 | swig_obj[0] = args; | |
10275 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10276 | if (!SWIG_IsOK(res1)) { | |
10277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10278 | } | |
10279 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10283 | wxPyEndAllowThreads(__tstate); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | } | |
10286 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10287 | return resultobj; | |
10288 | fail: | |
10289 | return NULL; | |
10290 | } | |
10291 | ||
10292 | ||
10293 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10294 | PyObject *resultobj = 0; | |
10295 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10296 | int arg2 ; | |
10297 | void *argp1 = 0 ; | |
10298 | int res1 = 0 ; | |
10299 | int val2 ; | |
10300 | int ecode2 = 0 ; | |
10301 | PyObject * obj0 = 0 ; | |
10302 | PyObject * obj1 = 0 ; | |
10303 | char * kwnames[] = { | |
10304 | (char *) "self",(char *) "min", NULL | |
10305 | }; | |
10306 | ||
10307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10309 | if (!SWIG_IsOK(res1)) { | |
10310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10311 | } | |
10312 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10313 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10314 | if (!SWIG_IsOK(ecode2)) { | |
10315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10316 | } | |
10317 | arg2 = static_cast< int >(val2); | |
10318 | { | |
10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10320 | (arg1)->SetMinimumPaneSize(arg2); | |
10321 | wxPyEndAllowThreads(__tstate); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | } | |
10324 | resultobj = SWIG_Py_Void(); | |
10325 | return resultobj; | |
10326 | fail: | |
10327 | return NULL; | |
d14a1e28 RD |
10328 | } |
10329 | ||
10330 | ||
0085ce49 RD |
10331 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10332 | PyObject *resultobj = 0; | |
10333 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10334 | int result; | |
10335 | void *argp1 = 0 ; | |
10336 | int res1 = 0 ; | |
10337 | PyObject *swig_obj[1] ; | |
10338 | ||
10339 | if (!args) SWIG_fail; | |
10340 | swig_obj[0] = args; | |
10341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10342 | if (!SWIG_IsOK(res1)) { | |
10343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10344 | } | |
10345 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10360 | PyObject *resultobj = 0; | |
10361 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10362 | int arg2 ; | |
10363 | int arg3 ; | |
10364 | int arg4 = (int) 5 ; | |
10365 | bool result; | |
10366 | void *argp1 = 0 ; | |
10367 | int res1 = 0 ; | |
10368 | int val2 ; | |
10369 | int ecode2 = 0 ; | |
10370 | int val3 ; | |
10371 | int ecode3 = 0 ; | |
10372 | int val4 ; | |
10373 | int ecode4 = 0 ; | |
10374 | PyObject * obj0 = 0 ; | |
10375 | PyObject * obj1 = 0 ; | |
10376 | PyObject * obj2 = 0 ; | |
10377 | PyObject * obj3 = 0 ; | |
10378 | char * kwnames[] = { | |
10379 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10380 | }; | |
10381 | ||
10382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10384 | if (!SWIG_IsOK(res1)) { | |
10385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10386 | } | |
10387 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10389 | if (!SWIG_IsOK(ecode2)) { | |
10390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10391 | } | |
10392 | arg2 = static_cast< int >(val2); | |
10393 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10394 | if (!SWIG_IsOK(ecode3)) { | |
10395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10396 | } | |
10397 | arg3 = static_cast< int >(val3); | |
10398 | if (obj3) { | |
10399 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10400 | if (!SWIG_IsOK(ecode4)) { | |
10401 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10402 | } | |
10403 | arg4 = static_cast< int >(val4); | |
10404 | } | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10408 | wxPyEndAllowThreads(__tstate); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | } | |
10411 | { | |
10412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10413 | } | |
10414 | return resultobj; | |
10415 | fail: | |
10416 | return NULL; | |
b1fcee84 RD |
10417 | } |
10418 | ||
10419 | ||
0085ce49 RD |
10420 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10421 | PyObject *resultobj = 0; | |
10422 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10423 | void *argp1 = 0 ; | |
10424 | int res1 = 0 ; | |
10425 | PyObject *swig_obj[1] ; | |
10426 | ||
10427 | if (!args) SWIG_fail; | |
10428 | swig_obj[0] = args; | |
10429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10430 | if (!SWIG_IsOK(res1)) { | |
10431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10432 | } | |
10433 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10434 | { | |
10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10436 | (arg1)->SizeWindows(); | |
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | resultobj = SWIG_Py_Void(); | |
10441 | return resultobj; | |
10442 | fail: | |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
10447 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10448 | PyObject *resultobj = 0; | |
10449 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10450 | bool arg2 ; | |
10451 | void *argp1 = 0 ; | |
10452 | int res1 = 0 ; | |
10453 | bool val2 ; | |
10454 | int ecode2 = 0 ; | |
10455 | PyObject * obj0 = 0 ; | |
10456 | PyObject * obj1 = 0 ; | |
10457 | char * kwnames[] = { | |
10458 | (char *) "self",(char *) "needUpdating", NULL | |
10459 | }; | |
10460 | ||
10461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10463 | if (!SWIG_IsOK(res1)) { | |
10464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10465 | } | |
10466 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10467 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10468 | if (!SWIG_IsOK(ecode2)) { | |
10469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10470 | } | |
10471 | arg2 = static_cast< bool >(val2); | |
10472 | { | |
10473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10474 | (arg1)->SetNeedUpdating(arg2); | |
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
10478 | resultobj = SWIG_Py_Void(); | |
10479 | return resultobj; | |
10480 | fail: | |
10481 | return NULL; | |
b1fcee84 RD |
10482 | } |
10483 | ||
10484 | ||
0085ce49 RD |
10485 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10486 | PyObject *resultobj = 0; | |
10487 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10488 | bool result; | |
10489 | void *argp1 = 0 ; | |
10490 | int res1 = 0 ; | |
10491 | PyObject *swig_obj[1] ; | |
10492 | ||
10493 | if (!args) SWIG_fail; | |
10494 | swig_obj[0] = args; | |
10495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10496 | if (!SWIG_IsOK(res1)) { | |
10497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10498 | } | |
10499 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10500 | { | |
10501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10502 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | { | |
10507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10508 | } | |
10509 | return resultobj; | |
10510 | fail: | |
10511 | return NULL; | |
b1fcee84 RD |
10512 | } |
10513 | ||
10514 | ||
0085ce49 RD |
10515 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10516 | PyObject *resultobj = 0; | |
10517 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10518 | SwigValueWrapper<wxVisualAttributes > result; | |
10519 | int val1 ; | |
10520 | int ecode1 = 0 ; | |
10521 | PyObject * obj0 = 0 ; | |
10522 | char * kwnames[] = { | |
10523 | (char *) "variant", NULL | |
10524 | }; | |
10525 | ||
10526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10527 | if (obj0) { | |
10528 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10529 | if (!SWIG_IsOK(ecode1)) { | |
10530 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10531 | } | |
10532 | arg1 = static_cast< wxWindowVariant >(val1); | |
10533 | } | |
10534 | { | |
10535 | if (!wxPyCheckForApp()) SWIG_fail; | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
10541 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10542 | return resultobj; | |
10543 | fail: | |
10544 | return NULL; | |
b1fcee84 RD |
10545 | } |
10546 | ||
10547 | ||
0085ce49 RD |
10548 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10549 | PyObject *obj; | |
10550 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10551 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10552 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10553 | } |
10554 | ||
0085ce49 RD |
10555 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10556 | return SWIG_Python_InitShadowInstance(args); | |
e505d15e RD |
10557 | } |
10558 | ||
0085ce49 RD |
10559 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10560 | PyObject *resultobj = 0; | |
10561 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10562 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10563 | wxSplitterEvent *result = 0 ; | |
10564 | int val1 ; | |
10565 | int ecode1 = 0 ; | |
10566 | void *argp2 = 0 ; | |
10567 | int res2 = 0 ; | |
10568 | PyObject * obj0 = 0 ; | |
10569 | PyObject * obj1 = 0 ; | |
10570 | char * kwnames[] = { | |
10571 | (char *) "type",(char *) "splitter", NULL | |
10572 | }; | |
10573 | ||
10574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10575 | if (obj0) { | |
10576 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10577 | if (!SWIG_IsOK(ecode1)) { | |
10578 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10579 | } | |
10580 | arg1 = static_cast< wxEventType >(val1); | |
10581 | } | |
10582 | if (obj1) { | |
10583 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10584 | if (!SWIG_IsOK(res2)) { | |
10585 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
4f89f6a3 | 10586 | } |
0085ce49 RD |
10587 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10588 | } | |
10589 | { | |
10590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10591 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10596 | return resultobj; | |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj = 0; | |
10604 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10605 | int arg2 ; | |
10606 | void *argp1 = 0 ; | |
10607 | int res1 = 0 ; | |
10608 | int val2 ; | |
10609 | int ecode2 = 0 ; | |
10610 | PyObject * obj0 = 0 ; | |
10611 | PyObject * obj1 = 0 ; | |
10612 | char * kwnames[] = { | |
10613 | (char *) "self",(char *) "pos", NULL | |
10614 | }; | |
10615 | ||
10616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10618 | if (!SWIG_IsOK(res1)) { | |
10619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10620 | } | |
10621 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10622 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10623 | if (!SWIG_IsOK(ecode2)) { | |
10624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10625 | } | |
10626 | arg2 = static_cast< int >(val2); | |
10627 | { | |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | (arg1)->SetSashPosition(arg2); | |
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) SWIG_fail; | |
10632 | } | |
10633 | resultobj = SWIG_Py_Void(); | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
d14a1e28 RD |
10637 | } |
10638 | ||
10639 | ||
0085ce49 RD |
10640 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10641 | PyObject *resultobj = 0; | |
10642 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10643 | int result; | |
10644 | void *argp1 = 0 ; | |
10645 | int res1 = 0 ; | |
10646 | PyObject *swig_obj[1] ; | |
10647 | ||
10648 | if (!args) SWIG_fail; | |
10649 | swig_obj[0] = args; | |
10650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10651 | if (!SWIG_IsOK(res1)) { | |
10652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10653 | } | |
10654 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10655 | { | |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10657 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10662 | return resultobj; | |
10663 | fail: | |
10664 | return NULL; | |
d14a1e28 RD |
10665 | } |
10666 | ||
10667 | ||
0085ce49 RD |
10668 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10669 | PyObject *resultobj = 0; | |
10670 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10671 | wxWindow *result = 0 ; | |
10672 | void *argp1 = 0 ; | |
10673 | int res1 = 0 ; | |
10674 | PyObject *swig_obj[1] ; | |
10675 | ||
10676 | if (!args) SWIG_fail; | |
10677 | swig_obj[0] = args; | |
10678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10679 | if (!SWIG_IsOK(res1)) { | |
10680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10681 | } | |
10682 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10683 | { | |
10684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10685 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10686 | wxPyEndAllowThreads(__tstate); | |
10687 | if (PyErr_Occurred()) SWIG_fail; | |
10688 | } | |
10689 | { | |
10690 | resultobj = wxPyMake_wxObject(result, 0); | |
10691 | } | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | return NULL; | |
d14a1e28 RD |
10695 | } |
10696 | ||
10697 | ||
0085ce49 RD |
10698 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10699 | PyObject *resultobj = 0; | |
10700 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10701 | int result; | |
10702 | void *argp1 = 0 ; | |
10703 | int res1 = 0 ; | |
10704 | PyObject *swig_obj[1] ; | |
10705 | ||
10706 | if (!args) SWIG_fail; | |
10707 | swig_obj[0] = args; | |
10708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10709 | if (!SWIG_IsOK(res1)) { | |
10710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10711 | } | |
10712 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10713 | { | |
10714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10715 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10716 | wxPyEndAllowThreads(__tstate); | |
10717 | if (PyErr_Occurred()) SWIG_fail; | |
10718 | } | |
10719 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10720 | return resultobj; | |
10721 | fail: | |
10722 | return NULL; | |
22bfe96c RD |
10723 | } |
10724 | ||
10725 | ||
0085ce49 RD |
10726 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10727 | PyObject *resultobj = 0; | |
10728 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10729 | int result; | |
10730 | void *argp1 = 0 ; | |
10731 | int res1 = 0 ; | |
10732 | PyObject *swig_obj[1] ; | |
10733 | ||
10734 | if (!args) SWIG_fail; | |
10735 | swig_obj[0] = args; | |
10736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10737 | if (!SWIG_IsOK(res1)) { | |
10738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10739 | } | |
10740 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10744 | wxPyEndAllowThreads(__tstate); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | } | |
10747 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10748 | return resultobj; | |
10749 | fail: | |
10750 | return NULL; | |
d14a1e28 RD |
10751 | } |
10752 | ||
10753 | ||
0085ce49 RD |
10754 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10755 | PyObject *obj; | |
10756 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10757 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10758 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10759 | } |
10760 | ||
0085ce49 RD |
10761 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10762 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
10763 | } |
10764 | ||
0085ce49 RD |
10765 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10766 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10767 | return 1; | |
d14a1e28 RD |
10768 | } |
10769 | ||
10770 | ||
0085ce49 RD |
10771 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10772 | PyObject *pyobj = 0; | |
10773 | ||
10774 | { | |
10775 | #if wxUSE_UNICODE | |
10776 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10777 | #else | |
10778 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10779 | #endif | |
10780 | } | |
10781 | return pyobj; | |
d14a1e28 RD |
10782 | } |
10783 | ||
10784 | ||
0085ce49 RD |
10785 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10786 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10787 | return 1; | |
d14a1e28 RD |
10788 | } |
10789 | ||
10790 | ||
0085ce49 RD |
10791 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10792 | PyObject *pyobj = 0; | |
10793 | ||
10794 | { | |
10795 | #if wxUSE_UNICODE | |
10796 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10797 | #else | |
10798 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10799 | #endif | |
10800 | } | |
10801 | return pyobj; | |
10802 | } | |
10803 | ||
10804 | ||
10805 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10806 | PyObject *resultobj = 0; | |
10807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10808 | int arg2 = (int) -1 ; | |
10809 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10810 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10811 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10812 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10813 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10814 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10815 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10816 | wxSashWindow *result = 0 ; | |
10817 | void *argp1 = 0 ; | |
10818 | int res1 = 0 ; | |
10819 | int val2 ; | |
10820 | int ecode2 = 0 ; | |
10821 | wxPoint temp3 ; | |
10822 | wxSize temp4 ; | |
10823 | long val5 ; | |
10824 | int ecode5 = 0 ; | |
10825 | bool temp6 = false ; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | PyObject * obj1 = 0 ; | |
10828 | PyObject * obj2 = 0 ; | |
10829 | PyObject * obj3 = 0 ; | |
10830 | PyObject * obj4 = 0 ; | |
10831 | PyObject * obj5 = 0 ; | |
10832 | char * kwnames[] = { | |
10833 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10834 | }; | |
10835 | ||
10836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10838 | if (!SWIG_IsOK(res1)) { | |
10839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10840 | } | |
10841 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10842 | if (obj1) { | |
10843 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10844 | if (!SWIG_IsOK(ecode2)) { | |
10845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10846 | } | |
10847 | arg2 = static_cast< int >(val2); | |
10848 | } | |
10849 | if (obj2) { | |
093d3ff1 | 10850 | { |
0085ce49 RD |
10851 | arg3 = &temp3; |
10852 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 10853 | } |
0085ce49 RD |
10854 | } |
10855 | if (obj3) { | |
d14a1e28 | 10856 | { |
0085ce49 RD |
10857 | arg4 = &temp4; |
10858 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10859 | } |
0085ce49 RD |
10860 | } |
10861 | if (obj4) { | |
10862 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10863 | if (!SWIG_IsOK(ecode5)) { | |
10864 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10865 | } | |
10866 | arg5 = static_cast< long >(val5); | |
10867 | } | |
10868 | if (obj5) { | |
093d3ff1 | 10869 | { |
0085ce49 RD |
10870 | arg6 = wxString_in_helper(obj5); |
10871 | if (arg6 == NULL) SWIG_fail; | |
10872 | temp6 = true; | |
093d3ff1 | 10873 | } |
0085ce49 RD |
10874 | } |
10875 | { | |
10876 | if (!wxPyCheckForApp()) SWIG_fail; | |
10877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10878 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10879 | wxPyEndAllowThreads(__tstate); | |
10880 | if (PyErr_Occurred()) SWIG_fail; | |
10881 | } | |
10882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10883 | { | |
10884 | if (temp6) | |
10885 | delete arg6; | |
10886 | } | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | { | |
10890 | if (temp6) | |
10891 | delete arg6; | |
10892 | } | |
10893 | return NULL; | |
d14a1e28 RD |
10894 | } |
10895 | ||
10896 | ||
0085ce49 RD |
10897 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10898 | PyObject *resultobj = 0; | |
10899 | wxSashWindow *result = 0 ; | |
10900 | ||
10901 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10902 | { | |
10903 | if (!wxPyCheckForApp()) SWIG_fail; | |
10904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10905 | result = (wxSashWindow *)new wxSashWindow(); | |
10906 | wxPyEndAllowThreads(__tstate); | |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
10908 | } | |
10909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10910 | return resultobj; | |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10917 | PyObject *resultobj = 0; | |
10918 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10919 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10920 | int arg3 = (int) -1 ; | |
10921 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10922 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10923 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10924 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10925 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10926 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10927 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10928 | bool result; | |
10929 | void *argp1 = 0 ; | |
10930 | int res1 = 0 ; | |
10931 | void *argp2 = 0 ; | |
10932 | int res2 = 0 ; | |
10933 | int val3 ; | |
10934 | int ecode3 = 0 ; | |
10935 | wxPoint temp4 ; | |
10936 | wxSize temp5 ; | |
10937 | long val6 ; | |
10938 | int ecode6 = 0 ; | |
10939 | bool temp7 = false ; | |
10940 | PyObject * obj0 = 0 ; | |
10941 | PyObject * obj1 = 0 ; | |
10942 | PyObject * obj2 = 0 ; | |
10943 | PyObject * obj3 = 0 ; | |
10944 | PyObject * obj4 = 0 ; | |
10945 | PyObject * obj5 = 0 ; | |
10946 | PyObject * obj6 = 0 ; | |
10947 | char * kwnames[] = { | |
10948 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10949 | }; | |
10950 | ||
10951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10953 | if (!SWIG_IsOK(res1)) { | |
10954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10955 | } | |
10956 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10957 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10958 | if (!SWIG_IsOK(res2)) { | |
10959 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10960 | } | |
10961 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10962 | if (obj2) { | |
10963 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10964 | if (!SWIG_IsOK(ecode3)) { | |
10965 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
10966 | } | |
10967 | arg3 = static_cast< int >(val3); | |
10968 | } | |
10969 | if (obj3) { | |
093d3ff1 | 10970 | { |
0085ce49 RD |
10971 | arg4 = &temp4; |
10972 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10973 | } |
0085ce49 RD |
10974 | } |
10975 | if (obj4) { | |
d14a1e28 | 10976 | { |
0085ce49 RD |
10977 | arg5 = &temp5; |
10978 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10979 | } |
0085ce49 RD |
10980 | } |
10981 | if (obj5) { | |
10982 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10983 | if (!SWIG_IsOK(ecode6)) { | |
10984 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
10985 | } | |
10986 | arg6 = static_cast< long >(val6); | |
10987 | } | |
10988 | if (obj6) { | |
d14a1e28 | 10989 | { |
0085ce49 RD |
10990 | arg7 = wxString_in_helper(obj6); |
10991 | if (arg7 == NULL) SWIG_fail; | |
10992 | temp7 = true; | |
d14a1e28 | 10993 | } |
0085ce49 RD |
10994 | } |
10995 | { | |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10998 | wxPyEndAllowThreads(__tstate); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | { | |
11002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11003 | } | |
11004 | { | |
11005 | if (temp7) | |
11006 | delete arg7; | |
11007 | } | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | { | |
11011 | if (temp7) | |
11012 | delete arg7; | |
11013 | } | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj = 0; | |
11020 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11021 | wxSashEdgePosition arg2 ; | |
11022 | bool arg3 ; | |
11023 | void *argp1 = 0 ; | |
11024 | int res1 = 0 ; | |
11025 | int val2 ; | |
11026 | int ecode2 = 0 ; | |
11027 | bool val3 ; | |
11028 | int ecode3 = 0 ; | |
11029 | PyObject * obj0 = 0 ; | |
11030 | PyObject * obj1 = 0 ; | |
11031 | PyObject * obj2 = 0 ; | |
11032 | char * kwnames[] = { | |
11033 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
11034 | }; | |
11035 | ||
11036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11038 | if (!SWIG_IsOK(res1)) { | |
11039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11040 | } | |
11041 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11042 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11043 | if (!SWIG_IsOK(ecode2)) { | |
11044 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11045 | } | |
11046 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11047 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11048 | if (!SWIG_IsOK(ecode3)) { | |
11049 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
11050 | } | |
11051 | arg3 = static_cast< bool >(val3); | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | (arg1)->SetSashVisible(arg2,arg3); | |
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | resultobj = SWIG_Py_Void(); | |
11059 | return resultobj; | |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
11065 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11066 | PyObject *resultobj = 0; | |
11067 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11068 | wxSashEdgePosition arg2 ; | |
11069 | bool result; | |
11070 | void *argp1 = 0 ; | |
11071 | int res1 = 0 ; | |
11072 | int val2 ; | |
11073 | int ecode2 = 0 ; | |
11074 | PyObject * obj0 = 0 ; | |
11075 | PyObject * obj1 = 0 ; | |
11076 | char * kwnames[] = { | |
11077 | (char *) "self",(char *) "edge", NULL | |
11078 | }; | |
11079 | ||
11080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
11081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11082 | if (!SWIG_IsOK(res1)) { | |
11083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11084 | } | |
11085 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11087 | if (!SWIG_IsOK(ecode2)) { | |
11088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11089 | } | |
11090 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | { | |
11098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11099 | } | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
11106 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11107 | PyObject *resultobj = 0; | |
11108 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11109 | wxSashEdgePosition arg2 ; | |
11110 | bool arg3 ; | |
11111 | void *argp1 = 0 ; | |
11112 | int res1 = 0 ; | |
11113 | int val2 ; | |
11114 | int ecode2 = 0 ; | |
11115 | bool val3 ; | |
11116 | int ecode3 = 0 ; | |
11117 | PyObject * obj0 = 0 ; | |
11118 | PyObject * obj1 = 0 ; | |
11119 | PyObject * obj2 = 0 ; | |
11120 | char * kwnames[] = { | |
11121 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
11122 | }; | |
11123 | ||
11124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11126 | if (!SWIG_IsOK(res1)) { | |
11127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11128 | } | |
11129 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11130 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11131 | if (!SWIG_IsOK(ecode2)) { | |
11132 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11133 | } | |
11134 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11135 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11136 | if (!SWIG_IsOK(ecode3)) { | |
11137 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
11138 | } | |
11139 | arg3 = static_cast< bool >(val3); | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | (arg1)->SetSashBorder(arg2,arg3); | |
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | resultobj = SWIG_Py_Void(); | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11154 | PyObject *resultobj = 0; | |
11155 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11156 | wxSashEdgePosition arg2 ; | |
11157 | bool result; | |
11158 | void *argp1 = 0 ; | |
11159 | int res1 = 0 ; | |
11160 | int val2 ; | |
11161 | int ecode2 = 0 ; | |
11162 | PyObject * obj0 = 0 ; | |
11163 | PyObject * obj1 = 0 ; | |
11164 | char * kwnames[] = { | |
11165 | (char *) "self",(char *) "edge", NULL | |
11166 | }; | |
11167 | ||
11168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
11169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11170 | if (!SWIG_IsOK(res1)) { | |
11171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11172 | } | |
11173 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11174 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11175 | if (!SWIG_IsOK(ecode2)) { | |
11176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11177 | } | |
11178 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11179 | { | |
11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11181 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
11182 | wxPyEndAllowThreads(__tstate); | |
11183 | if (PyErr_Occurred()) SWIG_fail; | |
11184 | } | |
11185 | { | |
11186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11187 | } | |
11188 | return resultobj; | |
11189 | fail: | |
11190 | return NULL; | |
11191 | } | |
11192 | ||
11193 | ||
11194 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11195 | PyObject *resultobj = 0; | |
11196 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11197 | wxSashEdgePosition arg2 ; | |
11198 | int result; | |
11199 | void *argp1 = 0 ; | |
11200 | int res1 = 0 ; | |
11201 | int val2 ; | |
11202 | int ecode2 = 0 ; | |
11203 | PyObject * obj0 = 0 ; | |
11204 | PyObject * obj1 = 0 ; | |
11205 | char * kwnames[] = { | |
11206 | (char *) "self",(char *) "edge", NULL | |
11207 | }; | |
11208 | ||
11209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11210 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11211 | if (!SWIG_IsOK(res1)) { | |
11212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11213 | } | |
11214 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11215 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11216 | if (!SWIG_IsOK(ecode2)) { | |
11217 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11218 | } | |
11219 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11220 | { | |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11223 | wxPyEndAllowThreads(__tstate); | |
11224 | if (PyErr_Occurred()) SWIG_fail; | |
11225 | } | |
11226 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj = 0; | |
11235 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11236 | int arg2 ; | |
11237 | void *argp1 = 0 ; | |
11238 | int res1 = 0 ; | |
11239 | int val2 ; | |
11240 | int ecode2 = 0 ; | |
11241 | PyObject * obj0 = 0 ; | |
11242 | PyObject * obj1 = 0 ; | |
11243 | char * kwnames[] = { | |
11244 | (char *) "self",(char *) "width", NULL | |
11245 | }; | |
11246 | ||
11247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11249 | if (!SWIG_IsOK(res1)) { | |
11250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11251 | } | |
11252 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11253 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11254 | if (!SWIG_IsOK(ecode2)) { | |
11255 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11256 | } | |
11257 | arg2 = static_cast< int >(val2); | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | (arg1)->SetDefaultBorderSize(arg2); | |
11261 | wxPyEndAllowThreads(__tstate); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
11264 | resultobj = SWIG_Py_Void(); | |
11265 | return resultobj; | |
11266 | fail: | |
11267 | return NULL; | |
d14a1e28 RD |
11268 | } |
11269 | ||
11270 | ||
0085ce49 RD |
11271 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11272 | PyObject *resultobj = 0; | |
11273 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11274 | int result; | |
11275 | void *argp1 = 0 ; | |
11276 | int res1 = 0 ; | |
11277 | PyObject *swig_obj[1] ; | |
11278 | ||
11279 | if (!args) SWIG_fail; | |
11280 | swig_obj[0] = args; | |
11281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11282 | if (!SWIG_IsOK(res1)) { | |
11283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11284 | } | |
11285 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11286 | { | |
11287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11288 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11289 | wxPyEndAllowThreads(__tstate); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11293 | return resultobj; | |
11294 | fail: | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
11299 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11300 | PyObject *resultobj = 0; | |
11301 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11302 | int arg2 ; | |
11303 | void *argp1 = 0 ; | |
11304 | int res1 = 0 ; | |
11305 | int val2 ; | |
11306 | int ecode2 = 0 ; | |
11307 | PyObject * obj0 = 0 ; | |
11308 | PyObject * obj1 = 0 ; | |
11309 | char * kwnames[] = { | |
11310 | (char *) "self",(char *) "width", NULL | |
11311 | }; | |
11312 | ||
11313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11315 | if (!SWIG_IsOK(res1)) { | |
11316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11317 | } | |
11318 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11319 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11320 | if (!SWIG_IsOK(ecode2)) { | |
11321 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11322 | } | |
11323 | arg2 = static_cast< int >(val2); | |
11324 | { | |
11325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11326 | (arg1)->SetExtraBorderSize(arg2); | |
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | resultobj = SWIG_Py_Void(); | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | return NULL; | |
d14a1e28 RD |
11334 | } |
11335 | ||
11336 | ||
0085ce49 RD |
11337 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11338 | PyObject *resultobj = 0; | |
11339 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11340 | int result; | |
11341 | void *argp1 = 0 ; | |
11342 | int res1 = 0 ; | |
11343 | PyObject *swig_obj[1] ; | |
11344 | ||
11345 | if (!args) SWIG_fail; | |
11346 | swig_obj[0] = args; | |
11347 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11348 | if (!SWIG_IsOK(res1)) { | |
11349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11350 | } | |
11351 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11352 | { | |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11354 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11355 | wxPyEndAllowThreads(__tstate); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
11357 | } | |
11358 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11359 | return resultobj; | |
11360 | fail: | |
11361 | return NULL; | |
11362 | } | |
11363 | ||
11364 | ||
11365 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11366 | PyObject *resultobj = 0; | |
11367 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11368 | int arg2 ; | |
11369 | void *argp1 = 0 ; | |
11370 | int res1 = 0 ; | |
11371 | int val2 ; | |
11372 | int ecode2 = 0 ; | |
11373 | PyObject * obj0 = 0 ; | |
11374 | PyObject * obj1 = 0 ; | |
11375 | char * kwnames[] = { | |
11376 | (char *) "self",(char *) "min", NULL | |
11377 | }; | |
11378 | ||
11379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11381 | if (!SWIG_IsOK(res1)) { | |
11382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11383 | } | |
11384 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11385 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11386 | if (!SWIG_IsOK(ecode2)) { | |
11387 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11388 | } | |
11389 | arg2 = static_cast< int >(val2); | |
11390 | { | |
11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11392 | (arg1)->SetMinimumSizeX(arg2); | |
11393 | wxPyEndAllowThreads(__tstate); | |
11394 | if (PyErr_Occurred()) SWIG_fail; | |
11395 | } | |
11396 | resultobj = SWIG_Py_Void(); | |
11397 | return resultobj; | |
11398 | fail: | |
11399 | return NULL; | |
11400 | } | |
11401 | ||
11402 | ||
11403 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11404 | PyObject *resultobj = 0; | |
11405 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11406 | int arg2 ; | |
11407 | void *argp1 = 0 ; | |
11408 | int res1 = 0 ; | |
11409 | int val2 ; | |
11410 | int ecode2 = 0 ; | |
11411 | PyObject * obj0 = 0 ; | |
11412 | PyObject * obj1 = 0 ; | |
11413 | char * kwnames[] = { | |
11414 | (char *) "self",(char *) "min", NULL | |
11415 | }; | |
11416 | ||
11417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11419 | if (!SWIG_IsOK(res1)) { | |
11420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11421 | } | |
11422 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11423 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11424 | if (!SWIG_IsOK(ecode2)) { | |
11425 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11426 | } | |
11427 | arg2 = static_cast< int >(val2); | |
11428 | { | |
11429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11430 | (arg1)->SetMinimumSizeY(arg2); | |
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
11434 | resultobj = SWIG_Py_Void(); | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | return NULL; | |
d14a1e28 RD |
11438 | } |
11439 | ||
11440 | ||
0085ce49 RD |
11441 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11442 | PyObject *resultobj = 0; | |
11443 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11444 | int result; | |
11445 | void *argp1 = 0 ; | |
11446 | int res1 = 0 ; | |
11447 | PyObject *swig_obj[1] ; | |
11448 | ||
11449 | if (!args) SWIG_fail; | |
11450 | swig_obj[0] = args; | |
11451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11452 | if (!SWIG_IsOK(res1)) { | |
11453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11454 | } | |
11455 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
11462 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11463 | return resultobj; | |
11464 | fail: | |
11465 | return NULL; | |
d14a1e28 RD |
11466 | } |
11467 | ||
11468 | ||
0085ce49 RD |
11469 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11470 | PyObject *resultobj = 0; | |
11471 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11472 | int result; | |
11473 | void *argp1 = 0 ; | |
11474 | int res1 = 0 ; | |
11475 | PyObject *swig_obj[1] ; | |
11476 | ||
11477 | if (!args) SWIG_fail; | |
11478 | swig_obj[0] = args; | |
11479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11480 | if (!SWIG_IsOK(res1)) { | |
11481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11482 | } | |
11483 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
11490 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11491 | return resultobj; | |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
11497 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11498 | PyObject *resultobj = 0; | |
11499 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11500 | int arg2 ; | |
11501 | void *argp1 = 0 ; | |
11502 | int res1 = 0 ; | |
11503 | int val2 ; | |
11504 | int ecode2 = 0 ; | |
11505 | PyObject * obj0 = 0 ; | |
11506 | PyObject * obj1 = 0 ; | |
11507 | char * kwnames[] = { | |
11508 | (char *) "self",(char *) "max", NULL | |
11509 | }; | |
11510 | ||
11511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11513 | if (!SWIG_IsOK(res1)) { | |
11514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11515 | } | |
11516 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11517 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11518 | if (!SWIG_IsOK(ecode2)) { | |
11519 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11520 | } | |
11521 | arg2 = static_cast< int >(val2); | |
11522 | { | |
11523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11524 | (arg1)->SetMaximumSizeX(arg2); | |
11525 | wxPyEndAllowThreads(__tstate); | |
11526 | if (PyErr_Occurred()) SWIG_fail; | |
11527 | } | |
11528 | resultobj = SWIG_Py_Void(); | |
11529 | return resultobj; | |
11530 | fail: | |
11531 | return NULL; | |
11532 | } | |
11533 | ||
11534 | ||
11535 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11536 | PyObject *resultobj = 0; | |
11537 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11538 | int arg2 ; | |
11539 | void *argp1 = 0 ; | |
11540 | int res1 = 0 ; | |
11541 | int val2 ; | |
11542 | int ecode2 = 0 ; | |
11543 | PyObject * obj0 = 0 ; | |
11544 | PyObject * obj1 = 0 ; | |
11545 | char * kwnames[] = { | |
11546 | (char *) "self",(char *) "max", NULL | |
11547 | }; | |
11548 | ||
11549 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11550 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11551 | if (!SWIG_IsOK(res1)) { | |
11552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11553 | } | |
11554 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11555 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11556 | if (!SWIG_IsOK(ecode2)) { | |
11557 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11558 | } | |
11559 | arg2 = static_cast< int >(val2); | |
11560 | { | |
11561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11562 | (arg1)->SetMaximumSizeY(arg2); | |
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
11566 | resultobj = SWIG_Py_Void(); | |
11567 | return resultobj; | |
11568 | fail: | |
11569 | return NULL; | |
d14a1e28 RD |
11570 | } |
11571 | ||
11572 | ||
0085ce49 RD |
11573 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11574 | PyObject *resultobj = 0; | |
11575 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11576 | int result; | |
11577 | void *argp1 = 0 ; | |
11578 | int res1 = 0 ; | |
11579 | PyObject *swig_obj[1] ; | |
11580 | ||
11581 | if (!args) SWIG_fail; | |
11582 | swig_obj[0] = args; | |
11583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11584 | if (!SWIG_IsOK(res1)) { | |
11585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11586 | } | |
11587 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11588 | { | |
11589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11590 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11591 | wxPyEndAllowThreads(__tstate); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | } | |
11594 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11595 | return resultobj; | |
11596 | fail: | |
11597 | return NULL; | |
d14a1e28 RD |
11598 | } |
11599 | ||
11600 | ||
0085ce49 RD |
11601 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11602 | PyObject *resultobj = 0; | |
11603 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11604 | int result; | |
11605 | void *argp1 = 0 ; | |
11606 | int res1 = 0 ; | |
11607 | PyObject *swig_obj[1] ; | |
11608 | ||
11609 | if (!args) SWIG_fail; | |
11610 | swig_obj[0] = args; | |
11611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11612 | if (!SWIG_IsOK(res1)) { | |
11613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11614 | } | |
11615 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11616 | { | |
11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11618 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11619 | wxPyEndAllowThreads(__tstate); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11623 | return resultobj; | |
11624 | fail: | |
11625 | return NULL; | |
11626 | } | |
11627 | ||
11628 | ||
11629 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11630 | PyObject *resultobj = 0; | |
11631 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11632 | int arg2 ; | |
11633 | int arg3 ; | |
11634 | int arg4 = (int) 2 ; | |
11635 | wxSashEdgePosition result; | |
11636 | void *argp1 = 0 ; | |
11637 | int res1 = 0 ; | |
11638 | int val2 ; | |
11639 | int ecode2 = 0 ; | |
11640 | int val3 ; | |
11641 | int ecode3 = 0 ; | |
11642 | int val4 ; | |
11643 | int ecode4 = 0 ; | |
11644 | PyObject * obj0 = 0 ; | |
11645 | PyObject * obj1 = 0 ; | |
11646 | PyObject * obj2 = 0 ; | |
11647 | PyObject * obj3 = 0 ; | |
11648 | char * kwnames[] = { | |
11649 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11650 | }; | |
11651 | ||
11652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11654 | if (!SWIG_IsOK(res1)) { | |
11655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11656 | } | |
11657 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11658 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11659 | if (!SWIG_IsOK(ecode2)) { | |
11660 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11661 | } | |
11662 | arg2 = static_cast< int >(val2); | |
11663 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11664 | if (!SWIG_IsOK(ecode3)) { | |
11665 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11666 | } | |
11667 | arg3 = static_cast< int >(val3); | |
11668 | if (obj3) { | |
11669 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11670 | if (!SWIG_IsOK(ecode4)) { | |
11671 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11672 | } | |
11673 | arg4 = static_cast< int >(val4); | |
11674 | } | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11678 | wxPyEndAllowThreads(__tstate); | |
11679 | if (PyErr_Occurred()) SWIG_fail; | |
11680 | } | |
11681 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11682 | return resultobj; | |
11683 | fail: | |
11684 | return NULL; | |
d14a1e28 RD |
11685 | } |
11686 | ||
11687 | ||
0085ce49 RD |
11688 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11689 | PyObject *resultobj = 0; | |
11690 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11691 | void *argp1 = 0 ; | |
11692 | int res1 = 0 ; | |
11693 | PyObject *swig_obj[1] ; | |
11694 | ||
11695 | if (!args) SWIG_fail; | |
11696 | swig_obj[0] = args; | |
11697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11698 | if (!SWIG_IsOK(res1)) { | |
11699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11700 | } | |
11701 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11702 | { | |
11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11704 | (arg1)->SizeWindows(); | |
11705 | wxPyEndAllowThreads(__tstate); | |
11706 | if (PyErr_Occurred()) SWIG_fail; | |
11707 | } | |
11708 | resultobj = SWIG_Py_Void(); | |
11709 | return resultobj; | |
11710 | fail: | |
11711 | return NULL; | |
d14a1e28 RD |
11712 | } |
11713 | ||
11714 | ||
0085ce49 RD |
11715 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11716 | PyObject *obj; | |
11717 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11718 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11719 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11720 | } |
11721 | ||
0085ce49 RD |
11722 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11723 | return SWIG_Python_InitShadowInstance(args); | |
f16ab95d RD |
11724 | } |
11725 | ||
0085ce49 RD |
11726 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11727 | PyObject *resultobj = 0; | |
11728 | int arg1 = (int) 0 ; | |
11729 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11730 | wxSashEvent *result = 0 ; | |
11731 | int val1 ; | |
11732 | int ecode1 = 0 ; | |
11733 | int val2 ; | |
11734 | int ecode2 = 0 ; | |
11735 | PyObject * obj0 = 0 ; | |
11736 | PyObject * obj1 = 0 ; | |
11737 | char * kwnames[] = { | |
11738 | (char *) "id",(char *) "edge", NULL | |
11739 | }; | |
11740 | ||
11741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11742 | if (obj0) { | |
11743 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11744 | if (!SWIG_IsOK(ecode1)) { | |
11745 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11746 | } | |
11747 | arg1 = static_cast< int >(val1); | |
11748 | } | |
11749 | if (obj1) { | |
11750 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11751 | if (!SWIG_IsOK(ecode2)) { | |
11752 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11753 | } | |
11754 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11755 | } | |
11756 | { | |
11757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11758 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11763 | return resultobj; | |
11764 | fail: | |
11765 | return NULL; | |
11766 | } | |
11767 | ||
11768 | ||
11769 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11770 | PyObject *resultobj = 0; | |
11771 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11772 | wxSashEdgePosition arg2 ; | |
11773 | void *argp1 = 0 ; | |
11774 | int res1 = 0 ; | |
11775 | int val2 ; | |
11776 | int ecode2 = 0 ; | |
11777 | PyObject * obj0 = 0 ; | |
11778 | PyObject * obj1 = 0 ; | |
11779 | char * kwnames[] = { | |
11780 | (char *) "self",(char *) "edge", NULL | |
11781 | }; | |
11782 | ||
11783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11785 | if (!SWIG_IsOK(res1)) { | |
11786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11787 | } | |
11788 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11790 | if (!SWIG_IsOK(ecode2)) { | |
11791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11792 | } | |
11793 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11794 | { | |
11795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11796 | (arg1)->SetEdge(arg2); | |
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | resultobj = SWIG_Py_Void(); | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
d14a1e28 RD |
11804 | } |
11805 | ||
11806 | ||
0085ce49 RD |
11807 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11808 | PyObject *resultobj = 0; | |
11809 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11810 | wxSashEdgePosition result; | |
11811 | void *argp1 = 0 ; | |
11812 | int res1 = 0 ; | |
11813 | PyObject *swig_obj[1] ; | |
11814 | ||
11815 | if (!args) SWIG_fail; | |
11816 | swig_obj[0] = args; | |
11817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11818 | if (!SWIG_IsOK(res1)) { | |
11819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11820 | } | |
11821 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11822 | { | |
11823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11824 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11825 | wxPyEndAllowThreads(__tstate); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | } | |
11828 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11829 | return resultobj; | |
11830 | fail: | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
11835 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11836 | PyObject *resultobj = 0; | |
11837 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11838 | wxRect *arg2 = 0 ; | |
11839 | void *argp1 = 0 ; | |
11840 | int res1 = 0 ; | |
11841 | wxRect temp2 ; | |
11842 | PyObject * obj0 = 0 ; | |
11843 | PyObject * obj1 = 0 ; | |
11844 | char * kwnames[] = { | |
11845 | (char *) "self",(char *) "rect", NULL | |
11846 | }; | |
11847 | ||
11848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11850 | if (!SWIG_IsOK(res1)) { | |
11851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11852 | } | |
11853 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11854 | { | |
11855 | arg2 = &temp2; | |
11856 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11857 | } | |
11858 | { | |
11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11860 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11861 | wxPyEndAllowThreads(__tstate); | |
11862 | if (PyErr_Occurred()) SWIG_fail; | |
11863 | } | |
11864 | resultobj = SWIG_Py_Void(); | |
11865 | return resultobj; | |
11866 | fail: | |
11867 | return NULL; | |
d14a1e28 RD |
11868 | } |
11869 | ||
11870 | ||
0085ce49 RD |
11871 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11872 | PyObject *resultobj = 0; | |
11873 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11874 | wxRect result; | |
11875 | void *argp1 = 0 ; | |
11876 | int res1 = 0 ; | |
11877 | PyObject *swig_obj[1] ; | |
11878 | ||
11879 | if (!args) SWIG_fail; | |
11880 | swig_obj[0] = args; | |
11881 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11882 | if (!SWIG_IsOK(res1)) { | |
11883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11884 | } | |
11885 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11886 | { | |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11888 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11893 | return resultobj; | |
11894 | fail: | |
11895 | return NULL; | |
11896 | } | |
11897 | ||
11898 | ||
11899 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11900 | PyObject *resultobj = 0; | |
11901 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11902 | wxSashDragStatus arg2 ; | |
11903 | void *argp1 = 0 ; | |
11904 | int res1 = 0 ; | |
11905 | int val2 ; | |
11906 | int ecode2 = 0 ; | |
11907 | PyObject * obj0 = 0 ; | |
11908 | PyObject * obj1 = 0 ; | |
11909 | char * kwnames[] = { | |
11910 | (char *) "self",(char *) "status", NULL | |
11911 | }; | |
11912 | ||
11913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11915 | if (!SWIG_IsOK(res1)) { | |
11916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11917 | } | |
11918 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11919 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11920 | if (!SWIG_IsOK(ecode2)) { | |
11921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11922 | } | |
11923 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | (arg1)->SetDragStatus(arg2); | |
11927 | wxPyEndAllowThreads(__tstate); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
11930 | resultobj = SWIG_Py_Void(); | |
11931 | return resultobj; | |
11932 | fail: | |
11933 | return NULL; | |
d14a1e28 RD |
11934 | } |
11935 | ||
11936 | ||
0085ce49 RD |
11937 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11938 | PyObject *resultobj = 0; | |
11939 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11940 | wxSashDragStatus result; | |
11941 | void *argp1 = 0 ; | |
11942 | int res1 = 0 ; | |
11943 | PyObject *swig_obj[1] ; | |
11944 | ||
11945 | if (!args) SWIG_fail; | |
11946 | swig_obj[0] = args; | |
11947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11948 | if (!SWIG_IsOK(res1)) { | |
11949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11950 | } | |
11951 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11952 | { | |
11953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11954 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11955 | wxPyEndAllowThreads(__tstate); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
11957 | } | |
11958 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11959 | return resultobj; | |
11960 | fail: | |
11961 | return NULL; | |
d14a1e28 RD |
11962 | } |
11963 | ||
11964 | ||
0085ce49 RD |
11965 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11966 | PyObject *obj; | |
11967 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11968 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
11969 | return SWIG_Py_Void(); | |
22bfe96c RD |
11970 | } |
11971 | ||
0085ce49 RD |
11972 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11973 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
11974 | } |
11975 | ||
0085ce49 RD |
11976 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11977 | PyObject *resultobj = 0; | |
11978 | int arg1 = (int) 0 ; | |
11979 | wxQueryLayoutInfoEvent *result = 0 ; | |
11980 | int val1 ; | |
11981 | int ecode1 = 0 ; | |
11982 | PyObject * obj0 = 0 ; | |
11983 | char * kwnames[] = { | |
11984 | (char *) "id", NULL | |
11985 | }; | |
11986 | ||
11987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
11988 | if (obj0) { | |
11989 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11990 | if (!SWIG_IsOK(ecode1)) { | |
11991 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
11992 | } | |
11993 | arg1 = static_cast< int >(val1); | |
11994 | } | |
11995 | { | |
11996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11997 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
12001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
12002 | return resultobj; | |
12003 | fail: | |
12004 | return NULL; | |
12005 | } | |
12006 | ||
12007 | ||
12008 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12009 | PyObject *resultobj = 0; | |
12010 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12011 | int arg2 ; | |
12012 | void *argp1 = 0 ; | |
12013 | int res1 = 0 ; | |
12014 | int val2 ; | |
12015 | int ecode2 = 0 ; | |
12016 | PyObject * obj0 = 0 ; | |
12017 | PyObject * obj1 = 0 ; | |
12018 | char * kwnames[] = { | |
12019 | (char *) "self",(char *) "length", NULL | |
12020 | }; | |
12021 | ||
12022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12024 | if (!SWIG_IsOK(res1)) { | |
12025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12026 | } | |
12027 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12028 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12029 | if (!SWIG_IsOK(ecode2)) { | |
12030 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
12031 | } | |
12032 | arg2 = static_cast< int >(val2); | |
12033 | { | |
12034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12035 | (arg1)->SetRequestedLength(arg2); | |
12036 | wxPyEndAllowThreads(__tstate); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
12039 | resultobj = SWIG_Py_Void(); | |
12040 | return resultobj; | |
12041 | fail: | |
12042 | return NULL; | |
d14a1e28 RD |
12043 | } |
12044 | ||
12045 | ||
0085ce49 RD |
12046 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12047 | PyObject *resultobj = 0; | |
12048 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12049 | int result; | |
12050 | void *argp1 = 0 ; | |
12051 | int res1 = 0 ; | |
12052 | PyObject *swig_obj[1] ; | |
12053 | ||
12054 | if (!args) SWIG_fail; | |
12055 | swig_obj[0] = args; | |
12056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12057 | if (!SWIG_IsOK(res1)) { | |
12058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12059 | } | |
12060 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12061 | { | |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12068 | return resultobj; | |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
12074 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12075 | PyObject *resultobj = 0; | |
12076 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12077 | int arg2 ; | |
12078 | void *argp1 = 0 ; | |
12079 | int res1 = 0 ; | |
12080 | int val2 ; | |
12081 | int ecode2 = 0 ; | |
12082 | PyObject * obj0 = 0 ; | |
12083 | PyObject * obj1 = 0 ; | |
12084 | char * kwnames[] = { | |
12085 | (char *) "self",(char *) "flags", NULL | |
12086 | }; | |
12087 | ||
12088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12090 | if (!SWIG_IsOK(res1)) { | |
12091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12092 | } | |
12093 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12094 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12095 | if (!SWIG_IsOK(ecode2)) { | |
12096 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12097 | } | |
12098 | arg2 = static_cast< int >(val2); | |
12099 | { | |
12100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12101 | (arg1)->SetFlags(arg2); | |
12102 | wxPyEndAllowThreads(__tstate); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
12105 | resultobj = SWIG_Py_Void(); | |
12106 | return resultobj; | |
12107 | fail: | |
12108 | return NULL; | |
d14a1e28 RD |
12109 | } |
12110 | ||
12111 | ||
0085ce49 RD |
12112 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12113 | PyObject *resultobj = 0; | |
12114 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12115 | int result; | |
12116 | void *argp1 = 0 ; | |
12117 | int res1 = 0 ; | |
12118 | PyObject *swig_obj[1] ; | |
12119 | ||
12120 | if (!args) SWIG_fail; | |
12121 | swig_obj[0] = args; | |
12122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12123 | if (!SWIG_IsOK(res1)) { | |
12124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12125 | } | |
12126 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12127 | { | |
12128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12129 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
12130 | wxPyEndAllowThreads(__tstate); | |
12131 | if (PyErr_Occurred()) SWIG_fail; | |
12132 | } | |
12133 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj = 0; | |
12142 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12143 | wxSize *arg2 = 0 ; | |
12144 | void *argp1 = 0 ; | |
12145 | int res1 = 0 ; | |
12146 | wxSize temp2 ; | |
12147 | PyObject * obj0 = 0 ; | |
12148 | PyObject * obj1 = 0 ; | |
12149 | char * kwnames[] = { | |
12150 | (char *) "self",(char *) "size", NULL | |
12151 | }; | |
12152 | ||
12153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12155 | if (!SWIG_IsOK(res1)) { | |
12156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12157 | } | |
12158 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12159 | { | |
12160 | arg2 = &temp2; | |
12161 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12162 | } | |
12163 | { | |
12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12165 | (arg1)->SetSize((wxSize const &)*arg2); | |
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
12169 | resultobj = SWIG_Py_Void(); | |
12170 | return resultobj; | |
12171 | fail: | |
12172 | return NULL; | |
d14a1e28 RD |
12173 | } |
12174 | ||
12175 | ||
0085ce49 RD |
12176 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12177 | PyObject *resultobj = 0; | |
12178 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12179 | wxSize result; | |
12180 | void *argp1 = 0 ; | |
12181 | int res1 = 0 ; | |
12182 | PyObject *swig_obj[1] ; | |
12183 | ||
12184 | if (!args) SWIG_fail; | |
12185 | swig_obj[0] = args; | |
12186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12187 | if (!SWIG_IsOK(res1)) { | |
12188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12189 | } | |
12190 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12191 | { | |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
12197 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12198 | return resultobj; | |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj = 0; | |
12206 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12207 | wxLayoutOrientation arg2 ; | |
12208 | void *argp1 = 0 ; | |
12209 | int res1 = 0 ; | |
12210 | int val2 ; | |
12211 | int ecode2 = 0 ; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
12214 | char * kwnames[] = { | |
12215 | (char *) "self",(char *) "orient", NULL | |
12216 | }; | |
12217 | ||
12218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12220 | if (!SWIG_IsOK(res1)) { | |
12221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12222 | } | |
12223 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12224 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12225 | if (!SWIG_IsOK(ecode2)) { | |
12226 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12227 | } | |
12228 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12229 | { | |
12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12231 | (arg1)->SetOrientation(arg2); | |
12232 | wxPyEndAllowThreads(__tstate); | |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
12234 | } | |
12235 | resultobj = SWIG_Py_Void(); | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | return NULL; | |
d14a1e28 RD |
12239 | } |
12240 | ||
12241 | ||
0085ce49 RD |
12242 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12243 | PyObject *resultobj = 0; | |
12244 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12245 | wxLayoutOrientation result; | |
12246 | void *argp1 = 0 ; | |
12247 | int res1 = 0 ; | |
12248 | PyObject *swig_obj[1] ; | |
12249 | ||
12250 | if (!args) SWIG_fail; | |
12251 | swig_obj[0] = args; | |
12252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12253 | if (!SWIG_IsOK(res1)) { | |
12254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12255 | } | |
12256 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12260 | wxPyEndAllowThreads(__tstate); | |
12261 | if (PyErr_Occurred()) SWIG_fail; | |
12262 | } | |
12263 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12264 | return resultobj; | |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
12270 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12271 | PyObject *resultobj = 0; | |
12272 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12273 | wxLayoutAlignment arg2 ; | |
12274 | void *argp1 = 0 ; | |
12275 | int res1 = 0 ; | |
12276 | int val2 ; | |
12277 | int ecode2 = 0 ; | |
12278 | PyObject * obj0 = 0 ; | |
12279 | PyObject * obj1 = 0 ; | |
12280 | char * kwnames[] = { | |
12281 | (char *) "self",(char *) "align", NULL | |
12282 | }; | |
12283 | ||
12284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12286 | if (!SWIG_IsOK(res1)) { | |
12287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12288 | } | |
12289 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12290 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12291 | if (!SWIG_IsOK(ecode2)) { | |
12292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12293 | } | |
12294 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12295 | { | |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | (arg1)->SetAlignment(arg2); | |
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | resultobj = SWIG_Py_Void(); | |
12302 | return resultobj; | |
12303 | fail: | |
12304 | return NULL; | |
d14a1e28 RD |
12305 | } |
12306 | ||
12307 | ||
0085ce49 RD |
12308 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12309 | PyObject *resultobj = 0; | |
12310 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12311 | wxLayoutAlignment result; | |
12312 | void *argp1 = 0 ; | |
12313 | int res1 = 0 ; | |
12314 | PyObject *swig_obj[1] ; | |
12315 | ||
12316 | if (!args) SWIG_fail; | |
12317 | swig_obj[0] = args; | |
12318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12319 | if (!SWIG_IsOK(res1)) { | |
12320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12321 | } | |
12322 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12323 | { | |
12324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12325 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12326 | wxPyEndAllowThreads(__tstate); | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | } | |
12329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12330 | return resultobj; | |
12331 | fail: | |
12332 | return NULL; | |
d14a1e28 RD |
12333 | } |
12334 | ||
12335 | ||
0085ce49 RD |
12336 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12337 | PyObject *obj; | |
12338 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12339 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12340 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12341 | } |
12342 | ||
0085ce49 RD |
12343 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12344 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12345 | } |
12346 | ||
0085ce49 RD |
12347 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12348 | PyObject *resultobj = 0; | |
12349 | int arg1 = (int) 0 ; | |
12350 | wxCalculateLayoutEvent *result = 0 ; | |
12351 | int val1 ; | |
12352 | int ecode1 = 0 ; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char * kwnames[] = { | |
12355 | (char *) "id", NULL | |
12356 | }; | |
12357 | ||
12358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12359 | if (obj0) { | |
12360 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12361 | if (!SWIG_IsOK(ecode1)) { | |
12362 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12363 | } | |
12364 | arg1 = static_cast< int >(val1); | |
12365 | } | |
12366 | { | |
12367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12368 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
12372 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12373 | return resultobj; | |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
12379 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12380 | PyObject *resultobj = 0; | |
12381 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12382 | int arg2 ; | |
12383 | void *argp1 = 0 ; | |
12384 | int res1 = 0 ; | |
12385 | int val2 ; | |
12386 | int ecode2 = 0 ; | |
12387 | PyObject * obj0 = 0 ; | |
12388 | PyObject * obj1 = 0 ; | |
12389 | char * kwnames[] = { | |
12390 | (char *) "self",(char *) "flags", NULL | |
12391 | }; | |
12392 | ||
12393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12395 | if (!SWIG_IsOK(res1)) { | |
12396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12397 | } | |
12398 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12399 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12400 | if (!SWIG_IsOK(ecode2)) { | |
12401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12402 | } | |
12403 | arg2 = static_cast< int >(val2); | |
12404 | { | |
12405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12406 | (arg1)->SetFlags(arg2); | |
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | resultobj = SWIG_Py_Void(); | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
d14a1e28 RD |
12414 | } |
12415 | ||
12416 | ||
0085ce49 RD |
12417 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12418 | PyObject *resultobj = 0; | |
12419 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12420 | int result; | |
12421 | void *argp1 = 0 ; | |
12422 | int res1 = 0 ; | |
12423 | PyObject *swig_obj[1] ; | |
12424 | ||
12425 | if (!args) SWIG_fail; | |
12426 | swig_obj[0] = args; | |
12427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12428 | if (!SWIG_IsOK(res1)) { | |
12429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12430 | } | |
12431 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12432 | { | |
12433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12434 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12439 | return resultobj; | |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12446 | PyObject *resultobj = 0; | |
12447 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12448 | wxRect *arg2 = 0 ; | |
12449 | void *argp1 = 0 ; | |
12450 | int res1 = 0 ; | |
12451 | wxRect temp2 ; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | PyObject * obj1 = 0 ; | |
12454 | char * kwnames[] = { | |
12455 | (char *) "self",(char *) "rect", NULL | |
12456 | }; | |
12457 | ||
12458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12460 | if (!SWIG_IsOK(res1)) { | |
12461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12462 | } | |
12463 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12464 | { | |
12465 | arg2 = &temp2; | |
12466 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12467 | } | |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | (arg1)->SetRect((wxRect const &)*arg2); | |
12471 | wxPyEndAllowThreads(__tstate); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | resultobj = SWIG_Py_Void(); | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | return NULL; | |
d14a1e28 RD |
12478 | } |
12479 | ||
12480 | ||
0085ce49 RD |
12481 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12482 | PyObject *resultobj = 0; | |
12483 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12484 | wxRect result; | |
12485 | void *argp1 = 0 ; | |
12486 | int res1 = 0 ; | |
12487 | PyObject *swig_obj[1] ; | |
12488 | ||
12489 | if (!args) SWIG_fail; | |
12490 | swig_obj[0] = args; | |
12491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12492 | if (!SWIG_IsOK(res1)) { | |
12493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12494 | } | |
12495 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12499 | wxPyEndAllowThreads(__tstate); | |
12500 | if (PyErr_Occurred()) SWIG_fail; | |
12501 | } | |
12502 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12503 | return resultobj; | |
12504 | fail: | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
12509 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12510 | PyObject *obj; | |
12511 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12512 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12513 | return SWIG_Py_Void(); | |
12514 | } | |
12515 | ||
12516 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12517 | return SWIG_Python_InitShadowInstance(args); | |
12518 | } | |
12519 | ||
12520 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12521 | PyObject *resultobj = 0; | |
12522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12523 | int arg2 = (int) -1 ; | |
12524 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12525 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12526 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12527 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12528 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12529 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12530 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12531 | wxSashLayoutWindow *result = 0 ; | |
12532 | void *argp1 = 0 ; | |
12533 | int res1 = 0 ; | |
12534 | int val2 ; | |
12535 | int ecode2 = 0 ; | |
12536 | wxPoint temp3 ; | |
12537 | wxSize temp4 ; | |
12538 | long val5 ; | |
12539 | int ecode5 = 0 ; | |
12540 | bool temp6 = false ; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | PyObject * obj1 = 0 ; | |
12543 | PyObject * obj2 = 0 ; | |
12544 | PyObject * obj3 = 0 ; | |
12545 | PyObject * obj4 = 0 ; | |
12546 | PyObject * obj5 = 0 ; | |
12547 | char * kwnames[] = { | |
12548 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12549 | }; | |
12550 | ||
12551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12553 | if (!SWIG_IsOK(res1)) { | |
12554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12555 | } | |
12556 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12557 | if (obj1) { | |
12558 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12559 | if (!SWIG_IsOK(ecode2)) { | |
12560 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12561 | } | |
12562 | arg2 = static_cast< int >(val2); | |
12563 | } | |
12564 | if (obj2) { | |
4f89f6a3 | 12565 | { |
0085ce49 RD |
12566 | arg3 = &temp3; |
12567 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4f89f6a3 | 12568 | } |
0085ce49 RD |
12569 | } |
12570 | if (obj3) { | |
d14a1e28 | 12571 | { |
0085ce49 RD |
12572 | arg4 = &temp4; |
12573 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 12574 | } |
0085ce49 RD |
12575 | } |
12576 | if (obj4) { | |
12577 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12578 | if (!SWIG_IsOK(ecode5)) { | |
12579 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12580 | } | |
12581 | arg5 = static_cast< long >(val5); | |
12582 | } | |
12583 | if (obj5) { | |
4f89f6a3 | 12584 | { |
0085ce49 RD |
12585 | arg6 = wxString_in_helper(obj5); |
12586 | if (arg6 == NULL) SWIG_fail; | |
12587 | temp6 = true; | |
4f89f6a3 | 12588 | } |
0085ce49 RD |
12589 | } |
12590 | { | |
12591 | if (!wxPyCheckForApp()) SWIG_fail; | |
12592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12593 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12598 | { | |
12599 | if (temp6) | |
12600 | delete arg6; | |
12601 | } | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | { | |
12605 | if (temp6) | |
12606 | delete arg6; | |
12607 | } | |
12608 | return NULL; | |
d14a1e28 RD |
12609 | } |
12610 | ||
12611 | ||
0085ce49 RD |
12612 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12613 | PyObject *resultobj = 0; | |
12614 | wxSashLayoutWindow *result = 0 ; | |
12615 | ||
12616 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12617 | { | |
12618 | if (!wxPyCheckForApp()) SWIG_fail; | |
12619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12620 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12621 | wxPyEndAllowThreads(__tstate); | |
12622 | if (PyErr_Occurred()) SWIG_fail; | |
12623 | } | |
12624 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12625 | return resultobj; | |
12626 | fail: | |
12627 | return NULL; | |
12628 | } | |
12629 | ||
12630 | ||
12631 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12632 | PyObject *resultobj = 0; | |
12633 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12635 | int arg3 = (int) -1 ; | |
12636 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12637 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12638 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12639 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12640 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12641 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12642 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12643 | bool result; | |
12644 | void *argp1 = 0 ; | |
12645 | int res1 = 0 ; | |
12646 | void *argp2 = 0 ; | |
12647 | int res2 = 0 ; | |
12648 | int val3 ; | |
12649 | int ecode3 = 0 ; | |
12650 | wxPoint temp4 ; | |
12651 | wxSize temp5 ; | |
12652 | long val6 ; | |
12653 | int ecode6 = 0 ; | |
12654 | bool temp7 = false ; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | PyObject * obj1 = 0 ; | |
12657 | PyObject * obj2 = 0 ; | |
12658 | PyObject * obj3 = 0 ; | |
12659 | PyObject * obj4 = 0 ; | |
12660 | PyObject * obj5 = 0 ; | |
12661 | PyObject * obj6 = 0 ; | |
12662 | char * kwnames[] = { | |
12663 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12664 | }; | |
12665 | ||
12666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12668 | if (!SWIG_IsOK(res1)) { | |
12669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12670 | } | |
12671 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12672 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12673 | if (!SWIG_IsOK(res2)) { | |
12674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12675 | } | |
12676 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12677 | if (obj2) { | |
12678 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12679 | if (!SWIG_IsOK(ecode3)) { | |
12680 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12681 | } | |
12682 | arg3 = static_cast< int >(val3); | |
12683 | } | |
12684 | if (obj3) { | |
d00d1b88 | 12685 | { |
0085ce49 RD |
12686 | arg4 = &temp4; |
12687 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12688 | } | |
12689 | } | |
12690 | if (obj4) { | |
d14a1e28 | 12691 | { |
0085ce49 RD |
12692 | arg5 = &temp5; |
12693 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 12694 | } |
0085ce49 RD |
12695 | } |
12696 | if (obj5) { | |
12697 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12698 | if (!SWIG_IsOK(ecode6)) { | |
12699 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12700 | } | |
12701 | arg6 = static_cast< long >(val6); | |
12702 | } | |
12703 | if (obj6) { | |
4f89f6a3 | 12704 | { |
0085ce49 RD |
12705 | arg7 = wxString_in_helper(obj6); |
12706 | if (arg7 == NULL) SWIG_fail; | |
12707 | temp7 = true; | |
4f89f6a3 | 12708 | } |
0085ce49 RD |
12709 | } |
12710 | { | |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
12716 | { | |
12717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12718 | } | |
12719 | { | |
12720 | if (temp7) | |
12721 | delete arg7; | |
12722 | } | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | { | |
12726 | if (temp7) | |
12727 | delete arg7; | |
12728 | } | |
12729 | return NULL; | |
d14a1e28 RD |
12730 | } |
12731 | ||
12732 | ||
0085ce49 RD |
12733 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12734 | PyObject *resultobj = 0; | |
12735 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12736 | wxLayoutAlignment result; | |
12737 | void *argp1 = 0 ; | |
12738 | int res1 = 0 ; | |
12739 | PyObject *swig_obj[1] ; | |
12740 | ||
12741 | if (!args) SWIG_fail; | |
12742 | swig_obj[0] = args; | |
12743 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12744 | if (!SWIG_IsOK(res1)) { | |
12745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12746 | } | |
12747 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12748 | { | |
12749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12750 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12751 | wxPyEndAllowThreads(__tstate); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12755 | return resultobj; | |
12756 | fail: | |
12757 | return NULL; | |
d14a1e28 RD |
12758 | } |
12759 | ||
12760 | ||
0085ce49 RD |
12761 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12762 | PyObject *resultobj = 0; | |
12763 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12764 | wxLayoutOrientation result; | |
12765 | void *argp1 = 0 ; | |
12766 | int res1 = 0 ; | |
12767 | PyObject *swig_obj[1] ; | |
12768 | ||
12769 | if (!args) SWIG_fail; | |
12770 | swig_obj[0] = args; | |
12771 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12772 | if (!SWIG_IsOK(res1)) { | |
12773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12774 | } | |
12775 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12776 | { | |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12778 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj = 0; | |
12791 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12792 | wxLayoutAlignment arg2 ; | |
12793 | void *argp1 = 0 ; | |
12794 | int res1 = 0 ; | |
12795 | int val2 ; | |
12796 | int ecode2 = 0 ; | |
12797 | PyObject * obj0 = 0 ; | |
12798 | PyObject * obj1 = 0 ; | |
12799 | char * kwnames[] = { | |
12800 | (char *) "self",(char *) "alignment", NULL | |
12801 | }; | |
12802 | ||
12803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12805 | if (!SWIG_IsOK(res1)) { | |
12806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12807 | } | |
12808 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12809 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12810 | if (!SWIG_IsOK(ecode2)) { | |
12811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12812 | } | |
12813 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12814 | { | |
12815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12816 | (arg1)->SetAlignment(arg2); | |
12817 | wxPyEndAllowThreads(__tstate); | |
12818 | if (PyErr_Occurred()) SWIG_fail; | |
12819 | } | |
12820 | resultobj = SWIG_Py_Void(); | |
12821 | return resultobj; | |
12822 | fail: | |
12823 | return NULL; | |
12824 | } | |
12825 | ||
12826 | ||
12827 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12828 | PyObject *resultobj = 0; | |
12829 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12830 | wxSize *arg2 = 0 ; | |
12831 | void *argp1 = 0 ; | |
12832 | int res1 = 0 ; | |
12833 | wxSize temp2 ; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | PyObject * obj1 = 0 ; | |
12836 | char * kwnames[] = { | |
12837 | (char *) "self",(char *) "size", NULL | |
12838 | }; | |
12839 | ||
12840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12842 | if (!SWIG_IsOK(res1)) { | |
12843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12844 | } | |
12845 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12846 | { | |
12847 | arg2 = &temp2; | |
12848 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12849 | } | |
12850 | { | |
12851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12852 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | resultobj = SWIG_Py_Void(); | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj = 0; | |
12865 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12866 | wxLayoutOrientation arg2 ; | |
12867 | void *argp1 = 0 ; | |
12868 | int res1 = 0 ; | |
12869 | int val2 ; | |
12870 | int ecode2 = 0 ; | |
12871 | PyObject * obj0 = 0 ; | |
12872 | PyObject * obj1 = 0 ; | |
12873 | char * kwnames[] = { | |
12874 | (char *) "self",(char *) "orientation", NULL | |
12875 | }; | |
12876 | ||
12877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12879 | if (!SWIG_IsOK(res1)) { | |
12880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12881 | } | |
12882 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12884 | if (!SWIG_IsOK(ecode2)) { | |
12885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12886 | } | |
12887 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12888 | { | |
12889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12890 | (arg1)->SetOrientation(arg2); | |
12891 | wxPyEndAllowThreads(__tstate); | |
12892 | if (PyErr_Occurred()) SWIG_fail; | |
12893 | } | |
12894 | resultobj = SWIG_Py_Void(); | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | return NULL; | |
d14a1e28 RD |
12898 | } |
12899 | ||
12900 | ||
0085ce49 RD |
12901 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12902 | PyObject *obj; | |
12903 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12904 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12905 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12906 | } |
12907 | ||
0085ce49 RD |
12908 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12909 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12910 | } |
12911 | ||
0085ce49 RD |
12912 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12913 | PyObject *resultobj = 0; | |
12914 | wxLayoutAlgorithm *result = 0 ; | |
12915 | ||
12916 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12920 | wxPyEndAllowThreads(__tstate); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | return NULL; | |
d14a1e28 RD |
12927 | } |
12928 | ||
12929 | ||
0085ce49 RD |
12930 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12931 | PyObject *resultobj = 0; | |
12932 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12933 | void *argp1 = 0 ; | |
12934 | int res1 = 0 ; | |
12935 | PyObject *swig_obj[1] ; | |
12936 | ||
12937 | if (!args) SWIG_fail; | |
12938 | swig_obj[0] = args; | |
12939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12940 | if (!SWIG_IsOK(res1)) { | |
12941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12942 | } | |
12943 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12944 | { | |
12945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12946 | delete arg1; | |
d14a1e28 | 12947 | |
0085ce49 RD |
12948 | wxPyEndAllowThreads(__tstate); |
12949 | if (PyErr_Occurred()) SWIG_fail; | |
12950 | } | |
12951 | resultobj = SWIG_Py_Void(); | |
12952 | return resultobj; | |
12953 | fail: | |
12954 | return NULL; | |
12955 | } | |
12956 | ||
12957 | ||
12958 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12959 | PyObject *resultobj = 0; | |
12960 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12961 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
12962 | wxRect *arg3 = (wxRect *) NULL ; | |
12963 | bool result; | |
12964 | void *argp1 = 0 ; | |
12965 | int res1 = 0 ; | |
12966 | void *argp2 = 0 ; | |
12967 | int res2 = 0 ; | |
12968 | void *argp3 = 0 ; | |
12969 | int res3 = 0 ; | |
12970 | PyObject * obj0 = 0 ; | |
12971 | PyObject * obj1 = 0 ; | |
12972 | PyObject * obj2 = 0 ; | |
12973 | char * kwnames[] = { | |
12974 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
12975 | }; | |
12976 | ||
12977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12979 | if (!SWIG_IsOK(res1)) { | |
12980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12981 | } | |
12982 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12983 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
12984 | if (!SWIG_IsOK(res2)) { | |
12985 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
12986 | } | |
12987 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
12988 | if (obj2) { | |
12989 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
12990 | if (!SWIG_IsOK(res3)) { | |
12991 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
d14a1e28 | 12992 | } |
0085ce49 RD |
12993 | arg3 = reinterpret_cast< wxRect * >(argp3); |
12994 | } | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | { | |
13002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13003 | } | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | return NULL; | |
13007 | } | |
13008 | ||
13009 | ||
13010 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13011 | PyObject *resultobj = 0; | |
13012 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13013 | wxFrame *arg2 = (wxFrame *) 0 ; | |
13014 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13015 | bool result; | |
13016 | void *argp1 = 0 ; | |
13017 | int res1 = 0 ; | |
13018 | void *argp2 = 0 ; | |
13019 | int res2 = 0 ; | |
13020 | void *argp3 = 0 ; | |
13021 | int res3 = 0 ; | |
13022 | PyObject * obj0 = 0 ; | |
13023 | PyObject * obj1 = 0 ; | |
13024 | PyObject * obj2 = 0 ; | |
13025 | char * kwnames[] = { | |
13026 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
13027 | }; | |
13028 | ||
13029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13031 | if (!SWIG_IsOK(res1)) { | |
13032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13033 | } | |
13034 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13035 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
13036 | if (!SWIG_IsOK(res2)) { | |
13037 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
13038 | } | |
13039 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
13040 | if (obj2) { | |
13041 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13042 | if (!SWIG_IsOK(res3)) { | |
13043 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13044 | } |
0085ce49 RD |
13045 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13046 | } | |
13047 | { | |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
13053 | { | |
13054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13055 | } | |
13056 | return resultobj; | |
13057 | fail: | |
13058 | return NULL; | |
13059 | } | |
13060 | ||
13061 | ||
13062 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13063 | PyObject *resultobj = 0; | |
13064 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13065 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13066 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13067 | bool result; | |
13068 | void *argp1 = 0 ; | |
13069 | int res1 = 0 ; | |
13070 | void *argp2 = 0 ; | |
13071 | int res2 = 0 ; | |
13072 | void *argp3 = 0 ; | |
13073 | int res3 = 0 ; | |
13074 | PyObject * obj0 = 0 ; | |
13075 | PyObject * obj1 = 0 ; | |
13076 | PyObject * obj2 = 0 ; | |
13077 | char * kwnames[] = { | |
13078 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
13079 | }; | |
13080 | ||
13081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13083 | if (!SWIG_IsOK(res1)) { | |
13084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13085 | } | |
13086 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13087 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13088 | if (!SWIG_IsOK(res2)) { | |
13089 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13090 | } | |
13091 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13092 | if (obj2) { | |
13093 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13094 | if (!SWIG_IsOK(res3)) { | |
13095 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13096 | } |
0085ce49 RD |
13097 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13098 | } | |
13099 | { | |
13100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13101 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
13102 | wxPyEndAllowThreads(__tstate); | |
13103 | if (PyErr_Occurred()) SWIG_fail; | |
13104 | } | |
13105 | { | |
13106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13107 | } | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | return NULL; | |
5cbf236d RD |
13111 | } |
13112 | ||
13113 | ||
0085ce49 RD |
13114 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13115 | PyObject *obj; | |
13116 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13117 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
13118 | return SWIG_Py_Void(); | |
5cbf236d RD |
13119 | } |
13120 | ||
0085ce49 RD |
13121 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13122 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13123 | } |
13124 | ||
0085ce49 RD |
13125 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13126 | PyObject *resultobj = 0; | |
13127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13128 | int arg2 = (int) wxBORDER_NONE ; | |
13129 | wxPopupWindow *result = 0 ; | |
13130 | void *argp1 = 0 ; | |
13131 | int res1 = 0 ; | |
13132 | int val2 ; | |
13133 | int ecode2 = 0 ; | |
13134 | PyObject * obj0 = 0 ; | |
13135 | PyObject * obj1 = 0 ; | |
13136 | char * kwnames[] = { | |
13137 | (char *) "parent",(char *) "flags", NULL | |
13138 | }; | |
13139 | ||
13140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13142 | if (!SWIG_IsOK(res1)) { | |
13143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13144 | } | |
13145 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13146 | if (obj1) { | |
13147 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13148 | if (!SWIG_IsOK(ecode2)) { | |
13149 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
13150 | } | |
13151 | arg2 = static_cast< int >(val2); | |
13152 | } | |
13153 | { | |
13154 | if (!wxPyCheckForApp()) SWIG_fail; | |
13155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13156 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
13160 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | return NULL; | |
d14a1e28 RD |
13164 | } |
13165 | ||
13166 | ||
0085ce49 RD |
13167 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13168 | PyObject *resultobj = 0; | |
13169 | wxPopupWindow *result = 0 ; | |
13170 | ||
13171 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
13172 | { | |
13173 | if (!wxPyCheckForApp()) SWIG_fail; | |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | result = (wxPopupWindow *)new wxPopupWindow(); | |
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
13179 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
13180 | return resultobj; | |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | SWIGINTERN PyObject *_wrap_PopupWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13187 | PyObject *resultobj = 0; | |
13188 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13189 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13190 | int arg3 = (int) wxBORDER_NONE ; | |
13191 | bool result; | |
13192 | void *argp1 = 0 ; | |
13193 | int res1 = 0 ; | |
13194 | void *argp2 = 0 ; | |
13195 | int res2 = 0 ; | |
13196 | int val3 ; | |
13197 | int ecode3 = 0 ; | |
13198 | PyObject * obj0 = 0 ; | |
13199 | PyObject * obj1 = 0 ; | |
13200 | PyObject * obj2 = 0 ; | |
13201 | char * kwnames[] = { | |
13202 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
13203 | }; | |
13204 | ||
13205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13207 | if (!SWIG_IsOK(res1)) { | |
13208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Create" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13209 | } | |
13210 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13211 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13212 | if (!SWIG_IsOK(res2)) { | |
13213 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13214 | } | |
13215 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13216 | if (obj2) { | |
13217 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13218 | if (!SWIG_IsOK(ecode3)) { | |
13219 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PopupWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13220 | } | |
13221 | arg3 = static_cast< int >(val3); | |
13222 | } | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (bool)(arg1)->Create(arg2,arg3); | |
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | { | |
13230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13231 | } | |
13232 | return resultobj; | |
13233 | fail: | |
13234 | return NULL; | |
13235 | } | |
13236 | ||
13237 | ||
13238 | SWIGINTERN PyObject *_wrap_PopupWindow_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13239 | PyObject *resultobj = 0; | |
13240 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13241 | wxPoint *arg2 = 0 ; | |
13242 | wxSize *arg3 = 0 ; | |
13243 | void *argp1 = 0 ; | |
13244 | int res1 = 0 ; | |
13245 | wxPoint temp2 ; | |
13246 | wxSize temp3 ; | |
13247 | PyObject * obj0 = 0 ; | |
13248 | PyObject * obj1 = 0 ; | |
13249 | PyObject * obj2 = 0 ; | |
13250 | char * kwnames[] = { | |
13251 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
13252 | }; | |
13253 | ||
13254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13256 | if (!SWIG_IsOK(res1)) { | |
13257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Position" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13258 | } | |
13259 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13260 | { | |
13261 | arg2 = &temp2; | |
13262 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13263 | } | |
13264 | { | |
13265 | arg3 = &temp3; | |
13266 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13267 | } | |
13268 | { | |
13269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13270 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
13274 | resultobj = SWIG_Py_Void(); | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | return NULL; | |
d14a1e28 RD |
13278 | } |
13279 | ||
13280 | ||
0085ce49 RD |
13281 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13282 | PyObject *obj; | |
13283 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13284 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13285 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13286 | } |
13287 | ||
0085ce49 RD |
13288 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13289 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13290 | } |
13291 | ||
0085ce49 RD |
13292 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13293 | PyObject *resultobj = 0; | |
13294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13295 | int arg2 = (int) wxBORDER_NONE ; | |
13296 | wxPyPopupTransientWindow *result = 0 ; | |
13297 | void *argp1 = 0 ; | |
13298 | int res1 = 0 ; | |
13299 | int val2 ; | |
13300 | int ecode2 = 0 ; | |
13301 | PyObject * obj0 = 0 ; | |
13302 | PyObject * obj1 = 0 ; | |
13303 | char * kwnames[] = { | |
13304 | (char *) "parent",(char *) "style", NULL | |
13305 | }; | |
13306 | ||
13307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13309 | if (!SWIG_IsOK(res1)) { | |
13310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13311 | } | |
13312 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13313 | if (obj1) { | |
13314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13315 | if (!SWIG_IsOK(ecode2)) { | |
13316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13317 | } | |
13318 | arg2 = static_cast< int >(val2); | |
13319 | } | |
13320 | { | |
13321 | if (!wxPyCheckForApp()) SWIG_fail; | |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13324 | wxPyEndAllowThreads(__tstate); | |
13325 | if (PyErr_Occurred()) SWIG_fail; | |
13326 | } | |
13327 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | return NULL; | |
d14a1e28 RD |
13331 | } |
13332 | ||
13333 | ||
0085ce49 RD |
13334 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13335 | PyObject *resultobj = 0; | |
13336 | wxPyPopupTransientWindow *result = 0 ; | |
13337 | ||
13338 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13339 | { | |
13340 | if (!wxPyCheckForApp()) SWIG_fail; | |
13341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13342 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13343 | wxPyEndAllowThreads(__tstate); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | } | |
13346 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13347 | return resultobj; | |
13348 | fail: | |
13349 | return NULL; | |
13350 | } | |
13351 | ||
13352 | ||
13353 | SWIGINTERN PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13354 | PyObject *resultobj = 0; | |
13355 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13356 | PyObject *arg2 = (PyObject *) 0 ; | |
13357 | PyObject *arg3 = (PyObject *) 0 ; | |
13358 | void *argp1 = 0 ; | |
13359 | int res1 = 0 ; | |
13360 | PyObject * obj0 = 0 ; | |
13361 | PyObject * obj1 = 0 ; | |
13362 | PyObject * obj2 = 0 ; | |
13363 | char * kwnames[] = { | |
13364 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13365 | }; | |
13366 | ||
13367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13369 | if (!SWIG_IsOK(res1)) { | |
13370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13371 | } | |
13372 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13373 | arg2 = obj1; | |
13374 | arg3 = obj2; | |
13375 | { | |
13376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13377 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
13381 | resultobj = SWIG_Py_Void(); | |
13382 | return resultobj; | |
13383 | fail: | |
13384 | return NULL; | |
13385 | } | |
13386 | ||
13387 | ||
13388 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Popup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13389 | PyObject *resultobj = 0; | |
13390 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13391 | wxWindow *arg2 = (wxWindow *) NULL ; | |
13392 | void *argp1 = 0 ; | |
13393 | int res1 = 0 ; | |
13394 | void *argp2 = 0 ; | |
13395 | int res2 = 0 ; | |
13396 | PyObject * obj0 = 0 ; | |
13397 | PyObject * obj1 = 0 ; | |
13398 | char * kwnames[] = { | |
13399 | (char *) "self",(char *) "focus", NULL | |
13400 | }; | |
13401 | ||
13402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) SWIG_fail; | |
13403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13404 | if (!SWIG_IsOK(res1)) { | |
13405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Popup" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13406 | } | |
13407 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13408 | if (obj1) { | |
13409 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13410 | if (!SWIG_IsOK(res2)) { | |
13411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupTransientWindow_Popup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22bfe96c | 13412 | } |
0085ce49 RD |
13413 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
13414 | } | |
13415 | { | |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | (arg1)->Popup(arg2); | |
13418 | wxPyEndAllowThreads(__tstate); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | resultobj = SWIG_Py_Void(); | |
13422 | return resultobj; | |
13423 | fail: | |
13424 | return NULL; | |
22bfe96c RD |
13425 | } |
13426 | ||
13427 | ||
0085ce49 RD |
13428 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13429 | PyObject *resultobj = 0; | |
13430 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13431 | void *argp1 = 0 ; | |
13432 | int res1 = 0 ; | |
13433 | PyObject *swig_obj[1] ; | |
13434 | ||
13435 | if (!args) SWIG_fail; | |
13436 | swig_obj[0] = args; | |
13437 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13438 | if (!SWIG_IsOK(res1)) { | |
13439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Dismiss" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13440 | } | |
13441 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13442 | { | |
13443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13444 | (arg1)->Dismiss(); | |
13445 | wxPyEndAllowThreads(__tstate); | |
13446 | if (PyErr_Occurred()) SWIG_fail; | |
13447 | } | |
13448 | resultobj = SWIG_Py_Void(); | |
13449 | return resultobj; | |
13450 | fail: | |
13451 | return NULL; | |
13452 | } | |
13453 | ||
13454 | ||
13455 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13456 | PyObject *obj; | |
13457 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13458 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13459 | return SWIG_Py_Void(); | |
13460 | } | |
13461 | ||
13462 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13463 | return SWIG_Python_InitShadowInstance(args); | |
13464 | } | |
13465 | ||
13466 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13467 | PyObject *resultobj = 0; | |
13468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13469 | wxString *arg2 = 0 ; | |
13470 | int arg3 = (int) 100 ; | |
13471 | wxRect *arg4 = (wxRect *) NULL ; | |
13472 | wxTipWindow *result = 0 ; | |
13473 | void *argp1 = 0 ; | |
13474 | int res1 = 0 ; | |
13475 | bool temp2 = false ; | |
13476 | int val3 ; | |
13477 | int ecode3 = 0 ; | |
13478 | void *argp4 = 0 ; | |
13479 | int res4 = 0 ; | |
13480 | PyObject * obj0 = 0 ; | |
13481 | PyObject * obj1 = 0 ; | |
13482 | PyObject * obj2 = 0 ; | |
13483 | PyObject * obj3 = 0 ; | |
13484 | char * kwnames[] = { | |
13485 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13486 | }; | |
13487 | ||
13488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13490 | if (!SWIG_IsOK(res1)) { | |
13491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13492 | } | |
13493 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13494 | { | |
13495 | arg2 = wxString_in_helper(obj1); | |
13496 | if (arg2 == NULL) SWIG_fail; | |
13497 | temp2 = true; | |
13498 | } | |
13499 | if (obj2) { | |
13500 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13501 | if (!SWIG_IsOK(ecode3)) { | |
13502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13503 | } | |
13504 | arg3 = static_cast< int >(val3); | |
13505 | } | |
13506 | if (obj3) { | |
13507 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13508 | if (!SWIG_IsOK(res4)) { | |
13509 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
d14a1e28 | 13510 | } |
0085ce49 RD |
13511 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13512 | } | |
13513 | { | |
13514 | if (!wxPyCheckForApp()) SWIG_fail; | |
13515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13516 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13521 | { | |
13522 | if (temp2) | |
13523 | delete arg2; | |
13524 | } | |
13525 | return resultobj; | |
13526 | fail: | |
13527 | { | |
13528 | if (temp2) | |
13529 | delete arg2; | |
13530 | } | |
13531 | return NULL; | |
d14a1e28 RD |
13532 | } |
13533 | ||
13534 | ||
0085ce49 RD |
13535 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13536 | PyObject *resultobj = 0; | |
13537 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13538 | wxRect *arg2 = 0 ; | |
13539 | void *argp1 = 0 ; | |
13540 | int res1 = 0 ; | |
13541 | wxRect temp2 ; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | PyObject * obj1 = 0 ; | |
13544 | char * kwnames[] = { | |
13545 | (char *) "self",(char *) "rectBound", NULL | |
13546 | }; | |
13547 | ||
13548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13550 | if (!SWIG_IsOK(res1)) { | |
13551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13552 | } | |
13553 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13554 | { | |
13555 | arg2 = &temp2; | |
13556 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13557 | } | |
13558 | { | |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13561 | wxPyEndAllowThreads(__tstate); | |
13562 | if (PyErr_Occurred()) SWIG_fail; | |
13563 | } | |
13564 | resultobj = SWIG_Py_Void(); | |
13565 | return resultobj; | |
13566 | fail: | |
13567 | return NULL; | |
d14a1e28 RD |
13568 | } |
13569 | ||
13570 | ||
0085ce49 RD |
13571 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13572 | PyObject *resultobj = 0; | |
13573 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13574 | void *argp1 = 0 ; | |
13575 | int res1 = 0 ; | |
13576 | PyObject *swig_obj[1] ; | |
13577 | ||
13578 | if (!args) SWIG_fail; | |
13579 | swig_obj[0] = args; | |
13580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13581 | if (!SWIG_IsOK(res1)) { | |
13582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13583 | } | |
13584 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13585 | { | |
13586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13587 | (arg1)->Close(); | |
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
13591 | resultobj = SWIG_Py_Void(); | |
13592 | return resultobj; | |
13593 | fail: | |
13594 | return NULL; | |
13595 | } | |
13596 | ||
13597 | ||
13598 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13599 | PyObject *obj; | |
13600 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13601 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13602 | return SWIG_Py_Void(); | |
13603 | } | |
13604 | ||
13605 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13606 | return SWIG_Python_InitShadowInstance(args); | |
13607 | } | |
13608 | ||
13609 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj = 0; | |
13611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13612 | int arg2 = (int) wxID_ANY ; | |
13613 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13614 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13615 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13616 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13617 | long arg5 = (long) 0 ; | |
13618 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13619 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13620 | wxPyVScrolledWindow *result = 0 ; | |
13621 | void *argp1 = 0 ; | |
13622 | int res1 = 0 ; | |
13623 | int val2 ; | |
13624 | int ecode2 = 0 ; | |
13625 | wxPoint temp3 ; | |
13626 | wxSize temp4 ; | |
13627 | long val5 ; | |
13628 | int ecode5 = 0 ; | |
13629 | bool temp6 = false ; | |
13630 | PyObject * obj0 = 0 ; | |
13631 | PyObject * obj1 = 0 ; | |
13632 | PyObject * obj2 = 0 ; | |
13633 | PyObject * obj3 = 0 ; | |
13634 | PyObject * obj4 = 0 ; | |
13635 | PyObject * obj5 = 0 ; | |
13636 | char * kwnames[] = { | |
13637 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13638 | }; | |
13639 | ||
13640 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13641 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13642 | if (!SWIG_IsOK(res1)) { | |
13643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13644 | } | |
13645 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13646 | if (obj1) { | |
13647 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13648 | if (!SWIG_IsOK(ecode2)) { | |
13649 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13650 | } | |
13651 | arg2 = static_cast< int >(val2); | |
13652 | } | |
13653 | if (obj2) { | |
093d3ff1 | 13654 | { |
0085ce49 RD |
13655 | arg3 = &temp3; |
13656 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 13657 | } |
0085ce49 RD |
13658 | } |
13659 | if (obj3) { | |
d14a1e28 | 13660 | { |
0085ce49 RD |
13661 | arg4 = &temp4; |
13662 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13663 | } |
0085ce49 RD |
13664 | } |
13665 | if (obj4) { | |
13666 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13667 | if (!SWIG_IsOK(ecode5)) { | |
13668 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13669 | } | |
13670 | arg5 = static_cast< long >(val5); | |
13671 | } | |
13672 | if (obj5) { | |
d14a1e28 | 13673 | { |
0085ce49 RD |
13674 | arg6 = wxString_in_helper(obj5); |
13675 | if (arg6 == NULL) SWIG_fail; | |
13676 | temp6 = true; | |
d14a1e28 | 13677 | } |
0085ce49 RD |
13678 | } |
13679 | { | |
13680 | if (!wxPyCheckForApp()) SWIG_fail; | |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13683 | wxPyEndAllowThreads(__tstate); | |
13684 | if (PyErr_Occurred()) SWIG_fail; | |
13685 | } | |
13686 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13687 | { | |
13688 | if (temp6) | |
13689 | delete arg6; | |
13690 | } | |
13691 | return resultobj; | |
13692 | fail: | |
13693 | { | |
13694 | if (temp6) | |
13695 | delete arg6; | |
13696 | } | |
13697 | return NULL; | |
d14a1e28 RD |
13698 | } |
13699 | ||
13700 | ||
0085ce49 RD |
13701 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13702 | PyObject *resultobj = 0; | |
13703 | wxPyVScrolledWindow *result = 0 ; | |
13704 | ||
13705 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13706 | { | |
13707 | if (!wxPyCheckForApp()) SWIG_fail; | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13721 | PyObject *resultobj = 0; | |
13722 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13723 | PyObject *arg2 = (PyObject *) 0 ; | |
13724 | PyObject *arg3 = (PyObject *) 0 ; | |
13725 | void *argp1 = 0 ; | |
13726 | int res1 = 0 ; | |
13727 | PyObject * obj0 = 0 ; | |
13728 | PyObject * obj1 = 0 ; | |
13729 | PyObject * obj2 = 0 ; | |
13730 | char * kwnames[] = { | |
13731 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13732 | }; | |
13733 | ||
13734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) 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__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13738 | } | |
13739 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13740 | arg2 = obj1; | |
13741 | arg3 = obj2; | |
13742 | { | |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | resultobj = SWIG_Py_Void(); | |
13749 | return resultobj; | |
13750 | fail: | |
13751 | return NULL; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13756 | PyObject *resultobj = 0; | |
13757 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13758 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13759 | int arg3 = (int) wxID_ANY ; | |
13760 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13761 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13762 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13763 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13764 | long arg6 = (long) 0 ; | |
13765 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13766 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13767 | bool result; | |
13768 | void *argp1 = 0 ; | |
13769 | int res1 = 0 ; | |
13770 | void *argp2 = 0 ; | |
13771 | int res2 = 0 ; | |
13772 | int val3 ; | |
13773 | int ecode3 = 0 ; | |
13774 | wxPoint temp4 ; | |
13775 | wxSize temp5 ; | |
13776 | long val6 ; | |
13777 | int ecode6 = 0 ; | |
13778 | bool temp7 = false ; | |
13779 | PyObject * obj0 = 0 ; | |
13780 | PyObject * obj1 = 0 ; | |
13781 | PyObject * obj2 = 0 ; | |
13782 | PyObject * obj3 = 0 ; | |
13783 | PyObject * obj4 = 0 ; | |
13784 | PyObject * obj5 = 0 ; | |
13785 | PyObject * obj6 = 0 ; | |
13786 | char * kwnames[] = { | |
13787 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13788 | }; | |
13789 | ||
13790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13792 | if (!SWIG_IsOK(res1)) { | |
13793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13794 | } | |
13795 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13796 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13797 | if (!SWIG_IsOK(res2)) { | |
13798 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13799 | } | |
13800 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13801 | if (obj2) { | |
13802 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13803 | if (!SWIG_IsOK(ecode3)) { | |
13804 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13805 | } | |
13806 | arg3 = static_cast< int >(val3); | |
13807 | } | |
13808 | if (obj3) { | |
d14a1e28 | 13809 | { |
0085ce49 RD |
13810 | arg4 = &temp4; |
13811 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13812 | } |
0085ce49 RD |
13813 | } |
13814 | if (obj4) { | |
093d3ff1 | 13815 | { |
0085ce49 RD |
13816 | arg5 = &temp5; |
13817 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 13818 | } |
0085ce49 RD |
13819 | } |
13820 | if (obj5) { | |
13821 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13822 | if (!SWIG_IsOK(ecode6)) { | |
13823 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13824 | } | |
13825 | arg6 = static_cast< long >(val6); | |
13826 | } | |
13827 | if (obj6) { | |
13828 | { | |
13829 | arg7 = wxString_in_helper(obj6); | |
13830 | if (arg7 == NULL) SWIG_fail; | |
13831 | temp7 = true; | |
13832 | } | |
13833 | } | |
13834 | { | |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13837 | wxPyEndAllowThreads(__tstate); | |
13838 | if (PyErr_Occurred()) SWIG_fail; | |
13839 | } | |
13840 | { | |
13841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13842 | } | |
13843 | { | |
13844 | if (temp7) | |
13845 | delete arg7; | |
13846 | } | |
13847 | return resultobj; | |
13848 | fail: | |
13849 | { | |
13850 | if (temp7) | |
13851 | delete arg7; | |
13852 | } | |
13853 | return NULL; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13858 | PyObject *resultobj = 0; | |
13859 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13860 | size_t arg2 ; | |
13861 | void *argp1 = 0 ; | |
13862 | int res1 = 0 ; | |
13863 | size_t val2 ; | |
13864 | int ecode2 = 0 ; | |
13865 | PyObject * obj0 = 0 ; | |
13866 | PyObject * obj1 = 0 ; | |
13867 | char * kwnames[] = { | |
13868 | (char *) "self",(char *) "count", NULL | |
13869 | }; | |
13870 | ||
13871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13873 | if (!SWIG_IsOK(res1)) { | |
13874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13875 | } | |
13876 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13877 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13878 | if (!SWIG_IsOK(ecode2)) { | |
13879 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13880 | } | |
13881 | arg2 = static_cast< size_t >(val2); | |
13882 | { | |
13883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13884 | (arg1)->SetLineCount(arg2); | |
13885 | wxPyEndAllowThreads(__tstate); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
13888 | resultobj = SWIG_Py_Void(); | |
13889 | return resultobj; | |
13890 | fail: | |
13891 | return NULL; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13896 | PyObject *resultobj = 0; | |
13897 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13898 | size_t arg2 ; | |
13899 | bool result; | |
13900 | void *argp1 = 0 ; | |
13901 | int res1 = 0 ; | |
13902 | size_t val2 ; | |
13903 | int ecode2 = 0 ; | |
13904 | PyObject * obj0 = 0 ; | |
13905 | PyObject * obj1 = 0 ; | |
13906 | char * kwnames[] = { | |
13907 | (char *) "self",(char *) "line", NULL | |
13908 | }; | |
13909 | ||
13910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13912 | if (!SWIG_IsOK(res1)) { | |
13913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13914 | } | |
13915 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13916 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13917 | if (!SWIG_IsOK(ecode2)) { | |
13918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13919 | } | |
13920 | arg2 = static_cast< size_t >(val2); | |
13921 | { | |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13923 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
13927 | { | |
13928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13929 | } | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
13933 | } | |
13934 | ||
13935 | ||
13936 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13937 | PyObject *resultobj = 0; | |
13938 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13939 | size_t arg2 ; | |
13940 | void *argp1 = 0 ; | |
13941 | int res1 = 0 ; | |
13942 | size_t val2 ; | |
13943 | int ecode2 = 0 ; | |
13944 | PyObject * obj0 = 0 ; | |
13945 | PyObject * obj1 = 0 ; | |
13946 | char * kwnames[] = { | |
13947 | (char *) "self",(char *) "line", NULL | |
13948 | }; | |
13949 | ||
13950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13952 | if (!SWIG_IsOK(res1)) { | |
13953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13954 | } | |
13955 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13956 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13957 | if (!SWIG_IsOK(ecode2)) { | |
13958 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13959 | } | |
13960 | arg2 = static_cast< size_t >(val2); | |
13961 | { | |
13962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13963 | (arg1)->RefreshLine(arg2); | |
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
13967 | resultobj = SWIG_Py_Void(); | |
13968 | return resultobj; | |
13969 | fail: | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13975 | PyObject *resultobj = 0; | |
13976 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13977 | size_t arg2 ; | |
13978 | size_t arg3 ; | |
13979 | void *argp1 = 0 ; | |
13980 | int res1 = 0 ; | |
13981 | size_t val2 ; | |
13982 | int ecode2 = 0 ; | |
13983 | size_t val3 ; | |
13984 | int ecode3 = 0 ; | |
13985 | PyObject * obj0 = 0 ; | |
13986 | PyObject * obj1 = 0 ; | |
13987 | PyObject * obj2 = 0 ; | |
13988 | char * kwnames[] = { | |
2131d850 | 13989 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
13990 | }; |
13991 | ||
13992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13994 | if (!SWIG_IsOK(res1)) { | |
13995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13996 | } | |
13997 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13998 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13999 | if (!SWIG_IsOK(ecode2)) { | |
14000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
14001 | } | |
14002 | arg2 = static_cast< size_t >(val2); | |
14003 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14004 | if (!SWIG_IsOK(ecode3)) { | |
14005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
14006 | } | |
14007 | arg3 = static_cast< size_t >(val3); | |
14008 | { | |
14009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14010 | (arg1)->RefreshLines(arg2,arg3); | |
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = SWIG_Py_Void(); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14022 | PyObject *resultobj = 0; | |
14023 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14024 | int arg2 ; | |
14025 | int arg3 ; | |
14026 | int result; | |
14027 | void *argp1 = 0 ; | |
14028 | int res1 = 0 ; | |
14029 | int val2 ; | |
14030 | int ecode2 = 0 ; | |
14031 | int val3 ; | |
14032 | int ecode3 = 0 ; | |
14033 | PyObject * obj0 = 0 ; | |
14034 | PyObject * obj1 = 0 ; | |
14035 | PyObject * obj2 = 0 ; | |
14036 | char * kwnames[] = { | |
14037 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14038 | }; | |
14039 | ||
14040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14042 | if (!SWIG_IsOK(res1)) { | |
14043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14044 | } | |
14045 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14046 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14047 | if (!SWIG_IsOK(ecode2)) { | |
14048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
14049 | } | |
14050 | arg2 = static_cast< int >(val2); | |
14051 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14052 | if (!SWIG_IsOK(ecode3)) { | |
14053 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
14054 | } | |
14055 | arg3 = static_cast< int >(val3); | |
14056 | { | |
14057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14058 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
14062 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14070 | PyObject *resultobj = 0; | |
14071 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14072 | wxPoint *arg2 = 0 ; | |
14073 | int result; | |
14074 | void *argp1 = 0 ; | |
14075 | int res1 = 0 ; | |
14076 | wxPoint temp2 ; | |
14077 | PyObject * obj0 = 0 ; | |
14078 | PyObject * obj1 = 0 ; | |
14079 | char * kwnames[] = { | |
14080 | (char *) "self",(char *) "pt", NULL | |
14081 | }; | |
14082 | ||
14083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
14084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14085 | if (!SWIG_IsOK(res1)) { | |
14086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14087 | } | |
14088 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14089 | { | |
14090 | arg2 = &temp2; | |
14091 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14092 | } | |
14093 | { | |
14094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14095 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
14099 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | return NULL; | |
d14a1e28 RD |
14103 | } |
14104 | ||
14105 | ||
0085ce49 RD |
14106 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14107 | PyObject *resultobj = 0; | |
14108 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14109 | void *argp1 = 0 ; | |
14110 | int res1 = 0 ; | |
14111 | PyObject *swig_obj[1] ; | |
14112 | ||
14113 | if (!args) SWIG_fail; | |
14114 | swig_obj[0] = args; | |
14115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14116 | if (!SWIG_IsOK(res1)) { | |
14117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14118 | } | |
14119 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14120 | { | |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | (arg1)->RefreshAll(); | |
14123 | wxPyEndAllowThreads(__tstate); | |
14124 | if (PyErr_Occurred()) SWIG_fail; | |
14125 | } | |
14126 | resultobj = SWIG_Py_Void(); | |
14127 | return resultobj; | |
14128 | fail: | |
14129 | return NULL; | |
b2dc1044 RD |
14130 | } |
14131 | ||
14132 | ||
0085ce49 RD |
14133 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14134 | PyObject *resultobj = 0; | |
14135 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14136 | size_t result; | |
14137 | void *argp1 = 0 ; | |
14138 | int res1 = 0 ; | |
14139 | PyObject *swig_obj[1] ; | |
14140 | ||
14141 | if (!args) SWIG_fail; | |
14142 | swig_obj[0] = args; | |
14143 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14144 | if (!SWIG_IsOK(res1)) { | |
14145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14146 | } | |
14147 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14148 | { | |
14149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14150 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
14151 | wxPyEndAllowThreads(__tstate); | |
14152 | if (PyErr_Occurred()) SWIG_fail; | |
14153 | } | |
14154 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14155 | return resultobj; | |
14156 | fail: | |
14157 | return NULL; | |
b2dc1044 RD |
14158 | } |
14159 | ||
14160 | ||
0085ce49 RD |
14161 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14162 | PyObject *resultobj = 0; | |
14163 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14164 | size_t result; | |
14165 | void *argp1 = 0 ; | |
14166 | int res1 = 0 ; | |
14167 | PyObject *swig_obj[1] ; | |
14168 | ||
14169 | if (!args) SWIG_fail; | |
14170 | swig_obj[0] = args; | |
14171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14172 | if (!SWIG_IsOK(res1)) { | |
14173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14174 | } | |
14175 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14176 | { | |
14177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14178 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
14179 | wxPyEndAllowThreads(__tstate); | |
14180 | if (PyErr_Occurred()) SWIG_fail; | |
14181 | } | |
14182 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14183 | return resultobj; | |
14184 | fail: | |
14185 | return NULL; | |
b2dc1044 RD |
14186 | } |
14187 | ||
14188 | ||
0085ce49 RD |
14189 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14190 | PyObject *resultobj = 0; | |
14191 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14192 | size_t result; | |
14193 | void *argp1 = 0 ; | |
14194 | int res1 = 0 ; | |
14195 | PyObject *swig_obj[1] ; | |
14196 | ||
14197 | if (!args) SWIG_fail; | |
14198 | swig_obj[0] = args; | |
14199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14200 | if (!SWIG_IsOK(res1)) { | |
14201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14202 | } | |
14203 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14204 | { | |
14205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14206 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
14207 | wxPyEndAllowThreads(__tstate); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
14209 | } | |
14210 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14211 | return resultobj; | |
14212 | fail: | |
14213 | return NULL; | |
14214 | } | |
14215 | ||
14216 | ||
14217 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14218 | PyObject *resultobj = 0; | |
14219 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14220 | size_t arg2 ; | |
14221 | bool result; | |
14222 | void *argp1 = 0 ; | |
14223 | int res1 = 0 ; | |
14224 | size_t val2 ; | |
14225 | int ecode2 = 0 ; | |
14226 | PyObject * obj0 = 0 ; | |
14227 | PyObject * obj1 = 0 ; | |
14228 | char * kwnames[] = { | |
14229 | (char *) "self",(char *) "line", NULL | |
14230 | }; | |
14231 | ||
14232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
14233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14234 | if (!SWIG_IsOK(res1)) { | |
14235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14236 | } | |
14237 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14238 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14239 | if (!SWIG_IsOK(ecode2)) { | |
14240 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
14241 | } | |
14242 | arg2 = static_cast< size_t >(val2); | |
14243 | { | |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
14246 | wxPyEndAllowThreads(__tstate); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | } | |
14249 | { | |
14250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14251 | } | |
14252 | return resultobj; | |
14253 | fail: | |
14254 | return NULL; | |
d14a1e28 RD |
14255 | } |
14256 | ||
14257 | ||
0085ce49 RD |
14258 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14259 | PyObject *resultobj = 0; | |
14260 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14261 | size_t result; | |
14262 | void *argp1 = 0 ; | |
14263 | int res1 = 0 ; | |
14264 | PyObject *swig_obj[1] ; | |
14265 | ||
14266 | if (!args) SWIG_fail; | |
14267 | swig_obj[0] = args; | |
14268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14269 | if (!SWIG_IsOK(res1)) { | |
14270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14271 | } | |
14272 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14273 | { | |
14274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14275 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
14276 | wxPyEndAllowThreads(__tstate); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | } | |
14279 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14280 | return resultobj; | |
14281 | fail: | |
14282 | return NULL; | |
d14a1e28 RD |
14283 | } |
14284 | ||
14285 | ||
0085ce49 RD |
14286 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14287 | PyObject *resultobj = 0; | |
14288 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14289 | size_t result; | |
14290 | void *argp1 = 0 ; | |
14291 | int res1 = 0 ; | |
14292 | PyObject *swig_obj[1] ; | |
14293 | ||
14294 | if (!args) SWIG_fail; | |
14295 | swig_obj[0] = args; | |
14296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14297 | if (!SWIG_IsOK(res1)) { | |
14298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14299 | } | |
14300 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14301 | { | |
14302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14303 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14304 | wxPyEndAllowThreads(__tstate); | |
14305 | if (PyErr_Occurred()) SWIG_fail; | |
14306 | } | |
14307 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14308 | return resultobj; | |
14309 | fail: | |
14310 | return NULL; | |
14311 | } | |
14312 | ||
14313 | ||
14314 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14315 | PyObject *resultobj = 0; | |
14316 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14317 | size_t arg2 ; | |
14318 | bool arg3 = (bool) false ; | |
14319 | size_t result; | |
14320 | void *argp1 = 0 ; | |
14321 | int res1 = 0 ; | |
14322 | size_t val2 ; | |
14323 | int ecode2 = 0 ; | |
14324 | bool val3 ; | |
14325 | int ecode3 = 0 ; | |
14326 | PyObject * obj0 = 0 ; | |
14327 | PyObject * obj1 = 0 ; | |
14328 | PyObject * obj2 = 0 ; | |
14329 | char * kwnames[] = { | |
14330 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14331 | }; | |
14332 | ||
14333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14335 | if (!SWIG_IsOK(res1)) { | |
14336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14337 | } | |
14338 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14339 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14340 | if (!SWIG_IsOK(ecode2)) { | |
14341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14342 | } | |
14343 | arg2 = static_cast< size_t >(val2); | |
14344 | if (obj2) { | |
14345 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14346 | if (!SWIG_IsOK(ecode3)) { | |
14347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14348 | } | |
14349 | arg3 = static_cast< bool >(val3); | |
14350 | } | |
14351 | { | |
14352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14353 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14354 | wxPyEndAllowThreads(__tstate); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | } | |
14357 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
14364 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14365 | PyObject *resultobj = 0; | |
14366 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14367 | size_t arg2 ; | |
14368 | size_t arg3 ; | |
14369 | int result; | |
14370 | void *argp1 = 0 ; | |
14371 | int res1 = 0 ; | |
14372 | size_t val2 ; | |
14373 | int ecode2 = 0 ; | |
14374 | size_t val3 ; | |
14375 | int ecode3 = 0 ; | |
14376 | PyObject * obj0 = 0 ; | |
14377 | PyObject * obj1 = 0 ; | |
14378 | PyObject * obj2 = 0 ; | |
14379 | char * kwnames[] = { | |
14380 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14381 | }; | |
14382 | ||
14383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14385 | if (!SWIG_IsOK(res1)) { | |
14386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14387 | } | |
14388 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14389 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14390 | if (!SWIG_IsOK(ecode2)) { | |
14391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14392 | } | |
14393 | arg2 = static_cast< size_t >(val2); | |
14394 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14395 | if (!SWIG_IsOK(ecode3)) { | |
14396 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14397 | } | |
14398 | arg3 = static_cast< size_t >(val3); | |
14399 | { | |
14400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14401 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
14405 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14406 | return resultobj; | |
14407 | fail: | |
14408 | return NULL; | |
d14a1e28 RD |
14409 | } |
14410 | ||
14411 | ||
0085ce49 RD |
14412 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14413 | PyObject *obj; | |
14414 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14415 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14416 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14417 | } |
14418 | ||
0085ce49 RD |
14419 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14420 | return SWIG_Python_InitShadowInstance(args); | |
14421 | } | |
d14a1e28 | 14422 | |
0085ce49 RD |
14423 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14424 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14425 | return 1; | |
d14a1e28 RD |
14426 | } |
14427 | ||
14428 | ||
0085ce49 RD |
14429 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14430 | PyObject *pyobj = 0; | |
14431 | ||
14432 | { | |
14433 | #if wxUSE_UNICODE | |
14434 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14435 | #else | |
14436 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14437 | #endif | |
14438 | } | |
14439 | return pyobj; | |
14440 | } | |
14441 | ||
14442 | ||
14443 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14444 | PyObject *resultobj = 0; | |
14445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14446 | int arg2 = (int) wxID_ANY ; | |
14447 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14448 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14449 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14450 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14451 | long arg5 = (long) 0 ; | |
14452 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14453 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14454 | wxPyVListBox *result = 0 ; | |
14455 | void *argp1 = 0 ; | |
14456 | int res1 = 0 ; | |
14457 | int val2 ; | |
14458 | int ecode2 = 0 ; | |
14459 | wxPoint temp3 ; | |
14460 | wxSize temp4 ; | |
14461 | long val5 ; | |
14462 | int ecode5 = 0 ; | |
14463 | bool temp6 = false ; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | PyObject * obj1 = 0 ; | |
14466 | PyObject * obj2 = 0 ; | |
14467 | PyObject * obj3 = 0 ; | |
14468 | PyObject * obj4 = 0 ; | |
14469 | PyObject * obj5 = 0 ; | |
14470 | char * kwnames[] = { | |
14471 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14472 | }; | |
14473 | ||
14474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14476 | if (!SWIG_IsOK(res1)) { | |
14477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14478 | } | |
14479 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14480 | if (obj1) { | |
14481 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14482 | if (!SWIG_IsOK(ecode2)) { | |
14483 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14484 | } | |
14485 | arg2 = static_cast< int >(val2); | |
14486 | } | |
14487 | if (obj2) { | |
093d3ff1 | 14488 | { |
0085ce49 RD |
14489 | arg3 = &temp3; |
14490 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 14491 | } |
0085ce49 RD |
14492 | } |
14493 | if (obj3) { | |
093d3ff1 | 14494 | { |
0085ce49 RD |
14495 | arg4 = &temp4; |
14496 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14497 | } |
0085ce49 RD |
14498 | } |
14499 | if (obj4) { | |
14500 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14501 | if (!SWIG_IsOK(ecode5)) { | |
14502 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14503 | } | |
14504 | arg5 = static_cast< long >(val5); | |
14505 | } | |
14506 | if (obj5) { | |
d14a1e28 | 14507 | { |
0085ce49 RD |
14508 | arg6 = wxString_in_helper(obj5); |
14509 | if (arg6 == NULL) SWIG_fail; | |
14510 | temp6 = true; | |
14511 | } | |
14512 | } | |
14513 | { | |
14514 | if (!wxPyCheckForApp()) SWIG_fail; | |
14515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14516 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14517 | wxPyEndAllowThreads(__tstate); | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | } | |
14520 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14521 | { | |
14522 | if (temp6) | |
14523 | delete arg6; | |
14524 | } | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | { | |
14528 | if (temp6) | |
14529 | delete arg6; | |
14530 | } | |
14531 | return NULL; | |
d14a1e28 RD |
14532 | } |
14533 | ||
14534 | ||
0085ce49 RD |
14535 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14536 | PyObject *resultobj = 0; | |
14537 | wxPyVListBox *result = 0 ; | |
14538 | ||
14539 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14540 | { | |
14541 | if (!wxPyCheckForApp()) SWIG_fail; | |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
14547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
14554 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14555 | PyObject *resultobj = 0; | |
14556 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14557 | PyObject *arg2 = (PyObject *) 0 ; | |
14558 | PyObject *arg3 = (PyObject *) 0 ; | |
14559 | void *argp1 = 0 ; | |
14560 | int res1 = 0 ; | |
14561 | PyObject * obj0 = 0 ; | |
14562 | PyObject * obj1 = 0 ; | |
14563 | PyObject * obj2 = 0 ; | |
14564 | char * kwnames[] = { | |
14565 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14566 | }; | |
14567 | ||
14568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14570 | if (!SWIG_IsOK(res1)) { | |
14571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14572 | } | |
14573 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14574 | arg2 = obj1; | |
14575 | arg3 = obj2; | |
14576 | { | |
14577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14578 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | resultobj = SWIG_Py_Void(); | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14590 | PyObject *resultobj = 0; | |
14591 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14593 | int arg3 = (int) wxID_ANY ; | |
14594 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14595 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14596 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14597 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14598 | long arg6 = (long) 0 ; | |
14599 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14600 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14601 | bool result; | |
14602 | void *argp1 = 0 ; | |
14603 | int res1 = 0 ; | |
14604 | void *argp2 = 0 ; | |
14605 | int res2 = 0 ; | |
14606 | int val3 ; | |
14607 | int ecode3 = 0 ; | |
14608 | wxPoint temp4 ; | |
14609 | wxSize temp5 ; | |
14610 | long val6 ; | |
14611 | int ecode6 = 0 ; | |
14612 | bool temp7 = false ; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | PyObject * obj1 = 0 ; | |
14615 | PyObject * obj2 = 0 ; | |
14616 | PyObject * obj3 = 0 ; | |
14617 | PyObject * obj4 = 0 ; | |
14618 | PyObject * obj5 = 0 ; | |
14619 | PyObject * obj6 = 0 ; | |
14620 | char * kwnames[] = { | |
14621 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14622 | }; | |
14623 | ||
14624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14626 | if (!SWIG_IsOK(res1)) { | |
14627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14628 | } | |
14629 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14630 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14631 | if (!SWIG_IsOK(res2)) { | |
14632 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14633 | } | |
14634 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14635 | if (obj2) { | |
14636 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14637 | if (!SWIG_IsOK(ecode3)) { | |
14638 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14639 | } | |
14640 | arg3 = static_cast< int >(val3); | |
14641 | } | |
14642 | if (obj3) { | |
093d3ff1 | 14643 | { |
0085ce49 RD |
14644 | arg4 = &temp4; |
14645 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14646 | } |
0085ce49 RD |
14647 | } |
14648 | if (obj4) { | |
d14a1e28 | 14649 | { |
0085ce49 RD |
14650 | arg5 = &temp5; |
14651 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14652 | } |
0085ce49 RD |
14653 | } |
14654 | if (obj5) { | |
14655 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14656 | if (!SWIG_IsOK(ecode6)) { | |
14657 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14658 | } | |
14659 | arg6 = static_cast< long >(val6); | |
14660 | } | |
14661 | if (obj6) { | |
4f89f6a3 | 14662 | { |
0085ce49 RD |
14663 | arg7 = wxString_in_helper(obj6); |
14664 | if (arg7 == NULL) SWIG_fail; | |
14665 | temp7 = true; | |
4f89f6a3 | 14666 | } |
0085ce49 RD |
14667 | } |
14668 | { | |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14671 | wxPyEndAllowThreads(__tstate); | |
14672 | if (PyErr_Occurred()) SWIG_fail; | |
14673 | } | |
14674 | { | |
14675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14676 | } | |
14677 | { | |
14678 | if (temp7) | |
14679 | delete arg7; | |
14680 | } | |
14681 | return resultobj; | |
14682 | fail: | |
14683 | { | |
14684 | if (temp7) | |
14685 | delete arg7; | |
14686 | } | |
14687 | return NULL; | |
d14a1e28 RD |
14688 | } |
14689 | ||
14690 | ||
0085ce49 RD |
14691 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14692 | PyObject *resultobj = 0; | |
14693 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14694 | size_t result; | |
14695 | void *argp1 = 0 ; | |
14696 | int res1 = 0 ; | |
14697 | PyObject *swig_obj[1] ; | |
14698 | ||
14699 | if (!args) SWIG_fail; | |
14700 | swig_obj[0] = args; | |
14701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14702 | if (!SWIG_IsOK(res1)) { | |
14703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14704 | } | |
14705 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14706 | { | |
14707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14708 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14709 | wxPyEndAllowThreads(__tstate); | |
14710 | if (PyErr_Occurred()) SWIG_fail; | |
14711 | } | |
14712 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14713 | return resultobj; | |
14714 | fail: | |
14715 | return NULL; | |
d14a1e28 RD |
14716 | } |
14717 | ||
14718 | ||
0085ce49 RD |
14719 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14720 | PyObject *resultobj = 0; | |
14721 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14722 | bool result; | |
14723 | void *argp1 = 0 ; | |
14724 | int res1 = 0 ; | |
14725 | PyObject *swig_obj[1] ; | |
14726 | ||
14727 | if (!args) SWIG_fail; | |
14728 | swig_obj[0] = args; | |
14729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14730 | if (!SWIG_IsOK(res1)) { | |
14731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14732 | } | |
14733 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | { | |
14741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14742 | } | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
d14a1e28 RD |
14746 | } |
14747 | ||
14748 | ||
0085ce49 RD |
14749 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14750 | PyObject *resultobj = 0; | |
14751 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14752 | int result; | |
14753 | void *argp1 = 0 ; | |
14754 | int res1 = 0 ; | |
14755 | PyObject *swig_obj[1] ; | |
14756 | ||
14757 | if (!args) SWIG_fail; | |
14758 | swig_obj[0] = args; | |
14759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14760 | if (!SWIG_IsOK(res1)) { | |
14761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14762 | } | |
14763 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14767 | wxPyEndAllowThreads(__tstate); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
14769 | } | |
14770 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14771 | return resultobj; | |
14772 | fail: | |
14773 | return NULL; | |
14774 | } | |
14775 | ||
14776 | ||
14777 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14778 | PyObject *resultobj = 0; | |
14779 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14780 | size_t arg2 ; | |
14781 | bool result; | |
14782 | void *argp1 = 0 ; | |
14783 | int res1 = 0 ; | |
14784 | size_t val2 ; | |
14785 | int ecode2 = 0 ; | |
14786 | PyObject * obj0 = 0 ; | |
14787 | PyObject * obj1 = 0 ; | |
14788 | char * kwnames[] = { | |
14789 | (char *) "self",(char *) "item", NULL | |
14790 | }; | |
14791 | ||
14792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14794 | if (!SWIG_IsOK(res1)) { | |
14795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14796 | } | |
14797 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14798 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14799 | if (!SWIG_IsOK(ecode2)) { | |
14800 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14801 | } | |
14802 | arg2 = static_cast< size_t >(val2); | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | { | |
14810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14811 | } | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
14818 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14819 | PyObject *resultobj = 0; | |
14820 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14821 | size_t arg2 ; | |
14822 | bool result; | |
14823 | void *argp1 = 0 ; | |
14824 | int res1 = 0 ; | |
14825 | size_t val2 ; | |
14826 | int ecode2 = 0 ; | |
14827 | PyObject * obj0 = 0 ; | |
14828 | PyObject * obj1 = 0 ; | |
14829 | char * kwnames[] = { | |
14830 | (char *) "self",(char *) "item", NULL | |
14831 | }; | |
14832 | ||
14833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14835 | if (!SWIG_IsOK(res1)) { | |
14836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14837 | } | |
14838 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14839 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14840 | if (!SWIG_IsOK(ecode2)) { | |
14841 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14842 | } | |
14843 | arg2 = static_cast< size_t >(val2); | |
14844 | { | |
14845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14846 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14847 | wxPyEndAllowThreads(__tstate); | |
14848 | if (PyErr_Occurred()) SWIG_fail; | |
14849 | } | |
14850 | { | |
14851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14852 | } | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
d14a1e28 RD |
14856 | } |
14857 | ||
14858 | ||
0085ce49 RD |
14859 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14860 | PyObject *resultobj = 0; | |
14861 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14862 | size_t result; | |
14863 | void *argp1 = 0 ; | |
14864 | int res1 = 0 ; | |
14865 | PyObject *swig_obj[1] ; | |
14866 | ||
14867 | if (!args) SWIG_fail; | |
14868 | swig_obj[0] = args; | |
14869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14870 | if (!SWIG_IsOK(res1)) { | |
14871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14872 | } | |
14873 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14874 | { | |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14876 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14877 | wxPyEndAllowThreads(__tstate); | |
14878 | if (PyErr_Occurred()) SWIG_fail; | |
14879 | } | |
14880 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14881 | return resultobj; | |
14882 | fail: | |
14883 | return NULL; | |
d14a1e28 RD |
14884 | } |
14885 | ||
14886 | ||
0085ce49 RD |
14887 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14888 | PyObject *resultobj = 0; | |
14889 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14890 | PyObject *result = 0 ; | |
14891 | void *argp1 = 0 ; | |
14892 | int res1 = 0 ; | |
14893 | PyObject *swig_obj[1] ; | |
14894 | ||
14895 | if (!args) SWIG_fail; | |
14896 | swig_obj[0] = args; | |
14897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14898 | if (!SWIG_IsOK(res1)) { | |
14899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14900 | } | |
14901 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14902 | { | |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14905 | wxPyEndAllowThreads(__tstate); | |
14906 | if (PyErr_Occurred()) SWIG_fail; | |
14907 | } | |
14908 | resultobj = result; | |
14909 | return resultobj; | |
14910 | fail: | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
14915 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14916 | PyObject *resultobj = 0; | |
14917 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14918 | unsigned long arg2 ; | |
14919 | PyObject *result = 0 ; | |
14920 | void *argp1 = 0 ; | |
14921 | int res1 = 0 ; | |
14922 | unsigned long val2 ; | |
14923 | int ecode2 = 0 ; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | PyObject * obj1 = 0 ; | |
14926 | char * kwnames[] = { | |
14927 | (char *) "self",(char *) "cookie", NULL | |
14928 | }; | |
14929 | ||
14930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14932 | if (!SWIG_IsOK(res1)) { | |
14933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14934 | } | |
14935 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14936 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14937 | if (!SWIG_IsOK(ecode2)) { | |
14938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14939 | } | |
14940 | arg2 = static_cast< unsigned long >(val2); | |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14944 | wxPyEndAllowThreads(__tstate); | |
14945 | if (PyErr_Occurred()) SWIG_fail; | |
14946 | } | |
14947 | resultobj = result; | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | return NULL; | |
d14a1e28 RD |
14951 | } |
14952 | ||
14953 | ||
0085ce49 RD |
14954 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14955 | PyObject *resultobj = 0; | |
14956 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14957 | wxPoint result; | |
14958 | void *argp1 = 0 ; | |
14959 | int res1 = 0 ; | |
14960 | PyObject *swig_obj[1] ; | |
14961 | ||
14962 | if (!args) SWIG_fail; | |
14963 | swig_obj[0] = args; | |
14964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14965 | if (!SWIG_IsOK(res1)) { | |
14966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14967 | } | |
14968 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14969 | { | |
14970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14971 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
14975 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | return NULL; | |
d14a1e28 RD |
14979 | } |
14980 | ||
14981 | ||
0085ce49 RD |
14982 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14983 | PyObject *resultobj = 0; | |
14984 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14985 | wxColour *result = 0 ; | |
14986 | void *argp1 = 0 ; | |
14987 | int res1 = 0 ; | |
14988 | PyObject *swig_obj[1] ; | |
14989 | ||
14990 | if (!args) SWIG_fail; | |
14991 | swig_obj[0] = args; | |
14992 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14993 | if (!SWIG_IsOK(res1)) { | |
14994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14995 | } | |
14996 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14999 | { |
0085ce49 RD |
15000 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
15001 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 15002 | } |
0085ce49 RD |
15003 | wxPyEndAllowThreads(__tstate); |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
15006 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
15007 | return resultobj; | |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15014 | PyObject *resultobj = 0; | |
15015 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15016 | size_t arg2 ; | |
15017 | void *argp1 = 0 ; | |
15018 | int res1 = 0 ; | |
15019 | size_t val2 ; | |
15020 | int ecode2 = 0 ; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | PyObject * obj1 = 0 ; | |
15023 | char * kwnames[] = { | |
15024 | (char *) "self",(char *) "count", NULL | |
15025 | }; | |
15026 | ||
15027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15029 | if (!SWIG_IsOK(res1)) { | |
15030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15031 | } | |
15032 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15033 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15034 | if (!SWIG_IsOK(ecode2)) { | |
15035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15036 | } | |
15037 | arg2 = static_cast< size_t >(val2); | |
15038 | { | |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15040 | (arg1)->SetItemCount(arg2); | |
15041 | wxPyEndAllowThreads(__tstate); | |
15042 | if (PyErr_Occurred()) SWIG_fail; | |
15043 | } | |
15044 | resultobj = SWIG_Py_Void(); | |
15045 | return resultobj; | |
15046 | fail: | |
15047 | return NULL; | |
d14a1e28 RD |
15048 | } |
15049 | ||
15050 | ||
0085ce49 RD |
15051 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15052 | PyObject *resultobj = 0; | |
15053 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15054 | void *argp1 = 0 ; | |
15055 | int res1 = 0 ; | |
15056 | PyObject *swig_obj[1] ; | |
15057 | ||
15058 | if (!args) SWIG_fail; | |
15059 | swig_obj[0] = args; | |
15060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15061 | if (!SWIG_IsOK(res1)) { | |
15062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15063 | } | |
15064 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15065 | { | |
15066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15067 | (arg1)->Clear(); | |
15068 | wxPyEndAllowThreads(__tstate); | |
15069 | if (PyErr_Occurred()) SWIG_fail; | |
15070 | } | |
15071 | resultobj = SWIG_Py_Void(); | |
15072 | return resultobj; | |
15073 | fail: | |
15074 | return NULL; | |
15075 | } | |
15076 | ||
15077 | ||
15078 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15079 | PyObject *resultobj = 0; | |
15080 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15081 | int arg2 ; | |
15082 | void *argp1 = 0 ; | |
15083 | int res1 = 0 ; | |
15084 | int val2 ; | |
15085 | int ecode2 = 0 ; | |
15086 | PyObject * obj0 = 0 ; | |
15087 | PyObject * obj1 = 0 ; | |
15088 | char * kwnames[] = { | |
15089 | (char *) "self",(char *) "selection", NULL | |
15090 | }; | |
15091 | ||
15092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
15093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15094 | if (!SWIG_IsOK(res1)) { | |
15095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15096 | } | |
15097 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15098 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15099 | if (!SWIG_IsOK(ecode2)) { | |
15100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
15101 | } | |
15102 | arg2 = static_cast< int >(val2); | |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | (arg1)->SetSelection(arg2); | |
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | resultobj = SWIG_Py_Void(); | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
15116 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15117 | PyObject *resultobj = 0; | |
15118 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15119 | size_t arg2 ; | |
15120 | bool arg3 = (bool) true ; | |
15121 | bool result; | |
15122 | void *argp1 = 0 ; | |
15123 | int res1 = 0 ; | |
15124 | size_t val2 ; | |
15125 | int ecode2 = 0 ; | |
15126 | bool val3 ; | |
15127 | int ecode3 = 0 ; | |
15128 | PyObject * obj0 = 0 ; | |
15129 | PyObject * obj1 = 0 ; | |
15130 | PyObject * obj2 = 0 ; | |
15131 | char * kwnames[] = { | |
15132 | (char *) "self",(char *) "item",(char *) "select", NULL | |
15133 | }; | |
15134 | ||
15135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15137 | if (!SWIG_IsOK(res1)) { | |
15138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15139 | } | |
15140 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15141 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15142 | if (!SWIG_IsOK(ecode2)) { | |
15143 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
15144 | } | |
15145 | arg2 = static_cast< size_t >(val2); | |
15146 | if (obj2) { | |
15147 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15148 | if (!SWIG_IsOK(ecode3)) { | |
15149 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
15150 | } | |
15151 | arg3 = static_cast< bool >(val3); | |
15152 | } | |
15153 | { | |
15154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15155 | result = (bool)(arg1)->Select(arg2,arg3); | |
15156 | wxPyEndAllowThreads(__tstate); | |
15157 | if (PyErr_Occurred()) SWIG_fail; | |
15158 | } | |
15159 | { | |
15160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15161 | } | |
15162 | return resultobj; | |
15163 | fail: | |
15164 | return NULL; | |
15165 | } | |
15166 | ||
15167 | ||
15168 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15169 | PyObject *resultobj = 0; | |
15170 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15171 | size_t arg2 ; | |
15172 | size_t arg3 ; | |
15173 | bool result; | |
15174 | void *argp1 = 0 ; | |
15175 | int res1 = 0 ; | |
15176 | size_t val2 ; | |
15177 | int ecode2 = 0 ; | |
15178 | size_t val3 ; | |
15179 | int ecode3 = 0 ; | |
15180 | PyObject * obj0 = 0 ; | |
15181 | PyObject * obj1 = 0 ; | |
15182 | PyObject * obj2 = 0 ; | |
15183 | char * kwnames[] = { | |
2131d850 | 15184 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
15185 | }; |
15186 | ||
15187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15189 | if (!SWIG_IsOK(res1)) { | |
15190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15191 | } | |
15192 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15193 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15194 | if (!SWIG_IsOK(ecode2)) { | |
15195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
15196 | } | |
15197 | arg2 = static_cast< size_t >(val2); | |
15198 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
15199 | if (!SWIG_IsOK(ecode3)) { | |
15200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
15201 | } | |
15202 | arg3 = static_cast< size_t >(val3); | |
15203 | { | |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
15206 | wxPyEndAllowThreads(__tstate); | |
15207 | if (PyErr_Occurred()) SWIG_fail; | |
15208 | } | |
15209 | { | |
15210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15211 | } | |
15212 | return resultobj; | |
15213 | fail: | |
15214 | return NULL; | |
15215 | } | |
15216 | ||
15217 | ||
15218 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj = 0; | |
15220 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15221 | size_t arg2 ; | |
15222 | void *argp1 = 0 ; | |
15223 | int res1 = 0 ; | |
15224 | size_t val2 ; | |
15225 | int ecode2 = 0 ; | |
15226 | PyObject * obj0 = 0 ; | |
15227 | PyObject * obj1 = 0 ; | |
15228 | char * kwnames[] = { | |
15229 | (char *) "self",(char *) "item", NULL | |
15230 | }; | |
15231 | ||
15232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15234 | if (!SWIG_IsOK(res1)) { | |
15235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15236 | } | |
15237 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15238 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15239 | if (!SWIG_IsOK(ecode2)) { | |
15240 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
15241 | } | |
15242 | arg2 = static_cast< size_t >(val2); | |
15243 | { | |
15244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15245 | (arg1)->Toggle(arg2); | |
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15249 | resultobj = SWIG_Py_Void(); | |
15250 | return resultobj; | |
15251 | fail: | |
15252 | return NULL; | |
d14a1e28 RD |
15253 | } |
15254 | ||
15255 | ||
0085ce49 RD |
15256 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15257 | PyObject *resultobj = 0; | |
15258 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15259 | bool result; | |
15260 | void *argp1 = 0 ; | |
15261 | int res1 = 0 ; | |
15262 | PyObject *swig_obj[1] ; | |
15263 | ||
15264 | if (!args) SWIG_fail; | |
15265 | swig_obj[0] = args; | |
15266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15267 | if (!SWIG_IsOK(res1)) { | |
15268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15269 | } | |
15270 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15271 | { | |
15272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15273 | result = (bool)(arg1)->SelectAll(); | |
15274 | wxPyEndAllowThreads(__tstate); | |
15275 | if (PyErr_Occurred()) SWIG_fail; | |
15276 | } | |
15277 | { | |
15278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15279 | } | |
15280 | return resultobj; | |
15281 | fail: | |
15282 | return NULL; | |
d14a1e28 RD |
15283 | } |
15284 | ||
15285 | ||
0085ce49 RD |
15286 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15287 | PyObject *resultobj = 0; | |
15288 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15289 | bool result; | |
15290 | void *argp1 = 0 ; | |
15291 | int res1 = 0 ; | |
15292 | PyObject *swig_obj[1] ; | |
15293 | ||
15294 | if (!args) SWIG_fail; | |
15295 | swig_obj[0] = args; | |
15296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15297 | if (!SWIG_IsOK(res1)) { | |
15298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15299 | } | |
15300 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15301 | { | |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | result = (bool)(arg1)->DeselectAll(); | |
15304 | wxPyEndAllowThreads(__tstate); | |
15305 | if (PyErr_Occurred()) SWIG_fail; | |
15306 | } | |
15307 | { | |
15308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15309 | } | |
15310 | return resultobj; | |
15311 | fail: | |
15312 | return NULL; | |
15313 | } | |
15314 | ||
15315 | ||
15316 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15317 | PyObject *resultobj = 0; | |
15318 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15319 | wxPoint *arg2 = 0 ; | |
15320 | void *argp1 = 0 ; | |
15321 | int res1 = 0 ; | |
15322 | wxPoint temp2 ; | |
15323 | PyObject * obj0 = 0 ; | |
15324 | PyObject * obj1 = 0 ; | |
15325 | char * kwnames[] = { | |
15326 | (char *) "self",(char *) "pt", NULL | |
15327 | }; | |
15328 | ||
15329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15331 | if (!SWIG_IsOK(res1)) { | |
15332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15333 | } | |
15334 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15335 | { | |
15336 | arg2 = &temp2; | |
15337 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15338 | } | |
15339 | { | |
15340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15341 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = SWIG_Py_Void(); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj = 0; | |
15354 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15355 | int arg2 ; | |
15356 | int arg3 ; | |
15357 | void *argp1 = 0 ; | |
15358 | int res1 = 0 ; | |
15359 | int val2 ; | |
15360 | int ecode2 = 0 ; | |
15361 | int val3 ; | |
15362 | int ecode3 = 0 ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | PyObject * obj1 = 0 ; | |
15365 | PyObject * obj2 = 0 ; | |
15366 | char * kwnames[] = { | |
15367 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15368 | }; | |
15369 | ||
15370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15372 | if (!SWIG_IsOK(res1)) { | |
15373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15374 | } | |
15375 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15376 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15377 | if (!SWIG_IsOK(ecode2)) { | |
15378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15379 | } | |
15380 | arg2 = static_cast< int >(val2); | |
15381 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15382 | if (!SWIG_IsOK(ecode3)) { | |
15383 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15384 | } | |
15385 | arg3 = static_cast< int >(val3); | |
15386 | { | |
15387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15388 | (arg1)->SetMargins(arg2,arg3); | |
15389 | wxPyEndAllowThreads(__tstate); | |
15390 | if (PyErr_Occurred()) SWIG_fail; | |
15391 | } | |
15392 | resultobj = SWIG_Py_Void(); | |
15393 | return resultobj; | |
15394 | fail: | |
15395 | return NULL; | |
15396 | } | |
15397 | ||
15398 | ||
15399 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15400 | PyObject *resultobj = 0; | |
15401 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15402 | wxColour *arg2 = 0 ; | |
15403 | void *argp1 = 0 ; | |
15404 | int res1 = 0 ; | |
15405 | wxColour temp2 ; | |
15406 | PyObject * obj0 = 0 ; | |
15407 | PyObject * obj1 = 0 ; | |
15408 | char * kwnames[] = { | |
15409 | (char *) "self",(char *) "col", NULL | |
15410 | }; | |
15411 | ||
15412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15414 | if (!SWIG_IsOK(res1)) { | |
15415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15416 | } | |
15417 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15418 | { | |
15419 | arg2 = &temp2; | |
15420 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15421 | } | |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15425 | wxPyEndAllowThreads(__tstate); | |
15426 | if (PyErr_Occurred()) SWIG_fail; | |
15427 | } | |
15428 | resultobj = SWIG_Py_Void(); | |
15429 | return resultobj; | |
15430 | fail: | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
75219dcb RD |
15435 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15436 | PyObject *resultobj = 0; | |
15437 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15438 | wxDC *arg2 = 0 ; | |
15439 | wxRect *arg3 = 0 ; | |
15440 | size_t arg4 ; | |
15441 | void *argp1 = 0 ; | |
15442 | int res1 = 0 ; | |
15443 | void *argp2 = 0 ; | |
15444 | int res2 = 0 ; | |
15445 | wxRect temp3 ; | |
15446 | size_t val4 ; | |
15447 | int ecode4 = 0 ; | |
15448 | PyObject * obj0 = 0 ; | |
15449 | PyObject * obj1 = 0 ; | |
15450 | PyObject * obj2 = 0 ; | |
15451 | PyObject * obj3 = 0 ; | |
15452 | char * kwnames[] = { | |
15453 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15454 | }; | |
15455 | ||
15456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15458 | if (!SWIG_IsOK(res1)) { | |
15459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15460 | } | |
15461 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15462 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15463 | if (!SWIG_IsOK(res2)) { | |
15464 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15465 | } | |
15466 | if (!argp2) { | |
15467 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15468 | } | |
15469 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15470 | { | |
15471 | arg3 = &temp3; | |
15472 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15473 | } | |
15474 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15475 | if (!SWIG_IsOK(ecode4)) { | |
15476 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15477 | } | |
15478 | arg4 = static_cast< size_t >(val4); | |
15479 | { | |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15482 | wxPyEndAllowThreads(__tstate); | |
15483 | if (PyErr_Occurred()) SWIG_fail; | |
15484 | } | |
15485 | resultobj = SWIG_Py_Void(); | |
15486 | return resultobj; | |
15487 | fail: | |
15488 | return NULL; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15493 | PyObject *resultobj = 0; | |
15494 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15495 | wxDC *arg2 = 0 ; | |
15496 | wxRect *arg3 = 0 ; | |
15497 | size_t arg4 ; | |
15498 | void *argp1 = 0 ; | |
15499 | int res1 = 0 ; | |
15500 | void *argp2 = 0 ; | |
15501 | int res2 = 0 ; | |
15502 | wxRect temp3 ; | |
15503 | size_t val4 ; | |
15504 | int ecode4 = 0 ; | |
15505 | PyObject * obj0 = 0 ; | |
15506 | PyObject * obj1 = 0 ; | |
15507 | PyObject * obj2 = 0 ; | |
15508 | PyObject * obj3 = 0 ; | |
15509 | char * kwnames[] = { | |
15510 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15511 | }; | |
15512 | ||
15513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15515 | if (!SWIG_IsOK(res1)) { | |
15516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15517 | } | |
15518 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15519 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15520 | if (!SWIG_IsOK(res2)) { | |
15521 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15522 | } | |
15523 | if (!argp2) { | |
15524 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15525 | } | |
15526 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15527 | { | |
15528 | arg3 = &temp3; | |
15529 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15530 | } | |
15531 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15532 | if (!SWIG_IsOK(ecode4)) { | |
15533 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15534 | } | |
15535 | arg4 = static_cast< size_t >(val4); | |
15536 | { | |
15537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15538 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15539 | wxPyEndAllowThreads(__tstate); | |
15540 | if (PyErr_Occurred()) SWIG_fail; | |
15541 | } | |
15542 | resultobj = SWIG_Py_Void(); | |
15543 | return resultobj; | |
15544 | fail: | |
15545 | return NULL; | |
15546 | } | |
15547 | ||
15548 | ||
0085ce49 RD |
15549 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15550 | PyObject *obj; | |
15551 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15552 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15553 | return SWIG_Py_Void(); | |
15554 | } | |
15555 | ||
15556 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15557 | return SWIG_Python_InitShadowInstance(args); | |
15558 | } | |
15559 | ||
15560 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15561 | PyObject *resultobj = 0; | |
15562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15563 | int arg2 = (int) wxID_ANY ; | |
15564 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15565 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15566 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15567 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15568 | long arg5 = (long) 0 ; | |
15569 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15570 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15571 | wxPyHtmlListBox *result = 0 ; | |
15572 | void *argp1 = 0 ; | |
15573 | int res1 = 0 ; | |
15574 | int val2 ; | |
15575 | int ecode2 = 0 ; | |
15576 | wxPoint temp3 ; | |
15577 | wxSize temp4 ; | |
15578 | long val5 ; | |
15579 | int ecode5 = 0 ; | |
15580 | bool temp6 = false ; | |
15581 | PyObject * obj0 = 0 ; | |
15582 | PyObject * obj1 = 0 ; | |
15583 | PyObject * obj2 = 0 ; | |
15584 | PyObject * obj3 = 0 ; | |
15585 | PyObject * obj4 = 0 ; | |
15586 | PyObject * obj5 = 0 ; | |
15587 | char * kwnames[] = { | |
15588 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15589 | }; | |
15590 | ||
15591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15593 | if (!SWIG_IsOK(res1)) { | |
15594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15595 | } | |
15596 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15597 | if (obj1) { | |
15598 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15599 | if (!SWIG_IsOK(ecode2)) { | |
15600 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15601 | } | |
15602 | arg2 = static_cast< int >(val2); | |
15603 | } | |
15604 | if (obj2) { | |
093d3ff1 | 15605 | { |
0085ce49 RD |
15606 | arg3 = &temp3; |
15607 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 15608 | } |
0085ce49 RD |
15609 | } |
15610 | if (obj3) { | |
d14a1e28 | 15611 | { |
0085ce49 RD |
15612 | arg4 = &temp4; |
15613 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15614 | } |
0085ce49 RD |
15615 | } |
15616 | if (obj4) { | |
15617 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15618 | if (!SWIG_IsOK(ecode5)) { | |
15619 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15620 | } | |
15621 | arg5 = static_cast< long >(val5); | |
15622 | } | |
15623 | if (obj5) { | |
d14a1e28 | 15624 | { |
0085ce49 RD |
15625 | arg6 = wxString_in_helper(obj5); |
15626 | if (arg6 == NULL) SWIG_fail; | |
15627 | temp6 = true; | |
15628 | } | |
15629 | } | |
15630 | { | |
15631 | if (!wxPyCheckForApp()) SWIG_fail; | |
15632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15633 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15634 | wxPyEndAllowThreads(__tstate); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | } | |
15637 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15638 | { | |
15639 | if (temp6) | |
15640 | delete arg6; | |
15641 | } | |
15642 | return resultobj; | |
15643 | fail: | |
15644 | { | |
15645 | if (temp6) | |
15646 | delete arg6; | |
15647 | } | |
15648 | return NULL; | |
d14a1e28 RD |
15649 | } |
15650 | ||
15651 | ||
0085ce49 RD |
15652 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15653 | PyObject *resultobj = 0; | |
15654 | wxPyHtmlListBox *result = 0 ; | |
15655 | ||
15656 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15657 | { | |
15658 | if (!wxPyCheckForApp()) SWIG_fail; | |
15659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15660 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15661 | wxPyEndAllowThreads(__tstate); | |
15662 | if (PyErr_Occurred()) SWIG_fail; | |
15663 | } | |
15664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15665 | return resultobj; | |
15666 | fail: | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
15671 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15672 | PyObject *resultobj = 0; | |
15673 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15674 | PyObject *arg2 = (PyObject *) 0 ; | |
15675 | PyObject *arg3 = (PyObject *) 0 ; | |
15676 | void *argp1 = 0 ; | |
15677 | int res1 = 0 ; | |
15678 | PyObject * obj0 = 0 ; | |
15679 | PyObject * obj1 = 0 ; | |
15680 | PyObject * obj2 = 0 ; | |
15681 | char * kwnames[] = { | |
15682 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15683 | }; | |
15684 | ||
15685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15687 | if (!SWIG_IsOK(res1)) { | |
15688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15689 | } | |
15690 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15691 | arg2 = obj1; | |
15692 | arg3 = obj2; | |
15693 | { | |
15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15695 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | resultobj = SWIG_Py_Void(); | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj = 0; | |
15708 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15709 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15710 | int arg3 = (int) wxID_ANY ; | |
15711 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15712 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15713 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15714 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15715 | long arg6 = (long) 0 ; | |
15716 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15717 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15718 | bool result; | |
15719 | void *argp1 = 0 ; | |
15720 | int res1 = 0 ; | |
15721 | void *argp2 = 0 ; | |
15722 | int res2 = 0 ; | |
15723 | int val3 ; | |
15724 | int ecode3 = 0 ; | |
15725 | wxPoint temp4 ; | |
15726 | wxSize temp5 ; | |
15727 | long val6 ; | |
15728 | int ecode6 = 0 ; | |
15729 | bool temp7 = false ; | |
15730 | PyObject * obj0 = 0 ; | |
15731 | PyObject * obj1 = 0 ; | |
15732 | PyObject * obj2 = 0 ; | |
15733 | PyObject * obj3 = 0 ; | |
15734 | PyObject * obj4 = 0 ; | |
15735 | PyObject * obj5 = 0 ; | |
15736 | PyObject * obj6 = 0 ; | |
15737 | char * kwnames[] = { | |
15738 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15739 | }; | |
15740 | ||
15741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15743 | if (!SWIG_IsOK(res1)) { | |
15744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15745 | } | |
15746 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15747 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15748 | if (!SWIG_IsOK(res2)) { | |
15749 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15750 | } | |
15751 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15752 | if (obj2) { | |
15753 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15754 | if (!SWIG_IsOK(ecode3)) { | |
15755 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15756 | } | |
15757 | arg3 = static_cast< int >(val3); | |
15758 | } | |
15759 | if (obj3) { | |
093d3ff1 | 15760 | { |
0085ce49 RD |
15761 | arg4 = &temp4; |
15762 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15763 | } |
0085ce49 RD |
15764 | } |
15765 | if (obj4) { | |
d14a1e28 | 15766 | { |
0085ce49 RD |
15767 | arg5 = &temp5; |
15768 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15769 | } |
0085ce49 RD |
15770 | } |
15771 | if (obj5) { | |
15772 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15773 | if (!SWIG_IsOK(ecode6)) { | |
15774 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15775 | } | |
15776 | arg6 = static_cast< long >(val6); | |
15777 | } | |
15778 | if (obj6) { | |
093d3ff1 | 15779 | { |
0085ce49 RD |
15780 | arg7 = wxString_in_helper(obj6); |
15781 | if (arg7 == NULL) SWIG_fail; | |
15782 | temp7 = true; | |
093d3ff1 | 15783 | } |
0085ce49 RD |
15784 | } |
15785 | { | |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15787 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15791 | { | |
15792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15793 | } | |
15794 | { | |
15795 | if (temp7) | |
15796 | delete arg7; | |
15797 | } | |
15798 | return resultobj; | |
15799 | fail: | |
15800 | { | |
15801 | if (temp7) | |
15802 | delete arg7; | |
15803 | } | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
15808 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15809 | PyObject *resultobj = 0; | |
15810 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15811 | size_t arg2 ; | |
15812 | void *argp1 = 0 ; | |
15813 | int res1 = 0 ; | |
15814 | size_t val2 ; | |
15815 | int ecode2 = 0 ; | |
15816 | PyObject * obj0 = 0 ; | |
15817 | PyObject * obj1 = 0 ; | |
15818 | char * kwnames[] = { | |
15819 | (char *) "self",(char *) "count", NULL | |
15820 | }; | |
15821 | ||
15822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15824 | if (!SWIG_IsOK(res1)) { | |
15825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15826 | } | |
15827 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15828 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15829 | if (!SWIG_IsOK(ecode2)) { | |
15830 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15831 | } | |
15832 | arg2 = static_cast< size_t >(val2); | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | (arg1)->SetItemCount(arg2); | |
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | resultobj = SWIG_Py_Void(); | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
d14a1e28 RD |
15843 | } |
15844 | ||
15845 | ||
0085ce49 RD |
15846 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15847 | PyObject *resultobj = 0; | |
15848 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15849 | wxFileSystem *result = 0 ; | |
15850 | void *argp1 = 0 ; | |
15851 | int res1 = 0 ; | |
15852 | PyObject *swig_obj[1] ; | |
15853 | ||
15854 | if (!args) SWIG_fail; | |
15855 | swig_obj[0] = args; | |
15856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15857 | if (!SWIG_IsOK(res1)) { | |
15858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15859 | } | |
15860 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15861 | { | |
15862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15863 | { |
0085ce49 RD |
15864 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15865 | result = (wxFileSystem *) &_result_ref; | |
994141e6 | 15866 | } |
0085ce49 RD |
15867 | wxPyEndAllowThreads(__tstate); |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15871 | return resultobj; | |
15872 | fail: | |
15873 | return NULL; | |
d14a1e28 RD |
15874 | } |
15875 | ||
15876 | ||
e9d6f3a4 RD |
15877 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15878 | PyObject *resultobj = 0; | |
15879 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15880 | size_t arg2 ; | |
15881 | wxHtmlLinkInfo *arg3 = 0 ; | |
15882 | void *argp1 = 0 ; | |
15883 | int res1 = 0 ; | |
15884 | size_t val2 ; | |
15885 | int ecode2 = 0 ; | |
15886 | void *argp3 = 0 ; | |
15887 | int res3 = 0 ; | |
15888 | PyObject * obj0 = 0 ; | |
15889 | PyObject * obj1 = 0 ; | |
15890 | PyObject * obj2 = 0 ; | |
15891 | char * kwnames[] = { | |
15892 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15893 | }; | |
15894 | ||
15895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15897 | if (!SWIG_IsOK(res1)) { | |
15898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15899 | } | |
15900 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15901 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15902 | if (!SWIG_IsOK(ecode2)) { | |
15903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15904 | } | |
15905 | arg2 = static_cast< size_t >(val2); | |
15906 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15907 | if (!SWIG_IsOK(res3)) { | |
15908 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15909 | } | |
15910 | if (!argp3) { | |
15911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15912 | } | |
15913 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | resultobj = SWIG_Py_Void(); | |
15921 | return resultobj; | |
15922 | fail: | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
0085ce49 RD |
15927 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15928 | PyObject *obj; | |
15929 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15930 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15931 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15932 | } |
15933 | ||
0085ce49 RD |
15934 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15935 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15936 | } |
15937 | ||
f9bf356b RD |
15938 | SWIGINTERN int SimpleHtmlListBoxNameStr_set(PyObject *) { |
15939 | SWIG_Error(SWIG_AttributeError,"Variable SimpleHtmlListBoxNameStr is read-only."); | |
15940 | return 1; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | SWIGINTERN PyObject *SimpleHtmlListBoxNameStr_get(void) { | |
15945 | PyObject *pyobj = 0; | |
15946 | ||
15947 | { | |
15948 | #if wxUSE_UNICODE | |
15949 | pyobj = PyUnicode_FromWideChar((&wxPySimpleHtmlListBoxNameStr)->c_str(), (&wxPySimpleHtmlListBoxNameStr)->Len()); | |
15950 | #else | |
15951 | pyobj = PyString_FromStringAndSize((&wxPySimpleHtmlListBoxNameStr)->c_str(), (&wxPySimpleHtmlListBoxNameStr)->Len()); | |
15952 | #endif | |
15953 | } | |
15954 | return pyobj; | |
15955 | } | |
15956 | ||
15957 | ||
15958 | SWIGINTERN PyObject *_wrap_new_SimpleHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15959 | PyObject *resultobj = 0; | |
15960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15961 | int arg2 = (int) -1 ; | |
15962 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15963 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15964 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15965 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15966 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
15967 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
15968 | long arg6 = (long) wxHLB_DEFAULT_STYLE ; | |
15969 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15970 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15971 | wxString const &arg8_defvalue = wxPySimpleHtmlListBoxNameStr ; | |
15972 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15973 | wxSimpleHtmlListBox *result = 0 ; | |
15974 | void *argp1 = 0 ; | |
15975 | int res1 = 0 ; | |
15976 | int val2 ; | |
15977 | int ecode2 = 0 ; | |
15978 | wxPoint temp3 ; | |
15979 | wxSize temp4 ; | |
15980 | bool temp5 = false ; | |
15981 | long val6 ; | |
15982 | int ecode6 = 0 ; | |
15983 | void *argp7 = 0 ; | |
15984 | int res7 = 0 ; | |
15985 | bool temp8 = false ; | |
15986 | PyObject * obj0 = 0 ; | |
15987 | PyObject * obj1 = 0 ; | |
15988 | PyObject * obj2 = 0 ; | |
15989 | PyObject * obj3 = 0 ; | |
15990 | PyObject * obj4 = 0 ; | |
15991 | PyObject * obj5 = 0 ; | |
15992 | PyObject * obj6 = 0 ; | |
15993 | PyObject * obj7 = 0 ; | |
15994 | char * kwnames[] = { | |
15995 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15996 | }; | |
15997 | ||
15998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SimpleHtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
15999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16000 | if (!SWIG_IsOK(res1)) { | |
16001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimpleHtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16002 | } | |
16003 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16004 | if (obj1) { | |
16005 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16006 | if (!SWIG_IsOK(ecode2)) { | |
16007 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SimpleHtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
16008 | } | |
16009 | arg2 = static_cast< int >(val2); | |
16010 | } | |
16011 | if (obj2) { | |
16012 | { | |
16013 | arg3 = &temp3; | |
16014 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16015 | } | |
16016 | } | |
16017 | if (obj3) { | |
16018 | { | |
16019 | arg4 = &temp4; | |
16020 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16021 | } | |
16022 | } | |
16023 | if (obj4) { | |
16024 | { | |
16025 | if (! PySequence_Check(obj4)) { | |
16026 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16027 | SWIG_fail; | |
16028 | } | |
16029 | arg5 = new wxArrayString; | |
16030 | temp5 = true; | |
16031 | int i, len=PySequence_Length(obj4); | |
16032 | for (i=0; i<len; i++) { | |
16033 | PyObject* item = PySequence_GetItem(obj4, i); | |
16034 | wxString* s = wxString_in_helper(item); | |
16035 | if (PyErr_Occurred()) SWIG_fail; | |
16036 | arg5->Add(*s); | |
16037 | delete s; | |
16038 | Py_DECREF(item); | |
16039 | } | |
16040 | } | |
16041 | } | |
16042 | if (obj5) { | |
16043 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
16044 | if (!SWIG_IsOK(ecode6)) { | |
16045 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SimpleHtmlListBox" "', expected argument " "6"" of type '" "long""'"); | |
16046 | } | |
16047 | arg6 = static_cast< long >(val6); | |
16048 | } | |
16049 | if (obj6) { | |
16050 | res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0); | |
16051 | if (!SWIG_IsOK(res7)) { | |
16052 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SimpleHtmlListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
16053 | } | |
16054 | if (!argp7) { | |
16055 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimpleHtmlListBox" "', expected argument " "7"" of type '" "wxValidator const &""'"); | |
16056 | } | |
16057 | arg7 = reinterpret_cast< wxValidator * >(argp7); | |
16058 | } | |
16059 | if (obj7) { | |
16060 | { | |
16061 | arg8 = wxString_in_helper(obj7); | |
16062 | if (arg8 == NULL) SWIG_fail; | |
16063 | temp8 = true; | |
16064 | } | |
16065 | } | |
16066 | { | |
16067 | if (!wxPyCheckForApp()) SWIG_fail; | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | result = (wxSimpleHtmlListBox *)new wxSimpleHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
16073 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
16074 | { | |
16075 | if (temp5) delete arg5; | |
16076 | } | |
16077 | { | |
16078 | if (temp8) | |
16079 | delete arg8; | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | { | |
16084 | if (temp5) delete arg5; | |
16085 | } | |
16086 | { | |
16087 | if (temp8) | |
16088 | delete arg8; | |
16089 | } | |
16090 | return NULL; | |
16091 | } | |
16092 | ||
16093 | ||
16094 | SWIGINTERN PyObject *_wrap_new_PreSimpleHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16095 | PyObject *resultobj = 0; | |
16096 | wxSimpleHtmlListBox *result = 0 ; | |
16097 | ||
16098 | if (!SWIG_Python_UnpackTuple(args,"new_PreSimpleHtmlListBox",0,0,0)) SWIG_fail; | |
16099 | { | |
16100 | if (!wxPyCheckForApp()) SWIG_fail; | |
16101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16102 | result = (wxSimpleHtmlListBox *)new wxSimpleHtmlListBox(); | |
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | SWIGINTERN PyObject *_wrap_SimpleHtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16114 | PyObject *resultobj = 0; | |
16115 | wxSimpleHtmlListBox *arg1 = (wxSimpleHtmlListBox *) 0 ; | |
16116 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16117 | int arg3 = (int) -1 ; | |
16118 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
16119 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
16120 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
16121 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
16122 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
16123 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
16124 | long arg7 = (long) wxHLB_DEFAULT_STYLE ; | |
16125 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
16126 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
16127 | wxString const &arg9_defvalue = wxPySimpleHtmlListBoxNameStr ; | |
16128 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16129 | bool result; | |
16130 | void *argp1 = 0 ; | |
16131 | int res1 = 0 ; | |
16132 | void *argp2 = 0 ; | |
16133 | int res2 = 0 ; | |
16134 | int val3 ; | |
16135 | int ecode3 = 0 ; | |
16136 | wxPoint temp4 ; | |
16137 | wxSize temp5 ; | |
16138 | bool temp6 = false ; | |
16139 | long val7 ; | |
16140 | int ecode7 = 0 ; | |
16141 | void *argp8 = 0 ; | |
16142 | int res8 = 0 ; | |
16143 | bool temp9 = false ; | |
16144 | PyObject * obj0 = 0 ; | |
16145 | PyObject * obj1 = 0 ; | |
16146 | PyObject * obj2 = 0 ; | |
16147 | PyObject * obj3 = 0 ; | |
16148 | PyObject * obj4 = 0 ; | |
16149 | PyObject * obj5 = 0 ; | |
16150 | PyObject * obj6 = 0 ; | |
16151 | PyObject * obj7 = 0 ; | |
16152 | PyObject * obj8 = 0 ; | |
16153 | char * kwnames[] = { | |
16154 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16155 | }; | |
16156 | ||
16157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SimpleHtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
16158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSimpleHtmlListBox, 0 | 0 ); | |
16159 | if (!SWIG_IsOK(res1)) { | |
16160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimpleHtmlListBox_Create" "', expected argument " "1"" of type '" "wxSimpleHtmlListBox *""'"); | |
16161 | } | |
16162 | arg1 = reinterpret_cast< wxSimpleHtmlListBox * >(argp1); | |
16163 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16164 | if (!SWIG_IsOK(res2)) { | |
16165 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimpleHtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
16166 | } | |
16167 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
16168 | if (obj2) { | |
16169 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16170 | if (!SWIG_IsOK(ecode3)) { | |
16171 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SimpleHtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
16172 | } | |
16173 | arg3 = static_cast< int >(val3); | |
16174 | } | |
16175 | if (obj3) { | |
16176 | { | |
16177 | arg4 = &temp4; | |
16178 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
16179 | } | |
16180 | } | |
16181 | if (obj4) { | |
16182 | { | |
16183 | arg5 = &temp5; | |
16184 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
16185 | } | |
16186 | } | |
16187 | if (obj5) { | |
16188 | { | |
16189 | if (! PySequence_Check(obj5)) { | |
16190 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
16191 | SWIG_fail; | |
16192 | } | |
16193 | arg6 = new wxArrayString; | |
16194 | temp6 = true; | |
16195 | int i, len=PySequence_Length(obj5); | |
16196 | for (i=0; i<len; i++) { | |
16197 | PyObject* item = PySequence_GetItem(obj5, i); | |
16198 | wxString* s = wxString_in_helper(item); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | arg6->Add(*s); | |
16201 | delete s; | |
16202 | Py_DECREF(item); | |
16203 | } | |
16204 | } | |
16205 | } | |
16206 | if (obj6) { | |
16207 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
16208 | if (!SWIG_IsOK(ecode7)) { | |
16209 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SimpleHtmlListBox_Create" "', expected argument " "7"" of type '" "long""'"); | |
16210 | } | |
16211 | arg7 = static_cast< long >(val7); | |
16212 | } | |
16213 | if (obj7) { | |
16214 | res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0); | |
16215 | if (!SWIG_IsOK(res8)) { | |
16216 | SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SimpleHtmlListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
16217 | } | |
16218 | if (!argp8) { | |
16219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimpleHtmlListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'"); | |
16220 | } | |
16221 | arg8 = reinterpret_cast< wxValidator * >(argp8); | |
16222 | } | |
16223 | if (obj8) { | |
16224 | { | |
16225 | arg9 = wxString_in_helper(obj8); | |
16226 | if (arg9 == NULL) SWIG_fail; | |
16227 | temp9 = true; | |
16228 | } | |
16229 | } | |
16230 | { | |
16231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16232 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
16233 | wxPyEndAllowThreads(__tstate); | |
16234 | if (PyErr_Occurred()) SWIG_fail; | |
16235 | } | |
16236 | { | |
16237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16238 | } | |
16239 | { | |
16240 | if (temp6) delete arg6; | |
16241 | } | |
16242 | { | |
16243 | if (temp9) | |
16244 | delete arg9; | |
16245 | } | |
16246 | return resultobj; | |
16247 | fail: | |
16248 | { | |
16249 | if (temp6) delete arg6; | |
16250 | } | |
16251 | { | |
16252 | if (temp9) | |
16253 | delete arg9; | |
16254 | } | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
16259 | SWIGINTERN PyObject *SimpleHtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16260 | PyObject *obj; | |
16261 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16262 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHtmlListBox, SWIG_NewClientData(obj)); | |
16263 | return SWIG_Py_Void(); | |
16264 | } | |
16265 | ||
16266 | SWIGINTERN PyObject *SimpleHtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16267 | return SWIG_Python_InitShadowInstance(args); | |
16268 | } | |
16269 | ||
0085ce49 RD |
16270 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16271 | PyObject *resultobj = 0; | |
16272 | wxPyTaskBarIcon *result = 0 ; | |
16273 | ||
16274 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
16275 | { | |
16276 | if (!wxPyCheckForApp()) SWIG_fail; | |
16277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16278 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
16279 | wxPyEndAllowThreads(__tstate); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
16282 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
16283 | return resultobj; | |
16284 | fail: | |
16285 | return NULL; | |
d14a1e28 RD |
16286 | } |
16287 | ||
16288 | ||
0085ce49 RD |
16289 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16290 | PyObject *resultobj = 0; | |
16291 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16292 | void *argp1 = 0 ; | |
16293 | int res1 = 0 ; | |
16294 | PyObject *swig_obj[1] ; | |
16295 | ||
16296 | if (!args) SWIG_fail; | |
16297 | swig_obj[0] = args; | |
16298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
16299 | if (!SWIG_IsOK(res1)) { | |
16300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16301 | } | |
16302 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16303 | { | |
16304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16305 | delete arg1; | |
16306 | ||
16307 | wxPyEndAllowThreads(__tstate); | |
16308 | if (PyErr_Occurred()) SWIG_fail; | |
16309 | } | |
16310 | resultobj = SWIG_Py_Void(); | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj = 0; | |
16319 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16320 | PyObject *arg2 = (PyObject *) 0 ; | |
16321 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 16322 | int arg4 = (int) 0 ; |
0085ce49 RD |
16323 | void *argp1 = 0 ; |
16324 | int res1 = 0 ; | |
16325 | int val4 ; | |
16326 | int ecode4 = 0 ; | |
16327 | PyObject * obj0 = 0 ; | |
16328 | PyObject * obj1 = 0 ; | |
16329 | PyObject * obj2 = 0 ; | |
16330 | PyObject * obj3 = 0 ; | |
16331 | char * kwnames[] = { | |
16332 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
16333 | }; | |
16334 | ||
c25f90f6 | 16335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
16336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); |
16337 | if (!SWIG_IsOK(res1)) { | |
16338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16339 | } | |
16340 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16341 | arg2 = obj1; | |
16342 | arg3 = obj2; | |
c25f90f6 RD |
16343 | if (obj3) { |
16344 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16345 | if (!SWIG_IsOK(ecode4)) { | |
16346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
16347 | } | |
16348 | arg4 = static_cast< int >(val4); | |
16349 | } | |
0085ce49 RD |
16350 | { |
16351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16352 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16353 | wxPyEndAllowThreads(__tstate); | |
16354 | if (PyErr_Occurred()) SWIG_fail; | |
16355 | } | |
16356 | resultobj = SWIG_Py_Void(); | |
16357 | return resultobj; | |
16358 | fail: | |
16359 | return NULL; | |
d14a1e28 RD |
16360 | } |
16361 | ||
16362 | ||
0085ce49 RD |
16363 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16364 | PyObject *resultobj = 0; | |
16365 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16366 | void *argp1 = 0 ; | |
16367 | int res1 = 0 ; | |
16368 | PyObject *swig_obj[1] ; | |
16369 | ||
16370 | if (!args) SWIG_fail; | |
16371 | swig_obj[0] = args; | |
16372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16373 | if (!SWIG_IsOK(res1)) { | |
16374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16375 | } | |
16376 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16377 | { | |
16378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16379 | wxPyTaskBarIcon_Destroy(arg1); | |
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
16383 | resultobj = SWIG_Py_Void(); | |
16384 | return resultobj; | |
16385 | fail: | |
16386 | return NULL; | |
d14a1e28 RD |
16387 | } |
16388 | ||
16389 | ||
0085ce49 RD |
16390 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16391 | PyObject *resultobj = 0; | |
16392 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16393 | bool result; | |
16394 | void *argp1 = 0 ; | |
16395 | int res1 = 0 ; | |
16396 | PyObject *swig_obj[1] ; | |
16397 | ||
16398 | if (!args) SWIG_fail; | |
16399 | swig_obj[0] = args; | |
16400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16401 | if (!SWIG_IsOK(res1)) { | |
16402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16403 | } | |
16404 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16405 | { | |
16406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16407 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16413 | } | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
d14a1e28 RD |
16417 | } |
16418 | ||
16419 | ||
0085ce49 RD |
16420 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16421 | PyObject *resultobj = 0; | |
16422 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16423 | bool result; | |
16424 | void *argp1 = 0 ; | |
16425 | int res1 = 0 ; | |
16426 | PyObject *swig_obj[1] ; | |
16427 | ||
16428 | if (!args) SWIG_fail; | |
16429 | swig_obj[0] = args; | |
16430 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16431 | if (!SWIG_IsOK(res1)) { | |
16432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16433 | } | |
16434 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16435 | { | |
16436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16437 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
16438 | wxPyEndAllowThreads(__tstate); | |
16439 | if (PyErr_Occurred()) SWIG_fail; | |
16440 | } | |
16441 | { | |
16442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16443 | } | |
16444 | return resultobj; | |
16445 | fail: | |
16446 | return NULL; | |
16447 | } | |
16448 | ||
16449 | ||
16450 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16451 | PyObject *resultobj = 0; | |
16452 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16453 | wxIcon *arg2 = 0 ; | |
16454 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16455 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16456 | bool result; | |
16457 | void *argp1 = 0 ; | |
16458 | int res1 = 0 ; | |
16459 | void *argp2 = 0 ; | |
16460 | int res2 = 0 ; | |
16461 | bool temp3 = false ; | |
16462 | PyObject * obj0 = 0 ; | |
16463 | PyObject * obj1 = 0 ; | |
16464 | PyObject * obj2 = 0 ; | |
16465 | char * kwnames[] = { | |
16466 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
16467 | }; | |
16468 | ||
16469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16471 | if (!SWIG_IsOK(res1)) { | |
16472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16473 | } | |
16474 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16475 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16476 | if (!SWIG_IsOK(res2)) { | |
16477 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16478 | } | |
16479 | if (!argp2) { | |
16480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16481 | } | |
16482 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16483 | if (obj2) { | |
093d3ff1 | 16484 | { |
0085ce49 RD |
16485 | arg3 = wxString_in_helper(obj2); |
16486 | if (arg3 == NULL) SWIG_fail; | |
16487 | temp3 = true; | |
093d3ff1 | 16488 | } |
0085ce49 RD |
16489 | } |
16490 | { | |
16491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16492 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
16493 | wxPyEndAllowThreads(__tstate); | |
16494 | if (PyErr_Occurred()) SWIG_fail; | |
16495 | } | |
16496 | { | |
16497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16498 | } | |
16499 | { | |
16500 | if (temp3) | |
16501 | delete arg3; | |
16502 | } | |
16503 | return resultobj; | |
16504 | fail: | |
16505 | { | |
16506 | if (temp3) | |
16507 | delete arg3; | |
16508 | } | |
16509 | return NULL; | |
d14a1e28 RD |
16510 | } |
16511 | ||
16512 | ||
0085ce49 RD |
16513 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16514 | PyObject *resultobj = 0; | |
16515 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16516 | bool result; | |
16517 | void *argp1 = 0 ; | |
16518 | int res1 = 0 ; | |
16519 | PyObject *swig_obj[1] ; | |
16520 | ||
16521 | if (!args) SWIG_fail; | |
16522 | swig_obj[0] = args; | |
16523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16524 | if (!SWIG_IsOK(res1)) { | |
16525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16526 | } | |
16527 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16528 | { | |
16529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16530 | result = (bool)(arg1)->RemoveIcon(); | |
16531 | wxPyEndAllowThreads(__tstate); | |
16532 | if (PyErr_Occurred()) SWIG_fail; | |
16533 | } | |
16534 | { | |
16535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16536 | } | |
16537 | return resultobj; | |
16538 | fail: | |
16539 | return NULL; | |
16540 | } | |
16541 | ||
16542 | ||
16543 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16544 | PyObject *resultobj = 0; | |
16545 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16546 | wxMenu *arg2 = (wxMenu *) 0 ; | |
16547 | bool result; | |
16548 | void *argp1 = 0 ; | |
16549 | int res1 = 0 ; | |
16550 | void *argp2 = 0 ; | |
16551 | int res2 = 0 ; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | PyObject * obj1 = 0 ; | |
16554 | char * kwnames[] = { | |
16555 | (char *) "self",(char *) "menu", NULL | |
16556 | }; | |
16557 | ||
16558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
16559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16560 | if (!SWIG_IsOK(res1)) { | |
16561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16562 | } | |
16563 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16564 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
16565 | if (!SWIG_IsOK(res2)) { | |
16566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
16567 | } | |
16568 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
16569 | { | |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16571 | result = (bool)(arg1)->PopupMenu(arg2); | |
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | { | |
16576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16577 | } | |
16578 | return resultobj; | |
16579 | fail: | |
16580 | return NULL; | |
d14a1e28 RD |
16581 | } |
16582 | ||
16583 | ||
0085ce49 RD |
16584 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16585 | PyObject *obj; | |
16586 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16587 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
16588 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16589 | } |
16590 | ||
0085ce49 RD |
16591 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16592 | return SWIG_Python_InitShadowInstance(args); | |
16593 | } | |
d14a1e28 | 16594 | |
0085ce49 RD |
16595 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16596 | PyObject *resultobj = 0; | |
16597 | wxEventType arg1 ; | |
16598 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
16599 | wxTaskBarIconEvent *result = 0 ; | |
16600 | int val1 ; | |
16601 | int ecode1 = 0 ; | |
16602 | void *argp2 = 0 ; | |
16603 | int res2 = 0 ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | char * kwnames[] = { | |
16607 | (char *) "evtType",(char *) "tbIcon", NULL | |
16608 | }; | |
16609 | ||
16610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
16611 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16612 | if (!SWIG_IsOK(ecode1)) { | |
16613 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
16614 | } | |
16615 | arg1 = static_cast< wxEventType >(val1); | |
16616 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
16617 | if (!SWIG_IsOK(res2)) { | |
16618 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
16619 | } | |
16620 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
16621 | { | |
16622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16623 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
16627 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | return NULL; | |
d14a1e28 RD |
16631 | } |
16632 | ||
16633 | ||
0085ce49 RD |
16634 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16635 | PyObject *obj; | |
16636 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16637 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
16638 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16639 | } |
16640 | ||
0085ce49 RD |
16641 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16642 | return SWIG_Python_InitShadowInstance(args); | |
16643 | } | |
d14a1e28 | 16644 | |
0085ce49 RD |
16645 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
16646 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
16647 | return 1; | |
d14a1e28 RD |
16648 | } |
16649 | ||
16650 | ||
0085ce49 RD |
16651 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
16652 | PyObject *pyobj = 0; | |
16653 | ||
16654 | { | |
16655 | #if wxUSE_UNICODE | |
16656 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16657 | #else | |
16658 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16659 | #endif | |
16660 | } | |
16661 | return pyobj; | |
d14a1e28 RD |
16662 | } |
16663 | ||
16664 | ||
0085ce49 RD |
16665 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
16666 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
16667 | return 1; | |
d14a1e28 RD |
16668 | } |
16669 | ||
16670 | ||
0085ce49 RD |
16671 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
16672 | PyObject *pyobj = 0; | |
16673 | ||
16674 | { | |
16675 | #if wxUSE_UNICODE | |
16676 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16677 | #else | |
16678 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16679 | #endif | |
16680 | } | |
16681 | return pyobj; | |
d14a1e28 RD |
16682 | } |
16683 | ||
16684 | ||
0085ce49 RD |
16685 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16686 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16687 | return 1; | |
d14a1e28 RD |
16688 | } |
16689 | ||
16690 | ||
0085ce49 RD |
16691 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16692 | PyObject *pyobj = 0; | |
16693 | ||
16694 | { | |
16695 | #if wxUSE_UNICODE | |
16696 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16697 | #else | |
16698 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16699 | #endif | |
16700 | } | |
16701 | return pyobj; | |
d14a1e28 RD |
16702 | } |
16703 | ||
16704 | ||
0085ce49 RD |
16705 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16706 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16707 | return 1; | |
d14a1e28 RD |
16708 | } |
16709 | ||
16710 | ||
0085ce49 RD |
16711 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16712 | PyObject *pyobj = 0; | |
16713 | ||
16714 | { | |
16715 | #if wxUSE_UNICODE | |
16716 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16717 | #else | |
16718 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16719 | #endif | |
16720 | } | |
16721 | return pyobj; | |
d14a1e28 RD |
16722 | } |
16723 | ||
16724 | ||
0085ce49 RD |
16725 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16726 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16727 | return 1; | |
d14a1e28 RD |
16728 | } |
16729 | ||
16730 | ||
0085ce49 RD |
16731 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16732 | PyObject *pyobj = 0; | |
16733 | ||
16734 | { | |
16735 | #if wxUSE_UNICODE | |
16736 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16737 | #else | |
16738 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16739 | #endif | |
16740 | } | |
16741 | return pyobj; | |
d14a1e28 RD |
16742 | } |
16743 | ||
16744 | ||
0085ce49 RD |
16745 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16746 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16747 | return 1; | |
d14a1e28 RD |
16748 | } |
16749 | ||
16750 | ||
0085ce49 RD |
16751 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16752 | PyObject *pyobj = 0; | |
16753 | ||
16754 | { | |
16755 | #if wxUSE_UNICODE | |
16756 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16757 | #else | |
16758 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16759 | #endif | |
16760 | } | |
16761 | return pyobj; | |
d14a1e28 RD |
16762 | } |
16763 | ||
16764 | ||
0085ce49 RD |
16765 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16766 | PyObject *resultobj = 0; | |
16767 | wxColourData *result = 0 ; | |
16768 | ||
16769 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16770 | { | |
16771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16772 | result = (wxColourData *)new wxColourData(); | |
16773 | wxPyEndAllowThreads(__tstate); | |
16774 | if (PyErr_Occurred()) SWIG_fail; | |
16775 | } | |
16776 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16777 | return resultobj; | |
16778 | fail: | |
16779 | return NULL; | |
d14a1e28 RD |
16780 | } |
16781 | ||
16782 | ||
0085ce49 RD |
16783 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16784 | PyObject *resultobj = 0; | |
16785 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16786 | void *argp1 = 0 ; | |
16787 | int res1 = 0 ; | |
16788 | PyObject *swig_obj[1] ; | |
16789 | ||
16790 | if (!args) SWIG_fail; | |
16791 | swig_obj[0] = args; | |
16792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16793 | if (!SWIG_IsOK(res1)) { | |
16794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16795 | } | |
16796 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16797 | { | |
16798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16799 | delete arg1; | |
d14a1e28 | 16800 | |
0085ce49 RD |
16801 | wxPyEndAllowThreads(__tstate); |
16802 | if (PyErr_Occurred()) SWIG_fail; | |
16803 | } | |
16804 | resultobj = SWIG_Py_Void(); | |
16805 | return resultobj; | |
16806 | fail: | |
16807 | return NULL; | |
d14a1e28 RD |
16808 | } |
16809 | ||
16810 | ||
0085ce49 RD |
16811 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16812 | PyObject *resultobj = 0; | |
16813 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16814 | bool result; | |
16815 | void *argp1 = 0 ; | |
16816 | int res1 = 0 ; | |
16817 | PyObject *swig_obj[1] ; | |
16818 | ||
16819 | if (!args) SWIG_fail; | |
16820 | swig_obj[0] = args; | |
16821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16822 | if (!SWIG_IsOK(res1)) { | |
16823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16824 | } | |
16825 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16826 | { | |
16827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16828 | result = (bool)(arg1)->GetChooseFull(); | |
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | { | |
16833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16834 | } | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | return NULL; | |
d14a1e28 RD |
16838 | } |
16839 | ||
16840 | ||
0085ce49 RD |
16841 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16842 | PyObject *resultobj = 0; | |
16843 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16844 | wxColour result; | |
16845 | void *argp1 = 0 ; | |
16846 | int res1 = 0 ; | |
16847 | PyObject *swig_obj[1] ; | |
16848 | ||
16849 | if (!args) SWIG_fail; | |
16850 | swig_obj[0] = args; | |
16851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16852 | if (!SWIG_IsOK(res1)) { | |
16853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16854 | } | |
16855 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16856 | { | |
16857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16858 | result = (arg1)->GetColour(); | |
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj = 0; | |
16871 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16872 | int arg2 ; | |
16873 | wxColour result; | |
16874 | void *argp1 = 0 ; | |
16875 | int res1 = 0 ; | |
16876 | int val2 ; | |
16877 | int ecode2 = 0 ; | |
16878 | PyObject * obj0 = 0 ; | |
16879 | PyObject * obj1 = 0 ; | |
16880 | char * kwnames[] = { | |
16881 | (char *) "self",(char *) "i", NULL | |
16882 | }; | |
16883 | ||
16884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16886 | if (!SWIG_IsOK(res1)) { | |
16887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16888 | } | |
16889 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16890 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16891 | if (!SWIG_IsOK(ecode2)) { | |
16892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16893 | } | |
16894 | arg2 = static_cast< int >(val2); | |
16895 | { | |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16897 | result = (arg1)->GetCustomColour(arg2); | |
16898 | wxPyEndAllowThreads(__tstate); | |
16899 | if (PyErr_Occurred()) SWIG_fail; | |
16900 | } | |
16901 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16902 | return resultobj; | |
16903 | fail: | |
16904 | return NULL; | |
16905 | } | |
16906 | ||
16907 | ||
16908 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16909 | PyObject *resultobj = 0; | |
16910 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16911 | int arg2 ; | |
16912 | void *argp1 = 0 ; | |
16913 | int res1 = 0 ; | |
16914 | int val2 ; | |
16915 | int ecode2 = 0 ; | |
16916 | PyObject * obj0 = 0 ; | |
16917 | PyObject * obj1 = 0 ; | |
16918 | char * kwnames[] = { | |
16919 | (char *) "self",(char *) "flag", NULL | |
16920 | }; | |
16921 | ||
16922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16924 | if (!SWIG_IsOK(res1)) { | |
16925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16926 | } | |
16927 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16928 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16929 | if (!SWIG_IsOK(ecode2)) { | |
16930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16931 | } | |
16932 | arg2 = static_cast< int >(val2); | |
16933 | { | |
16934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16935 | (arg1)->SetChooseFull(arg2); | |
16936 | wxPyEndAllowThreads(__tstate); | |
16937 | if (PyErr_Occurred()) SWIG_fail; | |
16938 | } | |
16939 | resultobj = SWIG_Py_Void(); | |
16940 | return resultobj; | |
16941 | fail: | |
16942 | return NULL; | |
16943 | } | |
16944 | ||
16945 | ||
16946 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16947 | PyObject *resultobj = 0; | |
16948 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16949 | wxColour *arg2 = 0 ; | |
16950 | void *argp1 = 0 ; | |
16951 | int res1 = 0 ; | |
16952 | wxColour temp2 ; | |
16953 | PyObject * obj0 = 0 ; | |
16954 | PyObject * obj1 = 0 ; | |
16955 | char * kwnames[] = { | |
16956 | (char *) "self",(char *) "colour", NULL | |
16957 | }; | |
16958 | ||
16959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16961 | if (!SWIG_IsOK(res1)) { | |
16962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16963 | } | |
16964 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16965 | { | |
16966 | arg2 = &temp2; | |
16967 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16968 | } | |
16969 | { | |
16970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16971 | (arg1)->SetColour((wxColour const &)*arg2); | |
16972 | wxPyEndAllowThreads(__tstate); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | resultobj = SWIG_Py_Void(); | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | return NULL; | |
16979 | } | |
16980 | ||
16981 | ||
16982 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16983 | PyObject *resultobj = 0; | |
16984 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16985 | int arg2 ; | |
16986 | wxColour *arg3 = 0 ; | |
16987 | void *argp1 = 0 ; | |
16988 | int res1 = 0 ; | |
16989 | int val2 ; | |
16990 | int ecode2 = 0 ; | |
16991 | wxColour temp3 ; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | PyObject * obj1 = 0 ; | |
16994 | PyObject * obj2 = 0 ; | |
16995 | char * kwnames[] = { | |
16996 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16997 | }; | |
16998 | ||
16999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
17001 | if (!SWIG_IsOK(res1)) { | |
17002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
17003 | } | |
17004 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
17005 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17006 | if (!SWIG_IsOK(ecode2)) { | |
17007 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
17008 | } | |
17009 | arg2 = static_cast< int >(val2); | |
17010 | { | |
17011 | arg3 = &temp3; | |
17012 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17013 | } | |
17014 | { | |
17015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17016 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
17017 | wxPyEndAllowThreads(__tstate); | |
17018 | if (PyErr_Occurred()) SWIG_fail; | |
17019 | } | |
17020 | resultobj = SWIG_Py_Void(); | |
17021 | return resultobj; | |
17022 | fail: | |
17023 | return NULL; | |
d14a1e28 RD |
17024 | } |
17025 | ||
17026 | ||
0085ce49 RD |
17027 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17028 | PyObject *obj; | |
17029 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17030 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
17031 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17032 | } |
17033 | ||
0085ce49 RD |
17034 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17035 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17036 | } |
17037 | ||
0085ce49 RD |
17038 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17039 | PyObject *resultobj = 0; | |
17040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17041 | wxColourData *arg2 = (wxColourData *) NULL ; | |
17042 | wxColourDialog *result = 0 ; | |
17043 | void *argp1 = 0 ; | |
17044 | int res1 = 0 ; | |
17045 | void *argp2 = 0 ; | |
17046 | int res2 = 0 ; | |
17047 | PyObject * obj0 = 0 ; | |
17048 | PyObject * obj1 = 0 ; | |
17049 | char * kwnames[] = { | |
17050 | (char *) "parent",(char *) "data", NULL | |
17051 | }; | |
17052 | ||
17053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
17054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17055 | if (!SWIG_IsOK(res1)) { | |
17056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17057 | } | |
17058 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17059 | if (obj1) { | |
17060 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
17061 | if (!SWIG_IsOK(res2)) { | |
17062 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
093d3ff1 | 17063 | } |
0085ce49 RD |
17064 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
17065 | } | |
17066 | { | |
17067 | if (!wxPyCheckForApp()) SWIG_fail; | |
17068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17069 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
17070 | wxPyEndAllowThreads(__tstate); | |
17071 | if (PyErr_Occurred()) SWIG_fail; | |
17072 | } | |
17073 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | return NULL; | |
d14a1e28 RD |
17077 | } |
17078 | ||
17079 | ||
0085ce49 RD |
17080 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17081 | PyObject *resultobj = 0; | |
17082 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
17083 | wxColourData *result = 0 ; | |
17084 | void *argp1 = 0 ; | |
17085 | int res1 = 0 ; | |
17086 | PyObject *swig_obj[1] ; | |
17087 | ||
17088 | if (!args) SWIG_fail; | |
17089 | swig_obj[0] = args; | |
17090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
17091 | if (!SWIG_IsOK(res1)) { | |
17092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
17093 | } | |
17094 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
17095 | { | |
17096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 17097 | { |
0085ce49 RD |
17098 | wxColourData &_result_ref = (arg1)->GetColourData(); |
17099 | result = (wxColourData *) &_result_ref; | |
d14a1e28 | 17100 | } |
0085ce49 RD |
17101 | wxPyEndAllowThreads(__tstate); |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
17103 | } | |
17104 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
17105 | return resultobj; | |
17106 | fail: | |
17107 | return NULL; | |
17108 | } | |
17109 | ||
17110 | ||
17111 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17112 | PyObject *obj; | |
17113 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17114 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
17115 | return SWIG_Py_Void(); | |
17116 | } | |
17117 | ||
17118 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17119 | return SWIG_Python_InitShadowInstance(args); | |
17120 | } | |
17121 | ||
17122 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17123 | PyObject *resultobj = 0; | |
17124 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
17125 | wxColour const &arg2_defvalue = wxNullColour ; | |
17126 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17127 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17128 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17129 | wxColour result; | |
17130 | void *argp1 = 0 ; | |
17131 | int res1 = 0 ; | |
17132 | wxColour temp2 ; | |
17133 | bool temp3 = false ; | |
17134 | PyObject * obj0 = 0 ; | |
17135 | PyObject * obj1 = 0 ; | |
17136 | PyObject * obj2 = 0 ; | |
17137 | char * kwnames[] = { | |
17138 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
17139 | }; | |
17140 | ||
17141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17142 | if (obj0) { | |
17143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17144 | if (!SWIG_IsOK(res1)) { | |
17145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
093d3ff1 | 17146 | } |
0085ce49 RD |
17147 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
17148 | } | |
17149 | if (obj1) { | |
d14a1e28 | 17150 | { |
0085ce49 RD |
17151 | arg2 = &temp2; |
17152 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17153 | } | |
17154 | } | |
17155 | if (obj2) { | |
d14a1e28 | 17156 | { |
0085ce49 RD |
17157 | arg3 = wxString_in_helper(obj2); |
17158 | if (arg3 == NULL) SWIG_fail; | |
17159 | temp3 = true; | |
d14a1e28 | 17160 | } |
0085ce49 RD |
17161 | } |
17162 | { | |
17163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17164 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
17165 | wxPyEndAllowThreads(__tstate); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17169 | { | |
17170 | if (temp3) | |
17171 | delete arg3; | |
17172 | } | |
17173 | return resultobj; | |
17174 | fail: | |
17175 | { | |
17176 | if (temp3) | |
17177 | delete arg3; | |
17178 | } | |
17179 | return NULL; | |
17180 | } | |
17181 | ||
17182 | ||
17183 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17184 | PyObject *resultobj = 0; | |
17185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17186 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
17187 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17188 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17189 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
704eda0c | 17190 | long arg4 = (long) wxDD_DEFAULT_STYLE ; |
0085ce49 RD |
17191 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
17192 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
17193 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
17194 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
17195 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
17196 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17197 | wxDirDialog *result = 0 ; | |
17198 | void *argp1 = 0 ; | |
17199 | int res1 = 0 ; | |
17200 | bool temp2 = false ; | |
17201 | bool temp3 = false ; | |
17202 | long val4 ; | |
17203 | int ecode4 = 0 ; | |
17204 | wxPoint temp5 ; | |
17205 | wxSize temp6 ; | |
17206 | bool temp7 = false ; | |
17207 | PyObject * obj0 = 0 ; | |
17208 | PyObject * obj1 = 0 ; | |
17209 | PyObject * obj2 = 0 ; | |
17210 | PyObject * obj3 = 0 ; | |
17211 | PyObject * obj4 = 0 ; | |
17212 | PyObject * obj5 = 0 ; | |
17213 | PyObject * obj6 = 0 ; | |
17214 | char * kwnames[] = { | |
17215 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
17216 | }; | |
17217 | ||
17218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17220 | if (!SWIG_IsOK(res1)) { | |
17221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17222 | } | |
17223 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17224 | if (obj1) { | |
d14a1e28 | 17225 | { |
0085ce49 RD |
17226 | arg2 = wxString_in_helper(obj1); |
17227 | if (arg2 == NULL) SWIG_fail; | |
17228 | temp2 = true; | |
d14a1e28 | 17229 | } |
0085ce49 RD |
17230 | } |
17231 | if (obj2) { | |
4f89f6a3 | 17232 | { |
0085ce49 RD |
17233 | arg3 = wxString_in_helper(obj2); |
17234 | if (arg3 == NULL) SWIG_fail; | |
17235 | temp3 = true; | |
4f89f6a3 | 17236 | } |
0085ce49 RD |
17237 | } |
17238 | if (obj3) { | |
17239 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
17240 | if (!SWIG_IsOK(ecode4)) { | |
17241 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
17242 | } | |
17243 | arg4 = static_cast< long >(val4); | |
17244 | } | |
17245 | if (obj4) { | |
17246 | { | |
17247 | arg5 = &temp5; | |
17248 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 17249 | } |
0085ce49 RD |
17250 | } |
17251 | if (obj5) { | |
d14a1e28 | 17252 | { |
0085ce49 RD |
17253 | arg6 = &temp6; |
17254 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 17255 | } |
0085ce49 RD |
17256 | } |
17257 | if (obj6) { | |
4f89f6a3 | 17258 | { |
0085ce49 RD |
17259 | arg7 = wxString_in_helper(obj6); |
17260 | if (arg7 == NULL) SWIG_fail; | |
17261 | temp7 = true; | |
4f89f6a3 | 17262 | } |
0085ce49 RD |
17263 | } |
17264 | { | |
17265 | if (!wxPyCheckForApp()) SWIG_fail; | |
17266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17267 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
17271 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
17272 | { | |
17273 | if (temp2) | |
17274 | delete arg2; | |
17275 | } | |
17276 | { | |
17277 | if (temp3) | |
17278 | delete arg3; | |
17279 | } | |
17280 | { | |
17281 | if (temp7) | |
17282 | delete arg7; | |
17283 | } | |
17284 | return resultobj; | |
17285 | fail: | |
17286 | { | |
17287 | if (temp2) | |
17288 | delete arg2; | |
17289 | } | |
17290 | { | |
17291 | if (temp3) | |
17292 | delete arg3; | |
17293 | } | |
17294 | { | |
17295 | if (temp7) | |
17296 | delete arg7; | |
17297 | } | |
17298 | return NULL; | |
d14a1e28 RD |
17299 | } |
17300 | ||
17301 | ||
01f6b6d3 | 17302 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
17303 | PyObject *resultobj = 0; |
17304 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17305 | wxString result; | |
17306 | void *argp1 = 0 ; | |
17307 | int res1 = 0 ; | |
17308 | PyObject *swig_obj[1] ; | |
17309 | ||
17310 | if (!args) SWIG_fail; | |
17311 | swig_obj[0] = args; | |
17312 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17313 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 17314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); |
0085ce49 RD |
17315 | } |
17316 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17317 | { | |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 17319 | result = (arg1)->GetPath(); |
0085ce49 RD |
17320 | wxPyEndAllowThreads(__tstate); |
17321 | if (PyErr_Occurred()) SWIG_fail; | |
17322 | } | |
17323 | { | |
17324 | #if wxUSE_UNICODE | |
17325 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17326 | #else | |
17327 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17328 | #endif | |
17329 | } | |
17330 | return resultobj; | |
17331 | fail: | |
17332 | return NULL; | |
d14a1e28 RD |
17333 | } |
17334 | ||
17335 | ||
01f6b6d3 | 17336 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
17337 | PyObject *resultobj = 0; |
17338 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
01f6b6d3 | 17339 | wxString result; |
0085ce49 RD |
17340 | void *argp1 = 0 ; |
17341 | int res1 = 0 ; | |
17342 | PyObject *swig_obj[1] ; | |
17343 | ||
17344 | if (!args) SWIG_fail; | |
17345 | swig_obj[0] = args; | |
17346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17347 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 17348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); |
0085ce49 RD |
17349 | } |
17350 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17351 | { | |
17352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 17353 | result = (arg1)->GetMessage(); |
0085ce49 RD |
17354 | wxPyEndAllowThreads(__tstate); |
17355 | if (PyErr_Occurred()) SWIG_fail; | |
17356 | } | |
01f6b6d3 RD |
17357 | { |
17358 | #if wxUSE_UNICODE | |
17359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17360 | #else | |
17361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17362 | #endif | |
17363 | } | |
0085ce49 RD |
17364 | return resultobj; |
17365 | fail: | |
17366 | return NULL; | |
17367 | } | |
17368 | ||
17369 | ||
17370 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17371 | PyObject *resultobj = 0; | |
17372 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17373 | wxString *arg2 = 0 ; | |
17374 | void *argp1 = 0 ; | |
17375 | int res1 = 0 ; | |
17376 | bool temp2 = false ; | |
17377 | PyObject * obj0 = 0 ; | |
17378 | PyObject * obj1 = 0 ; | |
17379 | char * kwnames[] = { | |
17380 | (char *) "self",(char *) "message", NULL | |
17381 | }; | |
17382 | ||
17383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17385 | if (!SWIG_IsOK(res1)) { | |
17386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17387 | } | |
17388 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17389 | { | |
17390 | arg2 = wxString_in_helper(obj1); | |
17391 | if (arg2 == NULL) SWIG_fail; | |
17392 | temp2 = true; | |
17393 | } | |
17394 | { | |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | (arg1)->SetMessage((wxString const &)*arg2); | |
17397 | wxPyEndAllowThreads(__tstate); | |
17398 | if (PyErr_Occurred()) SWIG_fail; | |
17399 | } | |
17400 | resultobj = SWIG_Py_Void(); | |
17401 | { | |
17402 | if (temp2) | |
17403 | delete arg2; | |
17404 | } | |
17405 | return resultobj; | |
17406 | fail: | |
17407 | { | |
17408 | if (temp2) | |
17409 | delete arg2; | |
17410 | } | |
17411 | return NULL; | |
d14a1e28 RD |
17412 | } |
17413 | ||
17414 | ||
0085ce49 RD |
17415 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17416 | PyObject *resultobj = 0; | |
17417 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17418 | wxString *arg2 = 0 ; | |
17419 | void *argp1 = 0 ; | |
17420 | int res1 = 0 ; | |
17421 | bool temp2 = false ; | |
17422 | PyObject * obj0 = 0 ; | |
17423 | PyObject * obj1 = 0 ; | |
17424 | char * kwnames[] = { | |
17425 | (char *) "self",(char *) "path", NULL | |
17426 | }; | |
17427 | ||
17428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17430 | if (!SWIG_IsOK(res1)) { | |
17431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17432 | } | |
17433 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17434 | { | |
17435 | arg2 = wxString_in_helper(obj1); | |
17436 | if (arg2 == NULL) SWIG_fail; | |
17437 | temp2 = true; | |
17438 | } | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | (arg1)->SetPath((wxString const &)*arg2); | |
17442 | wxPyEndAllowThreads(__tstate); | |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
17444 | } | |
17445 | resultobj = SWIG_Py_Void(); | |
17446 | { | |
17447 | if (temp2) | |
17448 | delete arg2; | |
17449 | } | |
17450 | return resultobj; | |
17451 | fail: | |
17452 | { | |
17453 | if (temp2) | |
17454 | delete arg2; | |
17455 | } | |
17456 | return NULL; | |
17457 | } | |
17458 | ||
17459 | ||
17460 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17461 | PyObject *obj; | |
17462 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17463 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
17464 | return SWIG_Py_Void(); | |
17465 | } | |
17466 | ||
17467 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17468 | return SWIG_Python_InitShadowInstance(args); | |
17469 | } | |
17470 | ||
17471 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17472 | PyObject *resultobj = 0; | |
17473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17474 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
17475 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17476 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17477 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17478 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17479 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17480 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
17481 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
704eda0c | 17482 | long arg6 = (long) wxFD_DEFAULT_STYLE ; |
0085ce49 RD |
17483 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
17484 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17485 | wxFileDialog *result = 0 ; | |
17486 | void *argp1 = 0 ; | |
17487 | int res1 = 0 ; | |
17488 | bool temp2 = false ; | |
17489 | bool temp3 = false ; | |
17490 | bool temp4 = false ; | |
17491 | bool temp5 = false ; | |
17492 | long val6 ; | |
17493 | int ecode6 = 0 ; | |
17494 | wxPoint temp7 ; | |
17495 | PyObject * obj0 = 0 ; | |
17496 | PyObject * obj1 = 0 ; | |
17497 | PyObject * obj2 = 0 ; | |
17498 | PyObject * obj3 = 0 ; | |
17499 | PyObject * obj4 = 0 ; | |
17500 | PyObject * obj5 = 0 ; | |
17501 | PyObject * obj6 = 0 ; | |
17502 | char * kwnames[] = { | |
17503 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
17504 | }; | |
17505 | ||
17506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17508 | if (!SWIG_IsOK(res1)) { | |
17509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17510 | } | |
17511 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17512 | if (obj1) { | |
d14a1e28 | 17513 | { |
0085ce49 RD |
17514 | arg2 = wxString_in_helper(obj1); |
17515 | if (arg2 == NULL) SWIG_fail; | |
17516 | temp2 = true; | |
d14a1e28 | 17517 | } |
0085ce49 RD |
17518 | } |
17519 | if (obj2) { | |
4f89f6a3 | 17520 | { |
0085ce49 RD |
17521 | arg3 = wxString_in_helper(obj2); |
17522 | if (arg3 == NULL) SWIG_fail; | |
17523 | temp3 = true; | |
4f89f6a3 | 17524 | } |
0085ce49 RD |
17525 | } |
17526 | if (obj3) { | |
d14a1e28 | 17527 | { |
0085ce49 RD |
17528 | arg4 = wxString_in_helper(obj3); |
17529 | if (arg4 == NULL) SWIG_fail; | |
17530 | temp4 = true; | |
d14a1e28 | 17531 | } |
0085ce49 RD |
17532 | } |
17533 | if (obj4) { | |
d14a1e28 | 17534 | { |
0085ce49 RD |
17535 | arg5 = wxString_in_helper(obj4); |
17536 | if (arg5 == NULL) SWIG_fail; | |
17537 | temp5 = true; | |
d14a1e28 | 17538 | } |
0085ce49 RD |
17539 | } |
17540 | if (obj5) { | |
17541 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17542 | if (!SWIG_IsOK(ecode6)) { | |
17543 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
17544 | } | |
17545 | arg6 = static_cast< long >(val6); | |
17546 | } | |
17547 | if (obj6) { | |
d14a1e28 | 17548 | { |
0085ce49 RD |
17549 | arg7 = &temp7; |
17550 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
994141e6 | 17551 | } |
0085ce49 RD |
17552 | } |
17553 | { | |
17554 | if (!wxPyCheckForApp()) SWIG_fail; | |
17555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17556 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
17560 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
17561 | { | |
17562 | if (temp2) | |
17563 | delete arg2; | |
17564 | } | |
17565 | { | |
17566 | if (temp3) | |
17567 | delete arg3; | |
17568 | } | |
17569 | { | |
17570 | if (temp4) | |
17571 | delete arg4; | |
17572 | } | |
17573 | { | |
17574 | if (temp5) | |
17575 | delete arg5; | |
17576 | } | |
17577 | return resultobj; | |
17578 | fail: | |
17579 | { | |
17580 | if (temp2) | |
17581 | delete arg2; | |
17582 | } | |
17583 | { | |
17584 | if (temp3) | |
17585 | delete arg3; | |
17586 | } | |
17587 | { | |
17588 | if (temp4) | |
17589 | delete arg4; | |
17590 | } | |
17591 | { | |
17592 | if (temp5) | |
17593 | delete arg5; | |
17594 | } | |
17595 | return NULL; | |
d14a1e28 RD |
17596 | } |
17597 | ||
17598 | ||
0085ce49 RD |
17599 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17600 | PyObject *resultobj = 0; | |
17601 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17602 | wxString *arg2 = 0 ; | |
17603 | void *argp1 = 0 ; | |
17604 | int res1 = 0 ; | |
17605 | bool temp2 = false ; | |
17606 | PyObject * obj0 = 0 ; | |
17607 | PyObject * obj1 = 0 ; | |
17608 | char * kwnames[] = { | |
17609 | (char *) "self",(char *) "message", NULL | |
17610 | }; | |
17611 | ||
17612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17614 | if (!SWIG_IsOK(res1)) { | |
17615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17616 | } | |
17617 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17618 | { | |
17619 | arg2 = wxString_in_helper(obj1); | |
17620 | if (arg2 == NULL) SWIG_fail; | |
17621 | temp2 = true; | |
17622 | } | |
17623 | { | |
17624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17625 | (arg1)->SetMessage((wxString const &)*arg2); | |
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | resultobj = SWIG_Py_Void(); | |
17630 | { | |
17631 | if (temp2) | |
17632 | delete arg2; | |
17633 | } | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | { | |
17637 | if (temp2) | |
17638 | delete arg2; | |
17639 | } | |
17640 | return NULL; | |
d14a1e28 RD |
17641 | } |
17642 | ||
17643 | ||
0085ce49 RD |
17644 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17645 | PyObject *resultobj = 0; | |
17646 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17647 | wxString *arg2 = 0 ; | |
17648 | void *argp1 = 0 ; | |
17649 | int res1 = 0 ; | |
17650 | bool temp2 = false ; | |
17651 | PyObject * obj0 = 0 ; | |
17652 | PyObject * obj1 = 0 ; | |
17653 | char * kwnames[] = { | |
17654 | (char *) "self",(char *) "path", NULL | |
17655 | }; | |
17656 | ||
17657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17659 | if (!SWIG_IsOK(res1)) { | |
17660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17661 | } | |
17662 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17663 | { | |
17664 | arg2 = wxString_in_helper(obj1); | |
17665 | if (arg2 == NULL) SWIG_fail; | |
17666 | temp2 = true; | |
17667 | } | |
17668 | { | |
17669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17670 | (arg1)->SetPath((wxString const &)*arg2); | |
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | resultobj = SWIG_Py_Void(); | |
17675 | { | |
17676 | if (temp2) | |
17677 | delete arg2; | |
17678 | } | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | { | |
17682 | if (temp2) | |
17683 | delete arg2; | |
17684 | } | |
17685 | return NULL; | |
d14a1e28 RD |
17686 | } |
17687 | ||
17688 | ||
0085ce49 RD |
17689 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17690 | PyObject *resultobj = 0; | |
17691 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17692 | wxString *arg2 = 0 ; | |
17693 | void *argp1 = 0 ; | |
17694 | int res1 = 0 ; | |
17695 | bool temp2 = false ; | |
17696 | PyObject * obj0 = 0 ; | |
17697 | PyObject * obj1 = 0 ; | |
17698 | char * kwnames[] = { | |
17699 | (char *) "self",(char *) "dir", NULL | |
17700 | }; | |
17701 | ||
17702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17704 | if (!SWIG_IsOK(res1)) { | |
17705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17706 | } | |
17707 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17708 | { | |
17709 | arg2 = wxString_in_helper(obj1); | |
17710 | if (arg2 == NULL) SWIG_fail; | |
17711 | temp2 = true; | |
17712 | } | |
17713 | { | |
17714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17715 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
17719 | resultobj = SWIG_Py_Void(); | |
17720 | { | |
17721 | if (temp2) | |
17722 | delete arg2; | |
17723 | } | |
17724 | return resultobj; | |
17725 | fail: | |
17726 | { | |
17727 | if (temp2) | |
17728 | delete arg2; | |
17729 | } | |
17730 | return NULL; | |
d14a1e28 RD |
17731 | } |
17732 | ||
17733 | ||
0085ce49 RD |
17734 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17735 | PyObject *resultobj = 0; | |
17736 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17737 | wxString *arg2 = 0 ; | |
17738 | void *argp1 = 0 ; | |
17739 | int res1 = 0 ; | |
17740 | bool temp2 = false ; | |
17741 | PyObject * obj0 = 0 ; | |
17742 | PyObject * obj1 = 0 ; | |
17743 | char * kwnames[] = { | |
17744 | (char *) "self",(char *) "name", NULL | |
17745 | }; | |
17746 | ||
17747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17749 | if (!SWIG_IsOK(res1)) { | |
17750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17751 | } | |
17752 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17753 | { | |
17754 | arg2 = wxString_in_helper(obj1); | |
17755 | if (arg2 == NULL) SWIG_fail; | |
17756 | temp2 = true; | |
17757 | } | |
17758 | { | |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | (arg1)->SetFilename((wxString const &)*arg2); | |
17761 | wxPyEndAllowThreads(__tstate); | |
17762 | if (PyErr_Occurred()) SWIG_fail; | |
17763 | } | |
17764 | resultobj = SWIG_Py_Void(); | |
17765 | { | |
17766 | if (temp2) | |
17767 | delete arg2; | |
17768 | } | |
17769 | return resultobj; | |
17770 | fail: | |
17771 | { | |
17772 | if (temp2) | |
17773 | delete arg2; | |
17774 | } | |
17775 | return NULL; | |
d14a1e28 RD |
17776 | } |
17777 | ||
17778 | ||
0085ce49 RD |
17779 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17780 | PyObject *resultobj = 0; | |
17781 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17782 | wxString *arg2 = 0 ; | |
17783 | void *argp1 = 0 ; | |
17784 | int res1 = 0 ; | |
17785 | bool temp2 = false ; | |
17786 | PyObject * obj0 = 0 ; | |
17787 | PyObject * obj1 = 0 ; | |
17788 | char * kwnames[] = { | |
17789 | (char *) "self",(char *) "wildCard", NULL | |
17790 | }; | |
17791 | ||
17792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17794 | if (!SWIG_IsOK(res1)) { | |
17795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17796 | } | |
17797 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17798 | { | |
17799 | arg2 = wxString_in_helper(obj1); | |
17800 | if (arg2 == NULL) SWIG_fail; | |
17801 | temp2 = true; | |
17802 | } | |
17803 | { | |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17806 | wxPyEndAllowThreads(__tstate); | |
17807 | if (PyErr_Occurred()) SWIG_fail; | |
17808 | } | |
17809 | resultobj = SWIG_Py_Void(); | |
17810 | { | |
17811 | if (temp2) | |
17812 | delete arg2; | |
17813 | } | |
17814 | return resultobj; | |
17815 | fail: | |
17816 | { | |
17817 | if (temp2) | |
17818 | delete arg2; | |
17819 | } | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
0085ce49 RD |
17824 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17825 | PyObject *resultobj = 0; | |
17826 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17827 | int arg2 ; | |
17828 | void *argp1 = 0 ; | |
17829 | int res1 = 0 ; | |
17830 | int val2 ; | |
17831 | int ecode2 = 0 ; | |
17832 | PyObject * obj0 = 0 ; | |
17833 | PyObject * obj1 = 0 ; | |
17834 | char * kwnames[] = { | |
17835 | (char *) "self",(char *) "filterIndex", NULL | |
17836 | }; | |
17837 | ||
17838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17840 | if (!SWIG_IsOK(res1)) { | |
17841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17842 | } | |
17843 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17844 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17845 | if (!SWIG_IsOK(ecode2)) { | |
17846 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17847 | } | |
17848 | arg2 = static_cast< int >(val2); | |
17849 | { | |
17850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17851 | (arg1)->SetFilterIndex(arg2); | |
17852 | wxPyEndAllowThreads(__tstate); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | } | |
17855 | resultobj = SWIG_Py_Void(); | |
17856 | return resultobj; | |
17857 | fail: | |
17858 | return NULL; | |
d14a1e28 RD |
17859 | } |
17860 | ||
17861 | ||
0085ce49 RD |
17862 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17863 | PyObject *resultobj = 0; | |
17864 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17865 | wxString result; | |
17866 | void *argp1 = 0 ; | |
17867 | int res1 = 0 ; | |
17868 | PyObject *swig_obj[1] ; | |
17869 | ||
17870 | if (!args) SWIG_fail; | |
17871 | swig_obj[0] = args; | |
17872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17873 | if (!SWIG_IsOK(res1)) { | |
17874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17875 | } | |
17876 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17877 | { | |
17878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17879 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | { | |
17884 | #if wxUSE_UNICODE | |
17885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17886 | #else | |
17887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17888 | #endif | |
17889 | } | |
17890 | return resultobj; | |
17891 | fail: | |
17892 | return NULL; | |
d14a1e28 RD |
17893 | } |
17894 | ||
17895 | ||
0085ce49 RD |
17896 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17897 | PyObject *resultobj = 0; | |
17898 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17899 | wxString result; | |
17900 | void *argp1 = 0 ; | |
17901 | int res1 = 0 ; | |
17902 | PyObject *swig_obj[1] ; | |
17903 | ||
17904 | if (!args) SWIG_fail; | |
17905 | swig_obj[0] = args; | |
17906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17907 | if (!SWIG_IsOK(res1)) { | |
17908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17909 | } | |
17910 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17914 | wxPyEndAllowThreads(__tstate); | |
17915 | if (PyErr_Occurred()) SWIG_fail; | |
17916 | } | |
17917 | { | |
17918 | #if wxUSE_UNICODE | |
17919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17920 | #else | |
17921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17922 | #endif | |
17923 | } | |
17924 | return resultobj; | |
17925 | fail: | |
17926 | return NULL; | |
d14a1e28 RD |
17927 | } |
17928 | ||
17929 | ||
0085ce49 RD |
17930 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17931 | PyObject *resultobj = 0; | |
17932 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17933 | wxString result; | |
17934 | void *argp1 = 0 ; | |
17935 | int res1 = 0 ; | |
17936 | PyObject *swig_obj[1] ; | |
17937 | ||
17938 | if (!args) SWIG_fail; | |
17939 | swig_obj[0] = args; | |
17940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17941 | if (!SWIG_IsOK(res1)) { | |
17942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17943 | } | |
17944 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17945 | { | |
17946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17947 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17948 | wxPyEndAllowThreads(__tstate); | |
17949 | if (PyErr_Occurred()) SWIG_fail; | |
17950 | } | |
17951 | { | |
17952 | #if wxUSE_UNICODE | |
17953 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17954 | #else | |
17955 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17956 | #endif | |
17957 | } | |
17958 | return resultobj; | |
17959 | fail: | |
17960 | return NULL; | |
d14a1e28 RD |
17961 | } |
17962 | ||
17963 | ||
0085ce49 RD |
17964 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17965 | PyObject *resultobj = 0; | |
17966 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17967 | wxString result; | |
17968 | void *argp1 = 0 ; | |
17969 | int res1 = 0 ; | |
17970 | PyObject *swig_obj[1] ; | |
17971 | ||
17972 | if (!args) SWIG_fail; | |
17973 | swig_obj[0] = args; | |
17974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17975 | if (!SWIG_IsOK(res1)) { | |
17976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17977 | } | |
17978 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17979 | { | |
17980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17981 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | { | |
17986 | #if wxUSE_UNICODE | |
17987 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17988 | #else | |
17989 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17990 | #endif | |
17991 | } | |
17992 | return resultobj; | |
17993 | fail: | |
17994 | return NULL; | |
d14a1e28 RD |
17995 | } |
17996 | ||
17997 | ||
0085ce49 RD |
17998 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17999 | PyObject *resultobj = 0; | |
18000 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
18001 | wxString result; | |
18002 | void *argp1 = 0 ; | |
18003 | int res1 = 0 ; | |
18004 | PyObject *swig_obj[1] ; | |
18005 | ||
18006 | if (!args) SWIG_fail; | |
18007 | swig_obj[0] = args; | |
18008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
18009 | if (!SWIG_IsOK(res1)) { | |
18010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
18011 | } | |
18012 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
18013 | { | |
18014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18015 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
18016 | wxPyEndAllowThreads(__tstate); | |
18017 | if (PyErr_Occurred()) SWIG_fail; | |
18018 | } | |
18019 | { | |
18020 | #if wxUSE_UNICODE | |
18021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18022 | #else | |
18023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18024 | #endif | |
18025 | } | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | return NULL; | |
d14a1e28 RD |
18029 | } |
18030 | ||
18031 | ||
0085ce49 RD |
18032 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18033 | PyObject *resultobj = 0; | |
18034 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
18035 | int result; | |
18036 | void *argp1 = 0 ; | |
18037 | int res1 = 0 ; | |
18038 | PyObject *swig_obj[1] ; | |
18039 | ||
18040 | if (!args) SWIG_fail; | |
18041 | swig_obj[0] = args; | |
18042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
18043 | if (!SWIG_IsOK(res1)) { | |
18044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
18045 | } | |
18046 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
18047 | { | |
18048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18049 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
18053 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18054 | return resultobj; | |
18055 | fail: | |
18056 | return NULL; | |
d14a1e28 RD |
18057 | } |
18058 | ||
18059 | ||
0085ce49 RD |
18060 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18061 | PyObject *resultobj = 0; | |
18062 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
18063 | PyObject *result = 0 ; | |
18064 | void *argp1 = 0 ; | |
18065 | int res1 = 0 ; | |
18066 | PyObject *swig_obj[1] ; | |
18067 | ||
18068 | if (!args) SWIG_fail; | |
18069 | swig_obj[0] = args; | |
18070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
18071 | if (!SWIG_IsOK(res1)) { | |
18072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
18073 | } | |
18074 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
18075 | { | |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18077 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
18078 | wxPyEndAllowThreads(__tstate); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
18080 | } | |
18081 | resultobj = result; | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | return NULL; | |
d14a1e28 RD |
18085 | } |
18086 | ||
18087 | ||
0085ce49 RD |
18088 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18089 | PyObject *resultobj = 0; | |
18090 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
18091 | PyObject *result = 0 ; | |
18092 | void *argp1 = 0 ; | |
18093 | int res1 = 0 ; | |
18094 | PyObject *swig_obj[1] ; | |
18095 | ||
18096 | if (!args) SWIG_fail; | |
18097 | swig_obj[0] = args; | |
18098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
18099 | if (!SWIG_IsOK(res1)) { | |
18100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
18101 | } | |
18102 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
18103 | { | |
18104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18105 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
18106 | wxPyEndAllowThreads(__tstate); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
18109 | resultobj = result; | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
18116 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18117 | PyObject *obj; | |
18118 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18119 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
18120 | return SWIG_Py_Void(); | |
18121 | } | |
18122 | ||
18123 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18124 | return SWIG_Python_InitShadowInstance(args); | |
18125 | } | |
18126 | ||
18127 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj = 0; | |
18129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18130 | wxString *arg2 = 0 ; | |
18131 | wxString *arg3 = 0 ; | |
18132 | int arg4 = (int) 0 ; | |
18133 | wxString *arg5 = (wxString *) NULL ; | |
18134 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
18135 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
18136 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
18137 | wxMultiChoiceDialog *result = 0 ; | |
18138 | void *argp1 = 0 ; | |
18139 | int res1 = 0 ; | |
18140 | bool temp2 = false ; | |
18141 | bool temp3 = false ; | |
18142 | long val6 ; | |
18143 | int ecode6 = 0 ; | |
18144 | wxPoint temp7 ; | |
18145 | PyObject * obj0 = 0 ; | |
18146 | PyObject * obj1 = 0 ; | |
18147 | PyObject * obj2 = 0 ; | |
18148 | PyObject * obj3 = 0 ; | |
18149 | PyObject * obj4 = 0 ; | |
18150 | PyObject * obj5 = 0 ; | |
18151 | char * kwnames[] = { | |
18152 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
18153 | }; | |
18154 | ||
18155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18157 | if (!SWIG_IsOK(res1)) { | |
18158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18159 | } | |
18160 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18161 | { | |
18162 | arg2 = wxString_in_helper(obj1); | |
18163 | if (arg2 == NULL) SWIG_fail; | |
18164 | temp2 = true; | |
18165 | } | |
18166 | { | |
18167 | arg3 = wxString_in_helper(obj2); | |
18168 | if (arg3 == NULL) SWIG_fail; | |
18169 | temp3 = true; | |
18170 | } | |
18171 | if (obj3) { | |
d14a1e28 | 18172 | { |
0085ce49 RD |
18173 | arg4 = PyList_Size(obj3); |
18174 | arg5 = wxString_LIST_helper(obj3); | |
18175 | if (arg5 == NULL) SWIG_fail; | |
d14a1e28 | 18176 | } |
0085ce49 RD |
18177 | } |
18178 | if (obj4) { | |
18179 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
18180 | if (!SWIG_IsOK(ecode6)) { | |
18181 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
18182 | } | |
18183 | arg6 = static_cast< long >(val6); | |
18184 | } | |
18185 | if (obj5) { | |
4f89f6a3 | 18186 | { |
0085ce49 RD |
18187 | arg7 = &temp7; |
18188 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
4f89f6a3 | 18189 | } |
0085ce49 RD |
18190 | } |
18191 | { | |
18192 | if (!wxPyCheckForApp()) SWIG_fail; | |
18193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18194 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
18195 | wxPyEndAllowThreads(__tstate); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
18199 | { | |
18200 | if (temp2) | |
18201 | delete arg2; | |
18202 | } | |
18203 | { | |
18204 | if (temp3) | |
18205 | delete arg3; | |
18206 | } | |
18207 | { | |
18208 | if (arg5) delete [] arg5; | |
18209 | } | |
18210 | return resultobj; | |
18211 | fail: | |
18212 | { | |
18213 | if (temp2) | |
18214 | delete arg2; | |
18215 | } | |
18216 | { | |
18217 | if (temp3) | |
18218 | delete arg3; | |
18219 | } | |
18220 | { | |
18221 | if (arg5) delete [] arg5; | |
18222 | } | |
18223 | return NULL; | |
d14a1e28 RD |
18224 | } |
18225 | ||
18226 | ||
0085ce49 RD |
18227 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18228 | PyObject *resultobj = 0; | |
18229 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
18230 | wxArrayInt *arg2 = 0 ; | |
18231 | void *argp1 = 0 ; | |
18232 | int res1 = 0 ; | |
18233 | bool temp2 = false ; | |
18234 | PyObject * obj0 = 0 ; | |
18235 | PyObject * obj1 = 0 ; | |
18236 | char * kwnames[] = { | |
18237 | (char *) "self",(char *) "selections", NULL | |
18238 | }; | |
18239 | ||
18240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
18241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
18242 | if (!SWIG_IsOK(res1)) { | |
18243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
18244 | } | |
18245 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
18246 | { | |
18247 | if (! PySequence_Check(obj1)) { | |
18248 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
18249 | SWIG_fail; | |
18250 | } | |
18251 | arg2 = new wxArrayInt; | |
18252 | temp2 = true; | |
18253 | int i, len=PySequence_Length(obj1); | |
18254 | for (i=0; i<len; i++) { | |
18255 | PyObject* item = PySequence_GetItem(obj1, i); | |
18256 | PyObject* number = PyNumber_Int(item); | |
ec8a7755 RD |
18257 | if (!number) { |
18258 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
18259 | SWIG_fail; | |
18260 | } | |
0085ce49 RD |
18261 | arg2->Add(PyInt_AS_LONG(number)); |
18262 | Py_DECREF(item); | |
18263 | Py_DECREF(number); | |
093d3ff1 | 18264 | } |
0085ce49 RD |
18265 | } |
18266 | { | |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
18269 | wxPyEndAllowThreads(__tstate); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | } | |
18272 | resultobj = SWIG_Py_Void(); | |
18273 | { | |
18274 | if (temp2) delete arg2; | |
18275 | } | |
18276 | return resultobj; | |
18277 | fail: | |
18278 | { | |
18279 | if (temp2) delete arg2; | |
18280 | } | |
18281 | return NULL; | |
d14a1e28 RD |
18282 | } |
18283 | ||
18284 | ||
0085ce49 RD |
18285 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18286 | PyObject *resultobj = 0; | |
18287 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
18288 | PyObject *result = 0 ; | |
18289 | void *argp1 = 0 ; | |
18290 | int res1 = 0 ; | |
18291 | PyObject *swig_obj[1] ; | |
18292 | ||
18293 | if (!args) SWIG_fail; | |
18294 | swig_obj[0] = args; | |
18295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
18296 | if (!SWIG_IsOK(res1)) { | |
18297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
18298 | } | |
18299 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
18303 | wxPyEndAllowThreads(__tstate); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | } | |
18306 | resultobj = result; | |
18307 | return resultobj; | |
18308 | fail: | |
18309 | return NULL; | |
18310 | } | |
18311 | ||
18312 | ||
18313 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18314 | PyObject *obj; | |
18315 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18316 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
18317 | return SWIG_Py_Void(); | |
18318 | } | |
18319 | ||
18320 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18321 | return SWIG_Python_InitShadowInstance(args); | |
18322 | } | |
18323 | ||
18324 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18325 | PyObject *resultobj = 0; | |
18326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18327 | wxString *arg2 = 0 ; | |
18328 | wxString *arg3 = 0 ; | |
18329 | int arg4 ; | |
18330 | wxString *arg5 = (wxString *) 0 ; | |
18331 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
18332 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
18333 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
18334 | wxSingleChoiceDialog *result = 0 ; | |
18335 | void *argp1 = 0 ; | |
18336 | int res1 = 0 ; | |
18337 | bool temp2 = false ; | |
18338 | bool temp3 = false ; | |
18339 | long val6 ; | |
18340 | int ecode6 = 0 ; | |
18341 | wxPoint temp7 ; | |
18342 | PyObject * obj0 = 0 ; | |
18343 | PyObject * obj1 = 0 ; | |
18344 | PyObject * obj2 = 0 ; | |
18345 | PyObject * obj3 = 0 ; | |
18346 | PyObject * obj4 = 0 ; | |
18347 | PyObject * obj5 = 0 ; | |
18348 | char * kwnames[] = { | |
18349 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
18350 | }; | |
18351 | ||
18352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18354 | if (!SWIG_IsOK(res1)) { | |
18355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18356 | } | |
18357 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18358 | { | |
18359 | arg2 = wxString_in_helper(obj1); | |
18360 | if (arg2 == NULL) SWIG_fail; | |
18361 | temp2 = true; | |
18362 | } | |
18363 | { | |
18364 | arg3 = wxString_in_helper(obj2); | |
18365 | if (arg3 == NULL) SWIG_fail; | |
18366 | temp3 = true; | |
18367 | } | |
18368 | { | |
18369 | arg4 = PyList_Size(obj3); | |
18370 | arg5 = wxString_LIST_helper(obj3); | |
18371 | if (arg5 == NULL) SWIG_fail; | |
18372 | } | |
18373 | if (obj4) { | |
18374 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
18375 | if (!SWIG_IsOK(ecode6)) { | |
18376 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
18377 | } | |
18378 | arg6 = static_cast< long >(val6); | |
18379 | } | |
18380 | if (obj5) { | |
093d3ff1 | 18381 | { |
0085ce49 RD |
18382 | arg7 = &temp7; |
18383 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
093d3ff1 | 18384 | } |
0085ce49 RD |
18385 | } |
18386 | { | |
18387 | if (!wxPyCheckForApp()) SWIG_fail; | |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
18393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
18394 | { | |
18395 | if (temp2) | |
18396 | delete arg2; | |
18397 | } | |
18398 | { | |
18399 | if (temp3) | |
18400 | delete arg3; | |
18401 | } | |
18402 | { | |
18403 | if (arg5) delete [] arg5; | |
18404 | } | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | { | |
18408 | if (temp2) | |
18409 | delete arg2; | |
18410 | } | |
18411 | { | |
18412 | if (temp3) | |
18413 | delete arg3; | |
18414 | } | |
18415 | { | |
18416 | if (arg5) delete [] arg5; | |
18417 | } | |
18418 | return NULL; | |
d14a1e28 RD |
18419 | } |
18420 | ||
18421 | ||
0085ce49 RD |
18422 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18423 | PyObject *resultobj = 0; | |
18424 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18425 | int result; | |
18426 | void *argp1 = 0 ; | |
18427 | int res1 = 0 ; | |
18428 | PyObject *swig_obj[1] ; | |
18429 | ||
18430 | if (!args) SWIG_fail; | |
18431 | swig_obj[0] = args; | |
18432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18433 | if (!SWIG_IsOK(res1)) { | |
18434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18435 | } | |
18436 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18437 | { | |
18438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18439 | result = (int)(arg1)->GetSelection(); | |
18440 | wxPyEndAllowThreads(__tstate); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
18442 | } | |
18443 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18444 | return resultobj; | |
18445 | fail: | |
18446 | return NULL; | |
d14a1e28 RD |
18447 | } |
18448 | ||
18449 | ||
0085ce49 RD |
18450 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18451 | PyObject *resultobj = 0; | |
18452 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18453 | wxString result; | |
18454 | void *argp1 = 0 ; | |
18455 | int res1 = 0 ; | |
18456 | PyObject *swig_obj[1] ; | |
18457 | ||
18458 | if (!args) SWIG_fail; | |
18459 | swig_obj[0] = args; | |
18460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18461 | if (!SWIG_IsOK(res1)) { | |
18462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18463 | } | |
18464 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18465 | { | |
18466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18467 | result = (arg1)->GetStringSelection(); | |
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | { | |
18472 | #if wxUSE_UNICODE | |
18473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18474 | #else | |
18475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18476 | #endif | |
18477 | } | |
18478 | return resultobj; | |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
18484 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18485 | PyObject *resultobj = 0; | |
18486 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18487 | int arg2 ; | |
18488 | void *argp1 = 0 ; | |
18489 | int res1 = 0 ; | |
18490 | int val2 ; | |
18491 | int ecode2 = 0 ; | |
18492 | PyObject * obj0 = 0 ; | |
18493 | PyObject * obj1 = 0 ; | |
18494 | char * kwnames[] = { | |
18495 | (char *) "self",(char *) "sel", NULL | |
18496 | }; | |
18497 | ||
18498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
18499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18500 | if (!SWIG_IsOK(res1)) { | |
18501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18502 | } | |
18503 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18504 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18505 | if (!SWIG_IsOK(ecode2)) { | |
18506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18507 | } | |
18508 | arg2 = static_cast< int >(val2); | |
18509 | { | |
18510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18511 | (arg1)->SetSelection(arg2); | |
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | resultobj = SWIG_Py_Void(); | |
18516 | return resultobj; | |
18517 | fail: | |
18518 | return NULL; | |
18519 | } | |
18520 | ||
18521 | ||
18522 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18523 | PyObject *obj; | |
18524 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18525 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
18526 | return SWIG_Py_Void(); | |
18527 | } | |
18528 | ||
18529 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18530 | return SWIG_Python_InitShadowInstance(args); | |
18531 | } | |
18532 | ||
18533 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18534 | PyObject *resultobj = 0; | |
18535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18536 | wxString *arg2 = 0 ; | |
18537 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
18538 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18539 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18540 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18541 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18542 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18543 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18544 | wxTextEntryDialog *result = 0 ; | |
18545 | void *argp1 = 0 ; | |
18546 | int res1 = 0 ; | |
18547 | bool temp2 = false ; | |
18548 | bool temp3 = false ; | |
18549 | bool temp4 = false ; | |
18550 | long val5 ; | |
18551 | int ecode5 = 0 ; | |
18552 | wxPoint temp6 ; | |
18553 | PyObject * obj0 = 0 ; | |
18554 | PyObject * obj1 = 0 ; | |
18555 | PyObject * obj2 = 0 ; | |
18556 | PyObject * obj3 = 0 ; | |
18557 | PyObject * obj4 = 0 ; | |
18558 | PyObject * obj5 = 0 ; | |
18559 | char * kwnames[] = { | |
18560 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
18561 | }; | |
18562 | ||
18563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18565 | if (!SWIG_IsOK(res1)) { | |
18566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18567 | } | |
18568 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18569 | { | |
18570 | arg2 = wxString_in_helper(obj1); | |
18571 | if (arg2 == NULL) SWIG_fail; | |
18572 | temp2 = true; | |
18573 | } | |
18574 | if (obj2) { | |
d14a1e28 | 18575 | { |
0085ce49 RD |
18576 | arg3 = wxString_in_helper(obj2); |
18577 | if (arg3 == NULL) SWIG_fail; | |
18578 | temp3 = true; | |
d14a1e28 | 18579 | } |
0085ce49 RD |
18580 | } |
18581 | if (obj3) { | |
d14a1e28 | 18582 | { |
0085ce49 RD |
18583 | arg4 = wxString_in_helper(obj3); |
18584 | if (arg4 == NULL) SWIG_fail; | |
18585 | temp4 = true; | |
d14a1e28 | 18586 | } |
0085ce49 RD |
18587 | } |
18588 | if (obj4) { | |
18589 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18590 | if (!SWIG_IsOK(ecode5)) { | |
18591 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18592 | } | |
18593 | arg5 = static_cast< long >(val5); | |
18594 | } | |
18595 | if (obj5) { | |
093d3ff1 | 18596 | { |
0085ce49 RD |
18597 | arg6 = &temp6; |
18598 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18599 | } |
0085ce49 RD |
18600 | } |
18601 | { | |
18602 | if (!wxPyCheckForApp()) SWIG_fail; | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18609 | { | |
18610 | if (temp2) | |
18611 | delete arg2; | |
18612 | } | |
18613 | { | |
18614 | if (temp3) | |
18615 | delete arg3; | |
18616 | } | |
18617 | { | |
18618 | if (temp4) | |
18619 | delete arg4; | |
18620 | } | |
18621 | return resultobj; | |
18622 | fail: | |
18623 | { | |
18624 | if (temp2) | |
18625 | delete arg2; | |
18626 | } | |
18627 | { | |
18628 | if (temp3) | |
18629 | delete arg3; | |
18630 | } | |
18631 | { | |
18632 | if (temp4) | |
18633 | delete arg4; | |
18634 | } | |
18635 | return NULL; | |
d14a1e28 RD |
18636 | } |
18637 | ||
18638 | ||
0085ce49 RD |
18639 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18640 | PyObject *resultobj = 0; | |
18641 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18642 | wxString result; | |
18643 | void *argp1 = 0 ; | |
18644 | int res1 = 0 ; | |
18645 | PyObject *swig_obj[1] ; | |
18646 | ||
18647 | if (!args) SWIG_fail; | |
18648 | swig_obj[0] = args; | |
18649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18650 | if (!SWIG_IsOK(res1)) { | |
18651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18652 | } | |
18653 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18654 | { | |
18655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18656 | result = (arg1)->GetValue(); | |
18657 | wxPyEndAllowThreads(__tstate); | |
18658 | if (PyErr_Occurred()) SWIG_fail; | |
18659 | } | |
18660 | { | |
18661 | #if wxUSE_UNICODE | |
18662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18663 | #else | |
18664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18665 | #endif | |
18666 | } | |
18667 | return resultobj; | |
18668 | fail: | |
18669 | return NULL; | |
18670 | } | |
18671 | ||
18672 | ||
18673 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18674 | PyObject *resultobj = 0; | |
18675 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18676 | wxString *arg2 = 0 ; | |
18677 | void *argp1 = 0 ; | |
18678 | int res1 = 0 ; | |
18679 | bool temp2 = false ; | |
18680 | PyObject * obj0 = 0 ; | |
18681 | PyObject * obj1 = 0 ; | |
18682 | char * kwnames[] = { | |
18683 | (char *) "self",(char *) "value", NULL | |
18684 | }; | |
18685 | ||
18686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18688 | if (!SWIG_IsOK(res1)) { | |
18689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18690 | } | |
18691 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18692 | { | |
18693 | arg2 = wxString_in_helper(obj1); | |
18694 | if (arg2 == NULL) SWIG_fail; | |
18695 | temp2 = true; | |
18696 | } | |
18697 | { | |
18698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18699 | (arg1)->SetValue((wxString const &)*arg2); | |
18700 | wxPyEndAllowThreads(__tstate); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
18703 | resultobj = SWIG_Py_Void(); | |
18704 | { | |
18705 | if (temp2) | |
18706 | delete arg2; | |
18707 | } | |
18708 | return resultobj; | |
18709 | fail: | |
18710 | { | |
18711 | if (temp2) | |
18712 | delete arg2; | |
18713 | } | |
18714 | return NULL; | |
d14a1e28 RD |
18715 | } |
18716 | ||
18717 | ||
0085ce49 RD |
18718 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18719 | PyObject *obj; | |
18720 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18721 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18722 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18723 | } |
18724 | ||
0085ce49 RD |
18725 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18726 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18727 | } |
18728 | ||
0085ce49 RD |
18729 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { |
18730 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18731 | return 1; | |
d14a1e28 RD |
18732 | } |
18733 | ||
18734 | ||
0085ce49 RD |
18735 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18736 | PyObject *pyobj = 0; | |
18737 | ||
18738 | { | |
18739 | #if wxUSE_UNICODE | |
18740 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18741 | #else | |
18742 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18743 | #endif | |
18744 | } | |
18745 | return pyobj; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18750 | PyObject *resultobj = 0; | |
18751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18752 | wxString *arg2 = 0 ; | |
18753 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18754 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18755 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18756 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18757 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18758 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18759 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18760 | wxPasswordEntryDialog *result = 0 ; | |
18761 | void *argp1 = 0 ; | |
18762 | int res1 = 0 ; | |
18763 | bool temp2 = false ; | |
18764 | bool temp3 = false ; | |
18765 | bool temp4 = false ; | |
18766 | long val5 ; | |
18767 | int ecode5 = 0 ; | |
18768 | wxPoint temp6 ; | |
18769 | PyObject * obj0 = 0 ; | |
18770 | PyObject * obj1 = 0 ; | |
18771 | PyObject * obj2 = 0 ; | |
18772 | PyObject * obj3 = 0 ; | |
18773 | PyObject * obj4 = 0 ; | |
18774 | PyObject * obj5 = 0 ; | |
18775 | char * kwnames[] = { | |
18776 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18777 | }; | |
18778 | ||
18779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18781 | if (!SWIG_IsOK(res1)) { | |
18782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18783 | } | |
18784 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18785 | { | |
18786 | arg2 = wxString_in_helper(obj1); | |
18787 | if (arg2 == NULL) SWIG_fail; | |
18788 | temp2 = true; | |
18789 | } | |
18790 | if (obj2) { | |
093d3ff1 | 18791 | { |
0085ce49 RD |
18792 | arg3 = wxString_in_helper(obj2); |
18793 | if (arg3 == NULL) SWIG_fail; | |
18794 | temp3 = true; | |
093d3ff1 | 18795 | } |
0085ce49 RD |
18796 | } |
18797 | if (obj3) { | |
d14a1e28 | 18798 | { |
0085ce49 RD |
18799 | arg4 = wxString_in_helper(obj3); |
18800 | if (arg4 == NULL) SWIG_fail; | |
18801 | temp4 = true; | |
d14a1e28 | 18802 | } |
0085ce49 RD |
18803 | } |
18804 | if (obj4) { | |
18805 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18806 | if (!SWIG_IsOK(ecode5)) { | |
18807 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18808 | } | |
18809 | arg5 = static_cast< long >(val5); | |
18810 | } | |
18811 | if (obj5) { | |
4f89f6a3 | 18812 | { |
0085ce49 RD |
18813 | arg6 = &temp6; |
18814 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4f89f6a3 | 18815 | } |
0085ce49 RD |
18816 | } |
18817 | { | |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18820 | wxPyEndAllowThreads(__tstate); | |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
18822 | } | |
18823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18824 | { | |
18825 | if (temp2) | |
18826 | delete arg2; | |
18827 | } | |
18828 | { | |
18829 | if (temp3) | |
18830 | delete arg3; | |
18831 | } | |
18832 | { | |
18833 | if (temp4) | |
18834 | delete arg4; | |
18835 | } | |
18836 | return resultobj; | |
18837 | fail: | |
18838 | { | |
18839 | if (temp2) | |
18840 | delete arg2; | |
18841 | } | |
18842 | { | |
18843 | if (temp3) | |
18844 | delete arg3; | |
18845 | } | |
18846 | { | |
18847 | if (temp4) | |
18848 | delete arg4; | |
18849 | } | |
18850 | return NULL; | |
d14a1e28 RD |
18851 | } |
18852 | ||
18853 | ||
0085ce49 RD |
18854 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18855 | PyObject *obj; | |
18856 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18857 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18858 | return SWIG_Py_Void(); | |
70b7a5fe RD |
18859 | } |
18860 | ||
0085ce49 RD |
18861 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18862 | return SWIG_Python_InitShadowInstance(args); | |
18863 | } | |
70b7a5fe | 18864 | |
27e45892 RD |
18865 | SWIGINTERN PyObject *_wrap_new_NumberEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18866 | PyObject *resultobj = 0; | |
18867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18868 | wxString *arg2 = 0 ; | |
18869 | wxString *arg3 = 0 ; | |
18870 | wxString *arg4 = 0 ; | |
18871 | long arg5 ; | |
18872 | long arg6 ; | |
18873 | long arg7 ; | |
18874 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
18875 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
18876 | wxNumberEntryDialog *result = 0 ; | |
18877 | void *argp1 = 0 ; | |
18878 | int res1 = 0 ; | |
18879 | bool temp2 = false ; | |
18880 | bool temp3 = false ; | |
18881 | bool temp4 = false ; | |
18882 | long val5 ; | |
18883 | int ecode5 = 0 ; | |
18884 | long val6 ; | |
18885 | int ecode6 = 0 ; | |
18886 | long val7 ; | |
18887 | int ecode7 = 0 ; | |
18888 | wxPoint temp8 ; | |
18889 | PyObject * obj0 = 0 ; | |
18890 | PyObject * obj1 = 0 ; | |
18891 | PyObject * obj2 = 0 ; | |
18892 | PyObject * obj3 = 0 ; | |
18893 | PyObject * obj4 = 0 ; | |
18894 | PyObject * obj5 = 0 ; | |
18895 | PyObject * obj6 = 0 ; | |
18896 | PyObject * obj7 = 0 ; | |
18897 | char * kwnames[] = { | |
18898 | (char *) "parent",(char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "pos", NULL | |
18899 | }; | |
18900 | ||
18901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO|O:new_NumberEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18903 | if (!SWIG_IsOK(res1)) { | |
18904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumberEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18905 | } | |
18906 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18907 | { | |
18908 | arg2 = wxString_in_helper(obj1); | |
18909 | if (arg2 == NULL) SWIG_fail; | |
18910 | temp2 = true; | |
18911 | } | |
18912 | { | |
18913 | arg3 = wxString_in_helper(obj2); | |
18914 | if (arg3 == NULL) SWIG_fail; | |
18915 | temp3 = true; | |
18916 | } | |
18917 | { | |
18918 | arg4 = wxString_in_helper(obj3); | |
18919 | if (arg4 == NULL) SWIG_fail; | |
18920 | temp4 = true; | |
18921 | } | |
18922 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18923 | if (!SWIG_IsOK(ecode5)) { | |
18924 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumberEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18925 | } | |
18926 | arg5 = static_cast< long >(val5); | |
18927 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18928 | if (!SWIG_IsOK(ecode6)) { | |
18929 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_NumberEntryDialog" "', expected argument " "6"" of type '" "long""'"); | |
18930 | } | |
18931 | arg6 = static_cast< long >(val6); | |
18932 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18933 | if (!SWIG_IsOK(ecode7)) { | |
18934 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_NumberEntryDialog" "', expected argument " "7"" of type '" "long""'"); | |
18935 | } | |
18936 | arg7 = static_cast< long >(val7); | |
18937 | if (obj7) { | |
18938 | { | |
18939 | arg8 = &temp8; | |
18940 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
18941 | } | |
18942 | } | |
18943 | { | |
18944 | if (!wxPyCheckForApp()) SWIG_fail; | |
18945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18946 | result = (wxNumberEntryDialog *)new wxNumberEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
18947 | wxPyEndAllowThreads(__tstate); | |
18948 | if (PyErr_Occurred()) SWIG_fail; | |
18949 | } | |
18950 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNumberEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18951 | { | |
18952 | if (temp2) | |
18953 | delete arg2; | |
18954 | } | |
18955 | { | |
18956 | if (temp3) | |
18957 | delete arg3; | |
18958 | } | |
18959 | { | |
18960 | if (temp4) | |
18961 | delete arg4; | |
18962 | } | |
18963 | return resultobj; | |
18964 | fail: | |
18965 | { | |
18966 | if (temp2) | |
18967 | delete arg2; | |
18968 | } | |
18969 | { | |
18970 | if (temp3) | |
18971 | delete arg3; | |
18972 | } | |
18973 | { | |
18974 | if (temp4) | |
18975 | delete arg4; | |
18976 | } | |
18977 | return NULL; | |
18978 | } | |
18979 | ||
18980 | ||
18981 | SWIGINTERN PyObject *_wrap_NumberEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18982 | PyObject *resultobj = 0; | |
18983 | wxNumberEntryDialog *arg1 = (wxNumberEntryDialog *) 0 ; | |
18984 | long result; | |
18985 | void *argp1 = 0 ; | |
18986 | int res1 = 0 ; | |
18987 | PyObject *swig_obj[1] ; | |
18988 | ||
18989 | if (!args) SWIG_fail; | |
18990 | swig_obj[0] = args; | |
18991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNumberEntryDialog, 0 | 0 ); | |
18992 | if (!SWIG_IsOK(res1)) { | |
18993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxNumberEntryDialog *""'"); | |
18994 | } | |
18995 | arg1 = reinterpret_cast< wxNumberEntryDialog * >(argp1); | |
18996 | { | |
18997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18998 | result = (long)(arg1)->GetValue(); | |
18999 | wxPyEndAllowThreads(__tstate); | |
19000 | if (PyErr_Occurred()) SWIG_fail; | |
19001 | } | |
19002 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
19003 | return resultobj; | |
19004 | fail: | |
19005 | return NULL; | |
19006 | } | |
19007 | ||
19008 | ||
19009 | SWIGINTERN PyObject *NumberEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19010 | PyObject *obj; | |
19011 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19012 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNumberEntryDialog, SWIG_NewClientData(obj)); | |
19013 | return SWIG_Py_Void(); | |
19014 | } | |
19015 | ||
19016 | SWIGINTERN PyObject *NumberEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19017 | return SWIG_Python_InitShadowInstance(args); | |
19018 | } | |
19019 | ||
0085ce49 RD |
19020 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19021 | PyObject *resultobj = 0; | |
19022 | wxFontData *result = 0 ; | |
19023 | ||
19024 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
19025 | { | |
19026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19027 | result = (wxFontData *)new wxFontData(); | |
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
19032 | return resultobj; | |
19033 | fail: | |
19034 | return NULL; | |
70b7a5fe RD |
19035 | } |
19036 | ||
19037 | ||
0085ce49 RD |
19038 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19039 | PyObject *resultobj = 0; | |
19040 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19041 | void *argp1 = 0 ; | |
19042 | int res1 = 0 ; | |
19043 | PyObject *swig_obj[1] ; | |
19044 | ||
19045 | if (!args) SWIG_fail; | |
19046 | swig_obj[0] = args; | |
19047 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
19048 | if (!SWIG_IsOK(res1)) { | |
19049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19050 | } | |
19051 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | delete arg1; | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | resultobj = SWIG_Py_Void(); | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19067 | PyObject *resultobj = 0; | |
19068 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19069 | bool arg2 ; | |
19070 | void *argp1 = 0 ; | |
19071 | int res1 = 0 ; | |
19072 | bool val2 ; | |
19073 | int ecode2 = 0 ; | |
19074 | PyObject * obj0 = 0 ; | |
19075 | PyObject * obj1 = 0 ; | |
19076 | char * kwnames[] = { | |
19077 | (char *) "self",(char *) "enable", NULL | |
19078 | }; | |
19079 | ||
19080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
19081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19082 | if (!SWIG_IsOK(res1)) { | |
19083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19084 | } | |
19085 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19086 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19087 | if (!SWIG_IsOK(ecode2)) { | |
19088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
19089 | } | |
19090 | arg2 = static_cast< bool >(val2); | |
19091 | { | |
19092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19093 | (arg1)->EnableEffects(arg2); | |
19094 | wxPyEndAllowThreads(__tstate); | |
19095 | if (PyErr_Occurred()) SWIG_fail; | |
19096 | } | |
19097 | resultobj = SWIG_Py_Void(); | |
19098 | return resultobj; | |
19099 | fail: | |
19100 | return NULL; | |
b2dc1044 RD |
19101 | } |
19102 | ||
19103 | ||
0085ce49 RD |
19104 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19105 | PyObject *resultobj = 0; | |
19106 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19107 | bool result; | |
19108 | void *argp1 = 0 ; | |
19109 | int res1 = 0 ; | |
19110 | PyObject *swig_obj[1] ; | |
19111 | ||
19112 | if (!args) SWIG_fail; | |
19113 | swig_obj[0] = args; | |
19114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19115 | if (!SWIG_IsOK(res1)) { | |
19116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19117 | } | |
19118 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19119 | { | |
19120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19121 | result = (bool)(arg1)->GetAllowSymbols(); | |
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
19125 | { | |
19126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19127 | } | |
19128 | return resultobj; | |
19129 | fail: | |
19130 | return NULL; | |
d14a1e28 RD |
19131 | } |
19132 | ||
19133 | ||
0085ce49 RD |
19134 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19135 | PyObject *resultobj = 0; | |
19136 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19137 | wxColour result; | |
19138 | void *argp1 = 0 ; | |
19139 | int res1 = 0 ; | |
19140 | PyObject *swig_obj[1] ; | |
19141 | ||
19142 | if (!args) SWIG_fail; | |
19143 | swig_obj[0] = args; | |
19144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19145 | if (!SWIG_IsOK(res1)) { | |
19146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19147 | } | |
19148 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19149 | { | |
19150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19151 | result = (arg1)->GetColour(); | |
19152 | wxPyEndAllowThreads(__tstate); | |
19153 | if (PyErr_Occurred()) SWIG_fail; | |
19154 | } | |
19155 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
19156 | return resultobj; | |
19157 | fail: | |
19158 | return NULL; | |
d14a1e28 RD |
19159 | } |
19160 | ||
19161 | ||
0085ce49 RD |
19162 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19163 | PyObject *resultobj = 0; | |
19164 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19165 | wxFont result; | |
19166 | void *argp1 = 0 ; | |
19167 | int res1 = 0 ; | |
19168 | PyObject *swig_obj[1] ; | |
19169 | ||
19170 | if (!args) SWIG_fail; | |
19171 | swig_obj[0] = args; | |
19172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19173 | if (!SWIG_IsOK(res1)) { | |
19174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19175 | } | |
19176 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19177 | { | |
19178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19179 | result = (arg1)->GetChosenFont(); | |
19180 | wxPyEndAllowThreads(__tstate); | |
19181 | if (PyErr_Occurred()) SWIG_fail; | |
19182 | } | |
19183 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19184 | return resultobj; | |
19185 | fail: | |
19186 | return NULL; | |
d14a1e28 RD |
19187 | } |
19188 | ||
19189 | ||
0085ce49 RD |
19190 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19191 | PyObject *resultobj = 0; | |
19192 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19193 | bool result; | |
19194 | void *argp1 = 0 ; | |
19195 | int res1 = 0 ; | |
19196 | PyObject *swig_obj[1] ; | |
19197 | ||
19198 | if (!args) SWIG_fail; | |
19199 | swig_obj[0] = args; | |
19200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19201 | if (!SWIG_IsOK(res1)) { | |
19202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19203 | } | |
19204 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19205 | { | |
19206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19207 | result = (bool)(arg1)->GetEnableEffects(); | |
19208 | wxPyEndAllowThreads(__tstate); | |
19209 | if (PyErr_Occurred()) SWIG_fail; | |
19210 | } | |
19211 | { | |
19212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19213 | } | |
19214 | return resultobj; | |
19215 | fail: | |
19216 | return NULL; | |
d14a1e28 RD |
19217 | } |
19218 | ||
19219 | ||
0085ce49 RD |
19220 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19221 | PyObject *resultobj = 0; | |
19222 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19223 | wxFont result; | |
19224 | void *argp1 = 0 ; | |
19225 | int res1 = 0 ; | |
19226 | PyObject *swig_obj[1] ; | |
19227 | ||
19228 | if (!args) SWIG_fail; | |
19229 | swig_obj[0] = args; | |
19230 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19231 | if (!SWIG_IsOK(res1)) { | |
19232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19233 | } | |
19234 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19235 | { | |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | result = (arg1)->GetInitialFont(); | |
19238 | wxPyEndAllowThreads(__tstate); | |
19239 | if (PyErr_Occurred()) SWIG_fail; | |
19240 | } | |
19241 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19242 | return resultobj; | |
19243 | fail: | |
19244 | return NULL; | |
d14a1e28 RD |
19245 | } |
19246 | ||
19247 | ||
0085ce49 RD |
19248 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19249 | PyObject *resultobj = 0; | |
19250 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19251 | bool result; | |
19252 | void *argp1 = 0 ; | |
19253 | int res1 = 0 ; | |
19254 | PyObject *swig_obj[1] ; | |
19255 | ||
19256 | if (!args) SWIG_fail; | |
19257 | swig_obj[0] = args; | |
19258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19259 | if (!SWIG_IsOK(res1)) { | |
19260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19261 | } | |
19262 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19263 | { | |
19264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19265 | result = (bool)(arg1)->GetShowHelp(); | |
19266 | wxPyEndAllowThreads(__tstate); | |
19267 | if (PyErr_Occurred()) SWIG_fail; | |
19268 | } | |
19269 | { | |
19270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19271 | } | |
19272 | return resultobj; | |
19273 | fail: | |
19274 | return NULL; | |
19275 | } | |
19276 | ||
19277 | ||
19278 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19279 | PyObject *resultobj = 0; | |
19280 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19281 | bool arg2 ; | |
19282 | void *argp1 = 0 ; | |
19283 | int res1 = 0 ; | |
19284 | bool val2 ; | |
19285 | int ecode2 = 0 ; | |
19286 | PyObject * obj0 = 0 ; | |
19287 | PyObject * obj1 = 0 ; | |
19288 | char * kwnames[] = { | |
19289 | (char *) "self",(char *) "allowSymbols", NULL | |
19290 | }; | |
19291 | ||
19292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
19293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19294 | if (!SWIG_IsOK(res1)) { | |
19295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19296 | } | |
19297 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19298 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19299 | if (!SWIG_IsOK(ecode2)) { | |
19300 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
19301 | } | |
19302 | arg2 = static_cast< bool >(val2); | |
19303 | { | |
19304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19305 | (arg1)->SetAllowSymbols(arg2); | |
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
19309 | resultobj = SWIG_Py_Void(); | |
19310 | return resultobj; | |
19311 | fail: | |
19312 | return NULL; | |
19313 | } | |
19314 | ||
19315 | ||
19316 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19317 | PyObject *resultobj = 0; | |
19318 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19319 | wxFont *arg2 = 0 ; | |
19320 | void *argp1 = 0 ; | |
19321 | int res1 = 0 ; | |
19322 | void *argp2 = 0 ; | |
19323 | int res2 = 0 ; | |
19324 | PyObject * obj0 = 0 ; | |
19325 | PyObject * obj1 = 0 ; | |
19326 | char * kwnames[] = { | |
19327 | (char *) "self",(char *) "font", NULL | |
19328 | }; | |
19329 | ||
19330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
19331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19332 | if (!SWIG_IsOK(res1)) { | |
19333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19334 | } | |
19335 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19336 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19337 | if (!SWIG_IsOK(res2)) { | |
19338 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19339 | } | |
19340 | if (!argp2) { | |
19341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19342 | } | |
19343 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
19344 | { | |
19345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19346 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
19350 | resultobj = SWIG_Py_Void(); | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19358 | PyObject *resultobj = 0; | |
19359 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19360 | wxColour *arg2 = 0 ; | |
19361 | void *argp1 = 0 ; | |
19362 | int res1 = 0 ; | |
19363 | wxColour temp2 ; | |
19364 | PyObject * obj0 = 0 ; | |
19365 | PyObject * obj1 = 0 ; | |
19366 | char * kwnames[] = { | |
19367 | (char *) "self",(char *) "colour", NULL | |
19368 | }; | |
19369 | ||
19370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
19371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19372 | if (!SWIG_IsOK(res1)) { | |
19373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19374 | } | |
19375 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19376 | { | |
19377 | arg2 = &temp2; | |
19378 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19379 | } | |
19380 | { | |
19381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19382 | (arg1)->SetColour((wxColour const &)*arg2); | |
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
19386 | resultobj = SWIG_Py_Void(); | |
19387 | return resultobj; | |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj = 0; | |
19395 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19396 | wxFont *arg2 = 0 ; | |
19397 | void *argp1 = 0 ; | |
19398 | int res1 = 0 ; | |
19399 | void *argp2 = 0 ; | |
19400 | int res2 = 0 ; | |
19401 | PyObject * obj0 = 0 ; | |
19402 | PyObject * obj1 = 0 ; | |
19403 | char * kwnames[] = { | |
19404 | (char *) "self",(char *) "font", NULL | |
19405 | }; | |
19406 | ||
19407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
19408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19409 | if (!SWIG_IsOK(res1)) { | |
19410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19411 | } | |
19412 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19413 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19414 | if (!SWIG_IsOK(res2)) { | |
19415 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19416 | } | |
19417 | if (!argp2) { | |
19418 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19419 | } | |
19420 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
19421 | { | |
19422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19423 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
19424 | wxPyEndAllowThreads(__tstate); | |
19425 | if (PyErr_Occurred()) SWIG_fail; | |
19426 | } | |
19427 | resultobj = SWIG_Py_Void(); | |
19428 | return resultobj; | |
19429 | fail: | |
19430 | return NULL; | |
19431 | } | |
19432 | ||
19433 | ||
19434 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19435 | PyObject *resultobj = 0; | |
19436 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19437 | int arg2 ; | |
19438 | int arg3 ; | |
19439 | void *argp1 = 0 ; | |
19440 | int res1 = 0 ; | |
19441 | int val2 ; | |
19442 | int ecode2 = 0 ; | |
19443 | int val3 ; | |
19444 | int ecode3 = 0 ; | |
19445 | PyObject * obj0 = 0 ; | |
19446 | PyObject * obj1 = 0 ; | |
19447 | PyObject * obj2 = 0 ; | |
19448 | char * kwnames[] = { | |
19449 | (char *) "self",(char *) "min",(char *) "max", NULL | |
19450 | }; | |
19451 | ||
19452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19454 | if (!SWIG_IsOK(res1)) { | |
19455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19456 | } | |
19457 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19458 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19459 | if (!SWIG_IsOK(ecode2)) { | |
19460 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
19461 | } | |
19462 | arg2 = static_cast< int >(val2); | |
19463 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19464 | if (!SWIG_IsOK(ecode3)) { | |
19465 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
19466 | } | |
19467 | arg3 = static_cast< int >(val3); | |
19468 | { | |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | (arg1)->SetRange(arg2,arg3); | |
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | resultobj = SWIG_Py_Void(); | |
19475 | return resultobj; | |
19476 | fail: | |
19477 | return NULL; | |
19478 | } | |
19479 | ||
19480 | ||
19481 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19482 | PyObject *resultobj = 0; | |
19483 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19484 | bool arg2 ; | |
19485 | void *argp1 = 0 ; | |
19486 | int res1 = 0 ; | |
19487 | bool val2 ; | |
19488 | int ecode2 = 0 ; | |
19489 | PyObject * obj0 = 0 ; | |
19490 | PyObject * obj1 = 0 ; | |
19491 | char * kwnames[] = { | |
19492 | (char *) "self",(char *) "showHelp", NULL | |
19493 | }; | |
19494 | ||
19495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
19496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19497 | if (!SWIG_IsOK(res1)) { | |
19498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19499 | } | |
19500 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19501 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19502 | if (!SWIG_IsOK(ecode2)) { | |
19503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
19504 | } | |
19505 | arg2 = static_cast< bool >(val2); | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | (arg1)->SetShowHelp(arg2); | |
19509 | wxPyEndAllowThreads(__tstate); | |
19510 | if (PyErr_Occurred()) SWIG_fail; | |
19511 | } | |
19512 | resultobj = SWIG_Py_Void(); | |
19513 | return resultobj; | |
19514 | fail: | |
19515 | return NULL; | |
d14a1e28 RD |
19516 | } |
19517 | ||
19518 | ||
0085ce49 RD |
19519 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19520 | PyObject *obj; | |
19521 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19522 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
19523 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19524 | } |
19525 | ||
0085ce49 RD |
19526 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19527 | return SWIG_Python_InitShadowInstance(args); | |
19528 | } | |
d14a1e28 | 19529 | |
0085ce49 RD |
19530 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19531 | PyObject *resultobj = 0; | |
19532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19533 | wxFontData *arg2 = 0 ; | |
19534 | wxFontDialog *result = 0 ; | |
19535 | void *argp1 = 0 ; | |
19536 | int res1 = 0 ; | |
19537 | void *argp2 = 0 ; | |
19538 | int res2 = 0 ; | |
19539 | PyObject * obj0 = 0 ; | |
19540 | PyObject * obj1 = 0 ; | |
19541 | char * kwnames[] = { | |
19542 | (char *) "parent",(char *) "data", NULL | |
19543 | }; | |
19544 | ||
19545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
19546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19547 | if (!SWIG_IsOK(res1)) { | |
19548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19549 | } | |
19550 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19551 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
19552 | if (!SWIG_IsOK(res2)) { | |
19553 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19554 | } | |
19555 | if (!argp2) { | |
19556 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19557 | } | |
19558 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
19559 | { | |
19560 | if (!wxPyCheckForApp()) SWIG_fail; | |
19561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19562 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
19563 | wxPyEndAllowThreads(__tstate); | |
19564 | if (PyErr_Occurred()) SWIG_fail; | |
19565 | } | |
19566 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
19567 | return resultobj; | |
19568 | fail: | |
19569 | return NULL; | |
19570 | } | |
19571 | ||
19572 | ||
19573 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19574 | PyObject *resultobj = 0; | |
19575 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
19576 | wxFontData *result = 0 ; | |
19577 | void *argp1 = 0 ; | |
19578 | int res1 = 0 ; | |
19579 | PyObject *swig_obj[1] ; | |
19580 | ||
19581 | if (!args) SWIG_fail; | |
19582 | swig_obj[0] = args; | |
19583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
19584 | if (!SWIG_IsOK(res1)) { | |
19585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
19586 | } | |
19587 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
19588 | { | |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19590 | { |
0085ce49 RD |
19591 | wxFontData &_result_ref = (arg1)->GetFontData(); |
19592 | result = (wxFontData *) &_result_ref; | |
093d3ff1 | 19593 | } |
0085ce49 RD |
19594 | wxPyEndAllowThreads(__tstate); |
19595 | if (PyErr_Occurred()) SWIG_fail; | |
19596 | } | |
19597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19598 | return resultobj; | |
19599 | fail: | |
19600 | return NULL; | |
19601 | } | |
19602 | ||
19603 | ||
19604 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19605 | PyObject *obj; | |
19606 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19607 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
19608 | return SWIG_Py_Void(); | |
19609 | } | |
19610 | ||
19611 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19612 | return SWIG_Python_InitShadowInstance(args); | |
19613 | } | |
19614 | ||
19615 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19616 | PyObject *resultobj = 0; | |
19617 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19618 | wxFont const &arg2_defvalue = wxNullFont ; | |
19619 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
19620 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19621 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19622 | wxFont result; | |
19623 | void *argp1 = 0 ; | |
19624 | int res1 = 0 ; | |
19625 | void *argp2 = 0 ; | |
19626 | int res2 = 0 ; | |
19627 | bool temp3 = false ; | |
19628 | PyObject * obj0 = 0 ; | |
19629 | PyObject * obj1 = 0 ; | |
19630 | PyObject * obj2 = 0 ; | |
19631 | char * kwnames[] = { | |
19632 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
19633 | }; | |
19634 | ||
19635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19636 | if (obj0) { | |
19637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19638 | if (!SWIG_IsOK(res1)) { | |
19639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19640 | } | |
19641 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19642 | } | |
19643 | if (obj1) { | |
19644 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19645 | if (!SWIG_IsOK(res2)) { | |
19646 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19647 | } | |
19648 | if (!argp2) { | |
19649 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d14a1e28 | 19650 | } |
0085ce49 RD |
19651 | arg2 = reinterpret_cast< wxFont * >(argp2); |
19652 | } | |
19653 | if (obj2) { | |
4f89f6a3 | 19654 | { |
0085ce49 RD |
19655 | arg3 = wxString_in_helper(obj2); |
19656 | if (arg3 == NULL) SWIG_fail; | |
19657 | temp3 = true; | |
4f89f6a3 | 19658 | } |
0085ce49 RD |
19659 | } |
19660 | { | |
19661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19662 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
19663 | wxPyEndAllowThreads(__tstate); | |
19664 | if (PyErr_Occurred()) SWIG_fail; | |
19665 | } | |
19666 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19667 | { | |
19668 | if (temp3) | |
19669 | delete arg3; | |
19670 | } | |
19671 | return resultobj; | |
19672 | fail: | |
19673 | { | |
19674 | if (temp3) | |
19675 | delete arg3; | |
19676 | } | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
19681 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19682 | PyObject *resultobj = 0; | |
19683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19684 | wxString *arg2 = 0 ; | |
19685 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
19686 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19687 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
19688 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
19689 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
19690 | wxMessageDialog *result = 0 ; | |
19691 | void *argp1 = 0 ; | |
19692 | int res1 = 0 ; | |
19693 | bool temp2 = false ; | |
19694 | bool temp3 = false ; | |
19695 | long val4 ; | |
19696 | int ecode4 = 0 ; | |
19697 | wxPoint temp5 ; | |
19698 | PyObject * obj0 = 0 ; | |
19699 | PyObject * obj1 = 0 ; | |
19700 | PyObject * obj2 = 0 ; | |
19701 | PyObject * obj3 = 0 ; | |
19702 | PyObject * obj4 = 0 ; | |
19703 | char * kwnames[] = { | |
19704 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
19705 | }; | |
19706 | ||
19707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19709 | if (!SWIG_IsOK(res1)) { | |
19710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19711 | } | |
19712 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19713 | { | |
19714 | arg2 = wxString_in_helper(obj1); | |
19715 | if (arg2 == NULL) SWIG_fail; | |
19716 | temp2 = true; | |
19717 | } | |
19718 | if (obj2) { | |
093d3ff1 | 19719 | { |
0085ce49 RD |
19720 | arg3 = wxString_in_helper(obj2); |
19721 | if (arg3 == NULL) SWIG_fail; | |
19722 | temp3 = true; | |
093d3ff1 | 19723 | } |
0085ce49 RD |
19724 | } |
19725 | if (obj3) { | |
19726 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
19727 | if (!SWIG_IsOK(ecode4)) { | |
19728 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
19729 | } | |
19730 | arg4 = static_cast< long >(val4); | |
19731 | } | |
19732 | if (obj4) { | |
d14a1e28 | 19733 | { |
0085ce49 RD |
19734 | arg5 = &temp5; |
19735 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19736 | } | |
19737 | } | |
19738 | { | |
19739 | if (!wxPyCheckForApp()) SWIG_fail; | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
19742 | wxPyEndAllowThreads(__tstate); | |
19743 | if (PyErr_Occurred()) SWIG_fail; | |
19744 | } | |
19745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
19746 | { | |
19747 | if (temp2) | |
19748 | delete arg2; | |
19749 | } | |
19750 | { | |
19751 | if (temp3) | |
19752 | delete arg3; | |
19753 | } | |
19754 | return resultobj; | |
19755 | fail: | |
19756 | { | |
19757 | if (temp2) | |
19758 | delete arg2; | |
19759 | } | |
19760 | { | |
19761 | if (temp3) | |
19762 | delete arg3; | |
19763 | } | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
19768 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19769 | PyObject *obj; | |
19770 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19771 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
19772 | return SWIG_Py_Void(); | |
19773 | } | |
19774 | ||
19775 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19776 | return SWIG_Python_InitShadowInstance(args); | |
19777 | } | |
19778 | ||
19779 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj = 0; | |
19781 | wxString *arg1 = 0 ; | |
19782 | wxString *arg2 = 0 ; | |
19783 | int arg3 = (int) 100 ; | |
19784 | wxWindow *arg4 = (wxWindow *) NULL ; | |
19785 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
19786 | wxProgressDialog *result = 0 ; | |
19787 | bool temp1 = false ; | |
19788 | bool temp2 = false ; | |
19789 | int val3 ; | |
19790 | int ecode3 = 0 ; | |
19791 | void *argp4 = 0 ; | |
19792 | int res4 = 0 ; | |
19793 | int val5 ; | |
19794 | int ecode5 = 0 ; | |
19795 | PyObject * obj0 = 0 ; | |
19796 | PyObject * obj1 = 0 ; | |
19797 | PyObject * obj2 = 0 ; | |
19798 | PyObject * obj3 = 0 ; | |
19799 | PyObject * obj4 = 0 ; | |
19800 | char * kwnames[] = { | |
19801 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
19802 | }; | |
19803 | ||
19804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19805 | { | |
19806 | arg1 = wxString_in_helper(obj0); | |
19807 | if (arg1 == NULL) SWIG_fail; | |
19808 | temp1 = true; | |
19809 | } | |
19810 | { | |
19811 | arg2 = wxString_in_helper(obj1); | |
19812 | if (arg2 == NULL) SWIG_fail; | |
19813 | temp2 = true; | |
19814 | } | |
19815 | if (obj2) { | |
19816 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19817 | if (!SWIG_IsOK(ecode3)) { | |
19818 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
19819 | } | |
19820 | arg3 = static_cast< int >(val3); | |
19821 | } | |
19822 | if (obj3) { | |
19823 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19824 | if (!SWIG_IsOK(res4)) { | |
19825 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d14a1e28 | 19826 | } |
0085ce49 RD |
19827 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
19828 | } | |
19829 | if (obj4) { | |
19830 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19831 | if (!SWIG_IsOK(ecode5)) { | |
19832 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
19833 | } | |
19834 | arg5 = static_cast< int >(val5); | |
19835 | } | |
19836 | { | |
19837 | if (!wxPyCheckForApp()) SWIG_fail; | |
19838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19839 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19840 | wxPyEndAllowThreads(__tstate); | |
19841 | if (PyErr_Occurred()) SWIG_fail; | |
19842 | } | |
19843 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19844 | { | |
19845 | if (temp1) | |
19846 | delete arg1; | |
19847 | } | |
19848 | { | |
19849 | if (temp2) | |
19850 | delete arg2; | |
19851 | } | |
19852 | return resultobj; | |
19853 | fail: | |
19854 | { | |
19855 | if (temp1) | |
19856 | delete arg1; | |
19857 | } | |
19858 | { | |
19859 | if (temp2) | |
19860 | delete arg2; | |
19861 | } | |
19862 | return NULL; | |
19863 | } | |
19864 | ||
19865 | ||
19866 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19867 | PyObject *resultobj = 0; | |
19868 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19869 | int arg2 ; | |
19870 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19871 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
01f6b6d3 | 19872 | bool *arg4 = (bool *) 0 ; |
0085ce49 RD |
19873 | bool result; |
19874 | void *argp1 = 0 ; | |
19875 | int res1 = 0 ; | |
19876 | int val2 ; | |
19877 | int ecode2 = 0 ; | |
19878 | bool temp3 = false ; | |
01f6b6d3 RD |
19879 | bool temp4 ; |
19880 | int res4 = SWIG_TMPOBJ ; | |
0085ce49 RD |
19881 | PyObject * obj0 = 0 ; |
19882 | PyObject * obj1 = 0 ; | |
19883 | PyObject * obj2 = 0 ; | |
19884 | char * kwnames[] = { | |
19885 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19886 | }; | |
19887 | ||
01f6b6d3 | 19888 | arg4 = &temp4; |
0085ce49 RD |
19889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
19890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19891 | if (!SWIG_IsOK(res1)) { | |
19892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19893 | } | |
19894 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19895 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19896 | if (!SWIG_IsOK(ecode2)) { | |
19897 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19898 | } | |
19899 | arg2 = static_cast< int >(val2); | |
19900 | if (obj2) { | |
4f89f6a3 | 19901 | { |
0085ce49 RD |
19902 | arg3 = wxString_in_helper(obj2); |
19903 | if (arg3 == NULL) SWIG_fail; | |
19904 | temp3 = true; | |
4f89f6a3 | 19905 | } |
0085ce49 RD |
19906 | } |
19907 | { | |
19908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 19909 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3,arg4); |
0085ce49 RD |
19910 | wxPyEndAllowThreads(__tstate); |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
19913 | { | |
19914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19915 | } | |
01f6b6d3 RD |
19916 | if (SWIG_IsTmpObj(res4)) { |
19917 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
19918 | } else { | |
19919 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19920 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
19921 | } | |
0085ce49 RD |
19922 | { |
19923 | if (temp3) | |
19924 | delete arg3; | |
19925 | } | |
19926 | return resultobj; | |
19927 | fail: | |
19928 | { | |
19929 | if (temp3) | |
19930 | delete arg3; | |
19931 | } | |
19932 | return NULL; | |
d14a1e28 RD |
19933 | } |
19934 | ||
19935 | ||
6b449b19 | 19936 | SWIGINTERN PyObject *_wrap_ProgressDialog_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
ae5bc7f3 RD |
19937 | PyObject *resultobj = 0; |
19938 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19939 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19940 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19941 | bool *arg3 = (bool *) 0 ; | |
19942 | bool result; | |
19943 | void *argp1 = 0 ; | |
19944 | int res1 = 0 ; | |
19945 | bool temp2 = false ; | |
19946 | bool temp3 ; | |
19947 | int res3 = SWIG_TMPOBJ ; | |
19948 | PyObject * obj0 = 0 ; | |
19949 | PyObject * obj1 = 0 ; | |
19950 | char * kwnames[] = { | |
19951 | (char *) "self",(char *) "newmsg", NULL | |
19952 | }; | |
19953 | ||
19954 | arg3 = &temp3; | |
6b449b19 | 19955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ProgressDialog_Pulse",kwnames,&obj0,&obj1)) SWIG_fail; |
ae5bc7f3 RD |
19956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); |
19957 | if (!SWIG_IsOK(res1)) { | |
6b449b19 | 19958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Pulse" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); |
ae5bc7f3 RD |
19959 | } |
19960 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19961 | if (obj1) { | |
19962 | { | |
19963 | arg2 = wxString_in_helper(obj1); | |
19964 | if (arg2 == NULL) SWIG_fail; | |
19965 | temp2 = true; | |
19966 | } | |
19967 | } | |
19968 | { | |
19969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6b449b19 | 19970 | result = (bool)(arg1)->Pulse((wxString const &)*arg2,arg3); |
ae5bc7f3 RD |
19971 | wxPyEndAllowThreads(__tstate); |
19972 | if (PyErr_Occurred()) SWIG_fail; | |
19973 | } | |
19974 | { | |
19975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19976 | } | |
19977 | if (SWIG_IsTmpObj(res3)) { | |
19978 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg3))); | |
19979 | } else { | |
19980 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19981 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_bool, new_flags)); | |
19982 | } | |
19983 | { | |
19984 | if (temp2) | |
19985 | delete arg2; | |
19986 | } | |
19987 | return resultobj; | |
19988 | fail: | |
19989 | { | |
19990 | if (temp2) | |
19991 | delete arg2; | |
19992 | } | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
0085ce49 RD |
19997 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19998 | PyObject *resultobj = 0; | |
19999 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
20000 | void *argp1 = 0 ; | |
20001 | int res1 = 0 ; | |
20002 | PyObject *swig_obj[1] ; | |
20003 | ||
20004 | if (!args) SWIG_fail; | |
20005 | swig_obj[0] = args; | |
20006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
20007 | if (!SWIG_IsOK(res1)) { | |
20008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
20009 | } | |
20010 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
20011 | { | |
20012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20013 | (arg1)->Resume(); | |
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | resultobj = SWIG_Py_Void(); | |
20018 | return resultobj; | |
20019 | fail: | |
20020 | return NULL; | |
d14a1e28 RD |
20021 | } |
20022 | ||
20023 | ||
0085ce49 RD |
20024 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20025 | PyObject *obj; | |
20026 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20027 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
20028 | return SWIG_Py_Void(); | |
d14a1e28 RD |
20029 | } |
20030 | ||
0085ce49 RD |
20031 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20032 | return SWIG_Python_InitShadowInstance(args); | |
20033 | } | |
d14a1e28 | 20034 | |
0085ce49 RD |
20035 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20036 | PyObject *resultobj = 0; | |
20037 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20038 | int arg2 = (int) 0 ; | |
20039 | wxFindDialogEvent *result = 0 ; | |
20040 | int val1 ; | |
20041 | int ecode1 = 0 ; | |
20042 | int val2 ; | |
20043 | int ecode2 = 0 ; | |
20044 | PyObject * obj0 = 0 ; | |
20045 | PyObject * obj1 = 0 ; | |
20046 | char * kwnames[] = { | |
20047 | (char *) "commandType",(char *) "id", NULL | |
20048 | }; | |
20049 | ||
20050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
20051 | if (obj0) { | |
20052 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20053 | if (!SWIG_IsOK(ecode1)) { | |
20054 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
20055 | } | |
20056 | arg1 = static_cast< wxEventType >(val1); | |
20057 | } | |
20058 | if (obj1) { | |
20059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20060 | if (!SWIG_IsOK(ecode2)) { | |
20061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
20062 | } | |
20063 | arg2 = static_cast< int >(val2); | |
20064 | } | |
20065 | { | |
20066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20067 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
20072 | return resultobj; | |
20073 | fail: | |
20074 | return NULL; | |
d14a1e28 RD |
20075 | } |
20076 | ||
20077 | ||
0085ce49 RD |
20078 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20079 | PyObject *resultobj = 0; | |
20080 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20081 | int result; | |
20082 | void *argp1 = 0 ; | |
20083 | int res1 = 0 ; | |
20084 | PyObject *swig_obj[1] ; | |
20085 | ||
20086 | if (!args) SWIG_fail; | |
20087 | swig_obj[0] = args; | |
20088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20089 | if (!SWIG_IsOK(res1)) { | |
20090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20091 | } | |
20092 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20093 | { | |
20094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20095 | result = (int)(arg1)->GetFlags(); | |
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
d14a1e28 RD |
20103 | } |
20104 | ||
20105 | ||
0085ce49 RD |
20106 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20107 | PyObject *resultobj = 0; | |
20108 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20109 | wxString *result = 0 ; | |
20110 | void *argp1 = 0 ; | |
20111 | int res1 = 0 ; | |
20112 | PyObject *swig_obj[1] ; | |
20113 | ||
20114 | if (!args) SWIG_fail; | |
20115 | swig_obj[0] = args; | |
20116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20117 | if (!SWIG_IsOK(res1)) { | |
20118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20119 | } | |
20120 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20121 | { | |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 20123 | { |
0085ce49 RD |
20124 | wxString const &_result_ref = (arg1)->GetFindString(); |
20125 | result = (wxString *) &_result_ref; | |
d14a1e28 | 20126 | } |
0085ce49 RD |
20127 | wxPyEndAllowThreads(__tstate); |
20128 | if (PyErr_Occurred()) SWIG_fail; | |
20129 | } | |
20130 | { | |
20131 | #if wxUSE_UNICODE | |
20132 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20133 | #else | |
20134 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20135 | #endif | |
20136 | } | |
20137 | return resultobj; | |
20138 | fail: | |
20139 | return NULL; | |
d14a1e28 RD |
20140 | } |
20141 | ||
20142 | ||
0085ce49 RD |
20143 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20144 | PyObject *resultobj = 0; | |
20145 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20146 | wxString *result = 0 ; | |
20147 | void *argp1 = 0 ; | |
20148 | int res1 = 0 ; | |
20149 | PyObject *swig_obj[1] ; | |
20150 | ||
20151 | if (!args) SWIG_fail; | |
20152 | swig_obj[0] = args; | |
20153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20154 | if (!SWIG_IsOK(res1)) { | |
20155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20156 | } | |
20157 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20158 | { | |
20159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 20160 | { |
0085ce49 RD |
20161 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
20162 | result = (wxString *) &_result_ref; | |
093d3ff1 | 20163 | } |
0085ce49 RD |
20164 | wxPyEndAllowThreads(__tstate); |
20165 | if (PyErr_Occurred()) SWIG_fail; | |
20166 | } | |
20167 | { | |
20168 | #if wxUSE_UNICODE | |
20169 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20170 | #else | |
20171 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20172 | #endif | |
20173 | } | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
d14a1e28 RD |
20177 | } |
20178 | ||
20179 | ||
0085ce49 RD |
20180 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20181 | PyObject *resultobj = 0; | |
20182 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20183 | wxFindReplaceDialog *result = 0 ; | |
20184 | void *argp1 = 0 ; | |
20185 | int res1 = 0 ; | |
20186 | PyObject *swig_obj[1] ; | |
20187 | ||
20188 | if (!args) SWIG_fail; | |
20189 | swig_obj[0] = args; | |
20190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20191 | if (!SWIG_IsOK(res1)) { | |
20192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20193 | } | |
20194 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20195 | { | |
20196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20197 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
20198 | wxPyEndAllowThreads(__tstate); | |
20199 | if (PyErr_Occurred()) SWIG_fail; | |
20200 | } | |
20201 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20202 | return resultobj; | |
20203 | fail: | |
20204 | return NULL; | |
20205 | } | |
20206 | ||
20207 | ||
20208 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20209 | PyObject *resultobj = 0; | |
20210 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20211 | int arg2 ; | |
20212 | void *argp1 = 0 ; | |
20213 | int res1 = 0 ; | |
20214 | int val2 ; | |
20215 | int ecode2 = 0 ; | |
20216 | PyObject * obj0 = 0 ; | |
20217 | PyObject * obj1 = 0 ; | |
20218 | char * kwnames[] = { | |
20219 | (char *) "self",(char *) "flags", NULL | |
20220 | }; | |
20221 | ||
20222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
20223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20224 | if (!SWIG_IsOK(res1)) { | |
20225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20226 | } | |
20227 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20228 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20229 | if (!SWIG_IsOK(ecode2)) { | |
20230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
20231 | } | |
20232 | arg2 = static_cast< int >(val2); | |
20233 | { | |
20234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20235 | (arg1)->SetFlags(arg2); | |
20236 | wxPyEndAllowThreads(__tstate); | |
20237 | if (PyErr_Occurred()) SWIG_fail; | |
20238 | } | |
20239 | resultobj = SWIG_Py_Void(); | |
20240 | return resultobj; | |
20241 | fail: | |
20242 | return NULL; | |
20243 | } | |
20244 | ||
20245 | ||
20246 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20247 | PyObject *resultobj = 0; | |
20248 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20249 | wxString *arg2 = 0 ; | |
20250 | void *argp1 = 0 ; | |
20251 | int res1 = 0 ; | |
20252 | bool temp2 = false ; | |
20253 | PyObject * obj0 = 0 ; | |
20254 | PyObject * obj1 = 0 ; | |
20255 | char * kwnames[] = { | |
20256 | (char *) "self",(char *) "str", NULL | |
20257 | }; | |
20258 | ||
20259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20261 | if (!SWIG_IsOK(res1)) { | |
20262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20263 | } | |
20264 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20265 | { | |
20266 | arg2 = wxString_in_helper(obj1); | |
20267 | if (arg2 == NULL) SWIG_fail; | |
20268 | temp2 = true; | |
20269 | } | |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | (arg1)->SetFindString((wxString const &)*arg2); | |
20273 | wxPyEndAllowThreads(__tstate); | |
20274 | if (PyErr_Occurred()) SWIG_fail; | |
20275 | } | |
20276 | resultobj = SWIG_Py_Void(); | |
20277 | { | |
20278 | if (temp2) | |
20279 | delete arg2; | |
20280 | } | |
20281 | return resultobj; | |
20282 | fail: | |
20283 | { | |
20284 | if (temp2) | |
20285 | delete arg2; | |
20286 | } | |
20287 | return NULL; | |
d14a1e28 RD |
20288 | } |
20289 | ||
20290 | ||
0085ce49 RD |
20291 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20292 | PyObject *resultobj = 0; | |
20293 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
20294 | wxString *arg2 = 0 ; | |
20295 | void *argp1 = 0 ; | |
20296 | int res1 = 0 ; | |
20297 | bool temp2 = false ; | |
20298 | PyObject * obj0 = 0 ; | |
20299 | PyObject * obj1 = 0 ; | |
20300 | char * kwnames[] = { | |
20301 | (char *) "self",(char *) "str", NULL | |
20302 | }; | |
20303 | ||
20304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
20306 | if (!SWIG_IsOK(res1)) { | |
20307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
20308 | } | |
20309 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
20310 | { | |
20311 | arg2 = wxString_in_helper(obj1); | |
20312 | if (arg2 == NULL) SWIG_fail; | |
20313 | temp2 = true; | |
20314 | } | |
20315 | { | |
20316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20317 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
20318 | wxPyEndAllowThreads(__tstate); | |
20319 | if (PyErr_Occurred()) SWIG_fail; | |
20320 | } | |
20321 | resultobj = SWIG_Py_Void(); | |
20322 | { | |
20323 | if (temp2) | |
20324 | delete arg2; | |
20325 | } | |
20326 | return resultobj; | |
20327 | fail: | |
20328 | { | |
20329 | if (temp2) | |
20330 | delete arg2; | |
20331 | } | |
20332 | return NULL; | |
d14a1e28 RD |
20333 | } |
20334 | ||
20335 | ||
0085ce49 RD |
20336 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20337 | PyObject *obj; | |
20338 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20339 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
20340 | return SWIG_Py_Void(); | |
d14a1e28 RD |
20341 | } |
20342 | ||
0085ce49 RD |
20343 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20344 | return SWIG_Python_InitShadowInstance(args); | |
20345 | } | |
d14a1e28 | 20346 | |
0085ce49 RD |
20347 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20348 | PyObject *resultobj = 0; | |
20349 | int arg1 = (int) 0 ; | |
20350 | wxFindReplaceData *result = 0 ; | |
20351 | int val1 ; | |
20352 | int ecode1 = 0 ; | |
20353 | PyObject * obj0 = 0 ; | |
20354 | char * kwnames[] = { | |
20355 | (char *) "flags", NULL | |
20356 | }; | |
20357 | ||
20358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
20359 | if (obj0) { | |
20360 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20361 | if (!SWIG_IsOK(ecode1)) { | |
20362 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
20363 | } | |
20364 | arg1 = static_cast< int >(val1); | |
20365 | } | |
20366 | { | |
20367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20368 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
20369 | wxPyEndAllowThreads(__tstate); | |
20370 | if (PyErr_Occurred()) SWIG_fail; | |
20371 | } | |
20372 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
20373 | return resultobj; | |
20374 | fail: | |
20375 | return NULL; | |
d14a1e28 RD |
20376 | } |
20377 | ||
20378 | ||
0085ce49 RD |
20379 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20380 | PyObject *resultobj = 0; | |
20381 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20382 | void *argp1 = 0 ; | |
20383 | int res1 = 0 ; | |
20384 | PyObject *swig_obj[1] ; | |
20385 | ||
20386 | if (!args) SWIG_fail; | |
20387 | swig_obj[0] = args; | |
20388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
20389 | if (!SWIG_IsOK(res1)) { | |
20390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20391 | } | |
20392 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20393 | { | |
20394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20395 | delete arg1; | |
d14a1e28 | 20396 | |
0085ce49 RD |
20397 | wxPyEndAllowThreads(__tstate); |
20398 | if (PyErr_Occurred()) SWIG_fail; | |
20399 | } | |
20400 | resultobj = SWIG_Py_Void(); | |
20401 | return resultobj; | |
20402 | fail: | |
20403 | return NULL; | |
d14a1e28 RD |
20404 | } |
20405 | ||
20406 | ||
0085ce49 RD |
20407 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20408 | PyObject *resultobj = 0; | |
20409 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20410 | wxString *result = 0 ; | |
20411 | void *argp1 = 0 ; | |
20412 | int res1 = 0 ; | |
20413 | PyObject *swig_obj[1] ; | |
20414 | ||
20415 | if (!args) SWIG_fail; | |
20416 | swig_obj[0] = args; | |
20417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20418 | if (!SWIG_IsOK(res1)) { | |
20419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20420 | } | |
20421 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20422 | { | |
20423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 20424 | { |
0085ce49 RD |
20425 | wxString const &_result_ref = (arg1)->GetFindString(); |
20426 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 20427 | } |
0085ce49 RD |
20428 | wxPyEndAllowThreads(__tstate); |
20429 | if (PyErr_Occurred()) SWIG_fail; | |
20430 | } | |
20431 | { | |
20432 | #if wxUSE_UNICODE | |
20433 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20434 | #else | |
20435 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20436 | #endif | |
20437 | } | |
20438 | return resultobj; | |
20439 | fail: | |
20440 | return NULL; | |
d14a1e28 RD |
20441 | } |
20442 | ||
20443 | ||
0085ce49 RD |
20444 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20445 | PyObject *resultobj = 0; | |
20446 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20447 | wxString *result = 0 ; | |
20448 | void *argp1 = 0 ; | |
20449 | int res1 = 0 ; | |
20450 | PyObject *swig_obj[1] ; | |
20451 | ||
20452 | if (!args) SWIG_fail; | |
20453 | swig_obj[0] = args; | |
20454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20455 | if (!SWIG_IsOK(res1)) { | |
20456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20457 | } | |
20458 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20459 | { | |
20460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 20461 | { |
0085ce49 RD |
20462 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
20463 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 20464 | } |
0085ce49 RD |
20465 | wxPyEndAllowThreads(__tstate); |
20466 | if (PyErr_Occurred()) SWIG_fail; | |
20467 | } | |
20468 | { | |
20469 | #if wxUSE_UNICODE | |
20470 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20471 | #else | |
20472 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20473 | #endif | |
20474 | } | |
20475 | return resultobj; | |
20476 | fail: | |
20477 | return NULL; | |
d14a1e28 RD |
20478 | } |
20479 | ||
20480 | ||
0085ce49 RD |
20481 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20482 | PyObject *resultobj = 0; | |
20483 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20484 | int result; | |
20485 | void *argp1 = 0 ; | |
20486 | int res1 = 0 ; | |
20487 | PyObject *swig_obj[1] ; | |
20488 | ||
20489 | if (!args) SWIG_fail; | |
20490 | swig_obj[0] = args; | |
20491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20492 | if (!SWIG_IsOK(res1)) { | |
20493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20494 | } | |
20495 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | result = (int)(arg1)->GetFlags(); | |
20499 | wxPyEndAllowThreads(__tstate); | |
20500 | if (PyErr_Occurred()) SWIG_fail; | |
20501 | } | |
20502 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20510 | PyObject *resultobj = 0; | |
20511 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20512 | int arg2 ; | |
20513 | void *argp1 = 0 ; | |
20514 | int res1 = 0 ; | |
20515 | int val2 ; | |
20516 | int ecode2 = 0 ; | |
20517 | PyObject * obj0 = 0 ; | |
20518 | PyObject * obj1 = 0 ; | |
20519 | char * kwnames[] = { | |
20520 | (char *) "self",(char *) "flags", NULL | |
20521 | }; | |
20522 | ||
20523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
20524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20525 | if (!SWIG_IsOK(res1)) { | |
20526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20527 | } | |
20528 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20529 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20530 | if (!SWIG_IsOK(ecode2)) { | |
20531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
20532 | } | |
20533 | arg2 = static_cast< int >(val2); | |
20534 | { | |
20535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20536 | (arg1)->SetFlags(arg2); | |
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
20540 | resultobj = SWIG_Py_Void(); | |
20541 | return resultobj; | |
20542 | fail: | |
20543 | return NULL; | |
20544 | } | |
20545 | ||
20546 | ||
20547 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20548 | PyObject *resultobj = 0; | |
20549 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20550 | wxString *arg2 = 0 ; | |
20551 | void *argp1 = 0 ; | |
20552 | int res1 = 0 ; | |
20553 | bool temp2 = false ; | |
20554 | PyObject * obj0 = 0 ; | |
20555 | PyObject * obj1 = 0 ; | |
20556 | char * kwnames[] = { | |
20557 | (char *) "self",(char *) "str", NULL | |
20558 | }; | |
20559 | ||
20560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20562 | if (!SWIG_IsOK(res1)) { | |
20563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20564 | } | |
20565 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20566 | { | |
20567 | arg2 = wxString_in_helper(obj1); | |
20568 | if (arg2 == NULL) SWIG_fail; | |
20569 | temp2 = true; | |
20570 | } | |
20571 | { | |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | (arg1)->SetFindString((wxString const &)*arg2); | |
20574 | wxPyEndAllowThreads(__tstate); | |
20575 | if (PyErr_Occurred()) SWIG_fail; | |
20576 | } | |
20577 | resultobj = SWIG_Py_Void(); | |
20578 | { | |
20579 | if (temp2) | |
20580 | delete arg2; | |
20581 | } | |
20582 | return resultobj; | |
20583 | fail: | |
20584 | { | |
20585 | if (temp2) | |
20586 | delete arg2; | |
20587 | } | |
20588 | return NULL; | |
d14a1e28 RD |
20589 | } |
20590 | ||
20591 | ||
0085ce49 RD |
20592 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20593 | PyObject *resultobj = 0; | |
20594 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20595 | wxString *arg2 = 0 ; | |
20596 | void *argp1 = 0 ; | |
20597 | int res1 = 0 ; | |
20598 | bool temp2 = false ; | |
20599 | PyObject * obj0 = 0 ; | |
20600 | PyObject * obj1 = 0 ; | |
20601 | char * kwnames[] = { | |
20602 | (char *) "self",(char *) "str", NULL | |
20603 | }; | |
20604 | ||
20605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20607 | if (!SWIG_IsOK(res1)) { | |
20608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20609 | } | |
20610 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20611 | { | |
20612 | arg2 = wxString_in_helper(obj1); | |
20613 | if (arg2 == NULL) SWIG_fail; | |
20614 | temp2 = true; | |
20615 | } | |
20616 | { | |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
20619 | wxPyEndAllowThreads(__tstate); | |
20620 | if (PyErr_Occurred()) SWIG_fail; | |
20621 | } | |
20622 | resultobj = SWIG_Py_Void(); | |
20623 | { | |
20624 | if (temp2) | |
20625 | delete arg2; | |
20626 | } | |
20627 | return resultobj; | |
20628 | fail: | |
20629 | { | |
20630 | if (temp2) | |
20631 | delete arg2; | |
20632 | } | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20638 | PyObject *obj; | |
20639 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20640 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
20641 | return SWIG_Py_Void(); | |
20642 | } | |
20643 | ||
20644 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20645 | return SWIG_Python_InitShadowInstance(args); | |
20646 | } | |
20647 | ||
20648 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20649 | PyObject *resultobj = 0; | |
20650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20651 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20652 | wxString *arg3 = 0 ; | |
20653 | int arg4 = (int) 0 ; | |
20654 | wxFindReplaceDialog *result = 0 ; | |
20655 | void *argp1 = 0 ; | |
20656 | int res1 = 0 ; | |
20657 | void *argp2 = 0 ; | |
20658 | int res2 = 0 ; | |
20659 | bool temp3 = false ; | |
20660 | int val4 ; | |
20661 | int ecode4 = 0 ; | |
20662 | PyObject * obj0 = 0 ; | |
20663 | PyObject * obj1 = 0 ; | |
20664 | PyObject * obj2 = 0 ; | |
20665 | PyObject * obj3 = 0 ; | |
20666 | char * kwnames[] = { | |
20667 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20668 | }; | |
20669 | ||
20670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20672 | if (!SWIG_IsOK(res1)) { | |
20673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20674 | } | |
20675 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20676 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20677 | if (!SWIG_IsOK(res2)) { | |
20678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20679 | } | |
20680 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20681 | { | |
20682 | arg3 = wxString_in_helper(obj2); | |
20683 | if (arg3 == NULL) SWIG_fail; | |
20684 | temp3 = true; | |
20685 | } | |
20686 | if (obj3) { | |
20687 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20688 | if (!SWIG_IsOK(ecode4)) { | |
20689 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
20690 | } | |
20691 | arg4 = static_cast< int >(val4); | |
20692 | } | |
20693 | { | |
20694 | if (!wxPyCheckForApp()) SWIG_fail; | |
20695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20696 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
20697 | wxPyEndAllowThreads(__tstate); | |
20698 | if (PyErr_Occurred()) SWIG_fail; | |
20699 | } | |
20700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
20701 | { | |
20702 | if (temp3) | |
20703 | delete arg3; | |
20704 | } | |
20705 | return resultobj; | |
20706 | fail: | |
20707 | { | |
20708 | if (temp3) | |
20709 | delete arg3; | |
20710 | } | |
20711 | return NULL; | |
d14a1e28 RD |
20712 | } |
20713 | ||
20714 | ||
0085ce49 RD |
20715 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20716 | PyObject *resultobj = 0; | |
20717 | wxFindReplaceDialog *result = 0 ; | |
20718 | ||
20719 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
20720 | { | |
20721 | if (!wxPyCheckForApp()) SWIG_fail; | |
20722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20723 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
20724 | wxPyEndAllowThreads(__tstate); | |
20725 | if (PyErr_Occurred()) SWIG_fail; | |
20726 | } | |
20727 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
20728 | return resultobj; | |
20729 | fail: | |
20730 | return NULL; | |
20731 | } | |
20732 | ||
20733 | ||
20734 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20735 | PyObject *resultobj = 0; | |
20736 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20737 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20738 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
20739 | wxString *arg4 = 0 ; | |
20740 | int arg5 = (int) 0 ; | |
20741 | bool result; | |
20742 | void *argp1 = 0 ; | |
20743 | int res1 = 0 ; | |
20744 | void *argp2 = 0 ; | |
20745 | int res2 = 0 ; | |
20746 | void *argp3 = 0 ; | |
20747 | int res3 = 0 ; | |
20748 | bool temp4 = false ; | |
20749 | int val5 ; | |
20750 | int ecode5 = 0 ; | |
20751 | PyObject * obj0 = 0 ; | |
20752 | PyObject * obj1 = 0 ; | |
20753 | PyObject * obj2 = 0 ; | |
20754 | PyObject * obj3 = 0 ; | |
20755 | PyObject * obj4 = 0 ; | |
20756 | char * kwnames[] = { | |
20757 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20758 | }; | |
20759 | ||
20760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20762 | if (!SWIG_IsOK(res1)) { | |
20763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20764 | } | |
20765 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20766 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20767 | if (!SWIG_IsOK(res2)) { | |
20768 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20769 | } | |
20770 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20771 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20772 | if (!SWIG_IsOK(res3)) { | |
20773 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
20774 | } | |
20775 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
20776 | { | |
20777 | arg4 = wxString_in_helper(obj3); | |
20778 | if (arg4 == NULL) SWIG_fail; | |
20779 | temp4 = true; | |
20780 | } | |
20781 | if (obj4) { | |
20782 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20783 | if (!SWIG_IsOK(ecode5)) { | |
20784 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
20785 | } | |
20786 | arg5 = static_cast< int >(val5); | |
20787 | } | |
20788 | { | |
20789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20790 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
20791 | wxPyEndAllowThreads(__tstate); | |
20792 | if (PyErr_Occurred()) SWIG_fail; | |
20793 | } | |
20794 | { | |
20795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20796 | } | |
20797 | { | |
20798 | if (temp4) | |
20799 | delete arg4; | |
20800 | } | |
20801 | return resultobj; | |
20802 | fail: | |
20803 | { | |
20804 | if (temp4) | |
20805 | delete arg4; | |
20806 | } | |
20807 | return NULL; | |
d14a1e28 RD |
20808 | } |
20809 | ||
20810 | ||
0085ce49 RD |
20811 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20812 | PyObject *resultobj = 0; | |
20813 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20814 | wxFindReplaceData *result = 0 ; | |
20815 | void *argp1 = 0 ; | |
20816 | int res1 = 0 ; | |
20817 | PyObject *swig_obj[1] ; | |
20818 | ||
20819 | if (!args) SWIG_fail; | |
20820 | swig_obj[0] = args; | |
20821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20822 | if (!SWIG_IsOK(res1)) { | |
20823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20824 | } | |
20825 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20826 | { | |
20827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20828 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
20829 | wxPyEndAllowThreads(__tstate); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
20832 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20833 | return resultobj; | |
20834 | fail: | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
20839 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20840 | PyObject *resultobj = 0; | |
20841 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20842 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20843 | void *argp1 = 0 ; | |
20844 | int res1 = 0 ; | |
20845 | void *argp2 = 0 ; | |
20846 | int res2 = 0 ; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | PyObject * obj1 = 0 ; | |
20849 | char * kwnames[] = { | |
20850 | (char *) "self",(char *) "data", NULL | |
20851 | }; | |
20852 | ||
20853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
20854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20855 | if (!SWIG_IsOK(res1)) { | |
20856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20857 | } | |
20858 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20859 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20860 | if (!SWIG_IsOK(res2)) { | |
20861 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20862 | } | |
20863 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20864 | { | |
20865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20866 | (arg1)->SetData(arg2); | |
20867 | wxPyEndAllowThreads(__tstate); | |
20868 | if (PyErr_Occurred()) SWIG_fail; | |
20869 | } | |
20870 | resultobj = SWIG_Py_Void(); | |
20871 | return resultobj; | |
20872 | fail: | |
20873 | return NULL; | |
20874 | } | |
20875 | ||
20876 | ||
20877 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20878 | PyObject *obj; | |
20879 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20880 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
20881 | return SWIG_Py_Void(); | |
20882 | } | |
20883 | ||
20884 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20885 | return SWIG_Python_InitShadowInstance(args); | |
20886 | } | |
20887 | ||
20888 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj = 0; | |
20890 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20891 | int arg2 = (int) (int)-1 ; | |
20892 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20893 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20894 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20895 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20896 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20897 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20898 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20899 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20900 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20901 | wxMDIParentFrame *result = 0 ; | |
20902 | void *argp1 = 0 ; | |
20903 | int res1 = 0 ; | |
20904 | int val2 ; | |
20905 | int ecode2 = 0 ; | |
20906 | bool temp3 = false ; | |
20907 | wxPoint temp4 ; | |
20908 | wxSize temp5 ; | |
20909 | long val6 ; | |
20910 | int ecode6 = 0 ; | |
20911 | bool temp7 = false ; | |
20912 | PyObject * obj0 = 0 ; | |
20913 | PyObject * obj1 = 0 ; | |
20914 | PyObject * obj2 = 0 ; | |
20915 | PyObject * obj3 = 0 ; | |
20916 | PyObject * obj4 = 0 ; | |
20917 | PyObject * obj5 = 0 ; | |
20918 | PyObject * obj6 = 0 ; | |
20919 | char * kwnames[] = { | |
20920 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20921 | }; | |
20922 | ||
20923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20925 | if (!SWIG_IsOK(res1)) { | |
20926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20927 | } | |
20928 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20929 | if (obj1) { | |
20930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20931 | if (!SWIG_IsOK(ecode2)) { | |
20932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20933 | } | |
20934 | arg2 = static_cast< int >(val2); | |
20935 | } | |
20936 | if (obj2) { | |
d14a1e28 | 20937 | { |
0085ce49 RD |
20938 | arg3 = wxString_in_helper(obj2); |
20939 | if (arg3 == NULL) SWIG_fail; | |
20940 | temp3 = true; | |
d14a1e28 | 20941 | } |
0085ce49 RD |
20942 | } |
20943 | if (obj3) { | |
d14a1e28 | 20944 | { |
0085ce49 RD |
20945 | arg4 = &temp4; |
20946 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20947 | } |
0085ce49 RD |
20948 | } |
20949 | if (obj4) { | |
d14a1e28 | 20950 | { |
0085ce49 RD |
20951 | arg5 = &temp5; |
20952 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20953 | } | |
20954 | } | |
20955 | if (obj5) { | |
20956 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20957 | if (!SWIG_IsOK(ecode6)) { | |
20958 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20959 | } | |
20960 | arg6 = static_cast< long >(val6); | |
20961 | } | |
20962 | if (obj6) { | |
d14a1e28 | 20963 | { |
0085ce49 RD |
20964 | arg7 = wxString_in_helper(obj6); |
20965 | if (arg7 == NULL) SWIG_fail; | |
20966 | temp7 = true; | |
20967 | } | |
20968 | } | |
20969 | { | |
20970 | if (!wxPyCheckForApp()) SWIG_fail; | |
20971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20972 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20973 | wxPyEndAllowThreads(__tstate); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
20976 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20977 | { | |
20978 | if (temp3) | |
20979 | delete arg3; | |
20980 | } | |
20981 | { | |
20982 | if (temp7) | |
20983 | delete arg7; | |
20984 | } | |
20985 | return resultobj; | |
20986 | fail: | |
20987 | { | |
20988 | if (temp3) | |
20989 | delete arg3; | |
20990 | } | |
20991 | { | |
20992 | if (temp7) | |
20993 | delete arg7; | |
20994 | } | |
20995 | return NULL; | |
d14a1e28 RD |
20996 | } |
20997 | ||
20998 | ||
0085ce49 RD |
20999 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21000 | PyObject *resultobj = 0; | |
21001 | wxMDIParentFrame *result = 0 ; | |
21002 | ||
21003 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
21004 | { | |
21005 | if (!wxPyCheckForApp()) SWIG_fail; | |
21006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21007 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
21008 | wxPyEndAllowThreads(__tstate); | |
21009 | if (PyErr_Occurred()) SWIG_fail; | |
21010 | } | |
21011 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
21012 | return resultobj; | |
21013 | fail: | |
21014 | return NULL; | |
21015 | } | |
21016 | ||
21017 | ||
21018 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21019 | PyObject *resultobj = 0; | |
21020 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21021 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21022 | int arg3 = (int) (int)-1 ; | |
21023 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21024 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21025 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
21026 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
21027 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
21028 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
21029 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
21030 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
21031 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21032 | bool result; | |
21033 | void *argp1 = 0 ; | |
21034 | int res1 = 0 ; | |
21035 | void *argp2 = 0 ; | |
21036 | int res2 = 0 ; | |
21037 | int val3 ; | |
21038 | int ecode3 = 0 ; | |
21039 | bool temp4 = false ; | |
21040 | wxPoint temp5 ; | |
21041 | wxSize temp6 ; | |
21042 | long val7 ; | |
21043 | int ecode7 = 0 ; | |
21044 | bool temp8 = false ; | |
21045 | PyObject * obj0 = 0 ; | |
21046 | PyObject * obj1 = 0 ; | |
21047 | PyObject * obj2 = 0 ; | |
21048 | PyObject * obj3 = 0 ; | |
21049 | PyObject * obj4 = 0 ; | |
21050 | PyObject * obj5 = 0 ; | |
21051 | PyObject * obj6 = 0 ; | |
21052 | PyObject * obj7 = 0 ; | |
21053 | char * kwnames[] = { | |
21054 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21055 | }; | |
21056 | ||
21057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
21058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21059 | if (!SWIG_IsOK(res1)) { | |
21060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21061 | } | |
21062 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21063 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21064 | if (!SWIG_IsOK(res2)) { | |
21065 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
21066 | } | |
21067 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
21068 | if (obj2) { | |
21069 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21070 | if (!SWIG_IsOK(ecode3)) { | |
21071 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
21072 | } | |
21073 | arg3 = static_cast< int >(val3); | |
21074 | } | |
21075 | if (obj3) { | |
d14a1e28 | 21076 | { |
0085ce49 RD |
21077 | arg4 = wxString_in_helper(obj3); |
21078 | if (arg4 == NULL) SWIG_fail; | |
21079 | temp4 = true; | |
d14a1e28 | 21080 | } |
0085ce49 RD |
21081 | } |
21082 | if (obj4) { | |
4f89f6a3 | 21083 | { |
0085ce49 RD |
21084 | arg5 = &temp5; |
21085 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 21086 | } |
0085ce49 RD |
21087 | } |
21088 | if (obj5) { | |
d14a1e28 | 21089 | { |
0085ce49 RD |
21090 | arg6 = &temp6; |
21091 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 21092 | } |
0085ce49 RD |
21093 | } |
21094 | if (obj6) { | |
21095 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
21096 | if (!SWIG_IsOK(ecode7)) { | |
21097 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
21098 | } | |
21099 | arg7 = static_cast< long >(val7); | |
21100 | } | |
21101 | if (obj7) { | |
d14a1e28 | 21102 | { |
0085ce49 RD |
21103 | arg8 = wxString_in_helper(obj7); |
21104 | if (arg8 == NULL) SWIG_fail; | |
21105 | temp8 = true; | |
d14a1e28 | 21106 | } |
0085ce49 RD |
21107 | } |
21108 | { | |
21109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21110 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | { | |
21115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21116 | } | |
21117 | { | |
21118 | if (temp4) | |
21119 | delete arg4; | |
21120 | } | |
21121 | { | |
21122 | if (temp8) | |
21123 | delete arg8; | |
21124 | } | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | { | |
21128 | if (temp4) | |
21129 | delete arg4; | |
21130 | } | |
21131 | { | |
21132 | if (temp8) | |
21133 | delete arg8; | |
21134 | } | |
21135 | return NULL; | |
d14a1e28 RD |
21136 | } |
21137 | ||
21138 | ||
0085ce49 RD |
21139 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21140 | PyObject *resultobj = 0; | |
21141 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21142 | void *argp1 = 0 ; | |
21143 | int res1 = 0 ; | |
21144 | PyObject *swig_obj[1] ; | |
21145 | ||
21146 | if (!args) SWIG_fail; | |
21147 | swig_obj[0] = args; | |
21148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21149 | if (!SWIG_IsOK(res1)) { | |
21150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21151 | } | |
21152 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | (arg1)->ActivateNext(); | |
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
21159 | resultobj = SWIG_Py_Void(); | |
21160 | return resultobj; | |
21161 | fail: | |
21162 | return NULL; | |
d14a1e28 RD |
21163 | } |
21164 | ||
21165 | ||
0085ce49 RD |
21166 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21167 | PyObject *resultobj = 0; | |
21168 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21169 | void *argp1 = 0 ; | |
21170 | int res1 = 0 ; | |
21171 | PyObject *swig_obj[1] ; | |
21172 | ||
21173 | if (!args) SWIG_fail; | |
21174 | swig_obj[0] = args; | |
21175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21176 | if (!SWIG_IsOK(res1)) { | |
21177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21178 | } | |
21179 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21180 | { | |
21181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21182 | (arg1)->ActivatePrevious(); | |
21183 | wxPyEndAllowThreads(__tstate); | |
21184 | if (PyErr_Occurred()) SWIG_fail; | |
21185 | } | |
21186 | resultobj = SWIG_Py_Void(); | |
21187 | return resultobj; | |
21188 | fail: | |
21189 | return NULL; | |
d14a1e28 RD |
21190 | } |
21191 | ||
21192 | ||
0085ce49 RD |
21193 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21194 | PyObject *resultobj = 0; | |
21195 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21196 | void *argp1 = 0 ; | |
21197 | int res1 = 0 ; | |
21198 | PyObject *swig_obj[1] ; | |
21199 | ||
21200 | if (!args) SWIG_fail; | |
21201 | swig_obj[0] = args; | |
21202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21203 | if (!SWIG_IsOK(res1)) { | |
21204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21205 | } | |
21206 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21207 | { | |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21209 | (arg1)->ArrangeIcons(); | |
21210 | wxPyEndAllowThreads(__tstate); | |
21211 | if (PyErr_Occurred()) SWIG_fail; | |
21212 | } | |
21213 | resultobj = SWIG_Py_Void(); | |
21214 | return resultobj; | |
21215 | fail: | |
21216 | return NULL; | |
7fdaaabe RD |
21217 | } |
21218 | ||
21219 | ||
0085ce49 RD |
21220 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21221 | PyObject *resultobj = 0; | |
21222 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21223 | void *argp1 = 0 ; | |
21224 | int res1 = 0 ; | |
21225 | PyObject *swig_obj[1] ; | |
21226 | ||
21227 | if (!args) SWIG_fail; | |
21228 | swig_obj[0] = args; | |
21229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21230 | if (!SWIG_IsOK(res1)) { | |
21231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21232 | } | |
21233 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21234 | { | |
21235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21236 | (arg1)->Cascade(); | |
21237 | wxPyEndAllowThreads(__tstate); | |
21238 | if (PyErr_Occurred()) SWIG_fail; | |
21239 | } | |
21240 | resultobj = SWIG_Py_Void(); | |
21241 | return resultobj; | |
21242 | fail: | |
21243 | return NULL; | |
d14a1e28 RD |
21244 | } |
21245 | ||
21246 | ||
0085ce49 RD |
21247 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21248 | PyObject *resultobj = 0; | |
21249 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21250 | wxMDIChildFrame *result = 0 ; | |
21251 | void *argp1 = 0 ; | |
21252 | int res1 = 0 ; | |
21253 | PyObject *swig_obj[1] ; | |
21254 | ||
21255 | if (!args) SWIG_fail; | |
21256 | swig_obj[0] = args; | |
21257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21258 | if (!SWIG_IsOK(res1)) { | |
21259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21260 | } | |
21261 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21262 | { | |
21263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21264 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
21265 | wxPyEndAllowThreads(__tstate); | |
21266 | if (PyErr_Occurred()) SWIG_fail; | |
21267 | } | |
21268 | { | |
21269 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
21270 | } | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
d14a1e28 RD |
21274 | } |
21275 | ||
21276 | ||
0085ce49 RD |
21277 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21278 | PyObject *resultobj = 0; | |
21279 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21280 | wxMDIClientWindow *result = 0 ; | |
21281 | void *argp1 = 0 ; | |
21282 | int res1 = 0 ; | |
21283 | PyObject *swig_obj[1] ; | |
21284 | ||
21285 | if (!args) SWIG_fail; | |
21286 | swig_obj[0] = args; | |
21287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21288 | if (!SWIG_IsOK(res1)) { | |
21289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21290 | } | |
21291 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21292 | { | |
21293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21294 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
21295 | wxPyEndAllowThreads(__tstate); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
21298 | { | |
21299 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
21300 | } | |
21301 | return resultobj; | |
21302 | fail: | |
21303 | return NULL; | |
74a57fcd RD |
21304 | } |
21305 | ||
21306 | ||
0085ce49 RD |
21307 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21308 | PyObject *resultobj = 0; | |
21309 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21310 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
21311 | void *argp1 = 0 ; | |
21312 | int res1 = 0 ; | |
21313 | int val2 ; | |
21314 | int ecode2 = 0 ; | |
21315 | PyObject * obj0 = 0 ; | |
21316 | PyObject * obj1 = 0 ; | |
21317 | char * kwnames[] = { | |
21318 | (char *) "self",(char *) "orient", NULL | |
21319 | }; | |
21320 | ||
21321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
21322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21323 | if (!SWIG_IsOK(res1)) { | |
21324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21325 | } | |
21326 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21327 | if (obj1) { | |
21328 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21329 | if (!SWIG_IsOK(ecode2)) { | |
21330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
21331 | } | |
21332 | arg2 = static_cast< wxOrientation >(val2); | |
21333 | } | |
21334 | { | |
21335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21336 | (arg1)->Tile(arg2); | |
21337 | wxPyEndAllowThreads(__tstate); | |
21338 | if (PyErr_Occurred()) SWIG_fail; | |
21339 | } | |
21340 | resultobj = SWIG_Py_Void(); | |
21341 | return resultobj; | |
21342 | fail: | |
21343 | return NULL; | |
21344 | } | |
21345 | ||
21346 | ||
21347 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21348 | PyObject *obj; | |
21349 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21350 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
21351 | return SWIG_Py_Void(); | |
21352 | } | |
21353 | ||
21354 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21355 | return SWIG_Python_InitShadowInstance(args); | |
21356 | } | |
21357 | ||
21358 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21359 | PyObject *resultobj = 0; | |
21360 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21361 | int arg2 = (int) (int)-1 ; | |
21362 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
21363 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21364 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21365 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21366 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21367 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21368 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
21369 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
21370 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21371 | wxMDIChildFrame *result = 0 ; | |
21372 | void *argp1 = 0 ; | |
21373 | int res1 = 0 ; | |
21374 | int val2 ; | |
21375 | int ecode2 = 0 ; | |
21376 | bool temp3 = false ; | |
21377 | wxPoint temp4 ; | |
21378 | wxSize temp5 ; | |
21379 | long val6 ; | |
21380 | int ecode6 = 0 ; | |
21381 | bool temp7 = false ; | |
21382 | PyObject * obj0 = 0 ; | |
21383 | PyObject * obj1 = 0 ; | |
21384 | PyObject * obj2 = 0 ; | |
21385 | PyObject * obj3 = 0 ; | |
21386 | PyObject * obj4 = 0 ; | |
21387 | PyObject * obj5 = 0 ; | |
21388 | PyObject * obj6 = 0 ; | |
21389 | char * kwnames[] = { | |
21390 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21391 | }; | |
21392 | ||
21393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21395 | if (!SWIG_IsOK(res1)) { | |
21396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21397 | } | |
21398 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21399 | if (obj1) { | |
21400 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21401 | if (!SWIG_IsOK(ecode2)) { | |
21402 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
21403 | } | |
21404 | arg2 = static_cast< int >(val2); | |
21405 | } | |
21406 | if (obj2) { | |
d14a1e28 | 21407 | { |
0085ce49 RD |
21408 | arg3 = wxString_in_helper(obj2); |
21409 | if (arg3 == NULL) SWIG_fail; | |
21410 | temp3 = true; | |
d14a1e28 | 21411 | } |
0085ce49 RD |
21412 | } |
21413 | if (obj3) { | |
4f89f6a3 | 21414 | { |
0085ce49 RD |
21415 | arg4 = &temp4; |
21416 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 21417 | } |
0085ce49 RD |
21418 | } |
21419 | if (obj4) { | |
d14a1e28 | 21420 | { |
0085ce49 RD |
21421 | arg5 = &temp5; |
21422 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 21423 | } |
0085ce49 RD |
21424 | } |
21425 | if (obj5) { | |
21426 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21427 | if (!SWIG_IsOK(ecode6)) { | |
21428 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
21429 | } | |
21430 | arg6 = static_cast< long >(val6); | |
21431 | } | |
21432 | if (obj6) { | |
4f89f6a3 | 21433 | { |
0085ce49 RD |
21434 | arg7 = wxString_in_helper(obj6); |
21435 | if (arg7 == NULL) SWIG_fail; | |
21436 | temp7 = true; | |
4f89f6a3 | 21437 | } |
0085ce49 RD |
21438 | } |
21439 | { | |
21440 | if (!wxPyCheckForApp()) SWIG_fail; | |
21441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21442 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
21446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
21447 | { | |
21448 | if (temp3) | |
21449 | delete arg3; | |
21450 | } | |
21451 | { | |
21452 | if (temp7) | |
21453 | delete arg7; | |
21454 | } | |
21455 | return resultobj; | |
21456 | fail: | |
21457 | { | |
21458 | if (temp3) | |
21459 | delete arg3; | |
21460 | } | |
21461 | { | |
21462 | if (temp7) | |
21463 | delete arg7; | |
21464 | } | |
21465 | return NULL; | |
d14a1e28 RD |
21466 | } |
21467 | ||
21468 | ||
0085ce49 RD |
21469 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21470 | PyObject *resultobj = 0; | |
21471 | wxMDIChildFrame *result = 0 ; | |
21472 | ||
21473 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
21474 | { | |
21475 | if (!wxPyCheckForApp()) SWIG_fail; | |
21476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21477 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
21478 | wxPyEndAllowThreads(__tstate); | |
21479 | if (PyErr_Occurred()) SWIG_fail; | |
21480 | } | |
21481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
21482 | return resultobj; | |
21483 | fail: | |
21484 | return NULL; | |
21485 | } | |
21486 | ||
21487 | ||
21488 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21489 | PyObject *resultobj = 0; | |
21490 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21491 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21492 | int arg3 = (int) (int)-1 ; | |
21493 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21494 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21495 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
21496 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
21497 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
21498 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
21499 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
21500 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
21501 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21502 | bool result; | |
21503 | void *argp1 = 0 ; | |
21504 | int res1 = 0 ; | |
21505 | void *argp2 = 0 ; | |
21506 | int res2 = 0 ; | |
21507 | int val3 ; | |
21508 | int ecode3 = 0 ; | |
21509 | bool temp4 = false ; | |
21510 | wxPoint temp5 ; | |
21511 | wxSize temp6 ; | |
21512 | long val7 ; | |
21513 | int ecode7 = 0 ; | |
21514 | bool temp8 = false ; | |
21515 | PyObject * obj0 = 0 ; | |
21516 | PyObject * obj1 = 0 ; | |
21517 | PyObject * obj2 = 0 ; | |
21518 | PyObject * obj3 = 0 ; | |
21519 | PyObject * obj4 = 0 ; | |
21520 | PyObject * obj5 = 0 ; | |
21521 | PyObject * obj6 = 0 ; | |
21522 | PyObject * obj7 = 0 ; | |
21523 | char * kwnames[] = { | |
21524 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21525 | }; | |
21526 | ||
21527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
21528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21529 | if (!SWIG_IsOK(res1)) { | |
21530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21531 | } | |
21532 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21533 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21534 | if (!SWIG_IsOK(res2)) { | |
21535 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21536 | } | |
21537 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21538 | if (obj2) { | |
21539 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21540 | if (!SWIG_IsOK(ecode3)) { | |
21541 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
21542 | } | |
21543 | arg3 = static_cast< int >(val3); | |
21544 | } | |
21545 | if (obj3) { | |
d14a1e28 | 21546 | { |
0085ce49 RD |
21547 | arg4 = wxString_in_helper(obj3); |
21548 | if (arg4 == NULL) SWIG_fail; | |
21549 | temp4 = true; | |
d14a1e28 | 21550 | } |
0085ce49 RD |
21551 | } |
21552 | if (obj4) { | |
4f89f6a3 | 21553 | { |
0085ce49 RD |
21554 | arg5 = &temp5; |
21555 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 21556 | } |
0085ce49 RD |
21557 | } |
21558 | if (obj5) { | |
d14a1e28 | 21559 | { |
0085ce49 RD |
21560 | arg6 = &temp6; |
21561 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 21562 | } |
0085ce49 RD |
21563 | } |
21564 | if (obj6) { | |
21565 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
21566 | if (!SWIG_IsOK(ecode7)) { | |
21567 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
21568 | } | |
21569 | arg7 = static_cast< long >(val7); | |
21570 | } | |
21571 | if (obj7) { | |
d14a1e28 | 21572 | { |
0085ce49 RD |
21573 | arg8 = wxString_in_helper(obj7); |
21574 | if (arg8 == NULL) SWIG_fail; | |
21575 | temp8 = true; | |
d14a1e28 | 21576 | } |
0085ce49 RD |
21577 | } |
21578 | { | |
21579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21580 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21581 | wxPyEndAllowThreads(__tstate); | |
21582 | if (PyErr_Occurred()) SWIG_fail; | |
21583 | } | |
21584 | { | |
21585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21586 | } | |
21587 | { | |
21588 | if (temp4) | |
21589 | delete arg4; | |
21590 | } | |
21591 | { | |
21592 | if (temp8) | |
21593 | delete arg8; | |
21594 | } | |
21595 | return resultobj; | |
21596 | fail: | |
21597 | { | |
21598 | if (temp4) | |
21599 | delete arg4; | |
21600 | } | |
21601 | { | |
21602 | if (temp8) | |
21603 | delete arg8; | |
21604 | } | |
21605 | return NULL; | |
d14a1e28 RD |
21606 | } |
21607 | ||
21608 | ||
0085ce49 RD |
21609 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21610 | PyObject *resultobj = 0; | |
21611 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21612 | void *argp1 = 0 ; | |
21613 | int res1 = 0 ; | |
21614 | PyObject *swig_obj[1] ; | |
21615 | ||
21616 | if (!args) SWIG_fail; | |
21617 | swig_obj[0] = args; | |
21618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21619 | if (!SWIG_IsOK(res1)) { | |
21620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21621 | } | |
21622 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21623 | { | |
21624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21625 | (arg1)->Activate(); | |
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | resultobj = SWIG_Py_Void(); | |
21630 | return resultobj; | |
21631 | fail: | |
21632 | return NULL; | |
d14a1e28 RD |
21633 | } |
21634 | ||
21635 | ||
0085ce49 RD |
21636 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21637 | PyObject *obj; | |
21638 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21639 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
21640 | return SWIG_Py_Void(); | |
d14a1e28 RD |
21641 | } |
21642 | ||
0085ce49 RD |
21643 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21644 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
21645 | } |
21646 | ||
0085ce49 RD |
21647 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21648 | PyObject *resultobj = 0; | |
21649 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21650 | long arg2 = (long) 0 ; | |
21651 | wxMDIClientWindow *result = 0 ; | |
21652 | void *argp1 = 0 ; | |
21653 | int res1 = 0 ; | |
21654 | long val2 ; | |
21655 | int ecode2 = 0 ; | |
21656 | PyObject * obj0 = 0 ; | |
21657 | PyObject * obj1 = 0 ; | |
21658 | char * kwnames[] = { | |
21659 | (char *) "parent",(char *) "style", NULL | |
21660 | }; | |
21661 | ||
21662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
21663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21664 | if (!SWIG_IsOK(res1)) { | |
21665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21666 | } | |
21667 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21668 | if (obj1) { | |
21669 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
21670 | if (!SWIG_IsOK(ecode2)) { | |
21671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
21672 | } | |
21673 | arg2 = static_cast< long >(val2); | |
21674 | } | |
21675 | { | |
21676 | if (!wxPyCheckForApp()) SWIG_fail; | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
21679 | wxPyEndAllowThreads(__tstate); | |
21680 | if (PyErr_Occurred()) SWIG_fail; | |
21681 | } | |
21682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
21683 | return resultobj; | |
21684 | fail: | |
21685 | return NULL; | |
b2dc1044 RD |
21686 | } |
21687 | ||
21688 | ||
0085ce49 RD |
21689 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21690 | PyObject *resultobj = 0; | |
21691 | wxMDIClientWindow *result = 0 ; | |
21692 | ||
21693 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
21694 | { | |
21695 | if (!wxPyCheckForApp()) SWIG_fail; | |
21696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21697 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
21698 | wxPyEndAllowThreads(__tstate); | |
21699 | if (PyErr_Occurred()) SWIG_fail; | |
21700 | } | |
21701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
21702 | return resultobj; | |
21703 | fail: | |
21704 | return NULL; | |
21705 | } | |
21706 | ||
21707 | ||
21708 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21709 | PyObject *resultobj = 0; | |
21710 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
21711 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21712 | long arg3 = (long) 0 ; | |
21713 | bool result; | |
21714 | void *argp1 = 0 ; | |
21715 | int res1 = 0 ; | |
21716 | void *argp2 = 0 ; | |
21717 | int res2 = 0 ; | |
21718 | long val3 ; | |
21719 | int ecode3 = 0 ; | |
21720 | PyObject * obj0 = 0 ; | |
21721 | PyObject * obj1 = 0 ; | |
21722 | PyObject * obj2 = 0 ; | |
21723 | char * kwnames[] = { | |
21724 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
21725 | }; | |
21726 | ||
21727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
21729 | if (!SWIG_IsOK(res1)) { | |
21730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
21731 | } | |
21732 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
21733 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21734 | if (!SWIG_IsOK(res2)) { | |
21735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21736 | } | |
21737 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21738 | if (obj2) { | |
21739 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
21740 | if (!SWIG_IsOK(ecode3)) { | |
21741 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
21742 | } | |
21743 | arg3 = static_cast< long >(val3); | |
21744 | } | |
21745 | { | |
21746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21747 | result = (bool)(arg1)->Create(arg2,arg3); | |
21748 | wxPyEndAllowThreads(__tstate); | |
21749 | if (PyErr_Occurred()) SWIG_fail; | |
21750 | } | |
21751 | { | |
21752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21753 | } | |
21754 | return resultobj; | |
21755 | fail: | |
21756 | return NULL; | |
21757 | } | |
21758 | ||
21759 | ||
21760 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21761 | PyObject *obj; | |
21762 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21763 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
21764 | return SWIG_Py_Void(); | |
21765 | } | |
21766 | ||
21767 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21768 | return SWIG_Python_InitShadowInstance(args); | |
21769 | } | |
21770 | ||
21771 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj = 0; | |
21773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21774 | int arg2 = (int) (int)-1 ; | |
21775 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21776 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21777 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21778 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21779 | long arg5 = (long) 0 ; | |
21780 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21781 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21782 | wxPyWindow *result = 0 ; | |
21783 | void *argp1 = 0 ; | |
21784 | int res1 = 0 ; | |
21785 | int val2 ; | |
21786 | int ecode2 = 0 ; | |
21787 | wxPoint temp3 ; | |
21788 | wxSize temp4 ; | |
21789 | long val5 ; | |
21790 | int ecode5 = 0 ; | |
21791 | bool temp6 = false ; | |
21792 | PyObject * obj0 = 0 ; | |
21793 | PyObject * obj1 = 0 ; | |
21794 | PyObject * obj2 = 0 ; | |
21795 | PyObject * obj3 = 0 ; | |
21796 | PyObject * obj4 = 0 ; | |
21797 | PyObject * obj5 = 0 ; | |
21798 | char * kwnames[] = { | |
21799 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21800 | }; | |
21801 | ||
21802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21804 | if (!SWIG_IsOK(res1)) { | |
21805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21806 | } | |
21807 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21808 | if (obj1) { | |
21809 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21810 | if (!SWIG_IsOK(ecode2)) { | |
21811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
21812 | } | |
21813 | arg2 = static_cast< int >(val2); | |
21814 | } | |
21815 | if (obj2) { | |
b2dc1044 | 21816 | { |
0085ce49 RD |
21817 | arg3 = &temp3; |
21818 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21819 | } | |
21820 | } | |
21821 | if (obj3) { | |
21822 | { | |
21823 | arg4 = &temp4; | |
21824 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21825 | } | |
21826 | } | |
21827 | if (obj4) { | |
21828 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21829 | if (!SWIG_IsOK(ecode5)) { | |
21830 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
21831 | } | |
21832 | arg5 = static_cast< long >(val5); | |
21833 | } | |
21834 | if (obj5) { | |
21835 | { | |
21836 | arg6 = wxString_in_helper(obj5); | |
21837 | if (arg6 == NULL) SWIG_fail; | |
21838 | temp6 = true; | |
b2dc1044 | 21839 | } |
0085ce49 RD |
21840 | } |
21841 | { | |
21842 | if (!wxPyCheckForApp()) SWIG_fail; | |
21843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21844 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21845 | wxPyEndAllowThreads(__tstate); | |
21846 | if (PyErr_Occurred()) SWIG_fail; | |
21847 | } | |
21848 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
21849 | { | |
21850 | if (temp6) | |
21851 | delete arg6; | |
21852 | } | |
21853 | return resultobj; | |
21854 | fail: | |
21855 | { | |
21856 | if (temp6) | |
21857 | delete arg6; | |
21858 | } | |
21859 | return NULL; | |
b2dc1044 RD |
21860 | } |
21861 | ||
21862 | ||
0085ce49 RD |
21863 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21864 | PyObject *resultobj = 0; | |
21865 | wxPyWindow *result = 0 ; | |
21866 | ||
21867 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
21868 | { | |
21869 | if (!wxPyCheckForApp()) SWIG_fail; | |
21870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21871 | result = (wxPyWindow *)new wxPyWindow(); | |
21872 | wxPyEndAllowThreads(__tstate); | |
21873 | if (PyErr_Occurred()) SWIG_fail; | |
21874 | } | |
21875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21876 | return resultobj; | |
21877 | fail: | |
21878 | return NULL; | |
21879 | } | |
21880 | ||
21881 | ||
21882 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21883 | PyObject *resultobj = 0; | |
21884 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21885 | PyObject *arg2 = (PyObject *) 0 ; | |
21886 | PyObject *arg3 = (PyObject *) 0 ; | |
21887 | void *argp1 = 0 ; | |
21888 | int res1 = 0 ; | |
21889 | PyObject * obj0 = 0 ; | |
21890 | PyObject * obj1 = 0 ; | |
21891 | PyObject * obj2 = 0 ; | |
21892 | char * kwnames[] = { | |
21893 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21894 | }; | |
21895 | ||
21896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21898 | if (!SWIG_IsOK(res1)) { | |
21899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21900 | } | |
21901 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21902 | arg2 = obj1; | |
21903 | arg3 = obj2; | |
21904 | { | |
21905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21906 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21907 | wxPyEndAllowThreads(__tstate); | |
21908 | if (PyErr_Occurred()) SWIG_fail; | |
21909 | } | |
21910 | resultobj = SWIG_Py_Void(); | |
21911 | return resultobj; | |
21912 | fail: | |
21913 | return NULL; | |
21914 | } | |
21915 | ||
21916 | ||
0085ce49 RD |
21917 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21918 | PyObject *resultobj = 0; | |
21919 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21920 | wxDC *arg2 = (wxDC *) 0 ; | |
21921 | bool result; | |
21922 | void *argp1 = 0 ; | |
21923 | int res1 = 0 ; | |
21924 | void *argp2 = 0 ; | |
21925 | int res2 = 0 ; | |
21926 | PyObject * obj0 = 0 ; | |
21927 | PyObject * obj1 = 0 ; | |
21928 | char * kwnames[] = { | |
21929 | (char *) "self",(char *) "dc", NULL | |
21930 | }; | |
21931 | ||
21932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21934 | if (!SWIG_IsOK(res1)) { | |
21935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21936 | } | |
21937 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21938 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21939 | if (!SWIG_IsOK(res2)) { | |
21940 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21941 | } | |
21942 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21943 | { | |
21944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21945 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21946 | wxPyEndAllowThreads(__tstate); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | } | |
21949 | { | |
21950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21951 | } | |
21952 | return resultobj; | |
21953 | fail: | |
21954 | return NULL; | |
21955 | } | |
21956 | ||
21957 | ||
21958 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21959 | PyObject *resultobj = 0; | |
21960 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21961 | int arg2 ; | |
21962 | int arg3 ; | |
21963 | int arg4 ; | |
21964 | int arg5 ; | |
21965 | void *argp1 = 0 ; | |
21966 | int res1 = 0 ; | |
21967 | int val2 ; | |
21968 | int ecode2 = 0 ; | |
21969 | int val3 ; | |
21970 | int ecode3 = 0 ; | |
21971 | int val4 ; | |
21972 | int ecode4 = 0 ; | |
21973 | int val5 ; | |
21974 | int ecode5 = 0 ; | |
21975 | PyObject * obj0 = 0 ; | |
21976 | PyObject * obj1 = 0 ; | |
21977 | PyObject * obj2 = 0 ; | |
21978 | PyObject * obj3 = 0 ; | |
21979 | PyObject * obj4 = 0 ; | |
21980 | char * kwnames[] = { | |
21981 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21982 | }; | |
21983 | ||
21984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21986 | if (!SWIG_IsOK(res1)) { | |
21987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21988 | } | |
21989 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21990 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21991 | if (!SWIG_IsOK(ecode2)) { | |
21992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21993 | } | |
21994 | arg2 = static_cast< int >(val2); | |
21995 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21996 | if (!SWIG_IsOK(ecode3)) { | |
21997 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21998 | } | |
21999 | arg3 = static_cast< int >(val3); | |
22000 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22001 | if (!SWIG_IsOK(ecode4)) { | |
22002 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22003 | } | |
22004 | arg4 = static_cast< int >(val4); | |
22005 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22006 | if (!SWIG_IsOK(ecode5)) { | |
22007 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22008 | } | |
22009 | arg5 = static_cast< int >(val5); | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22013 | wxPyEndAllowThreads(__tstate); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | } | |
22016 | resultobj = SWIG_Py_Void(); | |
22017 | return resultobj; | |
22018 | fail: | |
22019 | return NULL; | |
22020 | } | |
22021 | ||
22022 | ||
22023 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22024 | PyObject *resultobj = 0; | |
22025 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22026 | int arg2 ; | |
22027 | int arg3 ; | |
22028 | int arg4 ; | |
22029 | int arg5 ; | |
22030 | int arg6 = (int) wxSIZE_AUTO ; | |
22031 | void *argp1 = 0 ; | |
22032 | int res1 = 0 ; | |
22033 | int val2 ; | |
22034 | int ecode2 = 0 ; | |
22035 | int val3 ; | |
22036 | int ecode3 = 0 ; | |
22037 | int val4 ; | |
22038 | int ecode4 = 0 ; | |
22039 | int val5 ; | |
22040 | int ecode5 = 0 ; | |
22041 | int val6 ; | |
22042 | int ecode6 = 0 ; | |
22043 | PyObject * obj0 = 0 ; | |
22044 | PyObject * obj1 = 0 ; | |
22045 | PyObject * obj2 = 0 ; | |
22046 | PyObject * obj3 = 0 ; | |
22047 | PyObject * obj4 = 0 ; | |
22048 | PyObject * obj5 = 0 ; | |
22049 | char * kwnames[] = { | |
22050 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22051 | }; | |
22052 | ||
22053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22055 | if (!SWIG_IsOK(res1)) { | |
22056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22057 | } | |
22058 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22060 | if (!SWIG_IsOK(ecode2)) { | |
22061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22062 | } | |
22063 | arg2 = static_cast< int >(val2); | |
22064 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22065 | if (!SWIG_IsOK(ecode3)) { | |
22066 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22067 | } | |
22068 | arg3 = static_cast< int >(val3); | |
22069 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22070 | if (!SWIG_IsOK(ecode4)) { | |
22071 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22072 | } | |
22073 | arg4 = static_cast< int >(val4); | |
22074 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22075 | if (!SWIG_IsOK(ecode5)) { | |
22076 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22077 | } | |
22078 | arg5 = static_cast< int >(val5); | |
22079 | if (obj5) { | |
22080 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22081 | if (!SWIG_IsOK(ecode6)) { | |
22082 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22083 | } | |
22084 | arg6 = static_cast< int >(val6); | |
22085 | } | |
22086 | { | |
22087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22088 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22089 | wxPyEndAllowThreads(__tstate); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | } | |
22092 | resultobj = SWIG_Py_Void(); | |
22093 | return resultobj; | |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
22099 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22100 | PyObject *resultobj = 0; | |
22101 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22102 | int arg2 ; | |
22103 | int arg3 ; | |
22104 | void *argp1 = 0 ; | |
22105 | int res1 = 0 ; | |
22106 | int val2 ; | |
22107 | int ecode2 = 0 ; | |
22108 | int val3 ; | |
22109 | int ecode3 = 0 ; | |
22110 | PyObject * obj0 = 0 ; | |
22111 | PyObject * obj1 = 0 ; | |
22112 | PyObject * obj2 = 0 ; | |
22113 | char * kwnames[] = { | |
22114 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22115 | }; | |
22116 | ||
22117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22119 | if (!SWIG_IsOK(res1)) { | |
22120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22121 | } | |
22122 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22123 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22124 | if (!SWIG_IsOK(ecode2)) { | |
22125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22126 | } | |
22127 | arg2 = static_cast< int >(val2); | |
22128 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22129 | if (!SWIG_IsOK(ecode3)) { | |
22130 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22131 | } | |
22132 | arg3 = static_cast< int >(val3); | |
22133 | { | |
22134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22135 | (arg1)->DoSetClientSize(arg2,arg3); | |
22136 | wxPyEndAllowThreads(__tstate); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
22138 | } | |
22139 | resultobj = SWIG_Py_Void(); | |
22140 | return resultobj; | |
22141 | fail: | |
22142 | return NULL; | |
22143 | } | |
22144 | ||
22145 | ||
22146 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj = 0; | |
22148 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22149 | int arg2 ; | |
22150 | int arg3 ; | |
22151 | void *argp1 = 0 ; | |
22152 | int res1 = 0 ; | |
22153 | int val2 ; | |
22154 | int ecode2 = 0 ; | |
22155 | int val3 ; | |
22156 | int ecode3 = 0 ; | |
22157 | PyObject * obj0 = 0 ; | |
22158 | PyObject * obj1 = 0 ; | |
22159 | PyObject * obj2 = 0 ; | |
22160 | char * kwnames[] = { | |
22161 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22162 | }; | |
22163 | ||
22164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22166 | if (!SWIG_IsOK(res1)) { | |
22167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22168 | } | |
22169 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22170 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22171 | if (!SWIG_IsOK(ecode2)) { | |
22172 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22173 | } | |
22174 | arg2 = static_cast< int >(val2); | |
22175 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22176 | if (!SWIG_IsOK(ecode3)) { | |
22177 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22178 | } | |
22179 | arg3 = static_cast< int >(val3); | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22183 | wxPyEndAllowThreads(__tstate); | |
22184 | if (PyErr_Occurred()) SWIG_fail; | |
22185 | } | |
22186 | resultobj = SWIG_Py_Void(); | |
22187 | return resultobj; | |
22188 | fail: | |
22189 | return NULL; | |
22190 | } | |
22191 | ||
22192 | ||
22193 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22194 | PyObject *resultobj = 0; | |
22195 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22196 | int *arg2 = (int *) 0 ; | |
22197 | int *arg3 = (int *) 0 ; | |
22198 | void *argp1 = 0 ; | |
22199 | int res1 = 0 ; | |
22200 | int temp2 ; | |
22201 | int res2 = SWIG_TMPOBJ ; | |
22202 | int temp3 ; | |
22203 | int res3 = SWIG_TMPOBJ ; | |
22204 | PyObject *swig_obj[1] ; | |
22205 | ||
22206 | arg2 = &temp2; | |
22207 | arg3 = &temp3; | |
22208 | if (!args) SWIG_fail; | |
22209 | swig_obj[0] = args; | |
22210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22211 | if (!SWIG_IsOK(res1)) { | |
22212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22213 | } | |
22214 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22215 | { | |
22216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22217 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
22218 | wxPyEndAllowThreads(__tstate); | |
22219 | if (PyErr_Occurred()) SWIG_fail; | |
22220 | } | |
22221 | resultobj = SWIG_Py_Void(); | |
22222 | if (SWIG_IsTmpObj(res2)) { | |
22223 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22224 | } else { | |
22225 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22226 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22227 | } | |
22228 | if (SWIG_IsTmpObj(res3)) { | |
22229 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22230 | } else { | |
22231 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22232 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22233 | } | |
22234 | return resultobj; | |
22235 | fail: | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
22240 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22241 | PyObject *resultobj = 0; | |
22242 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22243 | int *arg2 = (int *) 0 ; | |
22244 | int *arg3 = (int *) 0 ; | |
22245 | void *argp1 = 0 ; | |
22246 | int res1 = 0 ; | |
22247 | int temp2 ; | |
22248 | int res2 = SWIG_TMPOBJ ; | |
22249 | int temp3 ; | |
22250 | int res3 = SWIG_TMPOBJ ; | |
22251 | PyObject *swig_obj[1] ; | |
22252 | ||
22253 | arg2 = &temp2; | |
22254 | arg3 = &temp3; | |
22255 | if (!args) SWIG_fail; | |
22256 | swig_obj[0] = args; | |
22257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22258 | if (!SWIG_IsOK(res1)) { | |
22259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22260 | } | |
22261 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22262 | { | |
22263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22264 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
22265 | wxPyEndAllowThreads(__tstate); | |
22266 | if (PyErr_Occurred()) SWIG_fail; | |
22267 | } | |
22268 | resultobj = SWIG_Py_Void(); | |
22269 | if (SWIG_IsTmpObj(res2)) { | |
22270 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22271 | } else { | |
22272 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22273 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22274 | } | |
22275 | if (SWIG_IsTmpObj(res3)) { | |
22276 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22277 | } else { | |
22278 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22279 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22280 | } | |
22281 | return resultobj; | |
22282 | fail: | |
22283 | return NULL; | |
22284 | } | |
22285 | ||
22286 | ||
22287 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22288 | PyObject *resultobj = 0; | |
22289 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22290 | int *arg2 = (int *) 0 ; | |
22291 | int *arg3 = (int *) 0 ; | |
22292 | void *argp1 = 0 ; | |
22293 | int res1 = 0 ; | |
22294 | int temp2 ; | |
22295 | int res2 = SWIG_TMPOBJ ; | |
22296 | int temp3 ; | |
22297 | int res3 = SWIG_TMPOBJ ; | |
22298 | PyObject *swig_obj[1] ; | |
22299 | ||
22300 | arg2 = &temp2; | |
22301 | arg3 = &temp3; | |
22302 | if (!args) SWIG_fail; | |
22303 | swig_obj[0] = args; | |
22304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22305 | if (!SWIG_IsOK(res1)) { | |
22306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22307 | } | |
22308 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22309 | { | |
22310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22311 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
22312 | wxPyEndAllowThreads(__tstate); | |
22313 | if (PyErr_Occurred()) SWIG_fail; | |
22314 | } | |
22315 | resultobj = SWIG_Py_Void(); | |
22316 | if (SWIG_IsTmpObj(res2)) { | |
22317 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22318 | } else { | |
22319 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22320 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22321 | } | |
22322 | if (SWIG_IsTmpObj(res3)) { | |
22323 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22324 | } else { | |
22325 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22326 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22327 | } | |
22328 | return resultobj; | |
22329 | fail: | |
22330 | return NULL; | |
b2dc1044 RD |
22331 | } |
22332 | ||
22333 | ||
0085ce49 RD |
22334 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22335 | PyObject *resultobj = 0; | |
22336 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22337 | wxSize result; | |
22338 | void *argp1 = 0 ; | |
22339 | int res1 = 0 ; | |
22340 | PyObject *swig_obj[1] ; | |
22341 | ||
22342 | if (!args) SWIG_fail; | |
22343 | swig_obj[0] = args; | |
22344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22345 | if (!SWIG_IsOK(res1)) { | |
22346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22347 | } | |
22348 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22349 | { | |
22350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22351 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
22352 | wxPyEndAllowThreads(__tstate); | |
22353 | if (PyErr_Occurred()) SWIG_fail; | |
22354 | } | |
22355 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22356 | return resultobj; | |
22357 | fail: | |
22358 | return NULL; | |
b2dc1044 RD |
22359 | } |
22360 | ||
22361 | ||
0085ce49 RD |
22362 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22363 | PyObject *resultobj = 0; | |
22364 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22365 | wxSize result; | |
22366 | void *argp1 = 0 ; | |
22367 | int res1 = 0 ; | |
22368 | PyObject *swig_obj[1] ; | |
22369 | ||
22370 | if (!args) SWIG_fail; | |
22371 | swig_obj[0] = args; | |
22372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22373 | if (!SWIG_IsOK(res1)) { | |
22374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22375 | } | |
22376 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22377 | { | |
22378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22379 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
22380 | wxPyEndAllowThreads(__tstate); | |
22381 | if (PyErr_Occurred()) SWIG_fail; | |
22382 | } | |
22383 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22384 | return resultobj; | |
22385 | fail: | |
22386 | return NULL; | |
b2dc1044 RD |
22387 | } |
22388 | ||
22389 | ||
0085ce49 RD |
22390 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22391 | PyObject *resultobj = 0; | |
22392 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22393 | SwigValueWrapper<wxVisualAttributes > result; | |
22394 | void *argp1 = 0 ; | |
22395 | int res1 = 0 ; | |
22396 | PyObject *swig_obj[1] ; | |
22397 | ||
22398 | if (!args) SWIG_fail; | |
22399 | swig_obj[0] = args; | |
22400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22401 | if (!SWIG_IsOK(res1)) { | |
22402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22403 | } | |
22404 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22405 | { | |
22406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22407 | result = (arg1)->GetDefaultAttributes(); | |
22408 | wxPyEndAllowThreads(__tstate); | |
22409 | if (PyErr_Occurred()) SWIG_fail; | |
22410 | } | |
22411 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22412 | return resultobj; | |
22413 | fail: | |
22414 | return NULL; | |
d14a1e28 RD |
22415 | } |
22416 | ||
22417 | ||
0085ce49 RD |
22418 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22419 | PyObject *resultobj = 0; | |
22420 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22421 | void *argp1 = 0 ; | |
22422 | int res1 = 0 ; | |
22423 | PyObject *swig_obj[1] ; | |
22424 | ||
22425 | if (!args) SWIG_fail; | |
22426 | swig_obj[0] = args; | |
22427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22428 | if (!SWIG_IsOK(res1)) { | |
22429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22430 | } | |
22431 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22432 | { | |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | (arg1)->OnInternalIdle(); | |
22435 | wxPyEndAllowThreads(__tstate); | |
22436 | if (PyErr_Occurred()) SWIG_fail; | |
22437 | } | |
22438 | resultobj = SWIG_Py_Void(); | |
22439 | return resultobj; | |
22440 | fail: | |
22441 | return NULL; | |
22442 | } | |
22443 | ||
22444 | ||
22445 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22446 | PyObject *obj; | |
22447 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22448 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
22449 | return SWIG_Py_Void(); | |
22450 | } | |
22451 | ||
22452 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22453 | return SWIG_Python_InitShadowInstance(args); | |
22454 | } | |
22455 | ||
22456 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj = 0; | |
22458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22459 | int arg2 = (int) (int)-1 ; | |
22460 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22461 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22462 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22463 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22464 | long arg5 = (long) 0 ; | |
22465 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22466 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22467 | wxPyPanel *result = 0 ; | |
22468 | void *argp1 = 0 ; | |
22469 | int res1 = 0 ; | |
22470 | int val2 ; | |
22471 | int ecode2 = 0 ; | |
22472 | wxPoint temp3 ; | |
22473 | wxSize temp4 ; | |
22474 | long val5 ; | |
22475 | int ecode5 = 0 ; | |
22476 | bool temp6 = false ; | |
22477 | PyObject * obj0 = 0 ; | |
22478 | PyObject * obj1 = 0 ; | |
22479 | PyObject * obj2 = 0 ; | |
22480 | PyObject * obj3 = 0 ; | |
22481 | PyObject * obj4 = 0 ; | |
22482 | PyObject * obj5 = 0 ; | |
22483 | char * kwnames[] = { | |
22484 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22485 | }; | |
22486 | ||
22487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22489 | if (!SWIG_IsOK(res1)) { | |
22490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22491 | } | |
22492 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22493 | if (obj1) { | |
22494 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22495 | if (!SWIG_IsOK(ecode2)) { | |
22496 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
22497 | } | |
22498 | arg2 = static_cast< int >(val2); | |
22499 | } | |
22500 | if (obj2) { | |
d14a1e28 | 22501 | { |
0085ce49 RD |
22502 | arg3 = &temp3; |
22503 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 22504 | } |
0085ce49 RD |
22505 | } |
22506 | if (obj3) { | |
d14a1e28 | 22507 | { |
0085ce49 RD |
22508 | arg4 = &temp4; |
22509 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 22510 | } |
0085ce49 RD |
22511 | } |
22512 | if (obj4) { | |
22513 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22514 | if (!SWIG_IsOK(ecode5)) { | |
22515 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
22516 | } | |
22517 | arg5 = static_cast< long >(val5); | |
22518 | } | |
22519 | if (obj5) { | |
093d3ff1 | 22520 | { |
0085ce49 RD |
22521 | arg6 = wxString_in_helper(obj5); |
22522 | if (arg6 == NULL) SWIG_fail; | |
22523 | temp6 = true; | |
093d3ff1 | 22524 | } |
0085ce49 RD |
22525 | } |
22526 | { | |
22527 | if (!wxPyCheckForApp()) SWIG_fail; | |
22528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22529 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
22533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
22534 | { | |
22535 | if (temp6) | |
22536 | delete arg6; | |
22537 | } | |
22538 | return resultobj; | |
22539 | fail: | |
22540 | { | |
22541 | if (temp6) | |
22542 | delete arg6; | |
22543 | } | |
22544 | return NULL; | |
d14a1e28 RD |
22545 | } |
22546 | ||
22547 | ||
0085ce49 RD |
22548 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22549 | PyObject *resultobj = 0; | |
22550 | wxPyPanel *result = 0 ; | |
22551 | ||
22552 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
22553 | { | |
22554 | if (!wxPyCheckForApp()) SWIG_fail; | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = (wxPyPanel *)new wxPyPanel(); | |
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
22561 | return resultobj; | |
22562 | fail: | |
22563 | return NULL; | |
22564 | } | |
22565 | ||
22566 | ||
22567 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22568 | PyObject *resultobj = 0; | |
22569 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22570 | PyObject *arg2 = (PyObject *) 0 ; | |
22571 | PyObject *arg3 = (PyObject *) 0 ; | |
22572 | void *argp1 = 0 ; | |
22573 | int res1 = 0 ; | |
22574 | PyObject * obj0 = 0 ; | |
22575 | PyObject * obj1 = 0 ; | |
22576 | PyObject * obj2 = 0 ; | |
22577 | char * kwnames[] = { | |
22578 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22579 | }; | |
22580 | ||
22581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22583 | if (!SWIG_IsOK(res1)) { | |
22584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22585 | } | |
22586 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22587 | arg2 = obj1; | |
22588 | arg3 = obj2; | |
22589 | { | |
22590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22591 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | resultobj = SWIG_Py_Void(); | |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
0085ce49 RD |
22602 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
22603 | PyObject *resultobj = 0; | |
22604 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22605 | wxDC *arg2 = (wxDC *) 0 ; | |
22606 | bool result; | |
22607 | void *argp1 = 0 ; | |
22608 | int res1 = 0 ; | |
22609 | void *argp2 = 0 ; | |
22610 | int res2 = 0 ; | |
22611 | PyObject * obj0 = 0 ; | |
22612 | PyObject * obj1 = 0 ; | |
22613 | char * kwnames[] = { | |
22614 | (char *) "self",(char *) "dc", NULL | |
22615 | }; | |
22616 | ||
22617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22619 | if (!SWIG_IsOK(res1)) { | |
22620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22621 | } | |
22622 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22623 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22624 | if (!SWIG_IsOK(res2)) { | |
22625 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22626 | } | |
22627 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22628 | { | |
22629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22630 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22631 | wxPyEndAllowThreads(__tstate); | |
22632 | if (PyErr_Occurred()) SWIG_fail; | |
22633 | } | |
22634 | { | |
22635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22636 | } | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj = 0; | |
22645 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22646 | int arg2 ; | |
22647 | int arg3 ; | |
22648 | int arg4 ; | |
22649 | int arg5 ; | |
22650 | void *argp1 = 0 ; | |
22651 | int res1 = 0 ; | |
22652 | int val2 ; | |
22653 | int ecode2 = 0 ; | |
22654 | int val3 ; | |
22655 | int ecode3 = 0 ; | |
22656 | int val4 ; | |
22657 | int ecode4 = 0 ; | |
22658 | int val5 ; | |
22659 | int ecode5 = 0 ; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | PyObject * obj1 = 0 ; | |
22662 | PyObject * obj2 = 0 ; | |
22663 | PyObject * obj3 = 0 ; | |
22664 | PyObject * obj4 = 0 ; | |
22665 | char * kwnames[] = { | |
22666 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22667 | }; | |
22668 | ||
22669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22671 | if (!SWIG_IsOK(res1)) { | |
22672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22673 | } | |
22674 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22675 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22676 | if (!SWIG_IsOK(ecode2)) { | |
22677 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22678 | } | |
22679 | arg2 = static_cast< int >(val2); | |
22680 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22681 | if (!SWIG_IsOK(ecode3)) { | |
22682 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22683 | } | |
22684 | arg3 = static_cast< int >(val3); | |
22685 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22686 | if (!SWIG_IsOK(ecode4)) { | |
22687 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22688 | } | |
22689 | arg4 = static_cast< int >(val4); | |
22690 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22691 | if (!SWIG_IsOK(ecode5)) { | |
22692 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22693 | } | |
22694 | arg5 = static_cast< int >(val5); | |
22695 | { | |
22696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22697 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22698 | wxPyEndAllowThreads(__tstate); | |
22699 | if (PyErr_Occurred()) SWIG_fail; | |
22700 | } | |
22701 | resultobj = SWIG_Py_Void(); | |
22702 | return resultobj; | |
22703 | fail: | |
22704 | return NULL; | |
22705 | } | |
22706 | ||
22707 | ||
22708 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22709 | PyObject *resultobj = 0; | |
22710 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22711 | int arg2 ; | |
22712 | int arg3 ; | |
22713 | int arg4 ; | |
22714 | int arg5 ; | |
22715 | int arg6 = (int) wxSIZE_AUTO ; | |
22716 | void *argp1 = 0 ; | |
22717 | int res1 = 0 ; | |
22718 | int val2 ; | |
22719 | int ecode2 = 0 ; | |
22720 | int val3 ; | |
22721 | int ecode3 = 0 ; | |
22722 | int val4 ; | |
22723 | int ecode4 = 0 ; | |
22724 | int val5 ; | |
22725 | int ecode5 = 0 ; | |
22726 | int val6 ; | |
22727 | int ecode6 = 0 ; | |
22728 | PyObject * obj0 = 0 ; | |
22729 | PyObject * obj1 = 0 ; | |
22730 | PyObject * obj2 = 0 ; | |
22731 | PyObject * obj3 = 0 ; | |
22732 | PyObject * obj4 = 0 ; | |
22733 | PyObject * obj5 = 0 ; | |
22734 | char * kwnames[] = { | |
22735 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22736 | }; | |
22737 | ||
22738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22740 | if (!SWIG_IsOK(res1)) { | |
22741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22742 | } | |
22743 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22744 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22745 | if (!SWIG_IsOK(ecode2)) { | |
22746 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22747 | } | |
22748 | arg2 = static_cast< int >(val2); | |
22749 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22750 | if (!SWIG_IsOK(ecode3)) { | |
22751 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22752 | } | |
22753 | arg3 = static_cast< int >(val3); | |
22754 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22755 | if (!SWIG_IsOK(ecode4)) { | |
22756 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22757 | } | |
22758 | arg4 = static_cast< int >(val4); | |
22759 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22760 | if (!SWIG_IsOK(ecode5)) { | |
22761 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22762 | } | |
22763 | arg5 = static_cast< int >(val5); | |
22764 | if (obj5) { | |
22765 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22766 | if (!SWIG_IsOK(ecode6)) { | |
22767 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22768 | } | |
22769 | arg6 = static_cast< int >(val6); | |
22770 | } | |
22771 | { | |
22772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22773 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22774 | wxPyEndAllowThreads(__tstate); | |
22775 | if (PyErr_Occurred()) SWIG_fail; | |
22776 | } | |
22777 | resultobj = SWIG_Py_Void(); | |
22778 | return resultobj; | |
22779 | fail: | |
22780 | return NULL; | |
22781 | } | |
22782 | ||
22783 | ||
22784 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22785 | PyObject *resultobj = 0; | |
22786 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22787 | int arg2 ; | |
22788 | int arg3 ; | |
22789 | void *argp1 = 0 ; | |
22790 | int res1 = 0 ; | |
22791 | int val2 ; | |
22792 | int ecode2 = 0 ; | |
22793 | int val3 ; | |
22794 | int ecode3 = 0 ; | |
22795 | PyObject * obj0 = 0 ; | |
22796 | PyObject * obj1 = 0 ; | |
22797 | PyObject * obj2 = 0 ; | |
22798 | char * kwnames[] = { | |
22799 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22800 | }; | |
22801 | ||
22802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22804 | if (!SWIG_IsOK(res1)) { | |
22805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22806 | } | |
22807 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22808 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22809 | if (!SWIG_IsOK(ecode2)) { | |
22810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22811 | } | |
22812 | arg2 = static_cast< int >(val2); | |
22813 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22814 | if (!SWIG_IsOK(ecode3)) { | |
22815 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22816 | } | |
22817 | arg3 = static_cast< int >(val3); | |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | (arg1)->DoSetClientSize(arg2,arg3); | |
22821 | wxPyEndAllowThreads(__tstate); | |
22822 | if (PyErr_Occurred()) SWIG_fail; | |
22823 | } | |
22824 | resultobj = SWIG_Py_Void(); | |
22825 | return resultobj; | |
22826 | fail: | |
22827 | return NULL; | |
22828 | } | |
22829 | ||
22830 | ||
22831 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22832 | PyObject *resultobj = 0; | |
22833 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22834 | int arg2 ; | |
22835 | int arg3 ; | |
22836 | void *argp1 = 0 ; | |
22837 | int res1 = 0 ; | |
22838 | int val2 ; | |
22839 | int ecode2 = 0 ; | |
22840 | int val3 ; | |
22841 | int ecode3 = 0 ; | |
22842 | PyObject * obj0 = 0 ; | |
22843 | PyObject * obj1 = 0 ; | |
22844 | PyObject * obj2 = 0 ; | |
22845 | char * kwnames[] = { | |
22846 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22847 | }; | |
22848 | ||
22849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22851 | if (!SWIG_IsOK(res1)) { | |
22852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22853 | } | |
22854 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22855 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22856 | if (!SWIG_IsOK(ecode2)) { | |
22857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22858 | } | |
22859 | arg2 = static_cast< int >(val2); | |
22860 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22861 | if (!SWIG_IsOK(ecode3)) { | |
22862 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22863 | } | |
22864 | arg3 = static_cast< int >(val3); | |
22865 | { | |
22866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22867 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22868 | wxPyEndAllowThreads(__tstate); | |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
22870 | } | |
22871 | resultobj = SWIG_Py_Void(); | |
22872 | return resultobj; | |
22873 | fail: | |
22874 | return NULL; | |
22875 | } | |
22876 | ||
22877 | ||
22878 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22879 | PyObject *resultobj = 0; | |
22880 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22881 | int *arg2 = (int *) 0 ; | |
22882 | int *arg3 = (int *) 0 ; | |
22883 | void *argp1 = 0 ; | |
22884 | int res1 = 0 ; | |
22885 | int temp2 ; | |
22886 | int res2 = SWIG_TMPOBJ ; | |
22887 | int temp3 ; | |
22888 | int res3 = SWIG_TMPOBJ ; | |
22889 | PyObject *swig_obj[1] ; | |
22890 | ||
22891 | arg2 = &temp2; | |
22892 | arg3 = &temp3; | |
22893 | if (!args) SWIG_fail; | |
22894 | swig_obj[0] = args; | |
22895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22896 | if (!SWIG_IsOK(res1)) { | |
22897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22898 | } | |
22899 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22900 | { | |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22902 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22903 | wxPyEndAllowThreads(__tstate); | |
22904 | if (PyErr_Occurred()) SWIG_fail; | |
22905 | } | |
22906 | resultobj = SWIG_Py_Void(); | |
22907 | if (SWIG_IsTmpObj(res2)) { | |
22908 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22909 | } else { | |
22910 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22911 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22912 | } | |
22913 | if (SWIG_IsTmpObj(res3)) { | |
22914 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22915 | } else { | |
22916 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22917 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22918 | } | |
22919 | return resultobj; | |
22920 | fail: | |
22921 | return NULL; | |
22922 | } | |
22923 | ||
22924 | ||
22925 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22926 | PyObject *resultobj = 0; | |
22927 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22928 | int *arg2 = (int *) 0 ; | |
22929 | int *arg3 = (int *) 0 ; | |
22930 | void *argp1 = 0 ; | |
22931 | int res1 = 0 ; | |
22932 | int temp2 ; | |
22933 | int res2 = SWIG_TMPOBJ ; | |
22934 | int temp3 ; | |
22935 | int res3 = SWIG_TMPOBJ ; | |
22936 | PyObject *swig_obj[1] ; | |
22937 | ||
22938 | arg2 = &temp2; | |
22939 | arg3 = &temp3; | |
22940 | if (!args) SWIG_fail; | |
22941 | swig_obj[0] = args; | |
22942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22943 | if (!SWIG_IsOK(res1)) { | |
22944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22945 | } | |
22946 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22947 | { | |
22948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22949 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = SWIG_Py_Void(); | |
22954 | if (SWIG_IsTmpObj(res2)) { | |
22955 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22956 | } else { | |
22957 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22958 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22959 | } | |
22960 | if (SWIG_IsTmpObj(res3)) { | |
22961 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22962 | } else { | |
22963 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22964 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22965 | } | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22973 | PyObject *resultobj = 0; | |
22974 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22975 | int *arg2 = (int *) 0 ; | |
22976 | int *arg3 = (int *) 0 ; | |
22977 | void *argp1 = 0 ; | |
22978 | int res1 = 0 ; | |
22979 | int temp2 ; | |
22980 | int res2 = SWIG_TMPOBJ ; | |
22981 | int temp3 ; | |
22982 | int res3 = SWIG_TMPOBJ ; | |
22983 | PyObject *swig_obj[1] ; | |
22984 | ||
22985 | arg2 = &temp2; | |
22986 | arg3 = &temp3; | |
22987 | if (!args) SWIG_fail; | |
22988 | swig_obj[0] = args; | |
22989 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22990 | if (!SWIG_IsOK(res1)) { | |
22991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22992 | } | |
22993 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22994 | { | |
22995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22996 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22997 | wxPyEndAllowThreads(__tstate); | |
22998 | if (PyErr_Occurred()) SWIG_fail; | |
22999 | } | |
23000 | resultobj = SWIG_Py_Void(); | |
23001 | if (SWIG_IsTmpObj(res2)) { | |
23002 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23003 | } else { | |
23004 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23005 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23006 | } | |
23007 | if (SWIG_IsTmpObj(res3)) { | |
23008 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23009 | } else { | |
23010 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23011 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23012 | } | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
d14a1e28 RD |
23016 | } |
23017 | ||
23018 | ||
0085ce49 RD |
23019 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23020 | PyObject *resultobj = 0; | |
23021 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
23022 | wxSize result; | |
23023 | void *argp1 = 0 ; | |
23024 | int res1 = 0 ; | |
23025 | PyObject *swig_obj[1] ; | |
23026 | ||
23027 | if (!args) SWIG_fail; | |
23028 | swig_obj[0] = args; | |
23029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
23030 | if (!SWIG_IsOK(res1)) { | |
23031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
23032 | } | |
23033 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
23034 | { | |
23035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23036 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | return NULL; | |
d14a1e28 RD |
23044 | } |
23045 | ||
23046 | ||
0085ce49 RD |
23047 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23048 | PyObject *resultobj = 0; | |
23049 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
23050 | wxSize result; | |
23051 | void *argp1 = 0 ; | |
23052 | int res1 = 0 ; | |
23053 | PyObject *swig_obj[1] ; | |
23054 | ||
23055 | if (!args) SWIG_fail; | |
23056 | swig_obj[0] = args; | |
23057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
23058 | if (!SWIG_IsOK(res1)) { | |
23059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
23060 | } | |
23061 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
23062 | { | |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23064 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
d14a1e28 RD |
23072 | } |
23073 | ||
23074 | ||
0085ce49 RD |
23075 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23076 | PyObject *resultobj = 0; | |
23077 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
23078 | SwigValueWrapper<wxVisualAttributes > result; | |
23079 | void *argp1 = 0 ; | |
23080 | int res1 = 0 ; | |
23081 | PyObject *swig_obj[1] ; | |
23082 | ||
23083 | if (!args) SWIG_fail; | |
23084 | swig_obj[0] = args; | |
23085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
23086 | if (!SWIG_IsOK(res1)) { | |
23087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
23088 | } | |
23089 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
23090 | { | |
23091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23092 | result = (arg1)->GetDefaultAttributes(); | |
23093 | wxPyEndAllowThreads(__tstate); | |
23094 | if (PyErr_Occurred()) SWIG_fail; | |
23095 | } | |
23096 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23097 | return resultobj; | |
23098 | fail: | |
23099 | return NULL; | |
d14a1e28 RD |
23100 | } |
23101 | ||
23102 | ||
0085ce49 RD |
23103 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23104 | PyObject *resultobj = 0; | |
23105 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
23106 | void *argp1 = 0 ; | |
23107 | int res1 = 0 ; | |
23108 | PyObject *swig_obj[1] ; | |
23109 | ||
23110 | if (!args) SWIG_fail; | |
23111 | swig_obj[0] = args; | |
23112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
23113 | if (!SWIG_IsOK(res1)) { | |
23114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
23115 | } | |
23116 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
23117 | { | |
23118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23119 | (arg1)->OnInternalIdle(); | |
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
23123 | resultobj = SWIG_Py_Void(); | |
23124 | return resultobj; | |
23125 | fail: | |
23126 | return NULL; | |
23127 | } | |
23128 | ||
23129 | ||
23130 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23131 | PyObject *obj; | |
23132 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23133 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
23134 | return SWIG_Py_Void(); | |
23135 | } | |
23136 | ||
23137 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23138 | return SWIG_Python_InitShadowInstance(args); | |
23139 | } | |
23140 | ||
23141 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23142 | PyObject *resultobj = 0; | |
23143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23144 | int arg2 = (int) (int)-1 ; | |
23145 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23146 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23147 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23148 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23149 | long arg5 = (long) 0 ; | |
23150 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
23151 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
23152 | wxPyScrolledWindow *result = 0 ; | |
23153 | void *argp1 = 0 ; | |
23154 | int res1 = 0 ; | |
23155 | int val2 ; | |
23156 | int ecode2 = 0 ; | |
23157 | wxPoint temp3 ; | |
23158 | wxSize temp4 ; | |
23159 | long val5 ; | |
23160 | int ecode5 = 0 ; | |
23161 | bool temp6 = false ; | |
23162 | PyObject * obj0 = 0 ; | |
23163 | PyObject * obj1 = 0 ; | |
23164 | PyObject * obj2 = 0 ; | |
23165 | PyObject * obj3 = 0 ; | |
23166 | PyObject * obj4 = 0 ; | |
23167 | PyObject * obj5 = 0 ; | |
23168 | char * kwnames[] = { | |
23169 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
23170 | }; | |
23171 | ||
23172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23174 | if (!SWIG_IsOK(res1)) { | |
23175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
23176 | } | |
23177 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
23178 | if (obj1) { | |
23179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23180 | if (!SWIG_IsOK(ecode2)) { | |
23181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
23182 | } | |
23183 | arg2 = static_cast< int >(val2); | |
23184 | } | |
23185 | if (obj2) { | |
32fe5131 | 23186 | { |
0085ce49 RD |
23187 | arg3 = &temp3; |
23188 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32fe5131 | 23189 | } |
0085ce49 RD |
23190 | } |
23191 | if (obj3) { | |
32fe5131 | 23192 | { |
0085ce49 RD |
23193 | arg4 = &temp4; |
23194 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32fe5131 | 23195 | } |
0085ce49 RD |
23196 | } |
23197 | if (obj4) { | |
23198 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
23199 | if (!SWIG_IsOK(ecode5)) { | |
23200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
23201 | } | |
23202 | arg5 = static_cast< long >(val5); | |
23203 | } | |
23204 | if (obj5) { | |
32fe5131 | 23205 | { |
0085ce49 RD |
23206 | arg6 = wxString_in_helper(obj5); |
23207 | if (arg6 == NULL) SWIG_fail; | |
23208 | temp6 = true; | |
32fe5131 | 23209 | } |
0085ce49 RD |
23210 | } |
23211 | { | |
23212 | if (!wxPyCheckForApp()) SWIG_fail; | |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
23215 | wxPyEndAllowThreads(__tstate); | |
23216 | if (PyErr_Occurred()) SWIG_fail; | |
23217 | } | |
23218 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
23219 | { | |
23220 | if (temp6) | |
23221 | delete arg6; | |
23222 | } | |
23223 | return resultobj; | |
23224 | fail: | |
23225 | { | |
23226 | if (temp6) | |
23227 | delete arg6; | |
23228 | } | |
23229 | return NULL; | |
32fe5131 RD |
23230 | } |
23231 | ||
23232 | ||
0085ce49 RD |
23233 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23234 | PyObject *resultobj = 0; | |
23235 | wxPyScrolledWindow *result = 0 ; | |
23236 | ||
23237 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
23238 | { | |
23239 | if (!wxPyCheckForApp()) SWIG_fail; | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
23242 | wxPyEndAllowThreads(__tstate); | |
23243 | if (PyErr_Occurred()) SWIG_fail; | |
23244 | } | |
23245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
23246 | return resultobj; | |
23247 | fail: | |
23248 | return NULL; | |
23249 | } | |
23250 | ||
23251 | ||
23252 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23253 | PyObject *resultobj = 0; | |
23254 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23255 | PyObject *arg2 = (PyObject *) 0 ; | |
23256 | PyObject *arg3 = (PyObject *) 0 ; | |
23257 | void *argp1 = 0 ; | |
23258 | int res1 = 0 ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | PyObject * obj1 = 0 ; | |
23261 | PyObject * obj2 = 0 ; | |
23262 | char * kwnames[] = { | |
23263 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23264 | }; | |
23265 | ||
23266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23268 | if (!SWIG_IsOK(res1)) { | |
23269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23270 | } | |
23271 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23272 | arg2 = obj1; | |
23273 | arg3 = obj2; | |
23274 | { | |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
23280 | resultobj = SWIG_Py_Void(); | |
23281 | return resultobj; | |
23282 | fail: | |
23283 | return NULL; | |
23284 | } | |
23285 | ||
23286 | ||
0085ce49 RD |
23287 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23288 | PyObject *resultobj = 0; | |
23289 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23290 | wxDC *arg2 = (wxDC *) 0 ; | |
23291 | bool result; | |
23292 | void *argp1 = 0 ; | |
23293 | int res1 = 0 ; | |
23294 | void *argp2 = 0 ; | |
23295 | int res2 = 0 ; | |
23296 | PyObject * obj0 = 0 ; | |
23297 | PyObject * obj1 = 0 ; | |
23298 | char * kwnames[] = { | |
23299 | (char *) "self",(char *) "dc", NULL | |
23300 | }; | |
23301 | ||
23302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
23303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23304 | if (!SWIG_IsOK(res1)) { | |
23305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23306 | } | |
23307 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23308 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23309 | if (!SWIG_IsOK(res2)) { | |
23310 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
23311 | } | |
23312 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
23313 | { | |
23314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23315 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
23319 | { | |
23320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23321 | } | |
23322 | return resultobj; | |
23323 | fail: | |
23324 | return NULL; | |
23325 | } | |
23326 | ||
23327 | ||
23328 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23329 | PyObject *resultobj = 0; | |
23330 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23331 | int arg2 ; | |
23332 | int arg3 ; | |
23333 | int arg4 ; | |
23334 | int arg5 ; | |
23335 | void *argp1 = 0 ; | |
23336 | int res1 = 0 ; | |
23337 | int val2 ; | |
23338 | int ecode2 = 0 ; | |
23339 | int val3 ; | |
23340 | int ecode3 = 0 ; | |
23341 | int val4 ; | |
23342 | int ecode4 = 0 ; | |
23343 | int val5 ; | |
23344 | int ecode5 = 0 ; | |
23345 | PyObject * obj0 = 0 ; | |
23346 | PyObject * obj1 = 0 ; | |
23347 | PyObject * obj2 = 0 ; | |
23348 | PyObject * obj3 = 0 ; | |
23349 | PyObject * obj4 = 0 ; | |
23350 | char * kwnames[] = { | |
23351 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
23352 | }; | |
23353 | ||
23354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23356 | if (!SWIG_IsOK(res1)) { | |
23357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23358 | } | |
23359 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23361 | if (!SWIG_IsOK(ecode2)) { | |
23362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
23363 | } | |
23364 | arg2 = static_cast< int >(val2); | |
23365 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23366 | if (!SWIG_IsOK(ecode3)) { | |
23367 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
23368 | } | |
23369 | arg3 = static_cast< int >(val3); | |
23370 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23371 | if (!SWIG_IsOK(ecode4)) { | |
23372 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
23373 | } | |
23374 | arg4 = static_cast< int >(val4); | |
23375 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23376 | if (!SWIG_IsOK(ecode5)) { | |
23377 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
23378 | } | |
23379 | arg5 = static_cast< int >(val5); | |
23380 | { | |
23381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23382 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
23383 | wxPyEndAllowThreads(__tstate); | |
23384 | if (PyErr_Occurred()) SWIG_fail; | |
23385 | } | |
23386 | resultobj = SWIG_Py_Void(); | |
23387 | return resultobj; | |
23388 | fail: | |
23389 | return NULL; | |
23390 | } | |
23391 | ||
23392 | ||
23393 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23394 | PyObject *resultobj = 0; | |
23395 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23396 | int arg2 ; | |
23397 | int arg3 ; | |
23398 | int arg4 ; | |
23399 | int arg5 ; | |
23400 | int arg6 = (int) wxSIZE_AUTO ; | |
23401 | void *argp1 = 0 ; | |
23402 | int res1 = 0 ; | |
23403 | int val2 ; | |
23404 | int ecode2 = 0 ; | |
23405 | int val3 ; | |
23406 | int ecode3 = 0 ; | |
23407 | int val4 ; | |
23408 | int ecode4 = 0 ; | |
23409 | int val5 ; | |
23410 | int ecode5 = 0 ; | |
23411 | int val6 ; | |
23412 | int ecode6 = 0 ; | |
23413 | PyObject * obj0 = 0 ; | |
23414 | PyObject * obj1 = 0 ; | |
23415 | PyObject * obj2 = 0 ; | |
23416 | PyObject * obj3 = 0 ; | |
23417 | PyObject * obj4 = 0 ; | |
23418 | PyObject * obj5 = 0 ; | |
23419 | char * kwnames[] = { | |
23420 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23421 | }; | |
23422 | ||
23423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23425 | if (!SWIG_IsOK(res1)) { | |
23426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23427 | } | |
23428 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23429 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23430 | if (!SWIG_IsOK(ecode2)) { | |
23431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
23432 | } | |
23433 | arg2 = static_cast< int >(val2); | |
23434 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23435 | if (!SWIG_IsOK(ecode3)) { | |
23436 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
23437 | } | |
23438 | arg3 = static_cast< int >(val3); | |
23439 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23440 | if (!SWIG_IsOK(ecode4)) { | |
23441 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
23442 | } | |
23443 | arg4 = static_cast< int >(val4); | |
23444 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23445 | if (!SWIG_IsOK(ecode5)) { | |
23446 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
23447 | } | |
23448 | arg5 = static_cast< int >(val5); | |
23449 | if (obj5) { | |
23450 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23451 | if (!SWIG_IsOK(ecode6)) { | |
23452 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
23453 | } | |
23454 | arg6 = static_cast< int >(val6); | |
23455 | } | |
23456 | { | |
23457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23458 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
23459 | wxPyEndAllowThreads(__tstate); | |
23460 | if (PyErr_Occurred()) SWIG_fail; | |
23461 | } | |
23462 | resultobj = SWIG_Py_Void(); | |
23463 | return resultobj; | |
23464 | fail: | |
23465 | return NULL; | |
23466 | } | |
23467 | ||
23468 | ||
23469 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23470 | PyObject *resultobj = 0; | |
23471 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23472 | int arg2 ; | |
23473 | int arg3 ; | |
23474 | void *argp1 = 0 ; | |
23475 | int res1 = 0 ; | |
23476 | int val2 ; | |
23477 | int ecode2 = 0 ; | |
23478 | int val3 ; | |
23479 | int ecode3 = 0 ; | |
23480 | PyObject * obj0 = 0 ; | |
23481 | PyObject * obj1 = 0 ; | |
23482 | PyObject * obj2 = 0 ; | |
23483 | char * kwnames[] = { | |
23484 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23485 | }; | |
23486 | ||
23487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23489 | if (!SWIG_IsOK(res1)) { | |
23490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23491 | } | |
23492 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23493 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23494 | if (!SWIG_IsOK(ecode2)) { | |
23495 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
23496 | } | |
23497 | arg2 = static_cast< int >(val2); | |
23498 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23499 | if (!SWIG_IsOK(ecode3)) { | |
23500 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
23501 | } | |
23502 | arg3 = static_cast< int >(val3); | |
23503 | { | |
23504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23505 | (arg1)->DoSetClientSize(arg2,arg3); | |
23506 | wxPyEndAllowThreads(__tstate); | |
23507 | if (PyErr_Occurred()) SWIG_fail; | |
23508 | } | |
23509 | resultobj = SWIG_Py_Void(); | |
23510 | return resultobj; | |
23511 | fail: | |
23512 | return NULL; | |
23513 | } | |
23514 | ||
23515 | ||
23516 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23517 | PyObject *resultobj = 0; | |
23518 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23519 | int arg2 ; | |
23520 | int arg3 ; | |
23521 | void *argp1 = 0 ; | |
23522 | int res1 = 0 ; | |
23523 | int val2 ; | |
23524 | int ecode2 = 0 ; | |
23525 | int val3 ; | |
23526 | int ecode3 = 0 ; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | PyObject * obj1 = 0 ; | |
23529 | PyObject * obj2 = 0 ; | |
23530 | char * kwnames[] = { | |
23531 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23532 | }; | |
23533 | ||
23534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23536 | if (!SWIG_IsOK(res1)) { | |
23537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23538 | } | |
23539 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23540 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23541 | if (!SWIG_IsOK(ecode2)) { | |
23542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
23543 | } | |
23544 | arg2 = static_cast< int >(val2); | |
23545 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23546 | if (!SWIG_IsOK(ecode3)) { | |
23547 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
23548 | } | |
23549 | arg3 = static_cast< int >(val3); | |
23550 | { | |
23551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23552 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
23556 | resultobj = SWIG_Py_Void(); | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23564 | PyObject *resultobj = 0; | |
23565 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23566 | int *arg2 = (int *) 0 ; | |
23567 | int *arg3 = (int *) 0 ; | |
23568 | void *argp1 = 0 ; | |
23569 | int res1 = 0 ; | |
23570 | int temp2 ; | |
23571 | int res2 = SWIG_TMPOBJ ; | |
23572 | int temp3 ; | |
23573 | int res3 = SWIG_TMPOBJ ; | |
23574 | PyObject *swig_obj[1] ; | |
23575 | ||
23576 | arg2 = &temp2; | |
23577 | arg3 = &temp3; | |
23578 | if (!args) SWIG_fail; | |
23579 | swig_obj[0] = args; | |
23580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23581 | if (!SWIG_IsOK(res1)) { | |
23582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23583 | } | |
23584 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23585 | { | |
23586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23587 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
23588 | wxPyEndAllowThreads(__tstate); | |
23589 | if (PyErr_Occurred()) SWIG_fail; | |
23590 | } | |
23591 | resultobj = SWIG_Py_Void(); | |
23592 | if (SWIG_IsTmpObj(res2)) { | |
23593 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23594 | } else { | |
23595 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23596 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23597 | } | |
23598 | if (SWIG_IsTmpObj(res3)) { | |
23599 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23600 | } else { | |
23601 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23602 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23603 | } | |
23604 | return resultobj; | |
23605 | fail: | |
23606 | return NULL; | |
23607 | } | |
23608 | ||
23609 | ||
23610 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23611 | PyObject *resultobj = 0; | |
23612 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23613 | int *arg2 = (int *) 0 ; | |
23614 | int *arg3 = (int *) 0 ; | |
23615 | void *argp1 = 0 ; | |
23616 | int res1 = 0 ; | |
23617 | int temp2 ; | |
23618 | int res2 = SWIG_TMPOBJ ; | |
23619 | int temp3 ; | |
23620 | int res3 = SWIG_TMPOBJ ; | |
23621 | PyObject *swig_obj[1] ; | |
23622 | ||
23623 | arg2 = &temp2; | |
23624 | arg3 = &temp3; | |
23625 | if (!args) SWIG_fail; | |
23626 | swig_obj[0] = args; | |
23627 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23628 | if (!SWIG_IsOK(res1)) { | |
23629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23630 | } | |
23631 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23632 | { | |
23633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23634 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | resultobj = SWIG_Py_Void(); | |
23639 | if (SWIG_IsTmpObj(res2)) { | |
23640 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23641 | } else { | |
23642 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23643 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23644 | } | |
23645 | if (SWIG_IsTmpObj(res3)) { | |
23646 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23647 | } else { | |
23648 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23649 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23650 | } | |
23651 | return resultobj; | |
23652 | fail: | |
23653 | return NULL; | |
23654 | } | |
23655 | ||
23656 | ||
23657 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23658 | PyObject *resultobj = 0; | |
23659 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23660 | int *arg2 = (int *) 0 ; | |
23661 | int *arg3 = (int *) 0 ; | |
23662 | void *argp1 = 0 ; | |
23663 | int res1 = 0 ; | |
23664 | int temp2 ; | |
23665 | int res2 = SWIG_TMPOBJ ; | |
23666 | int temp3 ; | |
23667 | int res3 = SWIG_TMPOBJ ; | |
23668 | PyObject *swig_obj[1] ; | |
23669 | ||
23670 | arg2 = &temp2; | |
23671 | arg3 = &temp3; | |
23672 | if (!args) SWIG_fail; | |
23673 | swig_obj[0] = args; | |
23674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23675 | if (!SWIG_IsOK(res1)) { | |
23676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23677 | } | |
23678 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23679 | { | |
23680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23681 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
23682 | wxPyEndAllowThreads(__tstate); | |
23683 | if (PyErr_Occurred()) SWIG_fail; | |
23684 | } | |
23685 | resultobj = SWIG_Py_Void(); | |
23686 | if (SWIG_IsTmpObj(res2)) { | |
23687 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23688 | } else { | |
23689 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23690 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23691 | } | |
23692 | if (SWIG_IsTmpObj(res3)) { | |
23693 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23694 | } else { | |
23695 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23696 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23697 | } | |
23698 | return resultobj; | |
23699 | fail: | |
23700 | return NULL; | |
d14a1e28 RD |
23701 | } |
23702 | ||
23703 | ||
0085ce49 RD |
23704 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23705 | PyObject *resultobj = 0; | |
23706 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23707 | wxSize result; | |
23708 | void *argp1 = 0 ; | |
23709 | int res1 = 0 ; | |
23710 | PyObject *swig_obj[1] ; | |
23711 | ||
23712 | if (!args) SWIG_fail; | |
23713 | swig_obj[0] = args; | |
23714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23715 | if (!SWIG_IsOK(res1)) { | |
23716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23717 | } | |
23718 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23719 | { | |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23726 | return resultobj; | |
23727 | fail: | |
23728 | return NULL; | |
d14a1e28 RD |
23729 | } |
23730 | ||
23731 | ||
0085ce49 RD |
23732 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23733 | PyObject *resultobj = 0; | |
23734 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23735 | wxSize result; | |
23736 | void *argp1 = 0 ; | |
23737 | int res1 = 0 ; | |
23738 | PyObject *swig_obj[1] ; | |
23739 | ||
23740 | if (!args) SWIG_fail; | |
23741 | swig_obj[0] = args; | |
23742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23743 | if (!SWIG_IsOK(res1)) { | |
23744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23745 | } | |
23746 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23747 | { | |
23748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23749 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
23750 | wxPyEndAllowThreads(__tstate); | |
23751 | if (PyErr_Occurred()) SWIG_fail; | |
23752 | } | |
23753 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23754 | return resultobj; | |
23755 | fail: | |
23756 | return NULL; | |
d14a1e28 RD |
23757 | } |
23758 | ||
23759 | ||
0085ce49 RD |
23760 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23761 | PyObject *resultobj = 0; | |
23762 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23763 | SwigValueWrapper<wxVisualAttributes > result; | |
23764 | void *argp1 = 0 ; | |
23765 | int res1 = 0 ; | |
23766 | PyObject *swig_obj[1] ; | |
23767 | ||
23768 | if (!args) SWIG_fail; | |
23769 | swig_obj[0] = args; | |
23770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23771 | if (!SWIG_IsOK(res1)) { | |
23772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23773 | } | |
23774 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23775 | { | |
23776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23777 | result = (arg1)->GetDefaultAttributes(); | |
23778 | wxPyEndAllowThreads(__tstate); | |
23779 | if (PyErr_Occurred()) SWIG_fail; | |
23780 | } | |
23781 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23782 | return resultobj; | |
23783 | fail: | |
23784 | return NULL; | |
d14a1e28 RD |
23785 | } |
23786 | ||
23787 | ||
0085ce49 RD |
23788 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23789 | PyObject *resultobj = 0; | |
23790 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23791 | void *argp1 = 0 ; | |
23792 | int res1 = 0 ; | |
23793 | PyObject *swig_obj[1] ; | |
23794 | ||
23795 | if (!args) SWIG_fail; | |
23796 | swig_obj[0] = args; | |
23797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23798 | if (!SWIG_IsOK(res1)) { | |
23799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23800 | } | |
23801 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23802 | { | |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | (arg1)->OnInternalIdle(); | |
23805 | wxPyEndAllowThreads(__tstate); | |
23806 | if (PyErr_Occurred()) SWIG_fail; | |
23807 | } | |
23808 | resultobj = SWIG_Py_Void(); | |
23809 | return resultobj; | |
23810 | fail: | |
23811 | return NULL; | |
d14a1e28 RD |
23812 | } |
23813 | ||
23814 | ||
0085ce49 RD |
23815 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23816 | PyObject *obj; | |
23817 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23818 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23819 | return SWIG_Py_Void(); | |
d14a1e28 RD |
23820 | } |
23821 | ||
0085ce49 RD |
23822 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23823 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
23824 | } |
23825 | ||
0085ce49 RD |
23826 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23827 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23828 | return 1; | |
d14a1e28 RD |
23829 | } |
23830 | ||
23831 | ||
0085ce49 RD |
23832 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23833 | PyObject *pyobj = 0; | |
23834 | ||
23835 | { | |
23836 | #if wxUSE_UNICODE | |
23837 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23838 | #else | |
23839 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23840 | #endif | |
23841 | } | |
23842 | return pyobj; | |
d14a1e28 RD |
23843 | } |
23844 | ||
23845 | ||
0085ce49 RD |
23846 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23847 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23848 | return 1; | |
d14a1e28 RD |
23849 | } |
23850 | ||
23851 | ||
0085ce49 RD |
23852 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { |
23853 | PyObject *pyobj = 0; | |
23854 | ||
23855 | { | |
23856 | #if wxUSE_UNICODE | |
23857 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23858 | #else | |
23859 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23860 | #endif | |
23861 | } | |
23862 | return pyobj; | |
d14a1e28 RD |
23863 | } |
23864 | ||
23865 | ||
0085ce49 RD |
23866 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23867 | PyObject *resultobj = 0; | |
23868 | wxPrintData *result = 0 ; | |
23869 | ||
23870 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23871 | { | |
23872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23873 | result = (wxPrintData *)new wxPrintData(); | |
23874 | wxPyEndAllowThreads(__tstate); | |
23875 | if (PyErr_Occurred()) SWIG_fail; | |
23876 | } | |
23877 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23878 | return resultobj; | |
23879 | fail: | |
23880 | return NULL; | |
d14a1e28 RD |
23881 | } |
23882 | ||
23883 | ||
0085ce49 RD |
23884 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23885 | PyObject *resultobj = 0; | |
23886 | wxPrintData *arg1 = 0 ; | |
23887 | wxPrintData *result = 0 ; | |
23888 | void *argp1 = 0 ; | |
23889 | int res1 = 0 ; | |
23890 | ||
23891 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23893 | if (!SWIG_IsOK(res1)) { | |
23894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23895 | } | |
23896 | if (!argp1) { | |
23897 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23898 | } | |
23899 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23900 | { | |
23901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23902 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23903 | wxPyEndAllowThreads(__tstate); | |
23904 | if (PyErr_Occurred()) SWIG_fail; | |
23905 | } | |
23906 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23907 | return resultobj; | |
23908 | fail: | |
23909 | return NULL; | |
d14a1e28 RD |
23910 | } |
23911 | ||
23912 | ||
0085ce49 RD |
23913 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23914 | int argc; | |
23915 | PyObject *argv[2]; | |
23916 | ||
23917 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23918 | --argc; | |
23919 | if (argc == 0) { | |
23920 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23921 | } | |
23922 | if (argc == 1) { | |
23923 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23924 | } | |
23925 | ||
23926 | fail: | |
23927 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23928 | return NULL; | |
d14a1e28 RD |
23929 | } |
23930 | ||
23931 | ||
0085ce49 RD |
23932 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23933 | PyObject *resultobj = 0; | |
23934 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23935 | void *argp1 = 0 ; | |
23936 | int res1 = 0 ; | |
23937 | PyObject *swig_obj[1] ; | |
23938 | ||
23939 | if (!args) SWIG_fail; | |
23940 | swig_obj[0] = args; | |
23941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23942 | if (!SWIG_IsOK(res1)) { | |
23943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23944 | } | |
23945 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23946 | { | |
23947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23948 | delete arg1; | |
d14a1e28 | 23949 | |
0085ce49 RD |
23950 | wxPyEndAllowThreads(__tstate); |
23951 | if (PyErr_Occurred()) SWIG_fail; | |
23952 | } | |
23953 | resultobj = SWIG_Py_Void(); | |
23954 | return resultobj; | |
23955 | fail: | |
23956 | return NULL; | |
d14a1e28 RD |
23957 | } |
23958 | ||
23959 | ||
0085ce49 RD |
23960 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23961 | PyObject *resultobj = 0; | |
23962 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23963 | int result; | |
23964 | void *argp1 = 0 ; | |
23965 | int res1 = 0 ; | |
23966 | PyObject *swig_obj[1] ; | |
23967 | ||
23968 | if (!args) SWIG_fail; | |
23969 | swig_obj[0] = args; | |
23970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23971 | if (!SWIG_IsOK(res1)) { | |
23972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23973 | } | |
23974 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23975 | { | |
23976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23977 | result = (int)(arg1)->GetNoCopies(); | |
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23982 | return resultobj; | |
23983 | fail: | |
23984 | return NULL; | |
d14a1e28 RD |
23985 | } |
23986 | ||
23987 | ||
0085ce49 RD |
23988 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23989 | PyObject *resultobj = 0; | |
23990 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23991 | bool result; | |
23992 | void *argp1 = 0 ; | |
23993 | int res1 = 0 ; | |
23994 | PyObject *swig_obj[1] ; | |
23995 | ||
23996 | if (!args) SWIG_fail; | |
23997 | swig_obj[0] = args; | |
23998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23999 | if (!SWIG_IsOK(res1)) { | |
24000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24001 | } | |
24002 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24003 | { | |
24004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24005 | result = (bool)(arg1)->GetCollate(); | |
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
24009 | { | |
24010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24011 | } | |
24012 | return resultobj; | |
24013 | fail: | |
24014 | return NULL; | |
d14a1e28 RD |
24015 | } |
24016 | ||
24017 | ||
0085ce49 RD |
24018 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24019 | PyObject *resultobj = 0; | |
24020 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24021 | int result; | |
24022 | void *argp1 = 0 ; | |
24023 | int res1 = 0 ; | |
24024 | PyObject *swig_obj[1] ; | |
24025 | ||
24026 | if (!args) SWIG_fail; | |
24027 | swig_obj[0] = args; | |
24028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24029 | if (!SWIG_IsOK(res1)) { | |
24030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24031 | } | |
24032 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24033 | { | |
24034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24035 | result = (int)(arg1)->GetOrientation(); | |
24036 | wxPyEndAllowThreads(__tstate); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
24038 | } | |
24039 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24040 | return resultobj; | |
24041 | fail: | |
24042 | return NULL; | |
d14a1e28 RD |
24043 | } |
24044 | ||
24045 | ||
5172800e RD |
24046 | SWIGINTERN PyObject *_wrap_PrintData_IsOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24047 | PyObject *resultobj = 0; | |
24048 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24049 | bool result; | |
24050 | void *argp1 = 0 ; | |
24051 | int res1 = 0 ; | |
24052 | PyObject *swig_obj[1] ; | |
24053 | ||
24054 | if (!args) SWIG_fail; | |
24055 | swig_obj[0] = args; | |
24056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24057 | if (!SWIG_IsOK(res1)) { | |
24058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24059 | } | |
24060 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24061 | { | |
24062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24063 | result = (bool)((wxPrintData const *)arg1)->IsOrientationReversed(); | |
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | { | |
24068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24069 | } | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
b39fe951 | 24076 | SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24077 | PyObject *resultobj = 0; |
24078 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24079 | bool result; | |
24080 | void *argp1 = 0 ; | |
24081 | int res1 = 0 ; | |
24082 | PyObject *swig_obj[1] ; | |
24083 | ||
24084 | if (!args) SWIG_fail; | |
24085 | swig_obj[0] = args; | |
24086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24087 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 24088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOk" "', expected argument " "1"" of type '" "wxPrintData *""'"); |
0085ce49 RD |
24089 | } |
24090 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 24093 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
24094 | wxPyEndAllowThreads(__tstate); |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
24096 | } | |
24097 | { | |
24098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24099 | } | |
24100 | return resultobj; | |
24101 | fail: | |
24102 | return NULL; | |
24103 | } | |
24104 | ||
24105 | ||
24106 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24107 | PyObject *resultobj = 0; | |
24108 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24109 | wxString *result = 0 ; | |
24110 | void *argp1 = 0 ; | |
24111 | int res1 = 0 ; | |
24112 | PyObject *swig_obj[1] ; | |
24113 | ||
24114 | if (!args) SWIG_fail; | |
24115 | swig_obj[0] = args; | |
24116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24117 | if (!SWIG_IsOK(res1)) { | |
24118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24119 | } | |
24120 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 24123 | { |
0085ce49 RD |
24124 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
24125 | result = (wxString *) &_result_ref; | |
d14a1e28 | 24126 | } |
0085ce49 RD |
24127 | wxPyEndAllowThreads(__tstate); |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | { | |
d14a1e28 | 24131 | #if wxUSE_UNICODE |
0085ce49 | 24132 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 24133 | #else |
0085ce49 | 24134 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 24135 | #endif |
0085ce49 RD |
24136 | } |
24137 | return resultobj; | |
24138 | fail: | |
24139 | return NULL; | |
d14a1e28 RD |
24140 | } |
24141 | ||
24142 | ||
0085ce49 RD |
24143 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24144 | PyObject *resultobj = 0; | |
24145 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24146 | bool result; | |
24147 | void *argp1 = 0 ; | |
24148 | int res1 = 0 ; | |
24149 | PyObject *swig_obj[1] ; | |
24150 | ||
24151 | if (!args) SWIG_fail; | |
24152 | swig_obj[0] = args; | |
24153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24154 | if (!SWIG_IsOK(res1)) { | |
24155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24156 | } | |
24157 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | result = (bool)(arg1)->GetColour(); | |
24161 | wxPyEndAllowThreads(__tstate); | |
24162 | if (PyErr_Occurred()) SWIG_fail; | |
24163 | } | |
24164 | { | |
24165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24166 | } | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
d14a1e28 RD |
24170 | } |
24171 | ||
24172 | ||
0085ce49 RD |
24173 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24174 | PyObject *resultobj = 0; | |
24175 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24176 | wxDuplexMode result; | |
24177 | void *argp1 = 0 ; | |
24178 | int res1 = 0 ; | |
24179 | PyObject *swig_obj[1] ; | |
24180 | ||
24181 | if (!args) SWIG_fail; | |
24182 | swig_obj[0] = args; | |
24183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24184 | if (!SWIG_IsOK(res1)) { | |
24185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24186 | } | |
24187 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24188 | { | |
24189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24190 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
24191 | wxPyEndAllowThreads(__tstate); | |
24192 | if (PyErr_Occurred()) SWIG_fail; | |
24193 | } | |
24194 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24195 | return resultobj; | |
24196 | fail: | |
24197 | return NULL; | |
d14a1e28 RD |
24198 | } |
24199 | ||
24200 | ||
0085ce49 RD |
24201 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24202 | PyObject *resultobj = 0; | |
24203 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24204 | wxPaperSize result; | |
24205 | void *argp1 = 0 ; | |
24206 | int res1 = 0 ; | |
24207 | PyObject *swig_obj[1] ; | |
24208 | ||
24209 | if (!args) SWIG_fail; | |
24210 | swig_obj[0] = args; | |
24211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24212 | if (!SWIG_IsOK(res1)) { | |
24213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24214 | } | |
24215 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24216 | { | |
24217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24218 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
24219 | wxPyEndAllowThreads(__tstate); | |
24220 | if (PyErr_Occurred()) SWIG_fail; | |
24221 | } | |
24222 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
d14a1e28 RD |
24226 | } |
24227 | ||
24228 | ||
0085ce49 RD |
24229 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24230 | PyObject *resultobj = 0; | |
24231 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24232 | wxSize *result = 0 ; | |
24233 | void *argp1 = 0 ; | |
24234 | int res1 = 0 ; | |
24235 | PyObject *swig_obj[1] ; | |
24236 | ||
24237 | if (!args) SWIG_fail; | |
24238 | swig_obj[0] = args; | |
24239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24240 | if (!SWIG_IsOK(res1)) { | |
24241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24242 | } | |
24243 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24244 | { | |
24245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 24246 | { |
0085ce49 RD |
24247 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
24248 | result = (wxSize *) &_result_ref; | |
24249 | } | |
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | return NULL; | |
d14a1e28 RD |
24257 | } |
24258 | ||
24259 | ||
0085ce49 RD |
24260 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24261 | PyObject *resultobj = 0; | |
24262 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24263 | int result; | |
24264 | void *argp1 = 0 ; | |
24265 | int res1 = 0 ; | |
24266 | PyObject *swig_obj[1] ; | |
24267 | ||
24268 | if (!args) SWIG_fail; | |
24269 | swig_obj[0] = args; | |
24270 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24271 | if (!SWIG_IsOK(res1)) { | |
24272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24273 | } | |
24274 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (int)(arg1)->GetQuality(); | |
24278 | wxPyEndAllowThreads(__tstate); | |
24279 | if (PyErr_Occurred()) SWIG_fail; | |
24280 | } | |
24281 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24282 | return resultobj; | |
24283 | fail: | |
24284 | return NULL; | |
d14a1e28 RD |
24285 | } |
24286 | ||
24287 | ||
0085ce49 RD |
24288 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24289 | PyObject *resultobj = 0; | |
24290 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24291 | wxPrintBin result; | |
24292 | void *argp1 = 0 ; | |
24293 | int res1 = 0 ; | |
24294 | PyObject *swig_obj[1] ; | |
24295 | ||
24296 | if (!args) SWIG_fail; | |
24297 | swig_obj[0] = args; | |
24298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24299 | if (!SWIG_IsOK(res1)) { | |
24300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24301 | } | |
24302 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24303 | { | |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | result = (wxPrintBin)(arg1)->GetBin(); | |
24306 | wxPyEndAllowThreads(__tstate); | |
24307 | if (PyErr_Occurred()) SWIG_fail; | |
24308 | } | |
24309 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24310 | return resultobj; | |
24311 | fail: | |
24312 | return NULL; | |
d14a1e28 RD |
24313 | } |
24314 | ||
24315 | ||
0085ce49 RD |
24316 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24317 | PyObject *resultobj = 0; | |
24318 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24319 | wxPrintMode result; | |
24320 | void *argp1 = 0 ; | |
24321 | int res1 = 0 ; | |
24322 | PyObject *swig_obj[1] ; | |
24323 | ||
24324 | if (!args) SWIG_fail; | |
24325 | swig_obj[0] = args; | |
24326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24327 | if (!SWIG_IsOK(res1)) { | |
24328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24329 | } | |
24330 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24331 | { | |
24332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24333 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
24337 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24338 | return resultobj; | |
24339 | fail: | |
24340 | return NULL; | |
24341 | } | |
24342 | ||
24343 | ||
8f514ab4 RD |
24344 | SWIGINTERN PyObject *_wrap_PrintData_GetMedia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24345 | PyObject *resultobj = 0; | |
24346 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24347 | int result; | |
24348 | void *argp1 = 0 ; | |
24349 | int res1 = 0 ; | |
24350 | PyObject *swig_obj[1] ; | |
24351 | ||
24352 | if (!args) SWIG_fail; | |
24353 | swig_obj[0] = args; | |
24354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24355 | if (!SWIG_IsOK(res1)) { | |
24356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetMedia" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24357 | } | |
24358 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24359 | { | |
24360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24361 | result = (int)((wxPrintData const *)arg1)->GetMedia(); | |
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
24365 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24366 | return resultobj; | |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
0085ce49 RD |
24372 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24373 | PyObject *resultobj = 0; | |
24374 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24375 | int arg2 ; | |
24376 | void *argp1 = 0 ; | |
24377 | int res1 = 0 ; | |
24378 | int val2 ; | |
24379 | int ecode2 = 0 ; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | PyObject * obj1 = 0 ; | |
24382 | char * kwnames[] = { | |
24383 | (char *) "self",(char *) "v", NULL | |
24384 | }; | |
24385 | ||
24386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
24387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24388 | if (!SWIG_IsOK(res1)) { | |
24389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24390 | } | |
24391 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24392 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24393 | if (!SWIG_IsOK(ecode2)) { | |
24394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
24395 | } | |
24396 | arg2 = static_cast< int >(val2); | |
24397 | { | |
24398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24399 | (arg1)->SetNoCopies(arg2); | |
24400 | wxPyEndAllowThreads(__tstate); | |
24401 | if (PyErr_Occurred()) SWIG_fail; | |
24402 | } | |
24403 | resultobj = SWIG_Py_Void(); | |
24404 | return resultobj; | |
24405 | fail: | |
24406 | return NULL; | |
24407 | } | |
24408 | ||
24409 | ||
24410 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24411 | PyObject *resultobj = 0; | |
24412 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24413 | bool arg2 ; | |
24414 | void *argp1 = 0 ; | |
24415 | int res1 = 0 ; | |
24416 | bool val2 ; | |
24417 | int ecode2 = 0 ; | |
24418 | PyObject * obj0 = 0 ; | |
24419 | PyObject * obj1 = 0 ; | |
24420 | char * kwnames[] = { | |
24421 | (char *) "self",(char *) "flag", NULL | |
24422 | }; | |
24423 | ||
24424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
24425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24426 | if (!SWIG_IsOK(res1)) { | |
24427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24428 | } | |
24429 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24430 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24431 | if (!SWIG_IsOK(ecode2)) { | |
24432 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
24433 | } | |
24434 | arg2 = static_cast< bool >(val2); | |
24435 | { | |
24436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24437 | (arg1)->SetCollate(arg2); | |
24438 | wxPyEndAllowThreads(__tstate); | |
24439 | if (PyErr_Occurred()) SWIG_fail; | |
24440 | } | |
24441 | resultobj = SWIG_Py_Void(); | |
24442 | return resultobj; | |
24443 | fail: | |
24444 | return NULL; | |
24445 | } | |
24446 | ||
24447 | ||
24448 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24449 | PyObject *resultobj = 0; | |
24450 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24451 | int arg2 ; | |
24452 | void *argp1 = 0 ; | |
24453 | int res1 = 0 ; | |
24454 | int val2 ; | |
24455 | int ecode2 = 0 ; | |
24456 | PyObject * obj0 = 0 ; | |
24457 | PyObject * obj1 = 0 ; | |
24458 | char * kwnames[] = { | |
24459 | (char *) "self",(char *) "orient", NULL | |
24460 | }; | |
24461 | ||
24462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24464 | if (!SWIG_IsOK(res1)) { | |
24465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24466 | } | |
24467 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24468 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24469 | if (!SWIG_IsOK(ecode2)) { | |
24470 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
24471 | } | |
24472 | arg2 = static_cast< int >(val2); | |
24473 | { | |
24474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24475 | (arg1)->SetOrientation(arg2); | |
24476 | wxPyEndAllowThreads(__tstate); | |
24477 | if (PyErr_Occurred()) SWIG_fail; | |
24478 | } | |
24479 | resultobj = SWIG_Py_Void(); | |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
5172800e RD |
24486 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientationReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24487 | PyObject *resultobj = 0; | |
24488 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24489 | bool arg2 ; | |
24490 | void *argp1 = 0 ; | |
24491 | int res1 = 0 ; | |
24492 | bool val2 ; | |
24493 | int ecode2 = 0 ; | |
24494 | PyObject * obj0 = 0 ; | |
24495 | PyObject * obj1 = 0 ; | |
24496 | char * kwnames[] = { | |
24497 | (char *) "self",(char *) "reversed", NULL | |
24498 | }; | |
24499 | ||
24500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientationReversed",kwnames,&obj0,&obj1)) SWIG_fail; | |
24501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24502 | if (!SWIG_IsOK(res1)) { | |
24503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24504 | } | |
24505 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24506 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24507 | if (!SWIG_IsOK(ecode2)) { | |
24508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientationReversed" "', expected argument " "2"" of type '" "bool""'"); | |
24509 | } | |
24510 | arg2 = static_cast< bool >(val2); | |
24511 | { | |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | (arg1)->SetOrientationReversed(arg2); | |
24514 | wxPyEndAllowThreads(__tstate); | |
24515 | if (PyErr_Occurred()) SWIG_fail; | |
24516 | } | |
24517 | resultobj = SWIG_Py_Void(); | |
24518 | return resultobj; | |
24519 | fail: | |
24520 | return NULL; | |
24521 | } | |
24522 | ||
24523 | ||
0085ce49 RD |
24524 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24525 | PyObject *resultobj = 0; | |
24526 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24527 | wxString *arg2 = 0 ; | |
24528 | void *argp1 = 0 ; | |
24529 | int res1 = 0 ; | |
24530 | bool temp2 = false ; | |
24531 | PyObject * obj0 = 0 ; | |
24532 | PyObject * obj1 = 0 ; | |
24533 | char * kwnames[] = { | |
24534 | (char *) "self",(char *) "name", NULL | |
24535 | }; | |
24536 | ||
24537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
24538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24539 | if (!SWIG_IsOK(res1)) { | |
24540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24541 | } | |
24542 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24543 | { | |
24544 | arg2 = wxString_in_helper(obj1); | |
24545 | if (arg2 == NULL) SWIG_fail; | |
24546 | temp2 = true; | |
24547 | } | |
24548 | { | |
24549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24550 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
24551 | wxPyEndAllowThreads(__tstate); | |
24552 | if (PyErr_Occurred()) SWIG_fail; | |
24553 | } | |
24554 | resultobj = SWIG_Py_Void(); | |
24555 | { | |
24556 | if (temp2) | |
24557 | delete arg2; | |
24558 | } | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | { | |
24562 | if (temp2) | |
24563 | delete arg2; | |
24564 | } | |
24565 | return NULL; | |
24566 | } | |
24567 | ||
24568 | ||
24569 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24570 | PyObject *resultobj = 0; | |
24571 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24572 | bool arg2 ; | |
24573 | void *argp1 = 0 ; | |
24574 | int res1 = 0 ; | |
24575 | bool val2 ; | |
24576 | int ecode2 = 0 ; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | PyObject * obj1 = 0 ; | |
24579 | char * kwnames[] = { | |
24580 | (char *) "self",(char *) "colour", NULL | |
24581 | }; | |
24582 | ||
24583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24585 | if (!SWIG_IsOK(res1)) { | |
24586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24587 | } | |
24588 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24589 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24590 | if (!SWIG_IsOK(ecode2)) { | |
24591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
24592 | } | |
24593 | arg2 = static_cast< bool >(val2); | |
24594 | { | |
24595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24596 | (arg1)->SetColour(arg2); | |
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | resultobj = SWIG_Py_Void(); | |
24601 | return resultobj; | |
24602 | fail: | |
24603 | return NULL; | |
24604 | } | |
24605 | ||
24606 | ||
24607 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24608 | PyObject *resultobj = 0; | |
24609 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24610 | wxDuplexMode arg2 ; | |
24611 | void *argp1 = 0 ; | |
24612 | int res1 = 0 ; | |
24613 | int val2 ; | |
24614 | int ecode2 = 0 ; | |
24615 | PyObject * obj0 = 0 ; | |
24616 | PyObject * obj1 = 0 ; | |
24617 | char * kwnames[] = { | |
24618 | (char *) "self",(char *) "duplex", NULL | |
24619 | }; | |
24620 | ||
24621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
24622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24623 | if (!SWIG_IsOK(res1)) { | |
24624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24625 | } | |
24626 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24627 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24628 | if (!SWIG_IsOK(ecode2)) { | |
24629 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
24630 | } | |
24631 | arg2 = static_cast< wxDuplexMode >(val2); | |
24632 | { | |
24633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24634 | (arg1)->SetDuplex(arg2); | |
24635 | wxPyEndAllowThreads(__tstate); | |
24636 | if (PyErr_Occurred()) SWIG_fail; | |
24637 | } | |
24638 | resultobj = SWIG_Py_Void(); | |
24639 | return resultobj; | |
24640 | fail: | |
24641 | return NULL; | |
24642 | } | |
24643 | ||
24644 | ||
24645 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24646 | PyObject *resultobj = 0; | |
24647 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24648 | wxPaperSize arg2 ; | |
24649 | void *argp1 = 0 ; | |
24650 | int res1 = 0 ; | |
24651 | int val2 ; | |
24652 | int ecode2 = 0 ; | |
24653 | PyObject * obj0 = 0 ; | |
24654 | PyObject * obj1 = 0 ; | |
24655 | char * kwnames[] = { | |
24656 | (char *) "self",(char *) "sizeId", NULL | |
24657 | }; | |
24658 | ||
24659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
24660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24661 | if (!SWIG_IsOK(res1)) { | |
24662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24663 | } | |
24664 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24665 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24666 | if (!SWIG_IsOK(ecode2)) { | |
24667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
24668 | } | |
24669 | arg2 = static_cast< wxPaperSize >(val2); | |
24670 | { | |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | (arg1)->SetPaperId(arg2); | |
24673 | wxPyEndAllowThreads(__tstate); | |
24674 | if (PyErr_Occurred()) SWIG_fail; | |
24675 | } | |
24676 | resultobj = SWIG_Py_Void(); | |
24677 | return resultobj; | |
24678 | fail: | |
24679 | return NULL; | |
24680 | } | |
24681 | ||
24682 | ||
24683 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24684 | PyObject *resultobj = 0; | |
24685 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24686 | wxSize *arg2 = 0 ; | |
24687 | void *argp1 = 0 ; | |
24688 | int res1 = 0 ; | |
24689 | wxSize temp2 ; | |
24690 | PyObject * obj0 = 0 ; | |
24691 | PyObject * obj1 = 0 ; | |
24692 | char * kwnames[] = { | |
24693 | (char *) "self",(char *) "sz", NULL | |
24694 | }; | |
24695 | ||
24696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24698 | if (!SWIG_IsOK(res1)) { | |
24699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24700 | } | |
24701 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24702 | { | |
24703 | arg2 = &temp2; | |
24704 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24705 | } | |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
24709 | wxPyEndAllowThreads(__tstate); | |
24710 | if (PyErr_Occurred()) SWIG_fail; | |
24711 | } | |
24712 | resultobj = SWIG_Py_Void(); | |
24713 | return resultobj; | |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
24719 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24720 | PyObject *resultobj = 0; | |
24721 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24722 | int arg2 ; | |
24723 | void *argp1 = 0 ; | |
24724 | int res1 = 0 ; | |
24725 | int val2 ; | |
24726 | int ecode2 = 0 ; | |
24727 | PyObject * obj0 = 0 ; | |
24728 | PyObject * obj1 = 0 ; | |
24729 | char * kwnames[] = { | |
24730 | (char *) "self",(char *) "quality", NULL | |
24731 | }; | |
24732 | ||
24733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
24734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24735 | if (!SWIG_IsOK(res1)) { | |
24736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24737 | } | |
24738 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24739 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24740 | if (!SWIG_IsOK(ecode2)) { | |
24741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
24742 | } | |
24743 | arg2 = static_cast< int >(val2); | |
24744 | { | |
24745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24746 | (arg1)->SetQuality(arg2); | |
24747 | wxPyEndAllowThreads(__tstate); | |
24748 | if (PyErr_Occurred()) SWIG_fail; | |
24749 | } | |
24750 | resultobj = SWIG_Py_Void(); | |
24751 | return resultobj; | |
24752 | fail: | |
24753 | return NULL; | |
24754 | } | |
24755 | ||
24756 | ||
24757 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24758 | PyObject *resultobj = 0; | |
24759 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24760 | wxPrintBin arg2 ; | |
24761 | void *argp1 = 0 ; | |
24762 | int res1 = 0 ; | |
24763 | int val2 ; | |
24764 | int ecode2 = 0 ; | |
24765 | PyObject * obj0 = 0 ; | |
24766 | PyObject * obj1 = 0 ; | |
24767 | char * kwnames[] = { | |
24768 | (char *) "self",(char *) "bin", NULL | |
24769 | }; | |
24770 | ||
24771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24773 | if (!SWIG_IsOK(res1)) { | |
24774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24775 | } | |
24776 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24777 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24778 | if (!SWIG_IsOK(ecode2)) { | |
24779 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
24780 | } | |
24781 | arg2 = static_cast< wxPrintBin >(val2); | |
24782 | { | |
24783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24784 | (arg1)->SetBin(arg2); | |
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
24788 | resultobj = SWIG_Py_Void(); | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
24795 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24796 | PyObject *resultobj = 0; | |
24797 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24798 | wxPrintMode arg2 ; | |
24799 | void *argp1 = 0 ; | |
24800 | int res1 = 0 ; | |
24801 | int val2 ; | |
24802 | int ecode2 = 0 ; | |
24803 | PyObject * obj0 = 0 ; | |
24804 | PyObject * obj1 = 0 ; | |
24805 | char * kwnames[] = { | |
24806 | (char *) "self",(char *) "printMode", NULL | |
24807 | }; | |
24808 | ||
24809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
24810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24811 | if (!SWIG_IsOK(res1)) { | |
24812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24813 | } | |
24814 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24815 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24816 | if (!SWIG_IsOK(ecode2)) { | |
24817 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
24818 | } | |
24819 | arg2 = static_cast< wxPrintMode >(val2); | |
24820 | { | |
24821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24822 | (arg1)->SetPrintMode(arg2); | |
24823 | wxPyEndAllowThreads(__tstate); | |
24824 | if (PyErr_Occurred()) SWIG_fail; | |
24825 | } | |
24826 | resultobj = SWIG_Py_Void(); | |
24827 | return resultobj; | |
24828 | fail: | |
24829 | return NULL; | |
d14a1e28 RD |
24830 | } |
24831 | ||
24832 | ||
8f514ab4 RD |
24833 | SWIGINTERN PyObject *_wrap_PrintData_SetMedia(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24834 | PyObject *resultobj = 0; | |
24835 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24836 | int arg2 ; | |
24837 | void *argp1 = 0 ; | |
24838 | int res1 = 0 ; | |
24839 | int val2 ; | |
24840 | int ecode2 = 0 ; | |
24841 | PyObject * obj0 = 0 ; | |
24842 | PyObject * obj1 = 0 ; | |
24843 | char * kwnames[] = { | |
24844 | (char *) "self",(char *) "media", NULL | |
24845 | }; | |
24846 | ||
24847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetMedia",kwnames,&obj0,&obj1)) SWIG_fail; | |
24848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24849 | if (!SWIG_IsOK(res1)) { | |
24850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetMedia" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24851 | } | |
24852 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24853 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24854 | if (!SWIG_IsOK(ecode2)) { | |
24855 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetMedia" "', expected argument " "2"" of type '" "int""'"); | |
24856 | } | |
24857 | arg2 = static_cast< int >(val2); | |
24858 | { | |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | (arg1)->SetMedia(arg2); | |
24861 | wxPyEndAllowThreads(__tstate); | |
24862 | if (PyErr_Occurred()) SWIG_fail; | |
24863 | } | |
24864 | resultobj = SWIG_Py_Void(); | |
24865 | return resultobj; | |
24866 | fail: | |
24867 | return NULL; | |
24868 | } | |
24869 | ||
24870 | ||
0085ce49 RD |
24871 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24872 | PyObject *resultobj = 0; | |
24873 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24874 | wxString result; | |
24875 | void *argp1 = 0 ; | |
24876 | int res1 = 0 ; | |
24877 | PyObject *swig_obj[1] ; | |
24878 | ||
24879 | if (!args) SWIG_fail; | |
24880 | swig_obj[0] = args; | |
24881 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24882 | if (!SWIG_IsOK(res1)) { | |
24883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24884 | } | |
24885 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24886 | { | |
24887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24888 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
24889 | wxPyEndAllowThreads(__tstate); | |
24890 | if (PyErr_Occurred()) SWIG_fail; | |
24891 | } | |
24892 | { | |
d14a1e28 | 24893 | #if wxUSE_UNICODE |
0085ce49 | 24894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 24895 | #else |
0085ce49 | 24896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 24897 | #endif |
0085ce49 RD |
24898 | } |
24899 | return resultobj; | |
24900 | fail: | |
24901 | return NULL; | |
24902 | } | |
24903 | ||
24904 | ||
24905 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24906 | PyObject *resultobj = 0; | |
24907 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24908 | wxString *arg2 = 0 ; | |
24909 | void *argp1 = 0 ; | |
24910 | int res1 = 0 ; | |
24911 | bool temp2 = false ; | |
24912 | PyObject * obj0 = 0 ; | |
24913 | PyObject * obj1 = 0 ; | |
24914 | char * kwnames[] = { | |
24915 | (char *) "self",(char *) "filename", NULL | |
24916 | }; | |
24917 | ||
24918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24920 | if (!SWIG_IsOK(res1)) { | |
24921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24922 | } | |
24923 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24924 | { | |
24925 | arg2 = wxString_in_helper(obj1); | |
24926 | if (arg2 == NULL) SWIG_fail; | |
24927 | temp2 = true; | |
24928 | } | |
24929 | { | |
24930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24931 | (arg1)->SetFilename((wxString const &)*arg2); | |
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
24935 | resultobj = SWIG_Py_Void(); | |
24936 | { | |
24937 | if (temp2) | |
24938 | delete arg2; | |
24939 | } | |
24940 | return resultobj; | |
24941 | fail: | |
24942 | { | |
24943 | if (temp2) | |
24944 | delete arg2; | |
24945 | } | |
24946 | return NULL; | |
d14a1e28 RD |
24947 | } |
24948 | ||
24949 | ||
0085ce49 RD |
24950 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24951 | PyObject *resultobj = 0; | |
24952 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24953 | PyObject *result = 0 ; | |
24954 | void *argp1 = 0 ; | |
24955 | int res1 = 0 ; | |
24956 | PyObject *swig_obj[1] ; | |
24957 | ||
24958 | if (!args) SWIG_fail; | |
24959 | swig_obj[0] = args; | |
24960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24961 | if (!SWIG_IsOK(res1)) { | |
24962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24963 | } | |
24964 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24965 | { | |
24966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24967 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24968 | wxPyEndAllowThreads(__tstate); | |
24969 | if (PyErr_Occurred()) SWIG_fail; | |
24970 | } | |
24971 | resultobj = result; | |
24972 | return resultobj; | |
24973 | fail: | |
24974 | return NULL; | |
24975 | } | |
24976 | ||
24977 | ||
24978 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24979 | PyObject *resultobj = 0; | |
24980 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24981 | PyObject *arg2 = (PyObject *) 0 ; | |
24982 | void *argp1 = 0 ; | |
24983 | int res1 = 0 ; | |
24984 | PyObject * obj0 = 0 ; | |
24985 | PyObject * obj1 = 0 ; | |
24986 | char * kwnames[] = { | |
24987 | (char *) "self",(char *) "data", NULL | |
24988 | }; | |
24989 | ||
24990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24992 | if (!SWIG_IsOK(res1)) { | |
24993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24994 | } | |
24995 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24996 | arg2 = obj1; | |
24997 | { | |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | wxPrintData_SetPrivData(arg1,arg2); | |
25000 | wxPyEndAllowThreads(__tstate); | |
25001 | if (PyErr_Occurred()) SWIG_fail; | |
25002 | } | |
25003 | resultobj = SWIG_Py_Void(); | |
25004 | return resultobj; | |
25005 | fail: | |
25006 | return NULL; | |
d14a1e28 RD |
25007 | } |
25008 | ||
25009 | ||
0085ce49 RD |
25010 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25011 | PyObject *obj; | |
25012 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25013 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
25014 | return SWIG_Py_Void(); | |
d14a1e28 RD |
25015 | } |
25016 | ||
0085ce49 RD |
25017 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25018 | return SWIG_Python_InitShadowInstance(args); | |
25019 | } | |
d14a1e28 | 25020 | |
0085ce49 RD |
25021 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
25022 | PyObject *resultobj = 0; | |
25023 | wxPageSetupDialogData *result = 0 ; | |
25024 | ||
25025 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
25026 | { | |
25027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25028 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
25029 | wxPyEndAllowThreads(__tstate); | |
25030 | if (PyErr_Occurred()) SWIG_fail; | |
25031 | } | |
25032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
25033 | return resultobj; | |
25034 | fail: | |
25035 | return NULL; | |
d14a1e28 RD |
25036 | } |
25037 | ||
25038 | ||
0085ce49 RD |
25039 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25040 | PyObject *resultobj = 0; | |
25041 | wxPageSetupDialogData *arg1 = 0 ; | |
25042 | wxPageSetupDialogData *result = 0 ; | |
25043 | void *argp1 = 0 ; | |
25044 | int res1 = 0 ; | |
25045 | ||
25046 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25047 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
25048 | if (!SWIG_IsOK(res1)) { | |
25049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
25050 | } | |
25051 | if (!argp1) { | |
25052 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
25053 | } | |
25054 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25055 | { | |
25056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25057 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
25058 | wxPyEndAllowThreads(__tstate); | |
25059 | if (PyErr_Occurred()) SWIG_fail; | |
25060 | } | |
25061 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
25062 | return resultobj; | |
25063 | fail: | |
25064 | return NULL; | |
d14a1e28 RD |
25065 | } |
25066 | ||
25067 | ||
0085ce49 RD |
25068 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25069 | PyObject *resultobj = 0; | |
25070 | wxPrintData *arg1 = 0 ; | |
25071 | wxPageSetupDialogData *result = 0 ; | |
25072 | void *argp1 = 0 ; | |
25073 | int res1 = 0 ; | |
25074 | ||
25075 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25077 | if (!SWIG_IsOK(res1)) { | |
25078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25079 | } | |
25080 | if (!argp1) { | |
25081 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25082 | } | |
25083 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25084 | { | |
25085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25086 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
25087 | wxPyEndAllowThreads(__tstate); | |
25088 | if (PyErr_Occurred()) SWIG_fail; | |
25089 | } | |
25090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
25091 | return resultobj; | |
25092 | fail: | |
25093 | return NULL; | |
d3b6e4ff RD |
25094 | } |
25095 | ||
25096 | ||
0085ce49 RD |
25097 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
25098 | int argc; | |
25099 | PyObject *argv[2]; | |
25100 | ||
25101 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
25102 | --argc; | |
25103 | if (argc == 0) { | |
25104 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
25105 | } | |
25106 | if (argc == 1) { | |
25107 | int _v = 0; | |
d3b6e4ff | 25108 | { |
0085ce49 RD |
25109 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
25110 | _v = SWIG_CheckState(res); | |
d3b6e4ff | 25111 | } |
0085ce49 RD |
25112 | if (!_v) goto check_2; |
25113 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
25114 | } | |
25115 | check_2: | |
25116 | ||
25117 | if (argc == 1) { | |
25118 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
25119 | } | |
25120 | ||
25121 | fail: | |
25122 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
25123 | return NULL; | |
d3b6e4ff RD |
25124 | } |
25125 | ||
25126 | ||
0085ce49 RD |
25127 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25128 | PyObject *resultobj = 0; | |
25129 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25130 | void *argp1 = 0 ; | |
25131 | int res1 = 0 ; | |
25132 | PyObject *swig_obj[1] ; | |
25133 | ||
25134 | if (!args) SWIG_fail; | |
25135 | swig_obj[0] = args; | |
25136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
25137 | if (!SWIG_IsOK(res1)) { | |
25138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25139 | } | |
25140 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25141 | { | |
25142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25143 | delete arg1; | |
d14a1e28 | 25144 | |
0085ce49 RD |
25145 | wxPyEndAllowThreads(__tstate); |
25146 | if (PyErr_Occurred()) SWIG_fail; | |
25147 | } | |
25148 | resultobj = SWIG_Py_Void(); | |
25149 | return resultobj; | |
25150 | fail: | |
25151 | return NULL; | |
25152 | } | |
25153 | ||
25154 | ||
25155 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25156 | PyObject *resultobj = 0; | |
25157 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25158 | bool arg2 ; | |
25159 | void *argp1 = 0 ; | |
25160 | int res1 = 0 ; | |
25161 | bool val2 ; | |
25162 | int ecode2 = 0 ; | |
25163 | PyObject * obj0 = 0 ; | |
25164 | PyObject * obj1 = 0 ; | |
25165 | char * kwnames[] = { | |
25166 | (char *) "self",(char *) "flag", NULL | |
25167 | }; | |
25168 | ||
25169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
25170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25171 | if (!SWIG_IsOK(res1)) { | |
25172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25173 | } | |
25174 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25175 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25176 | if (!SWIG_IsOK(ecode2)) { | |
25177 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
25178 | } | |
25179 | arg2 = static_cast< bool >(val2); | |
25180 | { | |
25181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25182 | (arg1)->EnableHelp(arg2); | |
25183 | wxPyEndAllowThreads(__tstate); | |
25184 | if (PyErr_Occurred()) SWIG_fail; | |
25185 | } | |
25186 | resultobj = SWIG_Py_Void(); | |
25187 | return resultobj; | |
25188 | fail: | |
25189 | return NULL; | |
25190 | } | |
25191 | ||
25192 | ||
25193 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25194 | PyObject *resultobj = 0; | |
25195 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25196 | bool arg2 ; | |
25197 | void *argp1 = 0 ; | |
25198 | int res1 = 0 ; | |
25199 | bool val2 ; | |
25200 | int ecode2 = 0 ; | |
25201 | PyObject * obj0 = 0 ; | |
25202 | PyObject * obj1 = 0 ; | |
25203 | char * kwnames[] = { | |
25204 | (char *) "self",(char *) "flag", NULL | |
25205 | }; | |
25206 | ||
25207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25209 | if (!SWIG_IsOK(res1)) { | |
25210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25211 | } | |
25212 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25213 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25214 | if (!SWIG_IsOK(ecode2)) { | |
25215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25216 | } | |
25217 | arg2 = static_cast< bool >(val2); | |
25218 | { | |
25219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25220 | (arg1)->EnableMargins(arg2); | |
25221 | wxPyEndAllowThreads(__tstate); | |
25222 | if (PyErr_Occurred()) SWIG_fail; | |
25223 | } | |
25224 | resultobj = SWIG_Py_Void(); | |
25225 | return resultobj; | |
25226 | fail: | |
25227 | return NULL; | |
25228 | } | |
25229 | ||
25230 | ||
25231 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25232 | PyObject *resultobj = 0; | |
25233 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25234 | bool arg2 ; | |
25235 | void *argp1 = 0 ; | |
25236 | int res1 = 0 ; | |
25237 | bool val2 ; | |
25238 | int ecode2 = 0 ; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | PyObject * obj1 = 0 ; | |
25241 | char * kwnames[] = { | |
25242 | (char *) "self",(char *) "flag", NULL | |
25243 | }; | |
25244 | ||
25245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
25246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25247 | if (!SWIG_IsOK(res1)) { | |
25248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25249 | } | |
25250 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25251 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25252 | if (!SWIG_IsOK(ecode2)) { | |
25253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
25254 | } | |
25255 | arg2 = static_cast< bool >(val2); | |
25256 | { | |
25257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25258 | (arg1)->EnableOrientation(arg2); | |
25259 | wxPyEndAllowThreads(__tstate); | |
25260 | if (PyErr_Occurred()) SWIG_fail; | |
25261 | } | |
25262 | resultobj = SWIG_Py_Void(); | |
25263 | return resultobj; | |
25264 | fail: | |
25265 | return NULL; | |
25266 | } | |
25267 | ||
25268 | ||
25269 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25270 | PyObject *resultobj = 0; | |
25271 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25272 | bool arg2 ; | |
25273 | void *argp1 = 0 ; | |
25274 | int res1 = 0 ; | |
25275 | bool val2 ; | |
25276 | int ecode2 = 0 ; | |
25277 | PyObject * obj0 = 0 ; | |
25278 | PyObject * obj1 = 0 ; | |
25279 | char * kwnames[] = { | |
25280 | (char *) "self",(char *) "flag", NULL | |
25281 | }; | |
25282 | ||
25283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
25284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25285 | if (!SWIG_IsOK(res1)) { | |
25286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25287 | } | |
25288 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25289 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25290 | if (!SWIG_IsOK(ecode2)) { | |
25291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
25292 | } | |
25293 | arg2 = static_cast< bool >(val2); | |
25294 | { | |
25295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25296 | (arg1)->EnablePaper(arg2); | |
25297 | wxPyEndAllowThreads(__tstate); | |
25298 | if (PyErr_Occurred()) SWIG_fail; | |
25299 | } | |
25300 | resultobj = SWIG_Py_Void(); | |
25301 | return resultobj; | |
25302 | fail: | |
25303 | return NULL; | |
25304 | } | |
25305 | ||
25306 | ||
25307 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25308 | PyObject *resultobj = 0; | |
25309 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25310 | bool arg2 ; | |
25311 | void *argp1 = 0 ; | |
25312 | int res1 = 0 ; | |
25313 | bool val2 ; | |
25314 | int ecode2 = 0 ; | |
25315 | PyObject * obj0 = 0 ; | |
25316 | PyObject * obj1 = 0 ; | |
25317 | char * kwnames[] = { | |
25318 | (char *) "self",(char *) "flag", NULL | |
25319 | }; | |
25320 | ||
25321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
25322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25323 | if (!SWIG_IsOK(res1)) { | |
25324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25325 | } | |
25326 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25327 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25328 | if (!SWIG_IsOK(ecode2)) { | |
25329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
25330 | } | |
25331 | arg2 = static_cast< bool >(val2); | |
25332 | { | |
25333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25334 | (arg1)->EnablePrinter(arg2); | |
25335 | wxPyEndAllowThreads(__tstate); | |
25336 | if (PyErr_Occurred()) SWIG_fail; | |
25337 | } | |
25338 | resultobj = SWIG_Py_Void(); | |
25339 | return resultobj; | |
25340 | fail: | |
25341 | return NULL; | |
d14a1e28 RD |
25342 | } |
25343 | ||
25344 | ||
0085ce49 RD |
25345 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25346 | PyObject *resultobj = 0; | |
25347 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25348 | bool result; | |
25349 | void *argp1 = 0 ; | |
25350 | int res1 = 0 ; | |
25351 | PyObject *swig_obj[1] ; | |
25352 | ||
25353 | if (!args) SWIG_fail; | |
25354 | swig_obj[0] = args; | |
25355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25356 | if (!SWIG_IsOK(res1)) { | |
25357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25358 | } | |
25359 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25360 | { | |
25361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25362 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
25363 | wxPyEndAllowThreads(__tstate); | |
25364 | if (PyErr_Occurred()) SWIG_fail; | |
25365 | } | |
25366 | { | |
25367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25368 | } | |
25369 | return resultobj; | |
25370 | fail: | |
25371 | return NULL; | |
d14a1e28 RD |
25372 | } |
25373 | ||
25374 | ||
0085ce49 RD |
25375 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25376 | PyObject *resultobj = 0; | |
25377 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25378 | bool result; | |
25379 | void *argp1 = 0 ; | |
25380 | int res1 = 0 ; | |
25381 | PyObject *swig_obj[1] ; | |
25382 | ||
25383 | if (!args) SWIG_fail; | |
25384 | swig_obj[0] = args; | |
25385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25386 | if (!SWIG_IsOK(res1)) { | |
25387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25388 | } | |
25389 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25390 | { | |
25391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25392 | result = (bool)(arg1)->GetEnableMargins(); | |
25393 | wxPyEndAllowThreads(__tstate); | |
25394 | if (PyErr_Occurred()) SWIG_fail; | |
25395 | } | |
25396 | { | |
25397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25398 | } | |
25399 | return resultobj; | |
25400 | fail: | |
25401 | return NULL; | |
d14a1e28 RD |
25402 | } |
25403 | ||
25404 | ||
0085ce49 RD |
25405 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25406 | PyObject *resultobj = 0; | |
25407 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25408 | bool result; | |
25409 | void *argp1 = 0 ; | |
25410 | int res1 = 0 ; | |
25411 | PyObject *swig_obj[1] ; | |
25412 | ||
25413 | if (!args) SWIG_fail; | |
25414 | swig_obj[0] = args; | |
25415 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25416 | if (!SWIG_IsOK(res1)) { | |
25417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25418 | } | |
25419 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25420 | { | |
25421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25422 | result = (bool)(arg1)->GetEnableOrientation(); | |
25423 | wxPyEndAllowThreads(__tstate); | |
25424 | if (PyErr_Occurred()) SWIG_fail; | |
25425 | } | |
25426 | { | |
25427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25428 | } | |
25429 | return resultobj; | |
25430 | fail: | |
25431 | return NULL; | |
d14a1e28 RD |
25432 | } |
25433 | ||
25434 | ||
0085ce49 RD |
25435 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25436 | PyObject *resultobj = 0; | |
25437 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25438 | bool result; | |
25439 | void *argp1 = 0 ; | |
25440 | int res1 = 0 ; | |
25441 | PyObject *swig_obj[1] ; | |
25442 | ||
25443 | if (!args) SWIG_fail; | |
25444 | swig_obj[0] = args; | |
25445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25446 | if (!SWIG_IsOK(res1)) { | |
25447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25448 | } | |
25449 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25450 | { | |
25451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25452 | result = (bool)(arg1)->GetEnablePaper(); | |
25453 | wxPyEndAllowThreads(__tstate); | |
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
25456 | { | |
25457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25458 | } | |
25459 | return resultobj; | |
25460 | fail: | |
25461 | return NULL; | |
d14a1e28 RD |
25462 | } |
25463 | ||
25464 | ||
0085ce49 RD |
25465 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25466 | PyObject *resultobj = 0; | |
25467 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25468 | bool result; | |
25469 | void *argp1 = 0 ; | |
25470 | int res1 = 0 ; | |
25471 | PyObject *swig_obj[1] ; | |
25472 | ||
25473 | if (!args) SWIG_fail; | |
25474 | swig_obj[0] = args; | |
25475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25476 | if (!SWIG_IsOK(res1)) { | |
25477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25478 | } | |
25479 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25480 | { | |
25481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25482 | result = (bool)(arg1)->GetEnablePrinter(); | |
25483 | wxPyEndAllowThreads(__tstate); | |
25484 | if (PyErr_Occurred()) SWIG_fail; | |
25485 | } | |
25486 | { | |
25487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25488 | } | |
25489 | return resultobj; | |
25490 | fail: | |
25491 | return NULL; | |
d14a1e28 RD |
25492 | } |
25493 | ||
25494 | ||
0085ce49 RD |
25495 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25496 | PyObject *resultobj = 0; | |
25497 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25498 | bool result; | |
25499 | void *argp1 = 0 ; | |
25500 | int res1 = 0 ; | |
25501 | PyObject *swig_obj[1] ; | |
25502 | ||
25503 | if (!args) SWIG_fail; | |
25504 | swig_obj[0] = args; | |
25505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25506 | if (!SWIG_IsOK(res1)) { | |
25507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25508 | } | |
25509 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25510 | { | |
25511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25512 | result = (bool)(arg1)->GetEnableHelp(); | |
25513 | wxPyEndAllowThreads(__tstate); | |
25514 | if (PyErr_Occurred()) SWIG_fail; | |
25515 | } | |
25516 | { | |
25517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25518 | } | |
25519 | return resultobj; | |
25520 | fail: | |
25521 | return NULL; | |
d14a1e28 RD |
25522 | } |
25523 | ||
25524 | ||
0085ce49 RD |
25525 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25526 | PyObject *resultobj = 0; | |
25527 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25528 | bool result; | |
25529 | void *argp1 = 0 ; | |
25530 | int res1 = 0 ; | |
25531 | PyObject *swig_obj[1] ; | |
25532 | ||
25533 | if (!args) SWIG_fail; | |
25534 | swig_obj[0] = args; | |
25535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25536 | if (!SWIG_IsOK(res1)) { | |
25537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25538 | } | |
25539 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25540 | { | |
25541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25542 | result = (bool)(arg1)->GetDefaultInfo(); | |
25543 | wxPyEndAllowThreads(__tstate); | |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
25545 | } | |
25546 | { | |
25547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25548 | } | |
25549 | return resultobj; | |
25550 | fail: | |
25551 | return NULL; | |
d14a1e28 RD |
25552 | } |
25553 | ||
25554 | ||
0085ce49 RD |
25555 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25556 | PyObject *resultobj = 0; | |
25557 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25558 | wxPoint result; | |
25559 | void *argp1 = 0 ; | |
25560 | int res1 = 0 ; | |
25561 | PyObject *swig_obj[1] ; | |
25562 | ||
25563 | if (!args) SWIG_fail; | |
25564 | swig_obj[0] = args; | |
25565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25566 | if (!SWIG_IsOK(res1)) { | |
25567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25568 | } | |
25569 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25570 | { | |
25571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25572 | result = (arg1)->GetMarginTopLeft(); | |
25573 | wxPyEndAllowThreads(__tstate); | |
25574 | if (PyErr_Occurred()) SWIG_fail; | |
25575 | } | |
25576 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25577 | return resultobj; | |
25578 | fail: | |
25579 | return NULL; | |
d14a1e28 RD |
25580 | } |
25581 | ||
25582 | ||
0085ce49 RD |
25583 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25584 | PyObject *resultobj = 0; | |
25585 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25586 | wxPoint result; | |
25587 | void *argp1 = 0 ; | |
25588 | int res1 = 0 ; | |
25589 | PyObject *swig_obj[1] ; | |
25590 | ||
25591 | if (!args) SWIG_fail; | |
25592 | swig_obj[0] = args; | |
25593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25594 | if (!SWIG_IsOK(res1)) { | |
25595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25596 | } | |
25597 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25598 | { | |
25599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25600 | result = (arg1)->GetMarginBottomRight(); | |
25601 | wxPyEndAllowThreads(__tstate); | |
25602 | if (PyErr_Occurred()) SWIG_fail; | |
25603 | } | |
25604 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25605 | return resultobj; | |
25606 | fail: | |
25607 | return NULL; | |
d14a1e28 RD |
25608 | } |
25609 | ||
25610 | ||
0085ce49 RD |
25611 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25612 | PyObject *resultobj = 0; | |
25613 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25614 | wxPoint result; | |
25615 | void *argp1 = 0 ; | |
25616 | int res1 = 0 ; | |
25617 | PyObject *swig_obj[1] ; | |
25618 | ||
25619 | if (!args) SWIG_fail; | |
25620 | swig_obj[0] = args; | |
25621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25622 | if (!SWIG_IsOK(res1)) { | |
25623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25624 | } | |
25625 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25626 | { | |
25627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25628 | result = (arg1)->GetMinMarginTopLeft(); | |
25629 | wxPyEndAllowThreads(__tstate); | |
25630 | if (PyErr_Occurred()) SWIG_fail; | |
25631 | } | |
25632 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25633 | return resultobj; | |
25634 | fail: | |
25635 | return NULL; | |
d14a1e28 RD |
25636 | } |
25637 | ||
25638 | ||
0085ce49 RD |
25639 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25640 | PyObject *resultobj = 0; | |
25641 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25642 | wxPoint result; | |
25643 | void *argp1 = 0 ; | |
25644 | int res1 = 0 ; | |
25645 | PyObject *swig_obj[1] ; | |
25646 | ||
25647 | if (!args) SWIG_fail; | |
25648 | swig_obj[0] = args; | |
25649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25650 | if (!SWIG_IsOK(res1)) { | |
25651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25652 | } | |
25653 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25654 | { | |
25655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25656 | result = (arg1)->GetMinMarginBottomRight(); | |
25657 | wxPyEndAllowThreads(__tstate); | |
25658 | if (PyErr_Occurred()) SWIG_fail; | |
25659 | } | |
25660 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25661 | return resultobj; | |
25662 | fail: | |
25663 | return NULL; | |
d14a1e28 RD |
25664 | } |
25665 | ||
25666 | ||
0085ce49 RD |
25667 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25668 | PyObject *resultobj = 0; | |
25669 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25670 | wxPaperSize result; | |
25671 | void *argp1 = 0 ; | |
25672 | int res1 = 0 ; | |
25673 | PyObject *swig_obj[1] ; | |
25674 | ||
25675 | if (!args) SWIG_fail; | |
25676 | swig_obj[0] = args; | |
25677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25678 | if (!SWIG_IsOK(res1)) { | |
25679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25680 | } | |
25681 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25682 | { | |
25683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25684 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
25685 | wxPyEndAllowThreads(__tstate); | |
25686 | if (PyErr_Occurred()) SWIG_fail; | |
25687 | } | |
25688 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25689 | return resultobj; | |
25690 | fail: | |
25691 | return NULL; | |
d14a1e28 RD |
25692 | } |
25693 | ||
25694 | ||
0085ce49 RD |
25695 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25696 | PyObject *resultobj = 0; | |
25697 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25698 | wxSize result; | |
25699 | void *argp1 = 0 ; | |
25700 | int res1 = 0 ; | |
25701 | PyObject *swig_obj[1] ; | |
25702 | ||
25703 | if (!args) SWIG_fail; | |
25704 | swig_obj[0] = args; | |
25705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25706 | if (!SWIG_IsOK(res1)) { | |
25707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25708 | } | |
25709 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25710 | { | |
25711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25712 | result = (arg1)->GetPaperSize(); | |
25713 | wxPyEndAllowThreads(__tstate); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
25716 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25717 | return resultobj; | |
25718 | fail: | |
25719 | return NULL; | |
d14a1e28 RD |
25720 | } |
25721 | ||
25722 | ||
0085ce49 RD |
25723 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25724 | PyObject *resultobj = 0; | |
25725 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25726 | wxPrintData *result = 0 ; | |
25727 | void *argp1 = 0 ; | |
25728 | int res1 = 0 ; | |
25729 | PyObject *swig_obj[1] ; | |
25730 | ||
25731 | if (!args) SWIG_fail; | |
25732 | swig_obj[0] = args; | |
25733 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25734 | if (!SWIG_IsOK(res1)) { | |
25735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25736 | } | |
25737 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25738 | { | |
25739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25740 | { |
0085ce49 RD |
25741 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25742 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 25743 | } |
0085ce49 RD |
25744 | wxPyEndAllowThreads(__tstate); |
25745 | if (PyErr_Occurred()) SWIG_fail; | |
25746 | } | |
25747 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25748 | return resultobj; | |
25749 | fail: | |
25750 | return NULL; | |
d14a1e28 RD |
25751 | } |
25752 | ||
25753 | ||
b39fe951 | 25754 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
25755 | PyObject *resultobj = 0; |
25756 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25757 | bool result; | |
25758 | void *argp1 = 0 ; | |
25759 | int res1 = 0 ; | |
25760 | PyObject *swig_obj[1] ; | |
25761 | ||
25762 | if (!args) SWIG_fail; | |
25763 | swig_obj[0] = args; | |
25764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25765 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_IsOk" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); |
0085ce49 RD |
25767 | } |
25768 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25769 | { | |
25770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25771 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
25772 | wxPyEndAllowThreads(__tstate); |
25773 | if (PyErr_Occurred()) SWIG_fail; | |
25774 | } | |
25775 | { | |
25776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25777 | } | |
25778 | return resultobj; | |
25779 | fail: | |
25780 | return NULL; | |
25781 | } | |
25782 | ||
25783 | ||
25784 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25785 | PyObject *resultobj = 0; | |
25786 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25787 | bool arg2 ; | |
25788 | void *argp1 = 0 ; | |
25789 | int res1 = 0 ; | |
25790 | bool val2 ; | |
25791 | int ecode2 = 0 ; | |
25792 | PyObject * obj0 = 0 ; | |
25793 | PyObject * obj1 = 0 ; | |
25794 | char * kwnames[] = { | |
25795 | (char *) "self",(char *) "flag", NULL | |
25796 | }; | |
25797 | ||
25798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
25799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25800 | if (!SWIG_IsOK(res1)) { | |
25801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25802 | } | |
25803 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25804 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25805 | if (!SWIG_IsOK(ecode2)) { | |
25806 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
25807 | } | |
25808 | arg2 = static_cast< bool >(val2); | |
25809 | { | |
25810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25811 | (arg1)->SetDefaultInfo(arg2); | |
25812 | wxPyEndAllowThreads(__tstate); | |
25813 | if (PyErr_Occurred()) SWIG_fail; | |
25814 | } | |
25815 | resultobj = SWIG_Py_Void(); | |
25816 | return resultobj; | |
25817 | fail: | |
25818 | return NULL; | |
25819 | } | |
25820 | ||
25821 | ||
25822 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25823 | PyObject *resultobj = 0; | |
25824 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25825 | bool arg2 ; | |
25826 | void *argp1 = 0 ; | |
25827 | int res1 = 0 ; | |
25828 | bool val2 ; | |
25829 | int ecode2 = 0 ; | |
25830 | PyObject * obj0 = 0 ; | |
25831 | PyObject * obj1 = 0 ; | |
25832 | char * kwnames[] = { | |
25833 | (char *) "self",(char *) "flag", NULL | |
25834 | }; | |
25835 | ||
25836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25838 | if (!SWIG_IsOK(res1)) { | |
25839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25840 | } | |
25841 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25842 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25843 | if (!SWIG_IsOK(ecode2)) { | |
25844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25845 | } | |
25846 | arg2 = static_cast< bool >(val2); | |
25847 | { | |
25848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25849 | (arg1)->SetDefaultMinMargins(arg2); | |
25850 | wxPyEndAllowThreads(__tstate); | |
25851 | if (PyErr_Occurred()) SWIG_fail; | |
25852 | } | |
25853 | resultobj = SWIG_Py_Void(); | |
25854 | return resultobj; | |
25855 | fail: | |
25856 | return NULL; | |
25857 | } | |
25858 | ||
25859 | ||
25860 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25861 | PyObject *resultobj = 0; | |
25862 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25863 | wxPoint *arg2 = 0 ; | |
25864 | void *argp1 = 0 ; | |
25865 | int res1 = 0 ; | |
25866 | wxPoint temp2 ; | |
25867 | PyObject * obj0 = 0 ; | |
25868 | PyObject * obj1 = 0 ; | |
25869 | char * kwnames[] = { | |
25870 | (char *) "self",(char *) "pt", NULL | |
25871 | }; | |
25872 | ||
25873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25875 | if (!SWIG_IsOK(res1)) { | |
25876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25877 | } | |
25878 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25879 | { | |
25880 | arg2 = &temp2; | |
25881 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25882 | } | |
25883 | { | |
25884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25885 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | resultobj = SWIG_Py_Void(); | |
25890 | return resultobj; | |
25891 | fail: | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
25896 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25897 | PyObject *resultobj = 0; | |
25898 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25899 | wxPoint *arg2 = 0 ; | |
25900 | void *argp1 = 0 ; | |
25901 | int res1 = 0 ; | |
25902 | wxPoint temp2 ; | |
25903 | PyObject * obj0 = 0 ; | |
25904 | PyObject * obj1 = 0 ; | |
25905 | char * kwnames[] = { | |
25906 | (char *) "self",(char *) "pt", NULL | |
25907 | }; | |
25908 | ||
25909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25911 | if (!SWIG_IsOK(res1)) { | |
25912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25913 | } | |
25914 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25915 | { | |
25916 | arg2 = &temp2; | |
25917 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25918 | } | |
25919 | { | |
25920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25921 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25922 | wxPyEndAllowThreads(__tstate); | |
25923 | if (PyErr_Occurred()) SWIG_fail; | |
25924 | } | |
25925 | resultobj = SWIG_Py_Void(); | |
25926 | return resultobj; | |
25927 | fail: | |
25928 | return NULL; | |
25929 | } | |
25930 | ||
25931 | ||
25932 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25933 | PyObject *resultobj = 0; | |
25934 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25935 | wxPoint *arg2 = 0 ; | |
25936 | void *argp1 = 0 ; | |
25937 | int res1 = 0 ; | |
25938 | wxPoint temp2 ; | |
25939 | PyObject * obj0 = 0 ; | |
25940 | PyObject * obj1 = 0 ; | |
25941 | char * kwnames[] = { | |
25942 | (char *) "self",(char *) "pt", NULL | |
25943 | }; | |
25944 | ||
25945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25947 | if (!SWIG_IsOK(res1)) { | |
25948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25949 | } | |
25950 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25951 | { | |
25952 | arg2 = &temp2; | |
25953 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25954 | } | |
25955 | { | |
25956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25957 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25958 | wxPyEndAllowThreads(__tstate); | |
25959 | if (PyErr_Occurred()) SWIG_fail; | |
25960 | } | |
25961 | resultobj = SWIG_Py_Void(); | |
25962 | return resultobj; | |
25963 | fail: | |
25964 | return NULL; | |
25965 | } | |
25966 | ||
25967 | ||
25968 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25969 | PyObject *resultobj = 0; | |
25970 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25971 | wxPoint *arg2 = 0 ; | |
25972 | void *argp1 = 0 ; | |
25973 | int res1 = 0 ; | |
25974 | wxPoint temp2 ; | |
25975 | PyObject * obj0 = 0 ; | |
25976 | PyObject * obj1 = 0 ; | |
25977 | char * kwnames[] = { | |
25978 | (char *) "self",(char *) "pt", NULL | |
25979 | }; | |
25980 | ||
25981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25983 | if (!SWIG_IsOK(res1)) { | |
25984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25985 | } | |
25986 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25987 | { | |
25988 | arg2 = &temp2; | |
25989 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25990 | } | |
25991 | { | |
25992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25993 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | resultobj = SWIG_Py_Void(); | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj = 0; | |
26006 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
26007 | wxPaperSize arg2 ; | |
26008 | void *argp1 = 0 ; | |
26009 | int res1 = 0 ; | |
26010 | int val2 ; | |
26011 | int ecode2 = 0 ; | |
26012 | PyObject * obj0 = 0 ; | |
26013 | PyObject * obj1 = 0 ; | |
26014 | char * kwnames[] = { | |
26015 | (char *) "self",(char *) "id", NULL | |
26016 | }; | |
26017 | ||
26018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
26019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26020 | if (!SWIG_IsOK(res1)) { | |
26021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
26022 | } | |
26023 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
26024 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26025 | if (!SWIG_IsOK(ecode2)) { | |
26026 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
26027 | } | |
26028 | arg2 = static_cast< wxPaperSize >(val2); | |
26029 | { | |
26030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26031 | (arg1)->SetPaperId(arg2); | |
26032 | wxPyEndAllowThreads(__tstate); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | } | |
26035 | resultobj = SWIG_Py_Void(); | |
26036 | return resultobj; | |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
26042 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26043 | PyObject *resultobj = 0; | |
26044 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
26045 | wxSize *arg2 = 0 ; | |
26046 | void *argp1 = 0 ; | |
26047 | int res1 = 0 ; | |
26048 | wxSize temp2 ; | |
26049 | PyObject * obj0 = 0 ; | |
26050 | PyObject * obj1 = 0 ; | |
26051 | char * kwnames[] = { | |
26052 | (char *) "self",(char *) "size", NULL | |
26053 | }; | |
26054 | ||
26055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
26056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26057 | if (!SWIG_IsOK(res1)) { | |
26058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
26059 | } | |
26060 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
26061 | { | |
26062 | arg2 = &temp2; | |
26063 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26064 | } | |
26065 | { | |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | (arg1)->SetPaperSize((wxSize const &)*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_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26079 | PyObject *resultobj = 0; | |
26080 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
26081 | wxPrintData *arg2 = 0 ; | |
26082 | void *argp1 = 0 ; | |
26083 | int res1 = 0 ; | |
26084 | void *argp2 = 0 ; | |
26085 | int res2 = 0 ; | |
26086 | PyObject * obj0 = 0 ; | |
26087 | PyObject * obj1 = 0 ; | |
26088 | char * kwnames[] = { | |
26089 | (char *) "self",(char *) "printData", NULL | |
26090 | }; | |
26091 | ||
26092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26094 | if (!SWIG_IsOK(res1)) { | |
26095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
26096 | } | |
26097 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
26098 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26099 | if (!SWIG_IsOK(res2)) { | |
26100 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26101 | } | |
26102 | if (!argp2) { | |
26103 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26104 | } | |
26105 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
26106 | { | |
26107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26108 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
26109 | wxPyEndAllowThreads(__tstate); | |
26110 | if (PyErr_Occurred()) SWIG_fail; | |
26111 | } | |
26112 | resultobj = SWIG_Py_Void(); | |
26113 | return resultobj; | |
26114 | fail: | |
26115 | return NULL; | |
d14a1e28 RD |
26116 | } |
26117 | ||
26118 | ||
0085ce49 RD |
26119 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26120 | PyObject *resultobj = 0; | |
26121 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
26122 | void *argp1 = 0 ; | |
26123 | int res1 = 0 ; | |
26124 | PyObject *swig_obj[1] ; | |
26125 | ||
26126 | if (!args) SWIG_fail; | |
26127 | swig_obj[0] = args; | |
26128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26129 | if (!SWIG_IsOK(res1)) { | |
26130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
26131 | } | |
26132 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
26133 | { | |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26135 | (arg1)->CalculateIdFromPaperSize(); | |
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
26139 | resultobj = SWIG_Py_Void(); | |
26140 | return resultobj; | |
26141 | fail: | |
26142 | return NULL; | |
32fe5131 RD |
26143 | } |
26144 | ||
26145 | ||
0085ce49 RD |
26146 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26147 | PyObject *resultobj = 0; | |
26148 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
26149 | void *argp1 = 0 ; | |
26150 | int res1 = 0 ; | |
26151 | PyObject *swig_obj[1] ; | |
26152 | ||
26153 | if (!args) SWIG_fail; | |
26154 | swig_obj[0] = args; | |
26155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26156 | if (!SWIG_IsOK(res1)) { | |
26157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
26158 | } | |
26159 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
26160 | { | |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | (arg1)->CalculatePaperSizeFromId(); | |
26163 | wxPyEndAllowThreads(__tstate); | |
26164 | if (PyErr_Occurred()) SWIG_fail; | |
26165 | } | |
26166 | resultobj = SWIG_Py_Void(); | |
26167 | return resultobj; | |
26168 | fail: | |
26169 | return NULL; | |
d14a1e28 RD |
26170 | } |
26171 | ||
26172 | ||
0085ce49 RD |
26173 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26174 | PyObject *obj; | |
26175 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26176 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
26177 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26178 | } |
26179 | ||
0085ce49 RD |
26180 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26181 | return SWIG_Python_InitShadowInstance(args); | |
26182 | } | |
d14a1e28 | 26183 | |
0085ce49 RD |
26184 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26185 | PyObject *resultobj = 0; | |
26186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26187 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
26188 | wxPageSetupDialog *result = 0 ; | |
26189 | void *argp1 = 0 ; | |
26190 | int res1 = 0 ; | |
26191 | void *argp2 = 0 ; | |
26192 | int res2 = 0 ; | |
26193 | PyObject * obj0 = 0 ; | |
26194 | PyObject * obj1 = 0 ; | |
26195 | char * kwnames[] = { | |
26196 | (char *) "parent",(char *) "data", NULL | |
26197 | }; | |
26198 | ||
26199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26201 | if (!SWIG_IsOK(res1)) { | |
26202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
26203 | } | |
26204 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
26205 | if (obj1) { | |
26206 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26207 | if (!SWIG_IsOK(res2)) { | |
26208 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
d14a1e28 | 26209 | } |
0085ce49 RD |
26210 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
26211 | } | |
26212 | { | |
26213 | if (!wxPyCheckForApp()) SWIG_fail; | |
26214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26215 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
26216 | wxPyEndAllowThreads(__tstate); | |
26217 | if (PyErr_Occurred()) SWIG_fail; | |
26218 | } | |
26219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
26220 | return resultobj; | |
26221 | fail: | |
26222 | return NULL; | |
d14a1e28 RD |
26223 | } |
26224 | ||
26225 | ||
f05326ba RD |
26226 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26227 | PyObject *resultobj = 0; | |
26228 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26229 | void *argp1 = 0 ; | |
26230 | int res1 = 0 ; | |
26231 | PyObject *swig_obj[1] ; | |
26232 | ||
26233 | if (!args) SWIG_fail; | |
26234 | swig_obj[0] = args; | |
26235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_DISOWN | 0 ); | |
26236 | if (!SWIG_IsOK(res1)) { | |
26237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialog" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26238 | } | |
26239 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26240 | { | |
26241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26242 | delete arg1; | |
26243 | ||
26244 | wxPyEndAllowThreads(__tstate); | |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
26246 | } | |
26247 | resultobj = SWIG_Py_Void(); | |
26248 | return resultobj; | |
26249 | fail: | |
26250 | return NULL; | |
26251 | } | |
26252 | ||
26253 | ||
0085ce49 RD |
26254 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26255 | PyObject *resultobj = 0; | |
26256 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26257 | wxPageSetupDialogData *result = 0 ; | |
26258 | void *argp1 = 0 ; | |
26259 | int res1 = 0 ; | |
26260 | PyObject *swig_obj[1] ; | |
26261 | ||
26262 | if (!args) SWIG_fail; | |
26263 | swig_obj[0] = args; | |
26264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26265 | if (!SWIG_IsOK(res1)) { | |
26266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26267 | } | |
26268 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26269 | { | |
26270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 26271 | { |
0085ce49 RD |
26272 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
26273 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 26274 | } |
0085ce49 RD |
26275 | wxPyEndAllowThreads(__tstate); |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
26277 | } | |
26278 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26279 | return resultobj; | |
26280 | fail: | |
26281 | return NULL; | |
26282 | } | |
26283 | ||
26284 | ||
26285 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26286 | PyObject *resultobj = 0; | |
26287 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26288 | wxPageSetupDialogData *result = 0 ; | |
26289 | void *argp1 = 0 ; | |
26290 | int res1 = 0 ; | |
26291 | PyObject *swig_obj[1] ; | |
26292 | ||
26293 | if (!args) SWIG_fail; | |
26294 | swig_obj[0] = args; | |
26295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26296 | if (!SWIG_IsOK(res1)) { | |
26297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26298 | } | |
26299 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26300 | { | |
26301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 26302 | { |
0085ce49 RD |
26303 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
26304 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 26305 | } |
0085ce49 RD |
26306 | wxPyEndAllowThreads(__tstate); |
26307 | if (PyErr_Occurred()) SWIG_fail; | |
26308 | } | |
26309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26310 | return resultobj; | |
26311 | fail: | |
26312 | return NULL; | |
d14a1e28 RD |
26313 | } |
26314 | ||
26315 | ||
0085ce49 RD |
26316 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26317 | PyObject *resultobj = 0; | |
26318 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26319 | int result; | |
26320 | void *argp1 = 0 ; | |
26321 | int res1 = 0 ; | |
26322 | PyObject *swig_obj[1] ; | |
26323 | ||
26324 | if (!args) SWIG_fail; | |
26325 | swig_obj[0] = args; | |
26326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26327 | if (!SWIG_IsOK(res1)) { | |
26328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26329 | } | |
26330 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26331 | { | |
26332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26333 | result = (int)(arg1)->ShowModal(); | |
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
26337 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26338 | return resultobj; | |
26339 | fail: | |
26340 | return NULL; | |
d14a1e28 RD |
26341 | } |
26342 | ||
26343 | ||
0085ce49 RD |
26344 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26345 | PyObject *obj; | |
26346 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26347 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
26348 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26349 | } |
26350 | ||
0085ce49 RD |
26351 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26352 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
26353 | } |
26354 | ||
0085ce49 RD |
26355 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
26356 | PyObject *resultobj = 0; | |
26357 | wxPrintDialogData *result = 0 ; | |
26358 | ||
26359 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
26360 | { | |
26361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26362 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
26363 | wxPyEndAllowThreads(__tstate); | |
26364 | if (PyErr_Occurred()) SWIG_fail; | |
26365 | } | |
26366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26367 | return resultobj; | |
26368 | fail: | |
26369 | return NULL; | |
d14a1e28 RD |
26370 | } |
26371 | ||
26372 | ||
0085ce49 RD |
26373 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26374 | PyObject *resultobj = 0; | |
26375 | wxPrintData *arg1 = 0 ; | |
26376 | wxPrintDialogData *result = 0 ; | |
26377 | void *argp1 = 0 ; | |
26378 | int res1 = 0 ; | |
26379 | ||
26380 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26381 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26382 | if (!SWIG_IsOK(res1)) { | |
26383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26384 | } | |
26385 | if (!argp1) { | |
26386 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26387 | } | |
26388 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26389 | { | |
26390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26391 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
26392 | wxPyEndAllowThreads(__tstate); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | } | |
26395 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26396 | return resultobj; | |
26397 | fail: | |
26398 | return NULL; | |
d14a1e28 RD |
26399 | } |
26400 | ||
26401 | ||
0085ce49 RD |
26402 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26403 | PyObject *resultobj = 0; | |
26404 | wxPrintDialogData *arg1 = 0 ; | |
26405 | wxPrintDialogData *result = 0 ; | |
26406 | void *argp1 = 0 ; | |
26407 | int res1 = 0 ; | |
26408 | ||
26409 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
26411 | if (!SWIG_IsOK(res1)) { | |
26412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26413 | } | |
26414 | if (!argp1) { | |
26415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26416 | } | |
26417 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
d14a1e28 RD |
26428 | } |
26429 | ||
26430 | ||
0085ce49 RD |
26431 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
26432 | int argc; | |
26433 | PyObject *argv[2]; | |
26434 | ||
26435 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
26436 | --argc; | |
26437 | if (argc == 0) { | |
26438 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
26439 | } | |
26440 | if (argc == 1) { | |
26441 | int _v = 0; | |
093d3ff1 | 26442 | { |
0085ce49 RD |
26443 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
26444 | _v = SWIG_CheckState(res); | |
093d3ff1 | 26445 | } |
0085ce49 RD |
26446 | if (!_v) goto check_2; |
26447 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
26448 | } | |
26449 | check_2: | |
26450 | ||
26451 | if (argc == 1) { | |
26452 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
26453 | } | |
26454 | ||
26455 | fail: | |
26456 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
26457 | return NULL; | |
d14a1e28 RD |
26458 | } |
26459 | ||
26460 | ||
0085ce49 RD |
26461 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26462 | PyObject *resultobj = 0; | |
26463 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26464 | void *argp1 = 0 ; | |
26465 | int res1 = 0 ; | |
26466 | PyObject *swig_obj[1] ; | |
26467 | ||
26468 | if (!args) SWIG_fail; | |
26469 | swig_obj[0] = args; | |
26470 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
26471 | if (!SWIG_IsOK(res1)) { | |
26472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26473 | } | |
26474 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26475 | { | |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | delete arg1; | |
d14a1e28 | 26478 | |
0085ce49 RD |
26479 | wxPyEndAllowThreads(__tstate); |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | resultobj = SWIG_Py_Void(); | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
d14a1e28 RD |
26486 | } |
26487 | ||
26488 | ||
0085ce49 RD |
26489 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26490 | PyObject *resultobj = 0; | |
26491 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26492 | int result; | |
26493 | void *argp1 = 0 ; | |
26494 | int res1 = 0 ; | |
26495 | PyObject *swig_obj[1] ; | |
26496 | ||
26497 | if (!args) SWIG_fail; | |
26498 | swig_obj[0] = args; | |
26499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26500 | if (!SWIG_IsOK(res1)) { | |
26501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26502 | } | |
26503 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26504 | { | |
26505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26506 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
26507 | wxPyEndAllowThreads(__tstate); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | } | |
26510 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26511 | return resultobj; | |
26512 | fail: | |
26513 | return NULL; | |
d14a1e28 RD |
26514 | } |
26515 | ||
26516 | ||
0085ce49 RD |
26517 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26518 | PyObject *resultobj = 0; | |
26519 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26520 | int result; | |
26521 | void *argp1 = 0 ; | |
26522 | int res1 = 0 ; | |
26523 | PyObject *swig_obj[1] ; | |
26524 | ||
26525 | if (!args) SWIG_fail; | |
26526 | swig_obj[0] = args; | |
26527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26528 | if (!SWIG_IsOK(res1)) { | |
26529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26530 | } | |
26531 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
26535 | wxPyEndAllowThreads(__tstate); | |
26536 | if (PyErr_Occurred()) SWIG_fail; | |
26537 | } | |
26538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26539 | return resultobj; | |
26540 | fail: | |
26541 | return NULL; | |
d14a1e28 | 26542 | } |
0085ce49 RD |
26543 | |
26544 | ||
26545 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26546 | PyObject *resultobj = 0; | |
26547 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26548 | int result; | |
26549 | void *argp1 = 0 ; | |
26550 | int res1 = 0 ; | |
26551 | PyObject *swig_obj[1] ; | |
26552 | ||
26553 | if (!args) SWIG_fail; | |
26554 | swig_obj[0] = args; | |
26555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26556 | if (!SWIG_IsOK(res1)) { | |
26557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26558 | } | |
26559 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26560 | { | |
26561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26562 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
26563 | wxPyEndAllowThreads(__tstate); | |
26564 | if (PyErr_Occurred()) SWIG_fail; | |
26565 | } | |
26566 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26567 | return resultobj; | |
26568 | fail: | |
26569 | return NULL; | |
d14a1e28 RD |
26570 | } |
26571 | ||
26572 | ||
0085ce49 RD |
26573 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26574 | PyObject *resultobj = 0; | |
26575 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26576 | int result; | |
26577 | void *argp1 = 0 ; | |
26578 | int res1 = 0 ; | |
26579 | PyObject *swig_obj[1] ; | |
26580 | ||
26581 | if (!args) SWIG_fail; | |
26582 | swig_obj[0] = args; | |
26583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26584 | if (!SWIG_IsOK(res1)) { | |
26585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26586 | } | |
26587 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26588 | { | |
26589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26590 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
26591 | wxPyEndAllowThreads(__tstate); | |
26592 | if (PyErr_Occurred()) SWIG_fail; | |
26593 | } | |
26594 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26595 | return resultobj; | |
26596 | fail: | |
26597 | return NULL; | |
d14a1e28 RD |
26598 | } |
26599 | ||
26600 | ||
0085ce49 RD |
26601 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26602 | PyObject *resultobj = 0; | |
26603 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26604 | int result; | |
26605 | void *argp1 = 0 ; | |
26606 | int res1 = 0 ; | |
26607 | PyObject *swig_obj[1] ; | |
26608 | ||
26609 | if (!args) SWIG_fail; | |
26610 | swig_obj[0] = args; | |
26611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26612 | if (!SWIG_IsOK(res1)) { | |
26613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26614 | } | |
26615 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26616 | { | |
26617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26618 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26623 | return resultobj; | |
26624 | fail: | |
26625 | return NULL; | |
d14a1e28 RD |
26626 | } |
26627 | ||
26628 | ||
0085ce49 RD |
26629 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26630 | PyObject *resultobj = 0; | |
26631 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26632 | bool result; | |
26633 | void *argp1 = 0 ; | |
26634 | int res1 = 0 ; | |
26635 | PyObject *swig_obj[1] ; | |
26636 | ||
26637 | if (!args) SWIG_fail; | |
26638 | swig_obj[0] = args; | |
26639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26640 | if (!SWIG_IsOK(res1)) { | |
26641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26642 | } | |
26643 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26644 | { | |
26645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26646 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
26647 | wxPyEndAllowThreads(__tstate); | |
26648 | if (PyErr_Occurred()) SWIG_fail; | |
26649 | } | |
26650 | { | |
26651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26652 | } | |
26653 | return resultobj; | |
26654 | fail: | |
26655 | return NULL; | |
d14a1e28 RD |
26656 | } |
26657 | ||
26658 | ||
0085ce49 RD |
26659 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26660 | PyObject *resultobj = 0; | |
26661 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26662 | bool result; | |
26663 | void *argp1 = 0 ; | |
26664 | int res1 = 0 ; | |
26665 | PyObject *swig_obj[1] ; | |
26666 | ||
26667 | if (!args) SWIG_fail; | |
26668 | swig_obj[0] = args; | |
26669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26670 | if (!SWIG_IsOK(res1)) { | |
26671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26672 | } | |
26673 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
26677 | wxPyEndAllowThreads(__tstate); | |
26678 | if (PyErr_Occurred()) SWIG_fail; | |
26679 | } | |
26680 | { | |
26681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26682 | } | |
26683 | return resultobj; | |
26684 | fail: | |
26685 | return NULL; | |
d14a1e28 RD |
26686 | } |
26687 | ||
26688 | ||
0085ce49 RD |
26689 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26690 | PyObject *resultobj = 0; | |
26691 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26692 | bool result; | |
26693 | void *argp1 = 0 ; | |
26694 | int res1 = 0 ; | |
26695 | PyObject *swig_obj[1] ; | |
26696 | ||
26697 | if (!args) SWIG_fail; | |
26698 | swig_obj[0] = args; | |
26699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26700 | if (!SWIG_IsOK(res1)) { | |
26701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26702 | } | |
26703 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26704 | { | |
26705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26706 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
26707 | wxPyEndAllowThreads(__tstate); | |
26708 | if (PyErr_Occurred()) SWIG_fail; | |
26709 | } | |
26710 | { | |
26711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26712 | } | |
26713 | return resultobj; | |
26714 | fail: | |
26715 | return NULL; | |
d14a1e28 RD |
26716 | } |
26717 | ||
26718 | ||
0085ce49 RD |
26719 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26720 | PyObject *resultobj = 0; | |
26721 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26722 | bool result; | |
26723 | void *argp1 = 0 ; | |
26724 | int res1 = 0 ; | |
26725 | PyObject *swig_obj[1] ; | |
26726 | ||
26727 | if (!args) SWIG_fail; | |
26728 | swig_obj[0] = args; | |
26729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26730 | if (!SWIG_IsOK(res1)) { | |
26731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26732 | } | |
26733 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26734 | { | |
26735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26736 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
26740 | { | |
26741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26742 | } | |
26743 | return resultobj; | |
26744 | fail: | |
26745 | return NULL; | |
26746 | } | |
26747 | ||
26748 | ||
26749 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26750 | PyObject *resultobj = 0; | |
26751 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26752 | int arg2 ; | |
26753 | void *argp1 = 0 ; | |
26754 | int res1 = 0 ; | |
26755 | int val2 ; | |
26756 | int ecode2 = 0 ; | |
26757 | PyObject * obj0 = 0 ; | |
26758 | PyObject * obj1 = 0 ; | |
26759 | char * kwnames[] = { | |
26760 | (char *) "self",(char *) "v", NULL | |
26761 | }; | |
26762 | ||
26763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26765 | if (!SWIG_IsOK(res1)) { | |
26766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26767 | } | |
26768 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26769 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26770 | if (!SWIG_IsOK(ecode2)) { | |
26771 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
26772 | } | |
26773 | arg2 = static_cast< int >(val2); | |
26774 | { | |
26775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26776 | (arg1)->SetFromPage(arg2); | |
26777 | wxPyEndAllowThreads(__tstate); | |
26778 | if (PyErr_Occurred()) SWIG_fail; | |
26779 | } | |
26780 | resultobj = SWIG_Py_Void(); | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
26787 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26788 | PyObject *resultobj = 0; | |
26789 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26790 | int arg2 ; | |
26791 | void *argp1 = 0 ; | |
26792 | int res1 = 0 ; | |
26793 | int val2 ; | |
26794 | int ecode2 = 0 ; | |
26795 | PyObject * obj0 = 0 ; | |
26796 | PyObject * obj1 = 0 ; | |
26797 | char * kwnames[] = { | |
26798 | (char *) "self",(char *) "v", NULL | |
26799 | }; | |
26800 | ||
26801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26803 | if (!SWIG_IsOK(res1)) { | |
26804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26805 | } | |
26806 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26807 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26808 | if (!SWIG_IsOK(ecode2)) { | |
26809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
26810 | } | |
26811 | arg2 = static_cast< int >(val2); | |
26812 | { | |
26813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26814 | (arg1)->SetToPage(arg2); | |
26815 | wxPyEndAllowThreads(__tstate); | |
26816 | if (PyErr_Occurred()) SWIG_fail; | |
26817 | } | |
26818 | resultobj = SWIG_Py_Void(); | |
26819 | return resultobj; | |
26820 | fail: | |
26821 | return NULL; | |
26822 | } | |
26823 | ||
26824 | ||
26825 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26826 | PyObject *resultobj = 0; | |
26827 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26828 | int arg2 ; | |
26829 | void *argp1 = 0 ; | |
26830 | int res1 = 0 ; | |
26831 | int val2 ; | |
26832 | int ecode2 = 0 ; | |
26833 | PyObject * obj0 = 0 ; | |
26834 | PyObject * obj1 = 0 ; | |
26835 | char * kwnames[] = { | |
26836 | (char *) "self",(char *) "v", NULL | |
26837 | }; | |
26838 | ||
26839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26841 | if (!SWIG_IsOK(res1)) { | |
26842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26843 | } | |
26844 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26846 | if (!SWIG_IsOK(ecode2)) { | |
26847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
26848 | } | |
26849 | arg2 = static_cast< int >(val2); | |
26850 | { | |
26851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26852 | (arg1)->SetMinPage(arg2); | |
26853 | wxPyEndAllowThreads(__tstate); | |
26854 | if (PyErr_Occurred()) SWIG_fail; | |
26855 | } | |
26856 | resultobj = SWIG_Py_Void(); | |
26857 | return resultobj; | |
26858 | fail: | |
26859 | return NULL; | |
26860 | } | |
26861 | ||
26862 | ||
26863 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26864 | PyObject *resultobj = 0; | |
26865 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26866 | int arg2 ; | |
26867 | void *argp1 = 0 ; | |
26868 | int res1 = 0 ; | |
26869 | int val2 ; | |
26870 | int ecode2 = 0 ; | |
26871 | PyObject * obj0 = 0 ; | |
26872 | PyObject * obj1 = 0 ; | |
26873 | char * kwnames[] = { | |
26874 | (char *) "self",(char *) "v", NULL | |
26875 | }; | |
26876 | ||
26877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26879 | if (!SWIG_IsOK(res1)) { | |
26880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26881 | } | |
26882 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26884 | if (!SWIG_IsOK(ecode2)) { | |
26885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
26886 | } | |
26887 | arg2 = static_cast< int >(val2); | |
26888 | { | |
26889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26890 | (arg1)->SetMaxPage(arg2); | |
26891 | wxPyEndAllowThreads(__tstate); | |
26892 | if (PyErr_Occurred()) SWIG_fail; | |
26893 | } | |
26894 | resultobj = SWIG_Py_Void(); | |
26895 | return resultobj; | |
26896 | fail: | |
26897 | return NULL; | |
26898 | } | |
26899 | ||
26900 | ||
26901 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26902 | PyObject *resultobj = 0; | |
26903 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26904 | int arg2 ; | |
26905 | void *argp1 = 0 ; | |
26906 | int res1 = 0 ; | |
26907 | int val2 ; | |
26908 | int ecode2 = 0 ; | |
26909 | PyObject * obj0 = 0 ; | |
26910 | PyObject * obj1 = 0 ; | |
26911 | char * kwnames[] = { | |
26912 | (char *) "self",(char *) "v", NULL | |
26913 | }; | |
26914 | ||
26915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26917 | if (!SWIG_IsOK(res1)) { | |
26918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26919 | } | |
26920 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26921 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26922 | if (!SWIG_IsOK(ecode2)) { | |
26923 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26924 | } | |
26925 | arg2 = static_cast< int >(val2); | |
26926 | { | |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | (arg1)->SetNoCopies(arg2); | |
26929 | wxPyEndAllowThreads(__tstate); | |
26930 | if (PyErr_Occurred()) SWIG_fail; | |
26931 | } | |
26932 | resultobj = SWIG_Py_Void(); | |
26933 | return resultobj; | |
26934 | fail: | |
26935 | return NULL; | |
26936 | } | |
26937 | ||
26938 | ||
26939 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26940 | PyObject *resultobj = 0; | |
26941 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26942 | bool arg2 ; | |
26943 | void *argp1 = 0 ; | |
26944 | int res1 = 0 ; | |
26945 | bool val2 ; | |
26946 | int ecode2 = 0 ; | |
26947 | PyObject * obj0 = 0 ; | |
26948 | PyObject * obj1 = 0 ; | |
26949 | char * kwnames[] = { | |
26950 | (char *) "self",(char *) "flag", NULL | |
26951 | }; | |
26952 | ||
26953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26955 | if (!SWIG_IsOK(res1)) { | |
26956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26957 | } | |
26958 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26959 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26960 | if (!SWIG_IsOK(ecode2)) { | |
26961 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26962 | } | |
26963 | arg2 = static_cast< bool >(val2); | |
26964 | { | |
26965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26966 | (arg1)->SetAllPages(arg2); | |
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | resultobj = SWIG_Py_Void(); | |
26971 | return resultobj; | |
26972 | fail: | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26978 | PyObject *resultobj = 0; | |
26979 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26980 | bool arg2 ; | |
26981 | void *argp1 = 0 ; | |
26982 | int res1 = 0 ; | |
26983 | bool val2 ; | |
26984 | int ecode2 = 0 ; | |
26985 | PyObject * obj0 = 0 ; | |
26986 | PyObject * obj1 = 0 ; | |
26987 | char * kwnames[] = { | |
26988 | (char *) "self",(char *) "flag", NULL | |
26989 | }; | |
26990 | ||
26991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26993 | if (!SWIG_IsOK(res1)) { | |
26994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26995 | } | |
26996 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26997 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26998 | if (!SWIG_IsOK(ecode2)) { | |
26999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
27000 | } | |
27001 | arg2 = static_cast< bool >(val2); | |
27002 | { | |
27003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27004 | (arg1)->SetSelection(arg2); | |
27005 | wxPyEndAllowThreads(__tstate); | |
27006 | if (PyErr_Occurred()) SWIG_fail; | |
27007 | } | |
27008 | resultobj = SWIG_Py_Void(); | |
27009 | return resultobj; | |
27010 | fail: | |
27011 | return NULL; | |
27012 | } | |
27013 | ||
27014 | ||
27015 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27016 | PyObject *resultobj = 0; | |
27017 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27018 | bool arg2 ; | |
27019 | void *argp1 = 0 ; | |
27020 | int res1 = 0 ; | |
27021 | bool val2 ; | |
27022 | int ecode2 = 0 ; | |
27023 | PyObject * obj0 = 0 ; | |
27024 | PyObject * obj1 = 0 ; | |
27025 | char * kwnames[] = { | |
27026 | (char *) "self",(char *) "flag", NULL | |
27027 | }; | |
27028 | ||
27029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
27030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27031 | if (!SWIG_IsOK(res1)) { | |
27032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27033 | } | |
27034 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27035 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27036 | if (!SWIG_IsOK(ecode2)) { | |
27037 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
27038 | } | |
27039 | arg2 = static_cast< bool >(val2); | |
27040 | { | |
27041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27042 | (arg1)->SetCollate(arg2); | |
27043 | wxPyEndAllowThreads(__tstate); | |
27044 | if (PyErr_Occurred()) SWIG_fail; | |
27045 | } | |
27046 | resultobj = SWIG_Py_Void(); | |
27047 | return resultobj; | |
27048 | fail: | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
27053 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27054 | PyObject *resultobj = 0; | |
27055 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27056 | bool arg2 ; | |
27057 | void *argp1 = 0 ; | |
27058 | int res1 = 0 ; | |
27059 | bool val2 ; | |
27060 | int ecode2 = 0 ; | |
27061 | PyObject * obj0 = 0 ; | |
27062 | PyObject * obj1 = 0 ; | |
27063 | char * kwnames[] = { | |
27064 | (char *) "self",(char *) "flag", NULL | |
27065 | }; | |
27066 | ||
27067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
27068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27069 | if (!SWIG_IsOK(res1)) { | |
27070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27071 | } | |
27072 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27073 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27074 | if (!SWIG_IsOK(ecode2)) { | |
27075 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
27076 | } | |
27077 | arg2 = static_cast< bool >(val2); | |
27078 | { | |
27079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27080 | (arg1)->SetPrintToFile(arg2); | |
27081 | wxPyEndAllowThreads(__tstate); | |
27082 | if (PyErr_Occurred()) SWIG_fail; | |
27083 | } | |
27084 | resultobj = SWIG_Py_Void(); | |
27085 | return resultobj; | |
27086 | fail: | |
27087 | return NULL; | |
27088 | } | |
27089 | ||
27090 | ||
27091 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27092 | PyObject *resultobj = 0; | |
27093 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27094 | bool arg2 ; | |
27095 | void *argp1 = 0 ; | |
27096 | int res1 = 0 ; | |
27097 | bool val2 ; | |
27098 | int ecode2 = 0 ; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | PyObject * obj1 = 0 ; | |
27101 | char * kwnames[] = { | |
27102 | (char *) "self",(char *) "flag", NULL | |
27103 | }; | |
27104 | ||
27105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
27106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27107 | if (!SWIG_IsOK(res1)) { | |
27108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27109 | } | |
27110 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27111 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27112 | if (!SWIG_IsOK(ecode2)) { | |
27113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
27114 | } | |
27115 | arg2 = static_cast< bool >(val2); | |
27116 | { | |
27117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27118 | (arg1)->EnablePrintToFile(arg2); | |
27119 | wxPyEndAllowThreads(__tstate); | |
27120 | if (PyErr_Occurred()) SWIG_fail; | |
27121 | } | |
27122 | resultobj = SWIG_Py_Void(); | |
27123 | return resultobj; | |
27124 | fail: | |
27125 | return NULL; | |
27126 | } | |
27127 | ||
27128 | ||
27129 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27130 | PyObject *resultobj = 0; | |
27131 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27132 | bool arg2 ; | |
27133 | void *argp1 = 0 ; | |
27134 | int res1 = 0 ; | |
27135 | bool val2 ; | |
27136 | int ecode2 = 0 ; | |
27137 | PyObject * obj0 = 0 ; | |
27138 | PyObject * obj1 = 0 ; | |
27139 | char * kwnames[] = { | |
27140 | (char *) "self",(char *) "flag", NULL | |
27141 | }; | |
27142 | ||
27143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
27144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27145 | if (!SWIG_IsOK(res1)) { | |
27146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27147 | } | |
27148 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27149 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27150 | if (!SWIG_IsOK(ecode2)) { | |
27151 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
27152 | } | |
27153 | arg2 = static_cast< bool >(val2); | |
27154 | { | |
27155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27156 | (arg1)->EnableSelection(arg2); | |
27157 | wxPyEndAllowThreads(__tstate); | |
27158 | if (PyErr_Occurred()) SWIG_fail; | |
27159 | } | |
27160 | resultobj = SWIG_Py_Void(); | |
27161 | return resultobj; | |
27162 | fail: | |
27163 | return NULL; | |
27164 | } | |
27165 | ||
27166 | ||
27167 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27168 | PyObject *resultobj = 0; | |
27169 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27170 | bool arg2 ; | |
27171 | void *argp1 = 0 ; | |
27172 | int res1 = 0 ; | |
27173 | bool val2 ; | |
27174 | int ecode2 = 0 ; | |
27175 | PyObject * obj0 = 0 ; | |
27176 | PyObject * obj1 = 0 ; | |
27177 | char * kwnames[] = { | |
27178 | (char *) "self",(char *) "flag", NULL | |
27179 | }; | |
27180 | ||
27181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
27182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27183 | if (!SWIG_IsOK(res1)) { | |
27184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27185 | } | |
27186 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27187 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27188 | if (!SWIG_IsOK(ecode2)) { | |
27189 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
27190 | } | |
27191 | arg2 = static_cast< bool >(val2); | |
27192 | { | |
27193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27194 | (arg1)->EnablePageNumbers(arg2); | |
27195 | wxPyEndAllowThreads(__tstate); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
27198 | resultobj = SWIG_Py_Void(); | |
27199 | return resultobj; | |
27200 | fail: | |
27201 | return NULL; | |
27202 | } | |
27203 | ||
27204 | ||
27205 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27206 | PyObject *resultobj = 0; | |
27207 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27208 | bool arg2 ; | |
27209 | void *argp1 = 0 ; | |
27210 | int res1 = 0 ; | |
27211 | bool val2 ; | |
27212 | int ecode2 = 0 ; | |
27213 | PyObject * obj0 = 0 ; | |
27214 | PyObject * obj1 = 0 ; | |
27215 | char * kwnames[] = { | |
27216 | (char *) "self",(char *) "flag", NULL | |
27217 | }; | |
27218 | ||
27219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
27220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27221 | if (!SWIG_IsOK(res1)) { | |
27222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27223 | } | |
27224 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27225 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
27226 | if (!SWIG_IsOK(ecode2)) { | |
27227 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
27228 | } | |
27229 | arg2 = static_cast< bool >(val2); | |
27230 | { | |
27231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27232 | (arg1)->EnableHelp(arg2); | |
27233 | wxPyEndAllowThreads(__tstate); | |
27234 | if (PyErr_Occurred()) SWIG_fail; | |
27235 | } | |
27236 | resultobj = SWIG_Py_Void(); | |
27237 | return resultobj; | |
27238 | fail: | |
27239 | return NULL; | |
d14a1e28 RD |
27240 | } |
27241 | ||
27242 | ||
0085ce49 RD |
27243 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27244 | PyObject *resultobj = 0; | |
27245 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27246 | bool result; | |
27247 | void *argp1 = 0 ; | |
27248 | int res1 = 0 ; | |
27249 | PyObject *swig_obj[1] ; | |
27250 | ||
27251 | if (!args) SWIG_fail; | |
27252 | swig_obj[0] = args; | |
27253 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27254 | if (!SWIG_IsOK(res1)) { | |
27255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27256 | } | |
27257 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27258 | { | |
27259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27260 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
27261 | wxPyEndAllowThreads(__tstate); | |
27262 | if (PyErr_Occurred()) SWIG_fail; | |
27263 | } | |
27264 | { | |
27265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27266 | } | |
27267 | return resultobj; | |
27268 | fail: | |
27269 | return NULL; | |
d14a1e28 RD |
27270 | } |
27271 | ||
27272 | ||
0085ce49 RD |
27273 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27274 | PyObject *resultobj = 0; | |
27275 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27276 | bool result; | |
27277 | void *argp1 = 0 ; | |
27278 | int res1 = 0 ; | |
27279 | PyObject *swig_obj[1] ; | |
27280 | ||
27281 | if (!args) SWIG_fail; | |
27282 | swig_obj[0] = args; | |
27283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27284 | if (!SWIG_IsOK(res1)) { | |
27285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27286 | } | |
27287 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27288 | { | |
27289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27290 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
27291 | wxPyEndAllowThreads(__tstate); | |
27292 | if (PyErr_Occurred()) SWIG_fail; | |
27293 | } | |
27294 | { | |
27295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27296 | } | |
27297 | return resultobj; | |
27298 | fail: | |
27299 | return NULL; | |
d14a1e28 RD |
27300 | } |
27301 | ||
27302 | ||
0085ce49 RD |
27303 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27304 | PyObject *resultobj = 0; | |
27305 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27306 | bool result; | |
27307 | void *argp1 = 0 ; | |
27308 | int res1 = 0 ; | |
27309 | PyObject *swig_obj[1] ; | |
27310 | ||
27311 | if (!args) SWIG_fail; | |
27312 | swig_obj[0] = args; | |
27313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27314 | if (!SWIG_IsOK(res1)) { | |
27315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27316 | } | |
27317 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
27321 | wxPyEndAllowThreads(__tstate); | |
27322 | if (PyErr_Occurred()) SWIG_fail; | |
27323 | } | |
27324 | { | |
27325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27326 | } | |
27327 | return resultobj; | |
27328 | fail: | |
27329 | return NULL; | |
d14a1e28 RD |
27330 | } |
27331 | ||
27332 | ||
0085ce49 RD |
27333 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27334 | PyObject *resultobj = 0; | |
27335 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27336 | bool result; | |
27337 | void *argp1 = 0 ; | |
27338 | int res1 = 0 ; | |
27339 | PyObject *swig_obj[1] ; | |
27340 | ||
27341 | if (!args) SWIG_fail; | |
27342 | swig_obj[0] = args; | |
27343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27344 | if (!SWIG_IsOK(res1)) { | |
27345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27346 | } | |
27347 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27348 | { | |
27349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27350 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
27351 | wxPyEndAllowThreads(__tstate); | |
27352 | if (PyErr_Occurred()) SWIG_fail; | |
27353 | } | |
27354 | { | |
27355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27356 | } | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
d14a1e28 RD |
27360 | } |
27361 | ||
27362 | ||
b39fe951 | 27363 | SWIGINTERN PyObject *_wrap_PrintDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
27364 | PyObject *resultobj = 0; |
27365 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27366 | bool result; | |
27367 | void *argp1 = 0 ; | |
27368 | int res1 = 0 ; | |
27369 | PyObject *swig_obj[1] ; | |
27370 | ||
27371 | if (!args) SWIG_fail; | |
27372 | swig_obj[0] = args; | |
27373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27374 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 27375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_IsOk" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); |
0085ce49 RD |
27376 | } |
27377 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 27380 | result = (bool)((wxPrintDialogData const *)arg1)->IsOk(); |
0085ce49 RD |
27381 | wxPyEndAllowThreads(__tstate); |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
27384 | { | |
27385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27386 | } | |
27387 | return resultobj; | |
27388 | fail: | |
27389 | return NULL; | |
d14a1e28 RD |
27390 | } |
27391 | ||
27392 | ||
0085ce49 RD |
27393 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27394 | PyObject *resultobj = 0; | |
27395 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27396 | wxPrintData *result = 0 ; | |
27397 | void *argp1 = 0 ; | |
27398 | int res1 = 0 ; | |
27399 | PyObject *swig_obj[1] ; | |
27400 | ||
27401 | if (!args) SWIG_fail; | |
27402 | swig_obj[0] = args; | |
27403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27404 | if (!SWIG_IsOK(res1)) { | |
27405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27406 | } | |
27407 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27408 | { | |
27409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27410 | { |
0085ce49 RD |
27411 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27412 | result = (wxPrintData *) &_result_ref; | |
d14a1e28 | 27413 | } |
0085ce49 RD |
27414 | wxPyEndAllowThreads(__tstate); |
27415 | if (PyErr_Occurred()) SWIG_fail; | |
27416 | } | |
27417 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27418 | return resultobj; | |
27419 | fail: | |
27420 | return NULL; | |
27421 | } | |
27422 | ||
27423 | ||
27424 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27425 | PyObject *resultobj = 0; | |
27426 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27427 | wxPrintData *arg2 = 0 ; | |
27428 | void *argp1 = 0 ; | |
27429 | int res1 = 0 ; | |
27430 | void *argp2 = 0 ; | |
27431 | int res2 = 0 ; | |
27432 | PyObject * obj0 = 0 ; | |
27433 | PyObject * obj1 = 0 ; | |
27434 | char * kwnames[] = { | |
27435 | (char *) "self",(char *) "printData", NULL | |
27436 | }; | |
27437 | ||
27438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
27439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27440 | if (!SWIG_IsOK(res1)) { | |
27441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27442 | } | |
27443 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27444 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
27445 | if (!SWIG_IsOK(res2)) { | |
27446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27447 | } | |
27448 | if (!argp2) { | |
27449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27450 | } | |
27451 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
27452 | { | |
27453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27454 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
27455 | wxPyEndAllowThreads(__tstate); | |
27456 | if (PyErr_Occurred()) SWIG_fail; | |
27457 | } | |
27458 | resultobj = SWIG_Py_Void(); | |
27459 | return resultobj; | |
27460 | fail: | |
27461 | return NULL; | |
d14a1e28 RD |
27462 | } |
27463 | ||
27464 | ||
0085ce49 RD |
27465 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27466 | PyObject *obj; | |
27467 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27468 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
27469 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27470 | } |
27471 | ||
0085ce49 RD |
27472 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27473 | return SWIG_Python_InitShadowInstance(args); | |
27474 | } | |
d14a1e28 | 27475 | |
0085ce49 RD |
27476 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27477 | PyObject *resultobj = 0; | |
27478 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27479 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
27480 | wxPrintDialog *result = 0 ; | |
27481 | void *argp1 = 0 ; | |
27482 | int res1 = 0 ; | |
27483 | void *argp2 = 0 ; | |
27484 | int res2 = 0 ; | |
27485 | PyObject * obj0 = 0 ; | |
27486 | PyObject * obj1 = 0 ; | |
27487 | char * kwnames[] = { | |
27488 | (char *) "parent",(char *) "data", NULL | |
27489 | }; | |
27490 | ||
27491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27493 | if (!SWIG_IsOK(res1)) { | |
27494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27495 | } | |
27496 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27497 | if (obj1) { | |
27498 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27499 | if (!SWIG_IsOK(res2)) { | |
27500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 27501 | } |
0085ce49 RD |
27502 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
27503 | } | |
27504 | { | |
27505 | if (!wxPyCheckForApp()) SWIG_fail; | |
27506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27507 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
27508 | wxPyEndAllowThreads(__tstate); | |
27509 | if (PyErr_Occurred()) SWIG_fail; | |
27510 | } | |
27511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
27512 | return resultobj; | |
27513 | fail: | |
27514 | return NULL; | |
d14a1e28 RD |
27515 | } |
27516 | ||
27517 | ||
f05326ba RD |
27518 | SWIGINTERN PyObject *_wrap_delete_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27519 | PyObject *resultobj = 0; | |
27520 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27521 | void *argp1 = 0 ; | |
27522 | int res1 = 0 ; | |
27523 | PyObject *swig_obj[1] ; | |
27524 | ||
27525 | if (!args) SWIG_fail; | |
27526 | swig_obj[0] = args; | |
27527 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_DISOWN | 0 ); | |
27528 | if (!SWIG_IsOK(res1)) { | |
27529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialog" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27530 | } | |
27531 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27532 | { | |
27533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27534 | delete arg1; | |
27535 | ||
27536 | wxPyEndAllowThreads(__tstate); | |
27537 | if (PyErr_Occurred()) SWIG_fail; | |
27538 | } | |
27539 | resultobj = SWIG_Py_Void(); | |
27540 | return resultobj; | |
27541 | fail: | |
27542 | return NULL; | |
27543 | } | |
27544 | ||
27545 | ||
0085ce49 RD |
27546 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27547 | PyObject *resultobj = 0; | |
27548 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27549 | int result; | |
27550 | void *argp1 = 0 ; | |
27551 | int res1 = 0 ; | |
27552 | PyObject *swig_obj[1] ; | |
27553 | ||
27554 | if (!args) SWIG_fail; | |
27555 | swig_obj[0] = args; | |
27556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27557 | if (!SWIG_IsOK(res1)) { | |
27558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27559 | } | |
27560 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27561 | { | |
27562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27563 | result = (int)(arg1)->ShowModal(); | |
27564 | wxPyEndAllowThreads(__tstate); | |
27565 | if (PyErr_Occurred()) SWIG_fail; | |
27566 | } | |
27567 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27568 | return resultobj; | |
27569 | fail: | |
27570 | return NULL; | |
d14a1e28 RD |
27571 | } |
27572 | ||
27573 | ||
0085ce49 RD |
27574 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27575 | PyObject *resultobj = 0; | |
27576 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27577 | wxPrintDialogData *result = 0 ; | |
27578 | void *argp1 = 0 ; | |
27579 | int res1 = 0 ; | |
27580 | PyObject *swig_obj[1] ; | |
27581 | ||
27582 | if (!args) SWIG_fail; | |
27583 | swig_obj[0] = args; | |
27584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27585 | if (!SWIG_IsOK(res1)) { | |
27586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27587 | } | |
27588 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27589 | { | |
27590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27591 | { |
0085ce49 RD |
27592 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
27593 | result = (wxPrintDialogData *) &_result_ref; | |
27594 | } | |
27595 | wxPyEndAllowThreads(__tstate); | |
27596 | if (PyErr_Occurred()) SWIG_fail; | |
27597 | } | |
27598 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27599 | return resultobj; | |
27600 | fail: | |
27601 | return NULL; | |
d14a1e28 RD |
27602 | } |
27603 | ||
27604 | ||
0085ce49 RD |
27605 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27606 | PyObject *resultobj = 0; | |
27607 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27608 | wxPrintData *result = 0 ; | |
27609 | void *argp1 = 0 ; | |
27610 | int res1 = 0 ; | |
27611 | PyObject *swig_obj[1] ; | |
27612 | ||
27613 | if (!args) SWIG_fail; | |
27614 | swig_obj[0] = args; | |
27615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27616 | if (!SWIG_IsOK(res1)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27618 | } | |
27619 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27620 | { | |
27621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27622 | { |
0085ce49 RD |
27623 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27624 | result = (wxPrintData *) &_result_ref; | |
27625 | } | |
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27630 | return resultobj; | |
27631 | fail: | |
27632 | return NULL; | |
d14a1e28 RD |
27633 | } |
27634 | ||
27635 | ||
0085ce49 RD |
27636 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27637 | PyObject *resultobj = 0; | |
27638 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27639 | wxDC *result = 0 ; | |
27640 | void *argp1 = 0 ; | |
27641 | int res1 = 0 ; | |
27642 | PyObject *swig_obj[1] ; | |
27643 | ||
27644 | if (!args) SWIG_fail; | |
27645 | swig_obj[0] = args; | |
27646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27647 | if (!SWIG_IsOK(res1)) { | |
27648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27649 | } | |
27650 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27651 | { | |
27652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27653 | result = (wxDC *)(arg1)->GetPrintDC(); | |
27654 | wxPyEndAllowThreads(__tstate); | |
27655 | if (PyErr_Occurred()) SWIG_fail; | |
27656 | } | |
27657 | { | |
27658 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
27659 | } | |
27660 | return resultobj; | |
27661 | fail: | |
27662 | return NULL; | |
d14a1e28 RD |
27663 | } |
27664 | ||
27665 | ||
0085ce49 RD |
27666 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27667 | PyObject *obj; | |
27668 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27669 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
27670 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27671 | } |
27672 | ||
0085ce49 RD |
27673 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27674 | return SWIG_Python_InitShadowInstance(args); | |
27675 | } | |
d14a1e28 | 27676 | |
0085ce49 RD |
27677 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27678 | PyObject *resultobj = 0; | |
27679 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
27680 | wxPrinter *result = 0 ; | |
27681 | void *argp1 = 0 ; | |
27682 | int res1 = 0 ; | |
27683 | PyObject * obj0 = 0 ; | |
27684 | char * kwnames[] = { | |
27685 | (char *) "data", NULL | |
27686 | }; | |
27687 | ||
27688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
27689 | if (obj0) { | |
27690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27691 | if (!SWIG_IsOK(res1)) { | |
27692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 27693 | } |
0085ce49 RD |
27694 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
27695 | } | |
27696 | { | |
27697 | if (!wxPyCheckForApp()) SWIG_fail; | |
27698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27699 | result = (wxPrinter *)new wxPrinter(arg1); | |
27700 | wxPyEndAllowThreads(__tstate); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
27704 | return resultobj; | |
27705 | fail: | |
27706 | return NULL; | |
d14a1e28 RD |
27707 | } |
27708 | ||
27709 | ||
0085ce49 RD |
27710 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27711 | PyObject *resultobj = 0; | |
27712 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27713 | void *argp1 = 0 ; | |
27714 | int res1 = 0 ; | |
27715 | PyObject *swig_obj[1] ; | |
27716 | ||
27717 | if (!args) SWIG_fail; | |
27718 | swig_obj[0] = args; | |
27719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
27720 | if (!SWIG_IsOK(res1)) { | |
27721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27722 | } | |
27723 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27724 | { | |
27725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27726 | delete arg1; | |
d14a1e28 | 27727 | |
0085ce49 RD |
27728 | wxPyEndAllowThreads(__tstate); |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
27730 | } | |
27731 | resultobj = SWIG_Py_Void(); | |
27732 | return resultobj; | |
27733 | fail: | |
27734 | return NULL; | |
27735 | } | |
27736 | ||
27737 | ||
27738 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27739 | PyObject *resultobj = 0; | |
27740 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27741 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27742 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27743 | wxWindow *result = 0 ; | |
27744 | void *argp1 = 0 ; | |
27745 | int res1 = 0 ; | |
27746 | void *argp2 = 0 ; | |
27747 | int res2 = 0 ; | |
27748 | void *argp3 = 0 ; | |
27749 | int res3 = 0 ; | |
27750 | PyObject * obj0 = 0 ; | |
27751 | PyObject * obj1 = 0 ; | |
27752 | PyObject * obj2 = 0 ; | |
27753 | char * kwnames[] = { | |
27754 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
27755 | }; | |
27756 | ||
27757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27759 | if (!SWIG_IsOK(res1)) { | |
27760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27761 | } | |
27762 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27763 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27764 | if (!SWIG_IsOK(res2)) { | |
27765 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27766 | } | |
27767 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27768 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27769 | if (!SWIG_IsOK(res3)) { | |
27770 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27771 | } | |
27772 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27773 | { | |
27774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27775 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
27776 | wxPyEndAllowThreads(__tstate); | |
27777 | if (PyErr_Occurred()) SWIG_fail; | |
27778 | } | |
27779 | { | |
27780 | resultobj = wxPyMake_wxObject(result, 0); | |
27781 | } | |
27782 | return resultobj; | |
27783 | fail: | |
27784 | return NULL; | |
27785 | } | |
27786 | ||
27787 | ||
27788 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27789 | PyObject *resultobj = 0; | |
27790 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27791 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27792 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27793 | wxString *arg4 = 0 ; | |
27794 | void *argp1 = 0 ; | |
27795 | int res1 = 0 ; | |
27796 | void *argp2 = 0 ; | |
27797 | int res2 = 0 ; | |
27798 | void *argp3 = 0 ; | |
27799 | int res3 = 0 ; | |
27800 | bool temp4 = false ; | |
27801 | PyObject * obj0 = 0 ; | |
27802 | PyObject * obj1 = 0 ; | |
27803 | PyObject * obj2 = 0 ; | |
27804 | PyObject * obj3 = 0 ; | |
27805 | char * kwnames[] = { | |
27806 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
27807 | }; | |
27808 | ||
27809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27811 | if (!SWIG_IsOK(res1)) { | |
27812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27813 | } | |
27814 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27815 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27816 | if (!SWIG_IsOK(res2)) { | |
27817 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27818 | } | |
27819 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27820 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27821 | if (!SWIG_IsOK(res3)) { | |
27822 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27823 | } | |
27824 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27825 | { | |
27826 | arg4 = wxString_in_helper(obj3); | |
27827 | if (arg4 == NULL) SWIG_fail; | |
27828 | temp4 = true; | |
27829 | } | |
27830 | { | |
27831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27832 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
27833 | wxPyEndAllowThreads(__tstate); | |
27834 | if (PyErr_Occurred()) SWIG_fail; | |
27835 | } | |
27836 | resultobj = SWIG_Py_Void(); | |
27837 | { | |
27838 | if (temp4) | |
27839 | delete arg4; | |
27840 | } | |
27841 | return resultobj; | |
27842 | fail: | |
27843 | { | |
27844 | if (temp4) | |
27845 | delete arg4; | |
27846 | } | |
27847 | return NULL; | |
27848 | } | |
27849 | ||
27850 | ||
27851 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27852 | PyObject *resultobj = 0; | |
27853 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27855 | bool result; | |
27856 | void *argp1 = 0 ; | |
27857 | int res1 = 0 ; | |
27858 | void *argp2 = 0 ; | |
27859 | int res2 = 0 ; | |
27860 | PyObject * obj0 = 0 ; | |
27861 | PyObject * obj1 = 0 ; | |
27862 | char * kwnames[] = { | |
27863 | (char *) "self",(char *) "parent", NULL | |
27864 | }; | |
27865 | ||
27866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
27867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27868 | if (!SWIG_IsOK(res1)) { | |
27869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27870 | } | |
27871 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27872 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27873 | if (!SWIG_IsOK(res2)) { | |
27874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27875 | } | |
27876 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27877 | { | |
27878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27879 | result = (bool)(arg1)->Setup(arg2); | |
27880 | wxPyEndAllowThreads(__tstate); | |
27881 | if (PyErr_Occurred()) SWIG_fail; | |
27882 | } | |
27883 | { | |
27884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27885 | } | |
27886 | return resultobj; | |
27887 | fail: | |
27888 | return NULL; | |
27889 | } | |
27890 | ||
27891 | ||
27892 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27893 | PyObject *resultobj = 0; | |
27894 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27895 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27896 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27897 | bool arg4 = (bool) true ; | |
27898 | bool result; | |
27899 | void *argp1 = 0 ; | |
27900 | int res1 = 0 ; | |
27901 | void *argp2 = 0 ; | |
27902 | int res2 = 0 ; | |
27903 | void *argp3 = 0 ; | |
27904 | int res3 = 0 ; | |
27905 | bool val4 ; | |
27906 | int ecode4 = 0 ; | |
27907 | PyObject * obj0 = 0 ; | |
27908 | PyObject * obj1 = 0 ; | |
27909 | PyObject * obj2 = 0 ; | |
27910 | PyObject * obj3 = 0 ; | |
27911 | char * kwnames[] = { | |
27912 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27913 | }; | |
27914 | ||
27915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27917 | if (!SWIG_IsOK(res1)) { | |
27918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27919 | } | |
27920 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27921 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27922 | if (!SWIG_IsOK(res2)) { | |
27923 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27924 | } | |
27925 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27926 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27927 | if (!SWIG_IsOK(res3)) { | |
27928 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27929 | } | |
27930 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27931 | if (obj3) { | |
27932 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27933 | if (!SWIG_IsOK(ecode4)) { | |
27934 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27935 | } | |
27936 | arg4 = static_cast< bool >(val4); | |
27937 | } | |
27938 | { | |
27939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27940 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27941 | wxPyEndAllowThreads(__tstate); | |
27942 | if (PyErr_Occurred()) SWIG_fail; | |
27943 | } | |
27944 | { | |
27945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27946 | } | |
27947 | return resultobj; | |
27948 | fail: | |
27949 | return NULL; | |
27950 | } | |
27951 | ||
27952 | ||
27953 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27954 | PyObject *resultobj = 0; | |
27955 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27956 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27957 | wxDC *result = 0 ; | |
27958 | void *argp1 = 0 ; | |
27959 | int res1 = 0 ; | |
27960 | void *argp2 = 0 ; | |
27961 | int res2 = 0 ; | |
27962 | PyObject * obj0 = 0 ; | |
27963 | PyObject * obj1 = 0 ; | |
27964 | char * kwnames[] = { | |
27965 | (char *) "self",(char *) "parent", NULL | |
27966 | }; | |
27967 | ||
27968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27970 | if (!SWIG_IsOK(res1)) { | |
27971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27972 | } | |
27973 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27974 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27975 | if (!SWIG_IsOK(res2)) { | |
27976 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27977 | } | |
27978 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27979 | { | |
27980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27981 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27982 | wxPyEndAllowThreads(__tstate); | |
27983 | if (PyErr_Occurred()) SWIG_fail; | |
27984 | } | |
27985 | { | |
27986 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27987 | } | |
27988 | return resultobj; | |
27989 | fail: | |
27990 | return NULL; | |
d14a1e28 RD |
27991 | } |
27992 | ||
27993 | ||
0085ce49 RD |
27994 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27995 | PyObject *resultobj = 0; | |
27996 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27997 | wxPrintDialogData *result = 0 ; | |
27998 | void *argp1 = 0 ; | |
27999 | int res1 = 0 ; | |
28000 | PyObject *swig_obj[1] ; | |
28001 | ||
28002 | if (!args) SWIG_fail; | |
28003 | swig_obj[0] = args; | |
28004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
28005 | if (!SWIG_IsOK(res1)) { | |
28006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
28007 | } | |
28008 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
28009 | { | |
28010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 28011 | { |
0085ce49 RD |
28012 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
28013 | result = (wxPrintDialogData *) &_result_ref; | |
28014 | } | |
28015 | wxPyEndAllowThreads(__tstate); | |
28016 | if (PyErr_Occurred()) SWIG_fail; | |
28017 | } | |
28018 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
28019 | return resultobj; | |
28020 | fail: | |
28021 | return NULL; | |
d14a1e28 RD |
28022 | } |
28023 | ||
28024 | ||
0085ce49 RD |
28025 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28026 | PyObject *resultobj = 0; | |
28027 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
28028 | bool result; | |
28029 | void *argp1 = 0 ; | |
28030 | int res1 = 0 ; | |
28031 | PyObject *swig_obj[1] ; | |
28032 | ||
28033 | if (!args) SWIG_fail; | |
28034 | swig_obj[0] = args; | |
28035 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
28036 | if (!SWIG_IsOK(res1)) { | |
28037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
28038 | } | |
28039 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
28040 | { | |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28042 | result = (bool)(arg1)->GetAbort(); | |
28043 | wxPyEndAllowThreads(__tstate); | |
28044 | if (PyErr_Occurred()) SWIG_fail; | |
28045 | } | |
28046 | { | |
28047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28048 | } | |
28049 | return resultobj; | |
28050 | fail: | |
28051 | return NULL; | |
d14a1e28 RD |
28052 | } |
28053 | ||
28054 | ||
0085ce49 RD |
28055 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28056 | PyObject *resultobj = 0; | |
28057 | wxPrinterError result; | |
28058 | ||
28059 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
28060 | { | |
28061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28062 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
28063 | wxPyEndAllowThreads(__tstate); | |
28064 | if (PyErr_Occurred()) SWIG_fail; | |
28065 | } | |
28066 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28067 | return resultobj; | |
28068 | fail: | |
28069 | return NULL; | |
d14a1e28 RD |
28070 | } |
28071 | ||
28072 | ||
0085ce49 RD |
28073 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28074 | PyObject *obj; | |
28075 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28076 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
28077 | return SWIG_Py_Void(); | |
d14a1e28 RD |
28078 | } |
28079 | ||
0085ce49 RD |
28080 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28081 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
28082 | } |
28083 | ||
0085ce49 RD |
28084 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28085 | PyObject *resultobj = 0; | |
28086 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
28087 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28088 | wxPyPrintout *result = 0 ; | |
28089 | bool temp1 = false ; | |
28090 | PyObject * obj0 = 0 ; | |
28091 | char * kwnames[] = { | |
28092 | (char *) "title", NULL | |
28093 | }; | |
28094 | ||
28095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
28096 | if (obj0) { | |
d14a1e28 | 28097 | { |
0085ce49 RD |
28098 | arg1 = wxString_in_helper(obj0); |
28099 | if (arg1 == NULL) SWIG_fail; | |
28100 | temp1 = true; | |
28101 | } | |
28102 | } | |
28103 | { | |
28104 | if (!wxPyCheckForApp()) SWIG_fail; | |
28105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28106 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
28107 | wxPyEndAllowThreads(__tstate); | |
28108 | if (PyErr_Occurred()) SWIG_fail; | |
28109 | } | |
28110 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
28111 | { | |
28112 | if (temp1) | |
28113 | delete arg1; | |
28114 | } | |
28115 | return resultobj; | |
28116 | fail: | |
28117 | { | |
28118 | if (temp1) | |
28119 | delete arg1; | |
28120 | } | |
28121 | return NULL; | |
d14a1e28 RD |
28122 | } |
28123 | ||
28124 | ||
0085ce49 RD |
28125 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28126 | PyObject *resultobj = 0; | |
28127 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28128 | void *argp1 = 0 ; | |
28129 | int res1 = 0 ; | |
28130 | PyObject *swig_obj[1] ; | |
28131 | ||
28132 | if (!args) SWIG_fail; | |
28133 | swig_obj[0] = args; | |
28134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
28135 | if (!SWIG_IsOK(res1)) { | |
28136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28137 | } | |
28138 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28139 | { | |
28140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28141 | delete arg1; | |
d14a1e28 | 28142 | |
0085ce49 RD |
28143 | wxPyEndAllowThreads(__tstate); |
28144 | if (PyErr_Occurred()) SWIG_fail; | |
28145 | } | |
28146 | resultobj = SWIG_Py_Void(); | |
28147 | return resultobj; | |
28148 | fail: | |
28149 | return NULL; | |
28150 | } | |
28151 | ||
28152 | ||
28153 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28154 | PyObject *resultobj = 0; | |
28155 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28156 | PyObject *arg2 = (PyObject *) 0 ; | |
28157 | PyObject *arg3 = (PyObject *) 0 ; | |
28158 | void *argp1 = 0 ; | |
28159 | int res1 = 0 ; | |
28160 | PyObject * obj0 = 0 ; | |
28161 | PyObject * obj1 = 0 ; | |
28162 | PyObject * obj2 = 0 ; | |
28163 | char * kwnames[] = { | |
28164 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28165 | }; | |
28166 | ||
28167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28169 | if (!SWIG_IsOK(res1)) { | |
28170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28171 | } | |
28172 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28173 | arg2 = obj1; | |
28174 | arg3 = obj2; | |
28175 | { | |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28177 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28178 | wxPyEndAllowThreads(__tstate); | |
28179 | if (PyErr_Occurred()) SWIG_fail; | |
28180 | } | |
28181 | resultobj = SWIG_Py_Void(); | |
28182 | return resultobj; | |
28183 | fail: | |
28184 | return NULL; | |
d14a1e28 RD |
28185 | } |
28186 | ||
28187 | ||
0085ce49 RD |
28188 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28189 | PyObject *resultobj = 0; | |
28190 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28191 | wxString result; | |
28192 | void *argp1 = 0 ; | |
28193 | int res1 = 0 ; | |
28194 | PyObject *swig_obj[1] ; | |
28195 | ||
28196 | if (!args) SWIG_fail; | |
28197 | swig_obj[0] = args; | |
28198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28199 | if (!SWIG_IsOK(res1)) { | |
28200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28201 | } | |
28202 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28203 | { | |
28204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28205 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
28206 | wxPyEndAllowThreads(__tstate); | |
28207 | if (PyErr_Occurred()) SWIG_fail; | |
28208 | } | |
28209 | { | |
28210 | #if wxUSE_UNICODE | |
28211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28212 | #else | |
28213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28214 | #endif | |
28215 | } | |
28216 | return resultobj; | |
28217 | fail: | |
28218 | return NULL; | |
d14a1e28 RD |
28219 | } |
28220 | ||
28221 | ||
0085ce49 RD |
28222 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28223 | PyObject *resultobj = 0; | |
28224 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28225 | wxDC *result = 0 ; | |
28226 | void *argp1 = 0 ; | |
28227 | int res1 = 0 ; | |
28228 | PyObject *swig_obj[1] ; | |
28229 | ||
28230 | if (!args) SWIG_fail; | |
28231 | swig_obj[0] = args; | |
28232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28233 | if (!SWIG_IsOK(res1)) { | |
28234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28235 | } | |
28236 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28237 | { | |
28238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28239 | result = (wxDC *)(arg1)->GetDC(); | |
28240 | wxPyEndAllowThreads(__tstate); | |
28241 | if (PyErr_Occurred()) SWIG_fail; | |
28242 | } | |
28243 | { | |
28244 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
28245 | } | |
28246 | return resultobj; | |
28247 | fail: | |
28248 | return NULL; | |
28249 | } | |
28250 | ||
28251 | ||
28252 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28253 | PyObject *resultobj = 0; | |
28254 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28255 | wxDC *arg2 = (wxDC *) 0 ; | |
28256 | void *argp1 = 0 ; | |
28257 | int res1 = 0 ; | |
28258 | void *argp2 = 0 ; | |
28259 | int res2 = 0 ; | |
28260 | PyObject * obj0 = 0 ; | |
28261 | PyObject * obj1 = 0 ; | |
28262 | char * kwnames[] = { | |
28263 | (char *) "self",(char *) "dc", NULL | |
28264 | }; | |
28265 | ||
28266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
28267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28268 | if (!SWIG_IsOK(res1)) { | |
28269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28270 | } | |
28271 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28272 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
28273 | if (!SWIG_IsOK(res2)) { | |
28274 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
28275 | } | |
28276 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
28277 | { | |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28279 | (arg1)->SetDC(arg2); | |
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | resultobj = SWIG_Py_Void(); | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | return NULL; | |
28287 | } | |
28288 | ||
28289 | ||
70d7cb34 RD |
28290 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28291 | PyObject *resultobj = 0; | |
28292 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28293 | wxSize *arg2 = 0 ; | |
28294 | void *argp1 = 0 ; | |
28295 | int res1 = 0 ; | |
28296 | wxSize temp2 ; | |
28297 | PyObject * obj0 = 0 ; | |
28298 | PyObject * obj1 = 0 ; | |
28299 | char * kwnames[] = { | |
28300 | (char *) "self",(char *) "imageSize", NULL | |
28301 | }; | |
28302 | ||
28303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_FitThisSizeToPaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
28304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28305 | if (!SWIG_IsOK(res1)) { | |
28306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPaper" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28307 | } | |
28308 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28309 | { | |
28310 | arg2 = &temp2; | |
28311 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28312 | } | |
28313 | { | |
28314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28315 | (arg1)->FitThisSizeToPaper((wxSize const &)*arg2); | |
28316 | wxPyEndAllowThreads(__tstate); | |
28317 | if (PyErr_Occurred()) SWIG_fail; | |
28318 | } | |
28319 | resultobj = SWIG_Py_Void(); | |
28320 | return resultobj; | |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
28326 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28327 | PyObject *resultobj = 0; | |
28328 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28329 | wxSize *arg2 = 0 ; | |
28330 | void *argp1 = 0 ; | |
28331 | int res1 = 0 ; | |
28332 | wxSize temp2 ; | |
28333 | PyObject * obj0 = 0 ; | |
28334 | PyObject * obj1 = 0 ; | |
28335 | char * kwnames[] = { | |
28336 | (char *) "self",(char *) "imageSize", NULL | |
28337 | }; | |
28338 | ||
28339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_FitThisSizeToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28341 | if (!SWIG_IsOK(res1)) { | |
28342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28343 | } | |
28344 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28345 | { | |
28346 | arg2 = &temp2; | |
28347 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28348 | } | |
28349 | { | |
28350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28351 | (arg1)->FitThisSizeToPage((wxSize const &)*arg2); | |
28352 | wxPyEndAllowThreads(__tstate); | |
28353 | if (PyErr_Occurred()) SWIG_fail; | |
28354 | } | |
28355 | resultobj = SWIG_Py_Void(); | |
28356 | return resultobj; | |
28357 | fail: | |
28358 | return NULL; | |
28359 | } | |
28360 | ||
28361 | ||
28362 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPageMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28363 | PyObject *resultobj = 0; | |
28364 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28365 | wxSize *arg2 = 0 ; | |
28366 | wxPageSetupDialogData *arg3 = 0 ; | |
28367 | void *argp1 = 0 ; | |
28368 | int res1 = 0 ; | |
28369 | wxSize temp2 ; | |
28370 | void *argp3 = 0 ; | |
28371 | int res3 = 0 ; | |
28372 | PyObject * obj0 = 0 ; | |
28373 | PyObject * obj1 = 0 ; | |
28374 | PyObject * obj2 = 0 ; | |
28375 | char * kwnames[] = { | |
28376 | (char *) "self",(char *) "imageSize",(char *) "pageSetupData", NULL | |
28377 | }; | |
28378 | ||
28379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_FitThisSizeToPageMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28381 | if (!SWIG_IsOK(res1)) { | |
28382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28383 | } | |
28384 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28385 | { | |
28386 | arg2 = &temp2; | |
28387 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28388 | } | |
28389 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28390 | if (!SWIG_IsOK(res3)) { | |
28391 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "3"" of type '" "wxPageSetupDialogData const &""'"); | |
28392 | } | |
28393 | if (!argp3) { | |
28394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "3"" of type '" "wxPageSetupDialogData const &""'"); | |
28395 | } | |
28396 | arg3 = reinterpret_cast< wxPageSetupDialogData * >(argp3); | |
28397 | { | |
28398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28399 | (arg1)->FitThisSizeToPageMargins((wxSize const &)*arg2,(wxPageSetupDialogData const &)*arg3); | |
28400 | wxPyEndAllowThreads(__tstate); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | resultobj = SWIG_Py_Void(); | |
28404 | return resultobj; | |
28405 | fail: | |
28406 | return NULL; | |
28407 | } | |
28408 | ||
28409 | ||
28410 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28411 | PyObject *resultobj = 0; | |
28412 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28413 | void *argp1 = 0 ; | |
28414 | int res1 = 0 ; | |
28415 | PyObject *swig_obj[1] ; | |
28416 | ||
28417 | if (!args) SWIG_fail; | |
28418 | swig_obj[0] = args; | |
28419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28420 | if (!SWIG_IsOK(res1)) { | |
28421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPaper" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28422 | } | |
28423 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28424 | { | |
28425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28426 | (arg1)->MapScreenSizeToPaper(); | |
28427 | wxPyEndAllowThreads(__tstate); | |
28428 | if (PyErr_Occurred()) SWIG_fail; | |
28429 | } | |
28430 | resultobj = SWIG_Py_Void(); | |
28431 | return resultobj; | |
28432 | fail: | |
28433 | return NULL; | |
28434 | } | |
28435 | ||
28436 | ||
28437 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28438 | PyObject *resultobj = 0; | |
28439 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28440 | void *argp1 = 0 ; | |
28441 | int res1 = 0 ; | |
28442 | PyObject *swig_obj[1] ; | |
28443 | ||
28444 | if (!args) SWIG_fail; | |
28445 | swig_obj[0] = args; | |
28446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28447 | if (!SWIG_IsOK(res1)) { | |
28448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28449 | } | |
28450 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28451 | { | |
28452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28453 | (arg1)->MapScreenSizeToPage(); | |
28454 | wxPyEndAllowThreads(__tstate); | |
28455 | if (PyErr_Occurred()) SWIG_fail; | |
28456 | } | |
28457 | resultobj = SWIG_Py_Void(); | |
28458 | return resultobj; | |
28459 | fail: | |
28460 | return NULL; | |
28461 | } | |
28462 | ||
28463 | ||
28464 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPageMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28465 | PyObject *resultobj = 0; | |
28466 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28467 | wxPageSetupDialogData *arg2 = 0 ; | |
28468 | void *argp1 = 0 ; | |
28469 | int res1 = 0 ; | |
28470 | void *argp2 = 0 ; | |
28471 | int res2 = 0 ; | |
28472 | PyObject * obj0 = 0 ; | |
28473 | PyObject * obj1 = 0 ; | |
28474 | char * kwnames[] = { | |
28475 | (char *) "self",(char *) "pageSetupData", NULL | |
28476 | }; | |
28477 | ||
28478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_MapScreenSizeToPageMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
28479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28480 | if (!SWIG_IsOK(res1)) { | |
28481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28482 | } | |
28483 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28484 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28485 | if (!SWIG_IsOK(res2)) { | |
28486 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28487 | } | |
28488 | if (!argp2) { | |
28489 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28490 | } | |
28491 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); | |
28492 | { | |
28493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28494 | (arg1)->MapScreenSizeToPageMargins((wxPageSetupDialogData const &)*arg2); | |
28495 | wxPyEndAllowThreads(__tstate); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | } | |
28498 | resultobj = SWIG_Py_Void(); | |
28499 | return resultobj; | |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
28505 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28506 | PyObject *resultobj = 0; | |
28507 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28508 | void *argp1 = 0 ; | |
28509 | int res1 = 0 ; | |
28510 | PyObject *swig_obj[1] ; | |
28511 | ||
28512 | if (!args) SWIG_fail; | |
28513 | swig_obj[0] = args; | |
28514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28515 | if (!SWIG_IsOK(res1)) { | |
28516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToDevice" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28517 | } | |
28518 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28519 | { | |
28520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28521 | (arg1)->MapScreenSizeToDevice(); | |
28522 | wxPyEndAllowThreads(__tstate); | |
28523 | if (PyErr_Occurred()) SWIG_fail; | |
28524 | } | |
28525 | resultobj = SWIG_Py_Void(); | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | return NULL; | |
28529 | } | |
28530 | ||
28531 | ||
28532 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPaperRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28533 | PyObject *resultobj = 0; | |
28534 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28535 | wxRect result; | |
28536 | void *argp1 = 0 ; | |
28537 | int res1 = 0 ; | |
28538 | PyObject *swig_obj[1] ; | |
28539 | ||
28540 | if (!args) SWIG_fail; | |
28541 | swig_obj[0] = args; | |
28542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28543 | if (!SWIG_IsOK(res1)) { | |
28544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPaperRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28545 | } | |
28546 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28547 | { | |
28548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28549 | result = ((wxPyPrintout const *)arg1)->GetLogicalPaperRect(); | |
28550 | wxPyEndAllowThreads(__tstate); | |
28551 | if (PyErr_Occurred()) SWIG_fail; | |
28552 | } | |
28553 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28554 | return resultobj; | |
28555 | fail: | |
28556 | return NULL; | |
28557 | } | |
28558 | ||
28559 | ||
28560 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28561 | PyObject *resultobj = 0; | |
28562 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28563 | wxRect result; | |
28564 | void *argp1 = 0 ; | |
28565 | int res1 = 0 ; | |
28566 | PyObject *swig_obj[1] ; | |
28567 | ||
28568 | if (!args) SWIG_fail; | |
28569 | swig_obj[0] = args; | |
28570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28571 | if (!SWIG_IsOK(res1)) { | |
28572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPageRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28573 | } | |
28574 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28575 | { | |
28576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28577 | result = ((wxPyPrintout const *)arg1)->GetLogicalPageRect(); | |
28578 | wxPyEndAllowThreads(__tstate); | |
28579 | if (PyErr_Occurred()) SWIG_fail; | |
28580 | } | |
28581 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28582 | return resultobj; | |
28583 | fail: | |
28584 | return NULL; | |
28585 | } | |
28586 | ||
28587 | ||
28588 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPageMarginsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28589 | PyObject *resultobj = 0; | |
28590 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28591 | wxPageSetupDialogData *arg2 = 0 ; | |
28592 | wxRect result; | |
28593 | void *argp1 = 0 ; | |
28594 | int res1 = 0 ; | |
28595 | void *argp2 = 0 ; | |
28596 | int res2 = 0 ; | |
28597 | PyObject * obj0 = 0 ; | |
28598 | PyObject * obj1 = 0 ; | |
28599 | char * kwnames[] = { | |
28600 | (char *) "self",(char *) "pageSetupData", NULL | |
28601 | }; | |
28602 | ||
28603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_GetLogicalPageMarginsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
28604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28605 | if (!SWIG_IsOK(res1)) { | |
28606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28607 | } | |
28608 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28609 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28610 | if (!SWIG_IsOK(res2)) { | |
28611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28612 | } | |
28613 | if (!argp2) { | |
28614 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28615 | } | |
28616 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); | |
28617 | { | |
28618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28619 | result = ((wxPyPrintout const *)arg1)->GetLogicalPageMarginsRect((wxPageSetupDialogData const &)*arg2); | |
28620 | wxPyEndAllowThreads(__tstate); | |
28621 | if (PyErr_Occurred()) SWIG_fail; | |
28622 | } | |
28623 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28624 | return resultobj; | |
28625 | fail: | |
28626 | return NULL; | |
28627 | } | |
28628 | ||
28629 | ||
28630 | SWIGINTERN PyObject *_wrap_Printout_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28631 | PyObject *resultobj = 0; | |
28632 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28633 | int arg2 ; | |
28634 | int arg3 ; | |
28635 | void *argp1 = 0 ; | |
28636 | int res1 = 0 ; | |
28637 | int val2 ; | |
28638 | int ecode2 = 0 ; | |
28639 | int val3 ; | |
28640 | int ecode3 = 0 ; | |
28641 | PyObject * obj0 = 0 ; | |
28642 | PyObject * obj1 = 0 ; | |
28643 | PyObject * obj2 = 0 ; | |
28644 | char * kwnames[] = { | |
28645 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28646 | }; | |
28647 | ||
28648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28650 | if (!SWIG_IsOK(res1)) { | |
28651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28652 | } | |
28653 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28655 | if (!SWIG_IsOK(ecode2)) { | |
28656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
28657 | } | |
28658 | arg2 = static_cast< int >(val2); | |
28659 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28660 | if (!SWIG_IsOK(ecode3)) { | |
28661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
28662 | } | |
28663 | arg3 = static_cast< int >(val3); | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
28667 | wxPyEndAllowThreads(__tstate); | |
28668 | if (PyErr_Occurred()) SWIG_fail; | |
28669 | } | |
28670 | resultobj = SWIG_Py_Void(); | |
28671 | return resultobj; | |
28672 | fail: | |
28673 | return NULL; | |
28674 | } | |
28675 | ||
28676 | ||
28677 | SWIGINTERN PyObject *_wrap_Printout_OffsetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28678 | PyObject *resultobj = 0; | |
28679 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28680 | int arg2 ; | |
28681 | int arg3 ; | |
28682 | void *argp1 = 0 ; | |
28683 | int res1 = 0 ; | |
28684 | int val2 ; | |
28685 | int ecode2 = 0 ; | |
28686 | int val3 ; | |
28687 | int ecode3 = 0 ; | |
28688 | PyObject * obj0 = 0 ; | |
28689 | PyObject * obj1 = 0 ; | |
28690 | PyObject * obj2 = 0 ; | |
28691 | char * kwnames[] = { | |
28692 | (char *) "self",(char *) "xoff",(char *) "yoff", NULL | |
28693 | }; | |
28694 | ||
28695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OffsetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28697 | if (!SWIG_IsOK(res1)) { | |
28698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28699 | } | |
28700 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28702 | if (!SWIG_IsOK(ecode2)) { | |
28703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
28704 | } | |
28705 | arg2 = static_cast< int >(val2); | |
28706 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28707 | if (!SWIG_IsOK(ecode3)) { | |
28708 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
28709 | } | |
28710 | arg3 = static_cast< int >(val3); | |
28711 | { | |
28712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28713 | (arg1)->OffsetLogicalOrigin(arg2,arg3); | |
28714 | wxPyEndAllowThreads(__tstate); | |
28715 | if (PyErr_Occurred()) SWIG_fail; | |
28716 | } | |
28717 | resultobj = SWIG_Py_Void(); | |
28718 | return resultobj; | |
28719 | fail: | |
28720 | return NULL; | |
28721 | } | |
28722 | ||
28723 | ||
0085ce49 RD |
28724 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28725 | PyObject *resultobj = 0; | |
28726 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28727 | int arg2 ; | |
28728 | int arg3 ; | |
28729 | void *argp1 = 0 ; | |
28730 | int res1 = 0 ; | |
28731 | int val2 ; | |
28732 | int ecode2 = 0 ; | |
28733 | int val3 ; | |
28734 | int ecode3 = 0 ; | |
28735 | PyObject * obj0 = 0 ; | |
28736 | PyObject * obj1 = 0 ; | |
28737 | PyObject * obj2 = 0 ; | |
28738 | char * kwnames[] = { | |
28739 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28740 | }; | |
28741 | ||
28742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28744 | if (!SWIG_IsOK(res1)) { | |
28745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28746 | } | |
28747 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28748 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28749 | if (!SWIG_IsOK(ecode2)) { | |
28750 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
28751 | } | |
28752 | arg2 = static_cast< int >(val2); | |
28753 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28754 | if (!SWIG_IsOK(ecode3)) { | |
28755 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
28756 | } | |
28757 | arg3 = static_cast< int >(val3); | |
28758 | { | |
28759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28760 | (arg1)->SetPageSizePixels(arg2,arg3); | |
28761 | wxPyEndAllowThreads(__tstate); | |
28762 | if (PyErr_Occurred()) SWIG_fail; | |
28763 | } | |
28764 | resultobj = SWIG_Py_Void(); | |
28765 | return resultobj; | |
28766 | fail: | |
28767 | return NULL; | |
28768 | } | |
28769 | ||
28770 | ||
28771 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28772 | PyObject *resultobj = 0; | |
28773 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28774 | int *arg2 = (int *) 0 ; | |
28775 | int *arg3 = (int *) 0 ; | |
28776 | void *argp1 = 0 ; | |
28777 | int res1 = 0 ; | |
28778 | int temp2 ; | |
28779 | int res2 = SWIG_TMPOBJ ; | |
28780 | int temp3 ; | |
28781 | int res3 = SWIG_TMPOBJ ; | |
28782 | PyObject *swig_obj[1] ; | |
28783 | ||
28784 | arg2 = &temp2; | |
28785 | arg3 = &temp3; | |
28786 | if (!args) SWIG_fail; | |
28787 | swig_obj[0] = args; | |
28788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28789 | if (!SWIG_IsOK(res1)) { | |
28790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28791 | } | |
28792 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | (arg1)->GetPageSizePixels(arg2,arg3); | |
28796 | wxPyEndAllowThreads(__tstate); | |
28797 | if (PyErr_Occurred()) SWIG_fail; | |
28798 | } | |
28799 | resultobj = SWIG_Py_Void(); | |
28800 | if (SWIG_IsTmpObj(res2)) { | |
28801 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28802 | } else { | |
28803 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28804 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28805 | } | |
28806 | if (SWIG_IsTmpObj(res3)) { | |
28807 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28808 | } else { | |
28809 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28810 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28811 | } | |
28812 | return resultobj; | |
28813 | fail: | |
28814 | return NULL; | |
28815 | } | |
28816 | ||
28817 | ||
28818 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28819 | PyObject *resultobj = 0; | |
28820 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28821 | int arg2 ; | |
28822 | int arg3 ; | |
28823 | void *argp1 = 0 ; | |
28824 | int res1 = 0 ; | |
28825 | int val2 ; | |
28826 | int ecode2 = 0 ; | |
28827 | int val3 ; | |
28828 | int ecode3 = 0 ; | |
28829 | PyObject * obj0 = 0 ; | |
28830 | PyObject * obj1 = 0 ; | |
28831 | PyObject * obj2 = 0 ; | |
28832 | char * kwnames[] = { | |
28833 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28834 | }; | |
28835 | ||
28836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28838 | if (!SWIG_IsOK(res1)) { | |
28839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28840 | } | |
28841 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28843 | if (!SWIG_IsOK(ecode2)) { | |
28844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
28845 | } | |
28846 | arg2 = static_cast< int >(val2); | |
28847 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28848 | if (!SWIG_IsOK(ecode3)) { | |
28849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
28850 | } | |
28851 | arg3 = static_cast< int >(val3); | |
28852 | { | |
28853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28854 | (arg1)->SetPageSizeMM(arg2,arg3); | |
28855 | wxPyEndAllowThreads(__tstate); | |
28856 | if (PyErr_Occurred()) SWIG_fail; | |
28857 | } | |
28858 | resultobj = SWIG_Py_Void(); | |
28859 | return resultobj; | |
28860 | fail: | |
28861 | return NULL; | |
28862 | } | |
28863 | ||
28864 | ||
28865 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28866 | PyObject *resultobj = 0; | |
28867 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28868 | int *arg2 = (int *) 0 ; | |
28869 | int *arg3 = (int *) 0 ; | |
28870 | void *argp1 = 0 ; | |
28871 | int res1 = 0 ; | |
28872 | int temp2 ; | |
28873 | int res2 = SWIG_TMPOBJ ; | |
28874 | int temp3 ; | |
28875 | int res3 = SWIG_TMPOBJ ; | |
28876 | PyObject *swig_obj[1] ; | |
28877 | ||
28878 | arg2 = &temp2; | |
28879 | arg3 = &temp3; | |
28880 | if (!args) SWIG_fail; | |
28881 | swig_obj[0] = args; | |
28882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28883 | if (!SWIG_IsOK(res1)) { | |
28884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28885 | } | |
28886 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28887 | { | |
28888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28889 | (arg1)->GetPageSizeMM(arg2,arg3); | |
28890 | wxPyEndAllowThreads(__tstate); | |
28891 | if (PyErr_Occurred()) SWIG_fail; | |
28892 | } | |
28893 | resultobj = SWIG_Py_Void(); | |
28894 | if (SWIG_IsTmpObj(res2)) { | |
28895 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28896 | } else { | |
28897 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28898 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28899 | } | |
28900 | if (SWIG_IsTmpObj(res3)) { | |
28901 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28902 | } else { | |
28903 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28904 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28905 | } | |
28906 | return resultobj; | |
28907 | fail: | |
28908 | return NULL; | |
28909 | } | |
28910 | ||
28911 | ||
28912 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28913 | PyObject *resultobj = 0; | |
28914 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28915 | int arg2 ; | |
28916 | int arg3 ; | |
28917 | void *argp1 = 0 ; | |
28918 | int res1 = 0 ; | |
28919 | int val2 ; | |
28920 | int ecode2 = 0 ; | |
28921 | int val3 ; | |
28922 | int ecode3 = 0 ; | |
28923 | PyObject * obj0 = 0 ; | |
28924 | PyObject * obj1 = 0 ; | |
28925 | PyObject * obj2 = 0 ; | |
28926 | char * kwnames[] = { | |
28927 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28928 | }; | |
28929 | ||
28930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28932 | if (!SWIG_IsOK(res1)) { | |
28933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28934 | } | |
28935 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28936 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28937 | if (!SWIG_IsOK(ecode2)) { | |
28938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
28939 | } | |
28940 | arg2 = static_cast< int >(val2); | |
28941 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28942 | if (!SWIG_IsOK(ecode3)) { | |
28943 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
28944 | } | |
28945 | arg3 = static_cast< int >(val3); | |
28946 | { | |
28947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28948 | (arg1)->SetPPIScreen(arg2,arg3); | |
28949 | wxPyEndAllowThreads(__tstate); | |
28950 | if (PyErr_Occurred()) SWIG_fail; | |
28951 | } | |
28952 | resultobj = SWIG_Py_Void(); | |
28953 | return resultobj; | |
28954 | fail: | |
28955 | return NULL; | |
28956 | } | |
28957 | ||
28958 | ||
28959 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28960 | PyObject *resultobj = 0; | |
28961 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28962 | int *arg2 = (int *) 0 ; | |
28963 | int *arg3 = (int *) 0 ; | |
28964 | void *argp1 = 0 ; | |
28965 | int res1 = 0 ; | |
28966 | int temp2 ; | |
28967 | int res2 = SWIG_TMPOBJ ; | |
28968 | int temp3 ; | |
28969 | int res3 = SWIG_TMPOBJ ; | |
28970 | PyObject *swig_obj[1] ; | |
28971 | ||
28972 | arg2 = &temp2; | |
28973 | arg3 = &temp3; | |
28974 | if (!args) SWIG_fail; | |
28975 | swig_obj[0] = args; | |
28976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28977 | if (!SWIG_IsOK(res1)) { | |
28978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28979 | } | |
28980 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28981 | { | |
28982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28983 | (arg1)->GetPPIScreen(arg2,arg3); | |
28984 | wxPyEndAllowThreads(__tstate); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | resultobj = SWIG_Py_Void(); | |
28988 | if (SWIG_IsTmpObj(res2)) { | |
28989 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28990 | } else { | |
28991 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28992 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28993 | } | |
28994 | if (SWIG_IsTmpObj(res3)) { | |
28995 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28996 | } else { | |
28997 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28998 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28999 | } | |
29000 | return resultobj; | |
29001 | fail: | |
29002 | return NULL; | |
29003 | } | |
29004 | ||
29005 | ||
29006 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29007 | PyObject *resultobj = 0; | |
29008 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29009 | int arg2 ; | |
29010 | int arg3 ; | |
29011 | void *argp1 = 0 ; | |
29012 | int res1 = 0 ; | |
29013 | int val2 ; | |
29014 | int ecode2 = 0 ; | |
29015 | int val3 ; | |
29016 | int ecode3 = 0 ; | |
29017 | PyObject * obj0 = 0 ; | |
29018 | PyObject * obj1 = 0 ; | |
29019 | PyObject * obj2 = 0 ; | |
29020 | char * kwnames[] = { | |
29021 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29022 | }; | |
29023 | ||
29024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29026 | if (!SWIG_IsOK(res1)) { | |
29027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29028 | } | |
29029 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29031 | if (!SWIG_IsOK(ecode2)) { | |
29032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
29033 | } | |
29034 | arg2 = static_cast< int >(val2); | |
29035 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29036 | if (!SWIG_IsOK(ecode3)) { | |
29037 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
29038 | } | |
29039 | arg3 = static_cast< int >(val3); | |
29040 | { | |
29041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29042 | (arg1)->SetPPIPrinter(arg2,arg3); | |
29043 | wxPyEndAllowThreads(__tstate); | |
29044 | if (PyErr_Occurred()) SWIG_fail; | |
29045 | } | |
29046 | resultobj = SWIG_Py_Void(); | |
29047 | return resultobj; | |
29048 | fail: | |
29049 | return NULL; | |
29050 | } | |
29051 | ||
29052 | ||
29053 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29054 | PyObject *resultobj = 0; | |
29055 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29056 | int *arg2 = (int *) 0 ; | |
29057 | int *arg3 = (int *) 0 ; | |
29058 | void *argp1 = 0 ; | |
29059 | int res1 = 0 ; | |
29060 | int temp2 ; | |
29061 | int res2 = SWIG_TMPOBJ ; | |
29062 | int temp3 ; | |
29063 | int res3 = SWIG_TMPOBJ ; | |
29064 | PyObject *swig_obj[1] ; | |
29065 | ||
29066 | arg2 = &temp2; | |
29067 | arg3 = &temp3; | |
29068 | if (!args) SWIG_fail; | |
29069 | swig_obj[0] = args; | |
29070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29071 | if (!SWIG_IsOK(res1)) { | |
29072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29073 | } | |
29074 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29075 | { | |
29076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29077 | (arg1)->GetPPIPrinter(arg2,arg3); | |
29078 | wxPyEndAllowThreads(__tstate); | |
29079 | if (PyErr_Occurred()) SWIG_fail; | |
29080 | } | |
29081 | resultobj = SWIG_Py_Void(); | |
29082 | if (SWIG_IsTmpObj(res2)) { | |
29083 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
29084 | } else { | |
29085 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29086 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
29087 | } | |
29088 | if (SWIG_IsTmpObj(res3)) { | |
29089 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
29090 | } else { | |
29091 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29092 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
29093 | } | |
29094 | return resultobj; | |
29095 | fail: | |
29096 | return NULL; | |
d14a1e28 RD |
29097 | } |
29098 | ||
29099 | ||
70d7cb34 RD |
29100 | SWIGINTERN PyObject *_wrap_Printout_SetPaperRectPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29101 | PyObject *resultobj = 0; | |
29102 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29103 | wxRect *arg2 = 0 ; | |
29104 | void *argp1 = 0 ; | |
29105 | int res1 = 0 ; | |
29106 | wxRect temp2 ; | |
29107 | PyObject * obj0 = 0 ; | |
29108 | PyObject * obj1 = 0 ; | |
29109 | char * kwnames[] = { | |
29110 | (char *) "self",(char *) "paperRectPixels", NULL | |
29111 | }; | |
29112 | ||
29113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetPaperRectPixels",kwnames,&obj0,&obj1)) SWIG_fail; | |
29114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29115 | if (!SWIG_IsOK(res1)) { | |
29116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPaperRectPixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29117 | } | |
29118 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29119 | { | |
29120 | arg2 = &temp2; | |
29121 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29122 | } | |
29123 | { | |
29124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29125 | (arg1)->SetPaperRectPixels((wxRect const &)*arg2); | |
29126 | wxPyEndAllowThreads(__tstate); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
29128 | } | |
29129 | resultobj = SWIG_Py_Void(); | |
29130 | return resultobj; | |
29131 | fail: | |
29132 | return NULL; | |
29133 | } | |
29134 | ||
29135 | ||
29136 | SWIGINTERN PyObject *_wrap_Printout_GetPaperRectPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29137 | PyObject *resultobj = 0; | |
29138 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29139 | wxRect result; | |
29140 | void *argp1 = 0 ; | |
29141 | int res1 = 0 ; | |
29142 | PyObject *swig_obj[1] ; | |
29143 | ||
29144 | if (!args) SWIG_fail; | |
29145 | swig_obj[0] = args; | |
29146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29147 | if (!SWIG_IsOK(res1)) { | |
29148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPaperRectPixels" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
29149 | } | |
29150 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29151 | { | |
29152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29153 | result = ((wxPyPrintout const *)arg1)->GetPaperRectPixels(); | |
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | return NULL; | |
29161 | } | |
29162 | ||
29163 | ||
0085ce49 RD |
29164 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29165 | PyObject *resultobj = 0; | |
29166 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29167 | bool result; | |
29168 | void *argp1 = 0 ; | |
29169 | int res1 = 0 ; | |
29170 | PyObject *swig_obj[1] ; | |
29171 | ||
29172 | if (!args) SWIG_fail; | |
29173 | swig_obj[0] = args; | |
29174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29175 | if (!SWIG_IsOK(res1)) { | |
29176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29177 | } | |
29178 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29179 | { | |
29180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29181 | result = (bool)(arg1)->IsPreview(); | |
29182 | wxPyEndAllowThreads(__tstate); | |
29183 | if (PyErr_Occurred()) SWIG_fail; | |
29184 | } | |
29185 | { | |
29186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29187 | } | |
29188 | return resultobj; | |
29189 | fail: | |
29190 | return NULL; | |
29191 | } | |
29192 | ||
29193 | ||
29194 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29195 | PyObject *resultobj = 0; | |
29196 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29197 | bool arg2 ; | |
29198 | void *argp1 = 0 ; | |
29199 | int res1 = 0 ; | |
29200 | bool val2 ; | |
29201 | int ecode2 = 0 ; | |
29202 | PyObject * obj0 = 0 ; | |
29203 | PyObject * obj1 = 0 ; | |
29204 | char * kwnames[] = { | |
29205 | (char *) "self",(char *) "p", NULL | |
29206 | }; | |
29207 | ||
29208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
29209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29210 | if (!SWIG_IsOK(res1)) { | |
29211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29212 | } | |
29213 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29214 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29215 | if (!SWIG_IsOK(ecode2)) { | |
29216 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
29217 | } | |
29218 | arg2 = static_cast< bool >(val2); | |
29219 | { | |
29220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29221 | (arg1)->SetIsPreview(arg2); | |
29222 | wxPyEndAllowThreads(__tstate); | |
29223 | if (PyErr_Occurred()) SWIG_fail; | |
29224 | } | |
29225 | resultobj = SWIG_Py_Void(); | |
29226 | return resultobj; | |
29227 | fail: | |
29228 | return NULL; | |
29229 | } | |
29230 | ||
29231 | ||
29232 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29233 | PyObject *resultobj = 0; | |
29234 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29235 | int arg2 ; | |
29236 | int arg3 ; | |
29237 | bool result; | |
29238 | void *argp1 = 0 ; | |
29239 | int res1 = 0 ; | |
29240 | int val2 ; | |
29241 | int ecode2 = 0 ; | |
29242 | int val3 ; | |
29243 | int ecode3 = 0 ; | |
29244 | PyObject * obj0 = 0 ; | |
29245 | PyObject * obj1 = 0 ; | |
29246 | PyObject * obj2 = 0 ; | |
29247 | char * kwnames[] = { | |
29248 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
29249 | }; | |
29250 | ||
29251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29253 | if (!SWIG_IsOK(res1)) { | |
29254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29255 | } | |
29256 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29257 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29258 | if (!SWIG_IsOK(ecode2)) { | |
29259 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
29260 | } | |
29261 | arg2 = static_cast< int >(val2); | |
29262 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29263 | if (!SWIG_IsOK(ecode3)) { | |
29264 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
29265 | } | |
29266 | arg3 = static_cast< int >(val3); | |
29267 | { | |
29268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29269 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
29270 | wxPyEndAllowThreads(__tstate); | |
29271 | if (PyErr_Occurred()) SWIG_fail; | |
29272 | } | |
29273 | { | |
29274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29275 | } | |
29276 | return resultobj; | |
29277 | fail: | |
29278 | return NULL; | |
d14a1e28 RD |
29279 | } |
29280 | ||
29281 | ||
0085ce49 RD |
29282 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29283 | PyObject *resultobj = 0; | |
29284 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29285 | void *argp1 = 0 ; | |
29286 | int res1 = 0 ; | |
29287 | PyObject *swig_obj[1] ; | |
29288 | ||
29289 | if (!args) SWIG_fail; | |
29290 | swig_obj[0] = args; | |
29291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29292 | if (!SWIG_IsOK(res1)) { | |
29293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29294 | } | |
29295 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29296 | { | |
29297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29298 | (arg1)->OnEndDocument(); | |
29299 | wxPyEndAllowThreads(__tstate); | |
29300 | if (PyErr_Occurred()) SWIG_fail; | |
29301 | } | |
29302 | resultobj = SWIG_Py_Void(); | |
29303 | return resultobj; | |
29304 | fail: | |
29305 | return NULL; | |
1cb4a8aa RD |
29306 | } |
29307 | ||
29308 | ||
0085ce49 RD |
29309 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29310 | PyObject *resultobj = 0; | |
29311 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29312 | void *argp1 = 0 ; | |
29313 | int res1 = 0 ; | |
29314 | PyObject *swig_obj[1] ; | |
29315 | ||
29316 | if (!args) SWIG_fail; | |
29317 | swig_obj[0] = args; | |
29318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29319 | if (!SWIG_IsOK(res1)) { | |
29320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29321 | } | |
29322 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29323 | { | |
29324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29325 | (arg1)->OnBeginPrinting(); | |
29326 | wxPyEndAllowThreads(__tstate); | |
29327 | if (PyErr_Occurred()) SWIG_fail; | |
29328 | } | |
29329 | resultobj = SWIG_Py_Void(); | |
29330 | return resultobj; | |
29331 | fail: | |
29332 | return NULL; | |
d14a1e28 RD |
29333 | } |
29334 | ||
29335 | ||
0085ce49 RD |
29336 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29337 | PyObject *resultobj = 0; | |
29338 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29339 | void *argp1 = 0 ; | |
29340 | int res1 = 0 ; | |
29341 | PyObject *swig_obj[1] ; | |
29342 | ||
29343 | if (!args) SWIG_fail; | |
29344 | swig_obj[0] = args; | |
29345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29346 | if (!SWIG_IsOK(res1)) { | |
29347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29348 | } | |
29349 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29350 | { | |
29351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29352 | (arg1)->OnEndPrinting(); | |
29353 | wxPyEndAllowThreads(__tstate); | |
29354 | if (PyErr_Occurred()) SWIG_fail; | |
29355 | } | |
29356 | resultobj = SWIG_Py_Void(); | |
29357 | return resultobj; | |
29358 | fail: | |
29359 | return NULL; | |
db3e571a RD |
29360 | } |
29361 | ||
29362 | ||
0085ce49 RD |
29363 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29364 | PyObject *resultobj = 0; | |
29365 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29366 | void *argp1 = 0 ; | |
29367 | int res1 = 0 ; | |
29368 | PyObject *swig_obj[1] ; | |
29369 | ||
29370 | if (!args) SWIG_fail; | |
29371 | swig_obj[0] = args; | |
29372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29373 | if (!SWIG_IsOK(res1)) { | |
29374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29375 | } | |
29376 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29377 | { | |
29378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29379 | (arg1)->OnPreparePrinting(); | |
29380 | wxPyEndAllowThreads(__tstate); | |
29381 | if (PyErr_Occurred()) SWIG_fail; | |
29382 | } | |
29383 | resultobj = SWIG_Py_Void(); | |
29384 | return resultobj; | |
29385 | fail: | |
29386 | return NULL; | |
29387 | } | |
29388 | ||
29389 | ||
29390 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29391 | PyObject *resultobj = 0; | |
29392 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29393 | int arg2 ; | |
29394 | bool result; | |
29395 | void *argp1 = 0 ; | |
29396 | int res1 = 0 ; | |
29397 | int val2 ; | |
29398 | int ecode2 = 0 ; | |
29399 | PyObject * obj0 = 0 ; | |
29400 | PyObject * obj1 = 0 ; | |
29401 | char * kwnames[] = { | |
29402 | (char *) "self",(char *) "page", NULL | |
29403 | }; | |
29404 | ||
29405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29407 | if (!SWIG_IsOK(res1)) { | |
29408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29409 | } | |
29410 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29412 | if (!SWIG_IsOK(ecode2)) { | |
29413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
29414 | } | |
29415 | arg2 = static_cast< int >(val2); | |
29416 | { | |
29417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29418 | result = (bool)(arg1)->HasPage(arg2); | |
29419 | wxPyEndAllowThreads(__tstate); | |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | } | |
29422 | { | |
29423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29424 | } | |
29425 | return resultobj; | |
29426 | fail: | |
29427 | return NULL; | |
29428 | } | |
29429 | ||
29430 | ||
29431 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29432 | PyObject *resultobj = 0; | |
29433 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29434 | int *arg2 = (int *) 0 ; | |
29435 | int *arg3 = (int *) 0 ; | |
29436 | int *arg4 = (int *) 0 ; | |
29437 | int *arg5 = (int *) 0 ; | |
29438 | void *argp1 = 0 ; | |
29439 | int res1 = 0 ; | |
29440 | int temp2 ; | |
29441 | int res2 = SWIG_TMPOBJ ; | |
29442 | int temp3 ; | |
29443 | int res3 = SWIG_TMPOBJ ; | |
29444 | int temp4 ; | |
29445 | int res4 = SWIG_TMPOBJ ; | |
29446 | int temp5 ; | |
29447 | int res5 = SWIG_TMPOBJ ; | |
29448 | PyObject *swig_obj[1] ; | |
29449 | ||
29450 | arg2 = &temp2; | |
29451 | arg3 = &temp3; | |
29452 | arg4 = &temp4; | |
29453 | arg5 = &temp5; | |
29454 | if (!args) SWIG_fail; | |
29455 | swig_obj[0] = args; | |
29456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29457 | if (!SWIG_IsOK(res1)) { | |
29458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29459 | } | |
29460 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29461 | { | |
29462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29463 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
29464 | wxPyEndAllowThreads(__tstate); | |
29465 | if (PyErr_Occurred()) SWIG_fail; | |
29466 | } | |
29467 | resultobj = SWIG_Py_Void(); | |
29468 | if (SWIG_IsTmpObj(res2)) { | |
29469 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
29470 | } else { | |
29471 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29472 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
29473 | } | |
29474 | if (SWIG_IsTmpObj(res3)) { | |
29475 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
29476 | } else { | |
29477 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29478 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
29479 | } | |
29480 | if (SWIG_IsTmpObj(res4)) { | |
29481 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
29482 | } else { | |
29483 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29484 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
29485 | } | |
29486 | if (SWIG_IsTmpObj(res5)) { | |
29487 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
29488 | } else { | |
29489 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29490 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
29491 | } | |
29492 | return resultobj; | |
29493 | fail: | |
29494 | return NULL; | |
29495 | } | |
29496 | ||
29497 | ||
29498 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29499 | PyObject *obj; | |
29500 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29501 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
29502 | return SWIG_Py_Void(); | |
29503 | } | |
29504 | ||
29505 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29506 | return SWIG_Python_InitShadowInstance(args); | |
29507 | } | |
29508 | ||
29509 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29510 | PyObject *resultobj = 0; | |
29511 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29513 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29514 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29515 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29516 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29517 | long arg5 = (long) 0 ; | |
29518 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
29519 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29520 | wxPreviewCanvas *result = 0 ; | |
29521 | void *argp1 = 0 ; | |
29522 | int res1 = 0 ; | |
29523 | void *argp2 = 0 ; | |
29524 | int res2 = 0 ; | |
29525 | wxPoint temp3 ; | |
29526 | wxSize temp4 ; | |
29527 | long val5 ; | |
29528 | int ecode5 = 0 ; | |
29529 | bool temp6 = false ; | |
29530 | PyObject * obj0 = 0 ; | |
29531 | PyObject * obj1 = 0 ; | |
29532 | PyObject * obj2 = 0 ; | |
29533 | PyObject * obj3 = 0 ; | |
29534 | PyObject * obj4 = 0 ; | |
29535 | PyObject * obj5 = 0 ; | |
29536 | char * kwnames[] = { | |
29537 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29538 | }; | |
29539 | ||
29540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29542 | if (!SWIG_IsOK(res1)) { | |
29543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29544 | } | |
29545 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29546 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29547 | if (!SWIG_IsOK(res2)) { | |
29548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29549 | } | |
29550 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
29551 | if (obj2) { | |
093d3ff1 | 29552 | { |
0085ce49 RD |
29553 | arg3 = &temp3; |
29554 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 29555 | } |
0085ce49 RD |
29556 | } |
29557 | if (obj3) { | |
093d3ff1 | 29558 | { |
0085ce49 RD |
29559 | arg4 = &temp4; |
29560 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
994141e6 | 29561 | } |
0085ce49 RD |
29562 | } |
29563 | if (obj4) { | |
29564 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
29565 | if (!SWIG_IsOK(ecode5)) { | |
29566 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
29567 | } | |
29568 | arg5 = static_cast< long >(val5); | |
29569 | } | |
29570 | if (obj5) { | |
d14a1e28 | 29571 | { |
0085ce49 RD |
29572 | arg6 = wxString_in_helper(obj5); |
29573 | if (arg6 == NULL) SWIG_fail; | |
29574 | temp6 = true; | |
093d3ff1 | 29575 | } |
0085ce49 RD |
29576 | } |
29577 | { | |
29578 | if (!wxPyCheckForApp()) SWIG_fail; | |
29579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29580 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
29581 | wxPyEndAllowThreads(__tstate); | |
29582 | if (PyErr_Occurred()) SWIG_fail; | |
29583 | } | |
29584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
29585 | { | |
29586 | if (temp6) | |
29587 | delete arg6; | |
29588 | } | |
29589 | return resultobj; | |
29590 | fail: | |
29591 | { | |
29592 | if (temp6) | |
29593 | delete arg6; | |
29594 | } | |
29595 | return NULL; | |
29596 | } | |
29597 | ||
29598 | ||
29599 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29600 | PyObject *obj; | |
29601 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29602 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
29603 | return SWIG_Py_Void(); | |
29604 | } | |
29605 | ||
29606 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29607 | return SWIG_Python_InitShadowInstance(args); | |
29608 | } | |
29609 | ||
29610 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29611 | PyObject *resultobj = 0; | |
29612 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29613 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29614 | wxString *arg3 = 0 ; | |
29615 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29616 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29617 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29618 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29619 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
29620 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
29621 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29622 | wxPreviewFrame *result = 0 ; | |
29623 | int res1 = 0 ; | |
29624 | void *argp2 = 0 ; | |
29625 | int res2 = 0 ; | |
29626 | bool temp3 = false ; | |
29627 | wxPoint temp4 ; | |
29628 | wxSize temp5 ; | |
29629 | long val6 ; | |
29630 | int ecode6 = 0 ; | |
29631 | bool temp7 = false ; | |
29632 | PyObject * obj0 = 0 ; | |
29633 | PyObject * obj1 = 0 ; | |
29634 | PyObject * obj2 = 0 ; | |
29635 | PyObject * obj3 = 0 ; | |
29636 | PyObject * obj4 = 0 ; | |
29637 | PyObject * obj5 = 0 ; | |
29638 | PyObject * obj6 = 0 ; | |
29639 | char * kwnames[] = { | |
29640 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29641 | }; | |
29642 | ||
29643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29644 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29645 | if (!SWIG_IsOK(res1)) { | |
29646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29647 | } | |
29648 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29649 | if (!SWIG_IsOK(res2)) { | |
29650 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29651 | } | |
29652 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29653 | { | |
29654 | arg3 = wxString_in_helper(obj2); | |
29655 | if (arg3 == NULL) SWIG_fail; | |
29656 | temp3 = true; | |
29657 | } | |
29658 | if (obj3) { | |
093d3ff1 | 29659 | { |
0085ce49 RD |
29660 | arg4 = &temp4; |
29661 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 29662 | } |
0085ce49 RD |
29663 | } |
29664 | if (obj4) { | |
d14a1e28 | 29665 | { |
0085ce49 RD |
29666 | arg5 = &temp5; |
29667 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 29668 | } |
0085ce49 RD |
29669 | } |
29670 | if (obj5) { | |
29671 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29672 | if (!SWIG_IsOK(ecode6)) { | |
29673 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
29674 | } | |
29675 | arg6 = static_cast< long >(val6); | |
29676 | } | |
29677 | if (obj6) { | |
093d3ff1 | 29678 | { |
0085ce49 RD |
29679 | arg7 = wxString_in_helper(obj6); |
29680 | if (arg7 == NULL) SWIG_fail; | |
29681 | temp7 = true; | |
093d3ff1 | 29682 | } |
0085ce49 RD |
29683 | } |
29684 | { | |
29685 | if (!wxPyCheckForApp()) SWIG_fail; | |
29686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29687 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29688 | wxPyEndAllowThreads(__tstate); | |
29689 | if (PyErr_Occurred()) SWIG_fail; | |
29690 | } | |
29691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
29692 | { | |
29693 | if (temp3) | |
29694 | delete arg3; | |
29695 | } | |
29696 | { | |
29697 | if (temp7) | |
29698 | delete arg7; | |
29699 | } | |
29700 | return resultobj; | |
29701 | fail: | |
29702 | { | |
29703 | if (temp3) | |
29704 | delete arg3; | |
29705 | } | |
29706 | { | |
29707 | if (temp7) | |
29708 | delete arg7; | |
29709 | } | |
29710 | return NULL; | |
d14a1e28 RD |
29711 | } |
29712 | ||
29713 | ||
0085ce49 RD |
29714 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29715 | PyObject *resultobj = 0; | |
29716 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29717 | void *argp1 = 0 ; | |
29718 | int res1 = 0 ; | |
29719 | PyObject *swig_obj[1] ; | |
29720 | ||
29721 | if (!args) SWIG_fail; | |
29722 | swig_obj[0] = args; | |
29723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29724 | if (!SWIG_IsOK(res1)) { | |
29725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29726 | } | |
29727 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29728 | { | |
29729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29730 | (arg1)->Initialize(); | |
29731 | wxPyEndAllowThreads(__tstate); | |
29732 | if (PyErr_Occurred()) SWIG_fail; | |
29733 | } | |
29734 | resultobj = SWIG_Py_Void(); | |
29735 | return resultobj; | |
29736 | fail: | |
29737 | return NULL; | |
d14a1e28 RD |
29738 | } |
29739 | ||
29740 | ||
0085ce49 RD |
29741 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29742 | PyObject *resultobj = 0; | |
29743 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29744 | void *argp1 = 0 ; | |
29745 | int res1 = 0 ; | |
29746 | PyObject *swig_obj[1] ; | |
29747 | ||
29748 | if (!args) SWIG_fail; | |
29749 | swig_obj[0] = args; | |
29750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29751 | if (!SWIG_IsOK(res1)) { | |
29752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29753 | } | |
29754 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29755 | { | |
29756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29757 | (arg1)->CreateControlBar(); | |
29758 | wxPyEndAllowThreads(__tstate); | |
29759 | if (PyErr_Occurred()) SWIG_fail; | |
29760 | } | |
29761 | resultobj = SWIG_Py_Void(); | |
29762 | return resultobj; | |
29763 | fail: | |
29764 | return NULL; | |
d14a1e28 RD |
29765 | } |
29766 | ||
29767 | ||
0085ce49 RD |
29768 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29769 | PyObject *resultobj = 0; | |
29770 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29771 | void *argp1 = 0 ; | |
29772 | int res1 = 0 ; | |
29773 | PyObject *swig_obj[1] ; | |
29774 | ||
29775 | if (!args) SWIG_fail; | |
29776 | swig_obj[0] = args; | |
29777 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29778 | if (!SWIG_IsOK(res1)) { | |
29779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29780 | } | |
29781 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29782 | { | |
29783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29784 | (arg1)->CreateCanvas(); | |
29785 | wxPyEndAllowThreads(__tstate); | |
29786 | if (PyErr_Occurred()) SWIG_fail; | |
29787 | } | |
29788 | resultobj = SWIG_Py_Void(); | |
29789 | return resultobj; | |
29790 | fail: | |
29791 | return NULL; | |
d14a1e28 RD |
29792 | } |
29793 | ||
29794 | ||
0085ce49 RD |
29795 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29796 | PyObject *resultobj = 0; | |
29797 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29798 | wxPreviewControlBar *result = 0 ; | |
29799 | void *argp1 = 0 ; | |
29800 | int res1 = 0 ; | |
29801 | PyObject *swig_obj[1] ; | |
29802 | ||
29803 | if (!args) SWIG_fail; | |
29804 | swig_obj[0] = args; | |
29805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29806 | if (!SWIG_IsOK(res1)) { | |
29807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
29808 | } | |
29809 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29810 | { | |
29811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29812 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
29813 | wxPyEndAllowThreads(__tstate); | |
29814 | if (PyErr_Occurred()) SWIG_fail; | |
29815 | } | |
29816 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29817 | return resultobj; | |
29818 | fail: | |
29819 | return NULL; | |
29820 | } | |
29821 | ||
29822 | ||
29823 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29824 | PyObject *obj; | |
29825 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29826 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
29827 | return SWIG_Py_Void(); | |
29828 | } | |
29829 | ||
29830 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29831 | return SWIG_Python_InitShadowInstance(args); | |
29832 | } | |
29833 | ||
29834 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29835 | PyObject *resultobj = 0; | |
29836 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29837 | long arg2 ; | |
29838 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29839 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29840 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29841 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29842 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29843 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
29844 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
29845 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29846 | wxPreviewControlBar *result = 0 ; | |
29847 | void *argp1 = 0 ; | |
29848 | int res1 = 0 ; | |
29849 | long val2 ; | |
29850 | int ecode2 = 0 ; | |
29851 | void *argp3 = 0 ; | |
29852 | int res3 = 0 ; | |
29853 | wxPoint temp4 ; | |
29854 | wxSize temp5 ; | |
29855 | long val6 ; | |
29856 | int ecode6 = 0 ; | |
29857 | bool temp7 = false ; | |
29858 | PyObject * obj0 = 0 ; | |
29859 | PyObject * obj1 = 0 ; | |
29860 | PyObject * obj2 = 0 ; | |
29861 | PyObject * obj3 = 0 ; | |
29862 | PyObject * obj4 = 0 ; | |
29863 | PyObject * obj5 = 0 ; | |
29864 | PyObject * obj6 = 0 ; | |
29865 | char * kwnames[] = { | |
29866 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29867 | }; | |
29868 | ||
29869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29871 | if (!SWIG_IsOK(res1)) { | |
29872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29873 | } | |
29874 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29875 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29876 | if (!SWIG_IsOK(ecode2)) { | |
29877 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
29878 | } | |
29879 | arg2 = static_cast< long >(val2); | |
29880 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29881 | if (!SWIG_IsOK(res3)) { | |
29882 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
29883 | } | |
29884 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
29885 | if (obj3) { | |
d14a1e28 | 29886 | { |
0085ce49 RD |
29887 | arg4 = &temp4; |
29888 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 29889 | } |
0085ce49 RD |
29890 | } |
29891 | if (obj4) { | |
d14a1e28 | 29892 | { |
0085ce49 RD |
29893 | arg5 = &temp5; |
29894 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 29895 | } |
0085ce49 RD |
29896 | } |
29897 | if (obj5) { | |
29898 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29899 | if (!SWIG_IsOK(ecode6)) { | |
29900 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
29901 | } | |
29902 | arg6 = static_cast< long >(val6); | |
29903 | } | |
29904 | if (obj6) { | |
d14a1e28 | 29905 | { |
0085ce49 RD |
29906 | arg7 = wxString_in_helper(obj6); |
29907 | if (arg7 == NULL) SWIG_fail; | |
29908 | temp7 = true; | |
d14a1e28 | 29909 | } |
0085ce49 RD |
29910 | } |
29911 | { | |
29912 | if (!wxPyCheckForApp()) SWIG_fail; | |
29913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29914 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29915 | wxPyEndAllowThreads(__tstate); | |
29916 | if (PyErr_Occurred()) SWIG_fail; | |
29917 | } | |
29918 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
29919 | { | |
29920 | if (temp7) | |
29921 | delete arg7; | |
29922 | } | |
29923 | return resultobj; | |
29924 | fail: | |
29925 | { | |
29926 | if (temp7) | |
29927 | delete arg7; | |
29928 | } | |
29929 | return NULL; | |
d14a1e28 RD |
29930 | } |
29931 | ||
29932 | ||
0085ce49 RD |
29933 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29934 | PyObject *resultobj = 0; | |
29935 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29936 | int result; | |
29937 | void *argp1 = 0 ; | |
29938 | int res1 = 0 ; | |
29939 | PyObject *swig_obj[1] ; | |
29940 | ||
29941 | if (!args) SWIG_fail; | |
29942 | swig_obj[0] = args; | |
29943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29944 | if (!SWIG_IsOK(res1)) { | |
29945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29946 | } | |
29947 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29948 | { | |
29949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29950 | result = (int)(arg1)->GetZoomControl(); | |
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29955 | return resultobj; | |
29956 | fail: | |
29957 | return NULL; | |
29958 | } | |
29959 | ||
29960 | ||
29961 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29962 | PyObject *resultobj = 0; | |
29963 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29964 | int arg2 ; | |
29965 | void *argp1 = 0 ; | |
29966 | int res1 = 0 ; | |
29967 | int val2 ; | |
29968 | int ecode2 = 0 ; | |
29969 | PyObject * obj0 = 0 ; | |
29970 | PyObject * obj1 = 0 ; | |
29971 | char * kwnames[] = { | |
29972 | (char *) "self",(char *) "zoom", NULL | |
29973 | }; | |
29974 | ||
29975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
29976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29977 | if (!SWIG_IsOK(res1)) { | |
29978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29979 | } | |
29980 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29981 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29982 | if (!SWIG_IsOK(ecode2)) { | |
29983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
29984 | } | |
29985 | arg2 = static_cast< int >(val2); | |
29986 | { | |
29987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29988 | (arg1)->SetZoomControl(arg2); | |
29989 | wxPyEndAllowThreads(__tstate); | |
29990 | if (PyErr_Occurred()) SWIG_fail; | |
29991 | } | |
29992 | resultobj = SWIG_Py_Void(); | |
29993 | return resultobj; | |
29994 | fail: | |
29995 | return NULL; | |
d14a1e28 RD |
29996 | } |
29997 | ||
29998 | ||
0085ce49 RD |
29999 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30000 | PyObject *resultobj = 0; | |
30001 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30002 | wxPrintPreview *result = 0 ; | |
30003 | void *argp1 = 0 ; | |
30004 | int res1 = 0 ; | |
30005 | PyObject *swig_obj[1] ; | |
30006 | ||
30007 | if (!args) SWIG_fail; | |
30008 | swig_obj[0] = args; | |
30009 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30010 | if (!SWIG_IsOK(res1)) { | |
30011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30012 | } | |
30013 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30014 | { | |
30015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30016 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
30017 | wxPyEndAllowThreads(__tstate); | |
30018 | if (PyErr_Occurred()) SWIG_fail; | |
30019 | } | |
30020 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30021 | return resultobj; | |
30022 | fail: | |
30023 | return NULL; | |
d14a1e28 RD |
30024 | } |
30025 | ||
30026 | ||
0085ce49 RD |
30027 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30028 | PyObject *resultobj = 0; | |
30029 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30030 | void *argp1 = 0 ; | |
30031 | int res1 = 0 ; | |
30032 | PyObject *swig_obj[1] ; | |
30033 | ||
30034 | if (!args) SWIG_fail; | |
30035 | swig_obj[0] = args; | |
30036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30037 | if (!SWIG_IsOK(res1)) { | |
30038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30039 | } | |
30040 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30041 | { | |
30042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30043 | (arg1)->OnNext(); | |
30044 | wxPyEndAllowThreads(__tstate); | |
30045 | if (PyErr_Occurred()) SWIG_fail; | |
30046 | } | |
30047 | resultobj = SWIG_Py_Void(); | |
30048 | return resultobj; | |
30049 | fail: | |
30050 | return NULL; | |
d14a1e28 RD |
30051 | } |
30052 | ||
30053 | ||
0085ce49 RD |
30054 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30055 | PyObject *resultobj = 0; | |
30056 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30057 | void *argp1 = 0 ; | |
30058 | int res1 = 0 ; | |
30059 | PyObject *swig_obj[1] ; | |
30060 | ||
30061 | if (!args) SWIG_fail; | |
30062 | swig_obj[0] = args; | |
30063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30064 | if (!SWIG_IsOK(res1)) { | |
30065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30066 | } | |
30067 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30068 | { | |
30069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30070 | (arg1)->OnPrevious(); | |
30071 | wxPyEndAllowThreads(__tstate); | |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
30073 | } | |
30074 | resultobj = SWIG_Py_Void(); | |
30075 | return resultobj; | |
30076 | fail: | |
30077 | return NULL; | |
d14a1e28 RD |
30078 | } |
30079 | ||
30080 | ||
0085ce49 RD |
30081 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30082 | PyObject *resultobj = 0; | |
30083 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30084 | void *argp1 = 0 ; | |
30085 | int res1 = 0 ; | |
30086 | PyObject *swig_obj[1] ; | |
30087 | ||
30088 | if (!args) SWIG_fail; | |
30089 | swig_obj[0] = args; | |
30090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30091 | if (!SWIG_IsOK(res1)) { | |
30092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30093 | } | |
30094 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30095 | { | |
30096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30097 | (arg1)->OnFirst(); | |
30098 | wxPyEndAllowThreads(__tstate); | |
30099 | if (PyErr_Occurred()) SWIG_fail; | |
30100 | } | |
30101 | resultobj = SWIG_Py_Void(); | |
30102 | return resultobj; | |
30103 | fail: | |
30104 | return NULL; | |
d14a1e28 RD |
30105 | } |
30106 | ||
30107 | ||
0085ce49 RD |
30108 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30109 | PyObject *resultobj = 0; | |
30110 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30111 | void *argp1 = 0 ; | |
30112 | int res1 = 0 ; | |
30113 | PyObject *swig_obj[1] ; | |
30114 | ||
30115 | if (!args) SWIG_fail; | |
30116 | swig_obj[0] = args; | |
30117 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30118 | if (!SWIG_IsOK(res1)) { | |
30119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30120 | } | |
30121 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30122 | { | |
30123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30124 | (arg1)->OnLast(); | |
30125 | wxPyEndAllowThreads(__tstate); | |
30126 | if (PyErr_Occurred()) SWIG_fail; | |
30127 | } | |
30128 | resultobj = SWIG_Py_Void(); | |
30129 | return resultobj; | |
30130 | fail: | |
30131 | return NULL; | |
d14a1e28 RD |
30132 | } |
30133 | ||
30134 | ||
0085ce49 RD |
30135 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30136 | PyObject *resultobj = 0; | |
30137 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
30138 | void *argp1 = 0 ; | |
30139 | int res1 = 0 ; | |
30140 | PyObject *swig_obj[1] ; | |
30141 | ||
30142 | if (!args) SWIG_fail; | |
30143 | swig_obj[0] = args; | |
30144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30145 | if (!SWIG_IsOK(res1)) { | |
30146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
30147 | } | |
30148 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
30149 | { | |
30150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30151 | (arg1)->OnGoto(); | |
30152 | wxPyEndAllowThreads(__tstate); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | } | |
30155 | resultobj = SWIG_Py_Void(); | |
30156 | return resultobj; | |
30157 | fail: | |
30158 | return NULL; | |
d14a1e28 RD |
30159 | } |
30160 | ||
30161 | ||
0085ce49 RD |
30162 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30163 | PyObject *obj; | |
30164 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30165 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
30166 | return SWIG_Py_Void(); | |
d14a1e28 RD |
30167 | } |
30168 | ||
0085ce49 RD |
30169 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30170 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
30171 | } |
30172 | ||
0085ce49 RD |
30173 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30174 | PyObject *resultobj = 0; | |
30175 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30176 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30177 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
30178 | wxPrintPreview *result = 0 ; | |
30179 | int res1 = 0 ; | |
30180 | int res2 = 0 ; | |
30181 | void *argp3 = 0 ; | |
30182 | int res3 = 0 ; | |
30183 | ||
30184 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
30185 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30186 | if (!SWIG_IsOK(res1)) { | |
30187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30188 | } | |
30189 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30190 | if (!SWIG_IsOK(res2)) { | |
30191 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30192 | } | |
30193 | if (swig_obj[2]) { | |
30194 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30195 | if (!SWIG_IsOK(res3)) { | |
30196 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
1cb4a8aa | 30197 | } |
0085ce49 RD |
30198 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
30199 | } | |
30200 | { | |
30201 | if (!wxPyCheckForApp()) SWIG_fail; | |
30202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30203 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
30204 | wxPyEndAllowThreads(__tstate); | |
30205 | if (PyErr_Occurred()) SWIG_fail; | |
30206 | } | |
30207 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30208 | return resultobj; | |
30209 | fail: | |
30210 | return NULL; | |
30211 | } | |
30212 | ||
30213 | ||
30214 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30215 | PyObject *resultobj = 0; | |
30216 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30217 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30218 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
30219 | wxPrintPreview *result = 0 ; | |
30220 | int res1 = 0 ; | |
30221 | int res2 = 0 ; | |
30222 | void *argp3 = 0 ; | |
30223 | int res3 = 0 ; | |
30224 | ||
30225 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
30226 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30227 | if (!SWIG_IsOK(res1)) { | |
30228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30229 | } | |
30230 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30231 | if (!SWIG_IsOK(res2)) { | |
30232 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30233 | } | |
30234 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
30235 | if (!SWIG_IsOK(res3)) { | |
30236 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
30237 | } | |
30238 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
30239 | { | |
30240 | if (!wxPyCheckForApp()) SWIG_fail; | |
30241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30242 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
30243 | wxPyEndAllowThreads(__tstate); | |
30244 | if (PyErr_Occurred()) SWIG_fail; | |
30245 | } | |
30246 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30247 | return resultobj; | |
30248 | fail: | |
30249 | return NULL; | |
1cb4a8aa RD |
30250 | } |
30251 | ||
30252 | ||
0085ce49 RD |
30253 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
30254 | int argc; | |
30255 | PyObject *argv[4]; | |
30256 | ||
30257 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
30258 | --argc; | |
30259 | if ((argc >= 2) && (argc <= 3)) { | |
30260 | int _v = 0; | |
30261 | if (argc > 2) { | |
30262 | { | |
30263 | void *vptr = 0; | |
30264 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
30265 | _v = SWIG_CheckState(res); | |
30266 | } | |
30267 | if (!_v) goto check_1; | |
db3e571a | 30268 | } |
0085ce49 RD |
30269 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
30270 | } | |
30271 | check_1: | |
30272 | ||
30273 | if (argc == 3) { | |
30274 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
30275 | } | |
30276 | ||
30277 | fail: | |
30278 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
30279 | return NULL; | |
db3e571a RD |
30280 | } |
30281 | ||
30282 | ||
0085ce49 RD |
30283 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30284 | PyObject *resultobj = 0; | |
30285 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30286 | void *argp1 = 0 ; | |
30287 | int res1 = 0 ; | |
30288 | PyObject *swig_obj[1] ; | |
30289 | ||
30290 | if (!args) SWIG_fail; | |
30291 | swig_obj[0] = args; | |
30292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
30293 | if (!SWIG_IsOK(res1)) { | |
30294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30295 | } | |
30296 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30297 | { | |
30298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30299 | delete arg1; | |
30300 | ||
30301 | wxPyEndAllowThreads(__tstate); | |
30302 | if (PyErr_Occurred()) SWIG_fail; | |
30303 | } | |
30304 | resultobj = SWIG_Py_Void(); | |
30305 | return resultobj; | |
30306 | fail: | |
30307 | return NULL; | |
30308 | } | |
30309 | ||
30310 | ||
30311 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30312 | PyObject *resultobj = 0; | |
30313 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30314 | int arg2 ; | |
30315 | bool result; | |
30316 | void *argp1 = 0 ; | |
30317 | int res1 = 0 ; | |
30318 | int val2 ; | |
30319 | int ecode2 = 0 ; | |
30320 | PyObject * obj0 = 0 ; | |
30321 | PyObject * obj1 = 0 ; | |
30322 | char * kwnames[] = { | |
30323 | (char *) "self",(char *) "pageNum", NULL | |
30324 | }; | |
30325 | ||
30326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
30327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30328 | if (!SWIG_IsOK(res1)) { | |
30329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30330 | } | |
30331 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30332 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30333 | if (!SWIG_IsOK(ecode2)) { | |
30334 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
30335 | } | |
30336 | arg2 = static_cast< int >(val2); | |
30337 | { | |
30338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30339 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | { | |
30344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30345 | } | |
30346 | return resultobj; | |
30347 | fail: | |
30348 | return NULL; | |
8d38bd1d RD |
30349 | } |
30350 | ||
30351 | ||
0085ce49 RD |
30352 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30353 | PyObject *resultobj = 0; | |
30354 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30355 | int result; | |
30356 | void *argp1 = 0 ; | |
30357 | int res1 = 0 ; | |
30358 | PyObject *swig_obj[1] ; | |
30359 | ||
30360 | if (!args) SWIG_fail; | |
30361 | swig_obj[0] = args; | |
30362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30363 | if (!SWIG_IsOK(res1)) { | |
30364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30365 | } | |
30366 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30367 | { | |
30368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30369 | result = (int)(arg1)->GetCurrentPage(); | |
30370 | wxPyEndAllowThreads(__tstate); | |
30371 | if (PyErr_Occurred()) SWIG_fail; | |
30372 | } | |
30373 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30374 | return resultobj; | |
30375 | fail: | |
30376 | return NULL; | |
30377 | } | |
30378 | ||
30379 | ||
30380 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30381 | PyObject *resultobj = 0; | |
30382 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30383 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30384 | void *argp1 = 0 ; | |
30385 | int res1 = 0 ; | |
30386 | int res2 = 0 ; | |
30387 | PyObject * obj0 = 0 ; | |
30388 | PyObject * obj1 = 0 ; | |
30389 | char * kwnames[] = { | |
30390 | (char *) "self",(char *) "printout", NULL | |
30391 | }; | |
30392 | ||
30393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
30394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30395 | if (!SWIG_IsOK(res1)) { | |
30396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30397 | } | |
30398 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30399 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30400 | if (!SWIG_IsOK(res2)) { | |
30401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30402 | } | |
30403 | { | |
30404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30405 | (arg1)->SetPrintout(arg2); | |
30406 | wxPyEndAllowThreads(__tstate); | |
30407 | if (PyErr_Occurred()) SWIG_fail; | |
30408 | } | |
30409 | resultobj = SWIG_Py_Void(); | |
30410 | return resultobj; | |
30411 | fail: | |
30412 | return NULL; | |
d14a1e28 RD |
30413 | } |
30414 | ||
30415 | ||
0085ce49 RD |
30416 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30417 | PyObject *resultobj = 0; | |
30418 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30419 | wxPyPrintout *result = 0 ; | |
30420 | void *argp1 = 0 ; | |
30421 | int res1 = 0 ; | |
30422 | PyObject *swig_obj[1] ; | |
30423 | ||
30424 | if (!args) SWIG_fail; | |
30425 | swig_obj[0] = args; | |
30426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30427 | if (!SWIG_IsOK(res1)) { | |
30428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30429 | } | |
30430 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30431 | { | |
30432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30433 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
30434 | wxPyEndAllowThreads(__tstate); | |
30435 | if (PyErr_Occurred()) SWIG_fail; | |
30436 | } | |
30437 | { | |
30438 | resultobj = wxPyMake_wxObject(result, 0); | |
30439 | } | |
30440 | return resultobj; | |
30441 | fail: | |
30442 | return NULL; | |
1cb4a8aa RD |
30443 | } |
30444 | ||
30445 | ||
0085ce49 RD |
30446 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30447 | PyObject *resultobj = 0; | |
30448 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30449 | wxPyPrintout *result = 0 ; | |
30450 | void *argp1 = 0 ; | |
30451 | int res1 = 0 ; | |
30452 | PyObject *swig_obj[1] ; | |
30453 | ||
30454 | if (!args) SWIG_fail; | |
30455 | swig_obj[0] = args; | |
30456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30457 | if (!SWIG_IsOK(res1)) { | |
30458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30459 | } | |
30460 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30461 | { | |
30462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30463 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
30464 | wxPyEndAllowThreads(__tstate); | |
30465 | if (PyErr_Occurred()) SWIG_fail; | |
30466 | } | |
30467 | { | |
30468 | resultobj = wxPyMake_wxObject(result, 0); | |
30469 | } | |
30470 | return resultobj; | |
30471 | fail: | |
30472 | return NULL; | |
30473 | } | |
30474 | ||
30475 | ||
30476 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30477 | PyObject *resultobj = 0; | |
30478 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30479 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30480 | void *argp1 = 0 ; | |
30481 | int res1 = 0 ; | |
30482 | void *argp2 = 0 ; | |
30483 | int res2 = 0 ; | |
30484 | PyObject * obj0 = 0 ; | |
30485 | PyObject * obj1 = 0 ; | |
30486 | char * kwnames[] = { | |
30487 | (char *) "self",(char *) "frame", NULL | |
30488 | }; | |
30489 | ||
30490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
30491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30492 | if (!SWIG_IsOK(res1)) { | |
30493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30494 | } | |
30495 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30496 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30497 | if (!SWIG_IsOK(res2)) { | |
30498 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30499 | } | |
30500 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30501 | { | |
30502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30503 | (arg1)->SetFrame(arg2); | |
30504 | wxPyEndAllowThreads(__tstate); | |
30505 | if (PyErr_Occurred()) SWIG_fail; | |
30506 | } | |
30507 | resultobj = SWIG_Py_Void(); | |
30508 | return resultobj; | |
30509 | fail: | |
30510 | return NULL; | |
30511 | } | |
30512 | ||
30513 | ||
30514 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30515 | PyObject *resultobj = 0; | |
30516 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30517 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30518 | void *argp1 = 0 ; | |
30519 | int res1 = 0 ; | |
30520 | void *argp2 = 0 ; | |
30521 | int res2 = 0 ; | |
30522 | PyObject * obj0 = 0 ; | |
30523 | PyObject * obj1 = 0 ; | |
30524 | char * kwnames[] = { | |
30525 | (char *) "self",(char *) "canvas", NULL | |
30526 | }; | |
30527 | ||
30528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30530 | if (!SWIG_IsOK(res1)) { | |
30531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30532 | } | |
30533 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30534 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30535 | if (!SWIG_IsOK(res2)) { | |
30536 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30537 | } | |
30538 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30539 | { | |
30540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30541 | (arg1)->SetCanvas(arg2); | |
30542 | wxPyEndAllowThreads(__tstate); | |
30543 | if (PyErr_Occurred()) SWIG_fail; | |
30544 | } | |
30545 | resultobj = SWIG_Py_Void(); | |
30546 | return resultobj; | |
30547 | fail: | |
30548 | return NULL; | |
d14a1e28 RD |
30549 | } |
30550 | ||
30551 | ||
0085ce49 RD |
30552 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30553 | PyObject *resultobj = 0; | |
30554 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30555 | wxFrame *result = 0 ; | |
30556 | void *argp1 = 0 ; | |
30557 | int res1 = 0 ; | |
30558 | PyObject *swig_obj[1] ; | |
30559 | ||
30560 | if (!args) SWIG_fail; | |
30561 | swig_obj[0] = args; | |
30562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30563 | if (!SWIG_IsOK(res1)) { | |
30564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30565 | } | |
30566 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30567 | { | |
30568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30569 | result = (wxFrame *)(arg1)->GetFrame(); | |
30570 | wxPyEndAllowThreads(__tstate); | |
30571 | if (PyErr_Occurred()) SWIG_fail; | |
30572 | } | |
30573 | { | |
30574 | resultobj = wxPyMake_wxObject(result, 0); | |
30575 | } | |
30576 | return resultobj; | |
30577 | fail: | |
30578 | return NULL; | |
db3e571a RD |
30579 | } |
30580 | ||
30581 | ||
0085ce49 RD |
30582 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30583 | PyObject *resultobj = 0; | |
30584 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30585 | wxPreviewCanvas *result = 0 ; | |
30586 | void *argp1 = 0 ; | |
30587 | int res1 = 0 ; | |
30588 | PyObject *swig_obj[1] ; | |
30589 | ||
30590 | if (!args) SWIG_fail; | |
30591 | swig_obj[0] = args; | |
30592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30593 | if (!SWIG_IsOK(res1)) { | |
30594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30595 | } | |
30596 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30597 | { | |
30598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30599 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
30600 | wxPyEndAllowThreads(__tstate); | |
30601 | if (PyErr_Occurred()) SWIG_fail; | |
30602 | } | |
30603 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30604 | return resultobj; | |
30605 | fail: | |
30606 | return NULL; | |
30607 | } | |
30608 | ||
30609 | ||
30610 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30611 | PyObject *resultobj = 0; | |
30612 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30613 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30614 | wxDC *arg3 = 0 ; | |
30615 | bool result; | |
30616 | void *argp1 = 0 ; | |
30617 | int res1 = 0 ; | |
30618 | void *argp2 = 0 ; | |
30619 | int res2 = 0 ; | |
30620 | void *argp3 = 0 ; | |
30621 | int res3 = 0 ; | |
30622 | PyObject * obj0 = 0 ; | |
30623 | PyObject * obj1 = 0 ; | |
30624 | PyObject * obj2 = 0 ; | |
30625 | char * kwnames[] = { | |
30626 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
30627 | }; | |
30628 | ||
30629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30631 | if (!SWIG_IsOK(res1)) { | |
30632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30633 | } | |
30634 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30635 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30636 | if (!SWIG_IsOK(res2)) { | |
30637 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30638 | } | |
30639 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30640 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30641 | if (!SWIG_IsOK(res3)) { | |
30642 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30643 | } | |
30644 | if (!argp3) { | |
30645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30646 | } | |
30647 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30648 | { | |
30649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30650 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
30651 | wxPyEndAllowThreads(__tstate); | |
30652 | if (PyErr_Occurred()) SWIG_fail; | |
30653 | } | |
30654 | { | |
30655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30656 | } | |
30657 | return resultobj; | |
30658 | fail: | |
30659 | return NULL; | |
30660 | } | |
30661 | ||
30662 | ||
30663 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30664 | PyObject *resultobj = 0; | |
30665 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30666 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30667 | wxDC *arg3 = 0 ; | |
30668 | bool result; | |
30669 | void *argp1 = 0 ; | |
30670 | int res1 = 0 ; | |
30671 | void *argp2 = 0 ; | |
30672 | int res2 = 0 ; | |
30673 | void *argp3 = 0 ; | |
30674 | int res3 = 0 ; | |
30675 | PyObject * obj0 = 0 ; | |
30676 | PyObject * obj1 = 0 ; | |
30677 | PyObject * obj2 = 0 ; | |
30678 | char * kwnames[] = { | |
30679 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
30680 | }; | |
30681 | ||
30682 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30683 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30684 | if (!SWIG_IsOK(res1)) { | |
30685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30686 | } | |
30687 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30688 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30689 | if (!SWIG_IsOK(res2)) { | |
30690 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30691 | } | |
30692 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30693 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30694 | if (!SWIG_IsOK(res3)) { | |
30695 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30696 | } | |
30697 | if (!argp3) { | |
30698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30699 | } | |
30700 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30701 | { | |
30702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30703 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
30704 | wxPyEndAllowThreads(__tstate); | |
30705 | if (PyErr_Occurred()) SWIG_fail; | |
30706 | } | |
30707 | { | |
30708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30709 | } | |
30710 | return resultobj; | |
30711 | fail: | |
30712 | return NULL; | |
30713 | } | |
30714 | ||
30715 | ||
30716 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30717 | PyObject *resultobj = 0; | |
30718 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30719 | int arg2 ; | |
30720 | bool result; | |
30721 | void *argp1 = 0 ; | |
30722 | int res1 = 0 ; | |
30723 | int val2 ; | |
30724 | int ecode2 = 0 ; | |
30725 | PyObject * obj0 = 0 ; | |
30726 | PyObject * obj1 = 0 ; | |
30727 | char * kwnames[] = { | |
30728 | (char *) "self",(char *) "pageNum", NULL | |
30729 | }; | |
30730 | ||
30731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
30732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30733 | if (!SWIG_IsOK(res1)) { | |
30734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30735 | } | |
30736 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30737 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30738 | if (!SWIG_IsOK(ecode2)) { | |
30739 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
30740 | } | |
30741 | arg2 = static_cast< int >(val2); | |
30742 | { | |
30743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30744 | result = (bool)(arg1)->RenderPage(arg2); | |
30745 | wxPyEndAllowThreads(__tstate); | |
30746 | if (PyErr_Occurred()) SWIG_fail; | |
30747 | } | |
30748 | { | |
30749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30750 | } | |
30751 | return resultobj; | |
30752 | fail: | |
30753 | return NULL; | |
30754 | } | |
30755 | ||
30756 | ||
30757 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30758 | PyObject *resultobj = 0; | |
30759 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30760 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30761 | void *argp1 = 0 ; | |
30762 | int res1 = 0 ; | |
30763 | void *argp2 = 0 ; | |
30764 | int res2 = 0 ; | |
30765 | PyObject * obj0 = 0 ; | |
30766 | PyObject * obj1 = 0 ; | |
30767 | char * kwnames[] = { | |
30768 | (char *) "self",(char *) "canvas", NULL | |
30769 | }; | |
30770 | ||
30771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
30772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30773 | if (!SWIG_IsOK(res1)) { | |
30774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30775 | } | |
30776 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30777 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30778 | if (!SWIG_IsOK(res2)) { | |
30779 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30780 | } | |
30781 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30782 | { | |
30783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30784 | (arg1)->AdjustScrollbars(arg2); | |
30785 | wxPyEndAllowThreads(__tstate); | |
30786 | if (PyErr_Occurred()) SWIG_fail; | |
30787 | } | |
30788 | resultobj = SWIG_Py_Void(); | |
30789 | return resultobj; | |
30790 | fail: | |
30791 | return NULL; | |
976dbff5 RD |
30792 | } |
30793 | ||
30794 | ||
0085ce49 RD |
30795 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30796 | PyObject *resultobj = 0; | |
30797 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30798 | wxPrintDialogData *result = 0 ; | |
30799 | void *argp1 = 0 ; | |
30800 | int res1 = 0 ; | |
30801 | PyObject *swig_obj[1] ; | |
30802 | ||
30803 | if (!args) SWIG_fail; | |
30804 | swig_obj[0] = args; | |
30805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30806 | if (!SWIG_IsOK(res1)) { | |
30807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30808 | } | |
30809 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30810 | { | |
30811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30812 | { |
0085ce49 RD |
30813 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
30814 | result = (wxPrintDialogData *) &_result_ref; | |
093d3ff1 | 30815 | } |
0085ce49 RD |
30816 | wxPyEndAllowThreads(__tstate); |
30817 | if (PyErr_Occurred()) SWIG_fail; | |
30818 | } | |
30819 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30820 | return resultobj; | |
30821 | fail: | |
30822 | return NULL; | |
30823 | } | |
30824 | ||
30825 | ||
30826 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30827 | PyObject *resultobj = 0; | |
30828 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30829 | int arg2 ; | |
30830 | void *argp1 = 0 ; | |
30831 | int res1 = 0 ; | |
30832 | int val2 ; | |
30833 | int ecode2 = 0 ; | |
30834 | PyObject * obj0 = 0 ; | |
30835 | PyObject * obj1 = 0 ; | |
30836 | char * kwnames[] = { | |
30837 | (char *) "self",(char *) "percent", NULL | |
30838 | }; | |
30839 | ||
30840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
30841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30842 | if (!SWIG_IsOK(res1)) { | |
30843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30844 | } | |
30845 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30846 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30847 | if (!SWIG_IsOK(ecode2)) { | |
30848 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
30849 | } | |
30850 | arg2 = static_cast< int >(val2); | |
30851 | { | |
30852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30853 | (arg1)->SetZoom(arg2); | |
30854 | wxPyEndAllowThreads(__tstate); | |
30855 | if (PyErr_Occurred()) SWIG_fail; | |
30856 | } | |
30857 | resultobj = SWIG_Py_Void(); | |
30858 | return resultobj; | |
30859 | fail: | |
30860 | return NULL; | |
d14a1e28 RD |
30861 | } |
30862 | ||
30863 | ||
0085ce49 RD |
30864 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30865 | PyObject *resultobj = 0; | |
30866 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30867 | int result; | |
30868 | void *argp1 = 0 ; | |
30869 | int res1 = 0 ; | |
30870 | PyObject *swig_obj[1] ; | |
30871 | ||
30872 | if (!args) SWIG_fail; | |
30873 | swig_obj[0] = args; | |
30874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30875 | if (!SWIG_IsOK(res1)) { | |
30876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30877 | } | |
30878 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30879 | { | |
30880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30881 | result = (int)(arg1)->GetZoom(); | |
30882 | wxPyEndAllowThreads(__tstate); | |
30883 | if (PyErr_Occurred()) SWIG_fail; | |
30884 | } | |
30885 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30886 | return resultobj; | |
30887 | fail: | |
30888 | return NULL; | |
d14a1e28 RD |
30889 | } |
30890 | ||
30891 | ||
0085ce49 RD |
30892 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30893 | PyObject *resultobj = 0; | |
30894 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30895 | int result; | |
30896 | void *argp1 = 0 ; | |
30897 | int res1 = 0 ; | |
30898 | PyObject *swig_obj[1] ; | |
30899 | ||
30900 | if (!args) SWIG_fail; | |
30901 | swig_obj[0] = args; | |
30902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30903 | if (!SWIG_IsOK(res1)) { | |
30904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30905 | } | |
30906 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30907 | { | |
30908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30909 | result = (int)(arg1)->GetMaxPage(); | |
30910 | wxPyEndAllowThreads(__tstate); | |
30911 | if (PyErr_Occurred()) SWIG_fail; | |
30912 | } | |
30913 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30914 | return resultobj; | |
30915 | fail: | |
30916 | return NULL; | |
d14a1e28 RD |
30917 | } |
30918 | ||
30919 | ||
0085ce49 RD |
30920 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30921 | PyObject *resultobj = 0; | |
30922 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30923 | int result; | |
30924 | void *argp1 = 0 ; | |
30925 | int res1 = 0 ; | |
30926 | PyObject *swig_obj[1] ; | |
30927 | ||
30928 | if (!args) SWIG_fail; | |
30929 | swig_obj[0] = args; | |
30930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30931 | if (!SWIG_IsOK(res1)) { | |
30932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30933 | } | |
30934 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30935 | { | |
30936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30937 | result = (int)(arg1)->GetMinPage(); | |
30938 | wxPyEndAllowThreads(__tstate); | |
30939 | if (PyErr_Occurred()) SWIG_fail; | |
30940 | } | |
30941 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30942 | return resultobj; | |
30943 | fail: | |
30944 | return NULL; | |
d14a1e28 RD |
30945 | } |
30946 | ||
30947 | ||
b39fe951 | 30948 | SWIGINTERN PyObject *_wrap_PrintPreview_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
30949 | PyObject *resultobj = 0; |
30950 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30951 | bool result; | |
30952 | void *argp1 = 0 ; | |
30953 | int res1 = 0 ; | |
30954 | PyObject *swig_obj[1] ; | |
30955 | ||
30956 | if (!args) SWIG_fail; | |
30957 | swig_obj[0] = args; | |
30958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30959 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_IsOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); |
0085ce49 RD |
30961 | } |
30962 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30963 | { | |
30964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 30965 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
30966 | wxPyEndAllowThreads(__tstate); |
30967 | if (PyErr_Occurred()) SWIG_fail; | |
30968 | } | |
30969 | { | |
30970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30971 | } | |
30972 | return resultobj; | |
30973 | fail: | |
30974 | return NULL; | |
30975 | } | |
30976 | ||
30977 | ||
30978 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30979 | PyObject *resultobj = 0; | |
30980 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30981 | bool arg2 ; | |
30982 | void *argp1 = 0 ; | |
30983 | int res1 = 0 ; | |
30984 | bool val2 ; | |
30985 | int ecode2 = 0 ; | |
30986 | PyObject * obj0 = 0 ; | |
30987 | PyObject * obj1 = 0 ; | |
30988 | char * kwnames[] = { | |
30989 | (char *) "self",(char *) "ok", NULL | |
30990 | }; | |
30991 | ||
30992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
30993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30994 | if (!SWIG_IsOK(res1)) { | |
30995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30996 | } | |
30997 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30998 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30999 | if (!SWIG_IsOK(ecode2)) { | |
31000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
31001 | } | |
31002 | arg2 = static_cast< bool >(val2); | |
31003 | { | |
31004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31005 | (arg1)->SetOk(arg2); | |
31006 | wxPyEndAllowThreads(__tstate); | |
31007 | if (PyErr_Occurred()) SWIG_fail; | |
31008 | } | |
31009 | resultobj = SWIG_Py_Void(); | |
31010 | return resultobj; | |
31011 | fail: | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
31016 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31017 | PyObject *resultobj = 0; | |
31018 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
31019 | bool arg2 ; | |
31020 | bool result; | |
31021 | void *argp1 = 0 ; | |
31022 | int res1 = 0 ; | |
31023 | bool val2 ; | |
31024 | int ecode2 = 0 ; | |
31025 | PyObject * obj0 = 0 ; | |
31026 | PyObject * obj1 = 0 ; | |
31027 | char * kwnames[] = { | |
31028 | (char *) "self",(char *) "interactive", NULL | |
31029 | }; | |
31030 | ||
31031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
31032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
31033 | if (!SWIG_IsOK(res1)) { | |
31034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
31035 | } | |
31036 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
31037 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
31038 | if (!SWIG_IsOK(ecode2)) { | |
31039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
31040 | } | |
31041 | arg2 = static_cast< bool >(val2); | |
31042 | { | |
31043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31044 | result = (bool)(arg1)->Print(arg2); | |
31045 | wxPyEndAllowThreads(__tstate); | |
31046 | if (PyErr_Occurred()) SWIG_fail; | |
31047 | } | |
31048 | { | |
31049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31050 | } | |
31051 | return resultobj; | |
31052 | fail: | |
31053 | return NULL; | |
d14a1e28 RD |
31054 | } |
31055 | ||
31056 | ||
0085ce49 RD |
31057 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31058 | PyObject *resultobj = 0; | |
31059 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
31060 | void *argp1 = 0 ; | |
31061 | int res1 = 0 ; | |
31062 | PyObject *swig_obj[1] ; | |
31063 | ||
31064 | if (!args) SWIG_fail; | |
31065 | swig_obj[0] = args; | |
31066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
31067 | if (!SWIG_IsOK(res1)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
31069 | } | |
31070 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
31071 | { | |
31072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31073 | (arg1)->DetermineScaling(); | |
31074 | wxPyEndAllowThreads(__tstate); | |
31075 | if (PyErr_Occurred()) SWIG_fail; | |
31076 | } | |
31077 | resultobj = SWIG_Py_Void(); | |
31078 | return resultobj; | |
31079 | fail: | |
31080 | return NULL; | |
d14a1e28 RD |
31081 | } |
31082 | ||
31083 | ||
0085ce49 RD |
31084 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31085 | PyObject *obj; | |
31086 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31087 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
31088 | return SWIG_Py_Void(); | |
d14a1e28 RD |
31089 | } |
31090 | ||
0085ce49 RD |
31091 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31092 | return SWIG_Python_InitShadowInstance(args); | |
31093 | } | |
d14a1e28 | 31094 | |
0085ce49 RD |
31095 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
31096 | PyObject *resultobj = 0; | |
31097 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
31098 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
31099 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
31100 | wxPyPrintPreview *result = 0 ; | |
31101 | int res1 = 0 ; | |
31102 | int res2 = 0 ; | |
31103 | void *argp3 = 0 ; | |
31104 | int res3 = 0 ; | |
31105 | ||
31106 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
31107 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
31108 | if (!SWIG_IsOK(res1)) { | |
31109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
31110 | } | |
31111 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
31112 | if (!SWIG_IsOK(res2)) { | |
31113 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
31114 | } | |
31115 | if (swig_obj[2]) { | |
31116 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
31117 | if (!SWIG_IsOK(res3)) { | |
31118 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 31119 | } |
0085ce49 RD |
31120 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
31121 | } | |
31122 | { | |
31123 | if (!wxPyCheckForApp()) SWIG_fail; | |
31124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31125 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
31126 | wxPyEndAllowThreads(__tstate); | |
31127 | if (PyErr_Occurred()) SWIG_fail; | |
31128 | } | |
31129 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
31130 | return resultobj; | |
31131 | fail: | |
31132 | return NULL; | |
31133 | } | |
31134 | ||
31135 | ||
31136 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31137 | PyObject *resultobj = 0; | |
31138 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
31139 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
31140 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
31141 | wxPyPrintPreview *result = 0 ; | |
31142 | int res1 = 0 ; | |
31143 | int res2 = 0 ; | |
31144 | void *argp3 = 0 ; | |
31145 | int res3 = 0 ; | |
31146 | ||
31147 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
31148 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
31149 | if (!SWIG_IsOK(res1)) { | |
31150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
31151 | } | |
31152 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
31153 | if (!SWIG_IsOK(res2)) { | |
31154 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
31155 | } | |
31156 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
31157 | if (!SWIG_IsOK(res3)) { | |
31158 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
31159 | } | |
31160 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
31161 | { | |
31162 | if (!wxPyCheckForApp()) SWIG_fail; | |
31163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31164 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
31165 | wxPyEndAllowThreads(__tstate); | |
31166 | if (PyErr_Occurred()) SWIG_fail; | |
31167 | } | |
31168 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
31169 | return resultobj; | |
31170 | fail: | |
31171 | return NULL; | |
d14a1e28 RD |
31172 | } |
31173 | ||
31174 | ||
0085ce49 RD |
31175 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
31176 | int argc; | |
31177 | PyObject *argv[4]; | |
31178 | ||
31179 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
31180 | --argc; | |
31181 | if ((argc >= 2) && (argc <= 3)) { | |
31182 | int _v = 0; | |
31183 | if (argc > 2) { | |
31184 | { | |
31185 | void *vptr = 0; | |
31186 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
31187 | _v = SWIG_CheckState(res); | |
31188 | } | |
31189 | if (!_v) goto check_1; | |
31190 | } | |
31191 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); | |
31192 | } | |
31193 | check_1: | |
31194 | ||
31195 | if (argc == 3) { | |
31196 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
31197 | } | |
31198 | ||
31199 | fail: | |
31200 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
31201 | return NULL; | |
31202 | } | |
31203 | ||
31204 | ||
31205 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31206 | PyObject *resultobj = 0; | |
31207 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
31208 | PyObject *arg2 = (PyObject *) 0 ; | |
31209 | PyObject *arg3 = (PyObject *) 0 ; | |
31210 | void *argp1 = 0 ; | |
31211 | int res1 = 0 ; | |
31212 | PyObject * obj0 = 0 ; | |
31213 | PyObject * obj1 = 0 ; | |
31214 | PyObject * obj2 = 0 ; | |
31215 | char * kwnames[] = { | |
31216 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31217 | }; | |
31218 | ||
31219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
31221 | if (!SWIG_IsOK(res1)) { | |
31222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
31223 | } | |
31224 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
31225 | arg2 = obj1; | |
31226 | arg3 = obj2; | |
31227 | { | |
31228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31229 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31230 | wxPyEndAllowThreads(__tstate); | |
31231 | if (PyErr_Occurred()) SWIG_fail; | |
31232 | } | |
31233 | resultobj = SWIG_Py_Void(); | |
31234 | return resultobj; | |
31235 | fail: | |
31236 | return NULL; | |
31237 | } | |
31238 | ||
31239 | ||
31240 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31241 | PyObject *obj; | |
31242 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31243 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
31244 | return SWIG_Py_Void(); | |
31245 | } | |
31246 | ||
31247 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31248 | return SWIG_Python_InitShadowInstance(args); | |
31249 | } | |
31250 | ||
31251 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31252 | PyObject *resultobj = 0; | |
31253 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
31254 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31255 | wxString *arg3 = 0 ; | |
31256 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31257 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31258 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31259 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31260 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
31261 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
31262 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31263 | wxPyPreviewFrame *result = 0 ; | |
0085ce49 RD |
31264 | int res1 = 0 ; |
31265 | void *argp2 = 0 ; | |
31266 | int res2 = 0 ; | |
31267 | bool temp3 = false ; | |
31268 | wxPoint temp4 ; | |
31269 | wxSize temp5 ; | |
31270 | long val6 ; | |
31271 | int ecode6 = 0 ; | |
31272 | bool temp7 = false ; | |
31273 | PyObject * obj0 = 0 ; | |
31274 | PyObject * obj1 = 0 ; | |
31275 | PyObject * obj2 = 0 ; | |
31276 | PyObject * obj3 = 0 ; | |
31277 | PyObject * obj4 = 0 ; | |
31278 | PyObject * obj5 = 0 ; | |
31279 | PyObject * obj6 = 0 ; | |
31280 | char * kwnames[] = { | |
31281 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
31282 | }; | |
31283 | ||
31284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9057d6d4 | 31285 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 31286 | if (!SWIG_IsOK(res1)) { |
9057d6d4 | 31287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); |
0085ce49 | 31288 | } |
0085ce49 RD |
31289 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); |
31290 | if (!SWIG_IsOK(res2)) { | |
31291 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
31292 | } | |
31293 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
31294 | { | |
31295 | arg3 = wxString_in_helper(obj2); | |
31296 | if (arg3 == NULL) SWIG_fail; | |
31297 | temp3 = true; | |
31298 | } | |
31299 | if (obj3) { | |
d14a1e28 | 31300 | { |
0085ce49 RD |
31301 | arg4 = &temp4; |
31302 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 31303 | } |
0085ce49 RD |
31304 | } |
31305 | if (obj4) { | |
d14a1e28 | 31306 | { |
0085ce49 RD |
31307 | arg5 = &temp5; |
31308 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 31309 | } |
0085ce49 RD |
31310 | } |
31311 | if (obj5) { | |
31312 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31313 | if (!SWIG_IsOK(ecode6)) { | |
31314 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
31315 | } | |
31316 | arg6 = static_cast< long >(val6); | |
31317 | } | |
31318 | if (obj6) { | |
db3e571a | 31319 | { |
0085ce49 RD |
31320 | arg7 = wxString_in_helper(obj6); |
31321 | if (arg7 == NULL) SWIG_fail; | |
31322 | temp7 = true; | |
db3e571a | 31323 | } |
0085ce49 RD |
31324 | } |
31325 | { | |
31326 | if (!wxPyCheckForApp()) SWIG_fail; | |
31327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31328 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
31329 | wxPyEndAllowThreads(__tstate); | |
31330 | if (PyErr_Occurred()) SWIG_fail; | |
31331 | } | |
31332 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
31333 | { | |
31334 | if (temp3) | |
31335 | delete arg3; | |
31336 | } | |
31337 | { | |
31338 | if (temp7) | |
31339 | delete arg7; | |
31340 | } | |
31341 | return resultobj; | |
31342 | fail: | |
31343 | { | |
31344 | if (temp3) | |
31345 | delete arg3; | |
31346 | } | |
31347 | { | |
31348 | if (temp7) | |
31349 | delete arg7; | |
31350 | } | |
31351 | return NULL; | |
31352 | } | |
31353 | ||
31354 | ||
31355 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31356 | PyObject *resultobj = 0; | |
31357 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31358 | PyObject *arg2 = (PyObject *) 0 ; | |
31359 | PyObject *arg3 = (PyObject *) 0 ; | |
31360 | void *argp1 = 0 ; | |
31361 | int res1 = 0 ; | |
31362 | PyObject * obj0 = 0 ; | |
31363 | PyObject * obj1 = 0 ; | |
31364 | PyObject * obj2 = 0 ; | |
31365 | char * kwnames[] = { | |
31366 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31367 | }; | |
31368 | ||
31369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31371 | if (!SWIG_IsOK(res1)) { | |
31372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31373 | } | |
31374 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31375 | arg2 = obj1; | |
31376 | arg3 = obj2; | |
31377 | { | |
31378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31379 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31380 | wxPyEndAllowThreads(__tstate); | |
31381 | if (PyErr_Occurred()) SWIG_fail; | |
31382 | } | |
31383 | resultobj = SWIG_Py_Void(); | |
31384 | return resultobj; | |
31385 | fail: | |
31386 | return NULL; | |
31387 | } | |
31388 | ||
31389 | ||
31390 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31391 | PyObject *resultobj = 0; | |
31392 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31393 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
31394 | void *argp1 = 0 ; | |
31395 | int res1 = 0 ; | |
31396 | void *argp2 = 0 ; | |
31397 | int res2 = 0 ; | |
31398 | PyObject * obj0 = 0 ; | |
31399 | PyObject * obj1 = 0 ; | |
31400 | char * kwnames[] = { | |
31401 | (char *) "self",(char *) "canvas", NULL | |
31402 | }; | |
31403 | ||
31404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
31405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31406 | if (!SWIG_IsOK(res1)) { | |
31407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31408 | } | |
31409 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31410 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
31411 | if (!SWIG_IsOK(res2)) { | |
31412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
31413 | } | |
31414 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
31415 | { | |
31416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31417 | (arg1)->SetPreviewCanvas(arg2); | |
31418 | wxPyEndAllowThreads(__tstate); | |
31419 | if (PyErr_Occurred()) SWIG_fail; | |
31420 | } | |
31421 | resultobj = SWIG_Py_Void(); | |
31422 | return resultobj; | |
31423 | fail: | |
31424 | return NULL; | |
31425 | } | |
31426 | ||
31427 | ||
31428 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31429 | PyObject *resultobj = 0; | |
31430 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31431 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
31432 | void *argp1 = 0 ; | |
31433 | int res1 = 0 ; | |
31434 | void *argp2 = 0 ; | |
31435 | int res2 = 0 ; | |
31436 | PyObject * obj0 = 0 ; | |
31437 | PyObject * obj1 = 0 ; | |
31438 | char * kwnames[] = { | |
31439 | (char *) "self",(char *) "bar", NULL | |
31440 | }; | |
31441 | ||
31442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
31443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31444 | if (!SWIG_IsOK(res1)) { | |
31445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31446 | } | |
31447 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31448 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
31449 | if (!SWIG_IsOK(res2)) { | |
31450 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
31451 | } | |
31452 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
31453 | { | |
31454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31455 | (arg1)->SetControlBar(arg2); | |
31456 | wxPyEndAllowThreads(__tstate); | |
31457 | if (PyErr_Occurred()) SWIG_fail; | |
31458 | } | |
31459 | resultobj = SWIG_Py_Void(); | |
31460 | return resultobj; | |
31461 | fail: | |
31462 | return NULL; | |
db3e571a RD |
31463 | } |
31464 | ||
31465 | ||
0085ce49 RD |
31466 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31467 | PyObject *resultobj = 0; | |
31468 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31469 | void *argp1 = 0 ; | |
31470 | int res1 = 0 ; | |
31471 | PyObject *swig_obj[1] ; | |
31472 | ||
31473 | if (!args) SWIG_fail; | |
31474 | swig_obj[0] = args; | |
31475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31476 | if (!SWIG_IsOK(res1)) { | |
31477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31478 | } | |
31479 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31480 | { | |
31481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31482 | (arg1)->Initialize(); | |
31483 | wxPyEndAllowThreads(__tstate); | |
31484 | if (PyErr_Occurred()) SWIG_fail; | |
31485 | } | |
31486 | resultobj = SWIG_Py_Void(); | |
31487 | return resultobj; | |
31488 | fail: | |
31489 | return NULL; | |
976dbff5 RD |
31490 | } |
31491 | ||
31492 | ||
0085ce49 RD |
31493 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31494 | PyObject *resultobj = 0; | |
31495 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31496 | void *argp1 = 0 ; | |
31497 | int res1 = 0 ; | |
31498 | PyObject *swig_obj[1] ; | |
31499 | ||
31500 | if (!args) SWIG_fail; | |
31501 | swig_obj[0] = args; | |
31502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31503 | if (!SWIG_IsOK(res1)) { | |
31504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31505 | } | |
31506 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31507 | { | |
31508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31509 | (arg1)->CreateCanvas(); | |
31510 | wxPyEndAllowThreads(__tstate); | |
31511 | if (PyErr_Occurred()) SWIG_fail; | |
31512 | } | |
31513 | resultobj = SWIG_Py_Void(); | |
31514 | return resultobj; | |
31515 | fail: | |
31516 | return NULL; | |
1cb4a8aa RD |
31517 | } |
31518 | ||
31519 | ||
0085ce49 RD |
31520 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31521 | PyObject *resultobj = 0; | |
31522 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31523 | void *argp1 = 0 ; | |
31524 | int res1 = 0 ; | |
31525 | PyObject *swig_obj[1] ; | |
31526 | ||
31527 | if (!args) SWIG_fail; | |
31528 | swig_obj[0] = args; | |
31529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31530 | if (!SWIG_IsOK(res1)) { | |
31531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31532 | } | |
31533 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31534 | { | |
31535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31536 | (arg1)->CreateControlBar(); | |
31537 | wxPyEndAllowThreads(__tstate); | |
31538 | if (PyErr_Occurred()) SWIG_fail; | |
31539 | } | |
31540 | resultobj = SWIG_Py_Void(); | |
31541 | return resultobj; | |
31542 | fail: | |
31543 | return NULL; | |
31544 | } | |
31545 | ||
31546 | ||
31547 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31548 | PyObject *obj; | |
31549 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31550 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
31551 | return SWIG_Py_Void(); | |
31552 | } | |
31553 | ||
31554 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31555 | return SWIG_Python_InitShadowInstance(args); | |
31556 | } | |
31557 | ||
31558 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31559 | PyObject *resultobj = 0; | |
31560 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
31561 | long arg2 ; | |
31562 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31563 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31564 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31565 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31566 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31567 | long arg6 = (long) 0 ; | |
31568 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
31569 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31570 | wxPyPreviewControlBar *result = 0 ; | |
0085ce49 RD |
31571 | int res1 = 0 ; |
31572 | long val2 ; | |
31573 | int ecode2 = 0 ; | |
31574 | void *argp3 = 0 ; | |
31575 | int res3 = 0 ; | |
31576 | wxPoint temp4 ; | |
31577 | wxSize temp5 ; | |
31578 | long val6 ; | |
31579 | int ecode6 = 0 ; | |
31580 | bool temp7 = false ; | |
31581 | PyObject * obj0 = 0 ; | |
31582 | PyObject * obj1 = 0 ; | |
31583 | PyObject * obj2 = 0 ; | |
31584 | PyObject * obj3 = 0 ; | |
31585 | PyObject * obj4 = 0 ; | |
31586 | PyObject * obj5 = 0 ; | |
31587 | PyObject * obj6 = 0 ; | |
31588 | char * kwnames[] = { | |
31589 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
31590 | }; | |
31591 | ||
31592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9057d6d4 | 31593 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 31594 | if (!SWIG_IsOK(res1)) { |
9057d6d4 | 31595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); |
0085ce49 | 31596 | } |
0085ce49 RD |
31597 | ecode2 = SWIG_AsVal_long(obj1, &val2); |
31598 | if (!SWIG_IsOK(ecode2)) { | |
31599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
31600 | } | |
31601 | arg2 = static_cast< long >(val2); | |
31602 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31603 | if (!SWIG_IsOK(res3)) { | |
31604 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
31605 | } | |
31606 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
31607 | if (obj3) { | |
093d3ff1 | 31608 | { |
0085ce49 RD |
31609 | arg4 = &temp4; |
31610 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 31611 | } |
0085ce49 RD |
31612 | } |
31613 | if (obj4) { | |
093d3ff1 | 31614 | { |
0085ce49 RD |
31615 | arg5 = &temp5; |
31616 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 31617 | } |
0085ce49 RD |
31618 | } |
31619 | if (obj5) { | |
31620 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31621 | if (!SWIG_IsOK(ecode6)) { | |
31622 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
31623 | } | |
31624 | arg6 = static_cast< long >(val6); | |
31625 | } | |
31626 | if (obj6) { | |
093d3ff1 | 31627 | { |
0085ce49 RD |
31628 | arg7 = wxString_in_helper(obj6); |
31629 | if (arg7 == NULL) SWIG_fail; | |
31630 | temp7 = true; | |
093d3ff1 | 31631 | } |
0085ce49 RD |
31632 | } |
31633 | { | |
31634 | if (!wxPyCheckForApp()) SWIG_fail; | |
31635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31636 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
31637 | wxPyEndAllowThreads(__tstate); | |
31638 | if (PyErr_Occurred()) SWIG_fail; | |
31639 | } | |
31640 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
31641 | { | |
31642 | if (temp7) | |
31643 | delete arg7; | |
31644 | } | |
31645 | return resultobj; | |
31646 | fail: | |
31647 | { | |
31648 | if (temp7) | |
31649 | delete arg7; | |
31650 | } | |
31651 | return NULL; | |
31652 | } | |
31653 | ||
31654 | ||
31655 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31656 | PyObject *resultobj = 0; | |
31657 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31658 | PyObject *arg2 = (PyObject *) 0 ; | |
31659 | PyObject *arg3 = (PyObject *) 0 ; | |
31660 | void *argp1 = 0 ; | |
31661 | int res1 = 0 ; | |
31662 | PyObject * obj0 = 0 ; | |
31663 | PyObject * obj1 = 0 ; | |
31664 | PyObject * obj2 = 0 ; | |
31665 | char * kwnames[] = { | |
31666 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31667 | }; | |
31668 | ||
31669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31671 | if (!SWIG_IsOK(res1)) { | |
31672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31673 | } | |
31674 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31675 | arg2 = obj1; | |
31676 | arg3 = obj2; | |
31677 | { | |
31678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31679 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31680 | wxPyEndAllowThreads(__tstate); | |
31681 | if (PyErr_Occurred()) SWIG_fail; | |
31682 | } | |
31683 | resultobj = SWIG_Py_Void(); | |
31684 | return resultobj; | |
31685 | fail: | |
31686 | return NULL; | |
31687 | } | |
31688 | ||
31689 | ||
31690 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31691 | PyObject *resultobj = 0; | |
31692 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31693 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
31694 | void *argp1 = 0 ; | |
31695 | int res1 = 0 ; | |
0085ce49 RD |
31696 | int res2 = 0 ; |
31697 | PyObject * obj0 = 0 ; | |
31698 | PyObject * obj1 = 0 ; | |
31699 | char * kwnames[] = { | |
31700 | (char *) "self",(char *) "preview", NULL | |
31701 | }; | |
31702 | ||
31703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
31704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31705 | if (!SWIG_IsOK(res1)) { | |
31706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31707 | } | |
31708 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
9057d6d4 | 31709 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 31710 | if (!SWIG_IsOK(res2)) { |
9057d6d4 | 31711 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); |
0085ce49 | 31712 | } |
0085ce49 RD |
31713 | { |
31714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31715 | (arg1)->SetPrintPreview(arg2); | |
31716 | wxPyEndAllowThreads(__tstate); | |
31717 | if (PyErr_Occurred()) SWIG_fail; | |
31718 | } | |
31719 | resultobj = SWIG_Py_Void(); | |
31720 | return resultobj; | |
31721 | fail: | |
31722 | return NULL; | |
1cb4a8aa RD |
31723 | } |
31724 | ||
31725 | ||
0085ce49 RD |
31726 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31727 | PyObject *resultobj = 0; | |
31728 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31729 | void *argp1 = 0 ; | |
31730 | int res1 = 0 ; | |
31731 | PyObject *swig_obj[1] ; | |
31732 | ||
31733 | if (!args) SWIG_fail; | |
31734 | swig_obj[0] = args; | |
31735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31736 | if (!SWIG_IsOK(res1)) { | |
31737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31738 | } | |
31739 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31740 | { | |
31741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31742 | (arg1)->CreateButtons(); | |
31743 | wxPyEndAllowThreads(__tstate); | |
31744 | if (PyErr_Occurred()) SWIG_fail; | |
31745 | } | |
31746 | resultobj = SWIG_Py_Void(); | |
31747 | return resultobj; | |
31748 | fail: | |
31749 | return NULL; | |
31750 | } | |
31751 | ||
31752 | ||
31753 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31754 | PyObject *resultobj = 0; | |
31755 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31756 | int arg2 ; | |
31757 | void *argp1 = 0 ; | |
31758 | int res1 = 0 ; | |
31759 | int val2 ; | |
31760 | int ecode2 = 0 ; | |
31761 | PyObject * obj0 = 0 ; | |
31762 | PyObject * obj1 = 0 ; | |
31763 | char * kwnames[] = { | |
31764 | (char *) "self",(char *) "zoom", NULL | |
31765 | }; | |
31766 | ||
31767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
31768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31769 | if (!SWIG_IsOK(res1)) { | |
31770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31771 | } | |
31772 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31773 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31774 | if (!SWIG_IsOK(ecode2)) { | |
31775 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
31776 | } | |
31777 | arg2 = static_cast< int >(val2); | |
31778 | { | |
31779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31780 | (arg1)->SetZoomControl(arg2); | |
31781 | wxPyEndAllowThreads(__tstate); | |
31782 | if (PyErr_Occurred()) SWIG_fail; | |
31783 | } | |
31784 | resultobj = SWIG_Py_Void(); | |
31785 | return resultobj; | |
31786 | fail: | |
31787 | return NULL; | |
1cb4a8aa RD |
31788 | } |
31789 | ||
31790 | ||
0085ce49 RD |
31791 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31792 | PyObject *obj; | |
31793 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31794 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
31795 | return SWIG_Py_Void(); | |
1cb4a8aa RD |
31796 | } |
31797 | ||
0085ce49 RD |
31798 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31799 | return SWIG_Python_InitShadowInstance(args); | |
1cb4a8aa RD |
31800 | } |
31801 | ||
d3b6e4ff | 31802 | static PyMethodDef SwigMethods[] = { |
093d3ff1 | 31803 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31804 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
093d3ff1 | 31805 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31806 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
093d3ff1 RD |
31807 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31808 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31809 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31810 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31811 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31812 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31813 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31814 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31815 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31816 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31817 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31818 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
093d3ff1 | 31819 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31820 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
093d3ff1 | 31821 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31822 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
31823 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
093d3ff1 RD |
31824 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
31825 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
0085ce49 | 31826 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
093d3ff1 RD |
31827 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
31828 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31829 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
093d3ff1 RD |
31830 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31831 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31832 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31833 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31834 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31835 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
093d3ff1 | 31836 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31837 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
01f6b6d3 | 31838 | { (char *)"TopLevelWindow_IsAlwaysMaximized", (PyCFunction)_wrap_TopLevelWindow_IsAlwaysMaximized, METH_O, NULL}, |
0085ce49 RD |
31839 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, |
31840 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
093d3ff1 RD |
31841 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
31842 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31843 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31844 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
093d3ff1 | 31845 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31846 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
70d7cb34 | 31847 | { (char *)"TopLevelWindow_EnableCloseButton", (PyCFunction) _wrap_TopLevelWindow_EnableCloseButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31848 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
31849 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31850 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
093d3ff1 | 31851 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31852 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 31853 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
10044bf1 RD |
31854 | { (char *)"TopLevelWindow_GetDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetDefaultItem, METH_O, NULL}, |
31855 | { (char *)"TopLevelWindow_SetDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31856 | { (char *)"TopLevelWindow_SetTmpDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31857 | { (char *)"TopLevelWindow_GetTmpDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetTmpDefaultItem, METH_O, NULL}, | |
093d3ff1 RD |
31858 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
31859 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31860 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31861 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31862 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
093d3ff1 | 31863 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31864 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
093d3ff1 RD |
31865 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
31866 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31867 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
093d3ff1 RD |
31868 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31869 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31870 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31871 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31872 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31873 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31874 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
093d3ff1 | 31875 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31876 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
093d3ff1 RD |
31877 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31878 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31879 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31880 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31881 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31882 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31883 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31884 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
093d3ff1 RD |
31885 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31886 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31887 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 31888 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31889 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 31890 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31891 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
093d3ff1 | 31892 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 RD |
31893 | { (char *)"Dialog__CreateButtonSizer", (PyCFunction) _wrap_Dialog__CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
31894 | { (char *)"Dialog_CreateSeparatedButtonSizer", (PyCFunction) _wrap_Dialog_CreateSeparatedButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e505d15e | 31895 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31896 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
31897 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
093d3ff1 RD |
31898 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
31899 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31900 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31901 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31902 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31903 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
093d3ff1 RD |
31904 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31905 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31906 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31907 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31908 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31909 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
093d3ff1 | 31910 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31911 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31912 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31913 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
31914 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
31915 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
093d3ff1 | 31916 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31917 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31918 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31919 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
093d3ff1 RD |
31920 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31921 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31922 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
093d3ff1 RD |
31923 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
31924 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31925 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31926 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31927 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31928 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31929 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31930 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31931 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
31932 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
093d3ff1 RD |
31933 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31934 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31935 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31936 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31937 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
093d3ff1 | 31938 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31939 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
31940 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
093d3ff1 | 31941 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31942 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
093d3ff1 RD |
31943 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31944 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31945 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31946 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31947 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31948 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
31949 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
093d3ff1 RD |
31950 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31951 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31952 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
31953 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
093d3ff1 | 31954 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31955 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
093d3ff1 | 31956 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31957 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
093d3ff1 | 31958 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31959 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
093d3ff1 | 31960 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31961 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31962 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31963 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
093d3ff1 RD |
31964 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31965 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31966 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31967 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31968 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31969 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
31970 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
31971 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
31972 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
093d3ff1 | 31973 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31974 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31975 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31976 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31977 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31978 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31979 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31980 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31981 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31982 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31983 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31984 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
093d3ff1 | 31985 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31986 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
093d3ff1 RD |
31987 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31988 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31989 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
31990 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
093d3ff1 RD |
31991 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31992 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31993 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
31994 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
093d3ff1 | 31995 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31996 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31997 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31998 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31999 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32000 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32001 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
093d3ff1 | 32002 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32003 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
093d3ff1 | 32004 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32005 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
093d3ff1 | 32006 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32007 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32008 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32009 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32010 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
093d3ff1 | 32011 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32012 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 32013 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32014 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
093d3ff1 | 32015 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32016 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
093d3ff1 | 32017 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32018 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
093d3ff1 | 32019 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32020 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32021 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32022 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32023 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 32024 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32025 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
093d3ff1 | 32026 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32027 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32028 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32029 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
093d3ff1 | 32030 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32031 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
32032 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
093d3ff1 RD |
32033 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
32034 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32035 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32036 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
32037 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
32038 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
32039 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
093d3ff1 RD |
32040 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
32041 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32042 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32043 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32044 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32045 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32046 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
32047 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
32048 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32049 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32050 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32051 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32052 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
32053 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32054 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32055 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction)_wrap_PopupTransientWindow_Dismiss, METH_O, NULL}, |
093d3ff1 | 32056 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32057 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32058 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32059 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32060 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
093d3ff1 | 32061 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32062 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32063 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32064 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
32065 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32066 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32067 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32068 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
32069 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
32070 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32071 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32072 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32073 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
32074 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
32075 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
32076 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
70b7a5fe | 32077 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32078 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
32079 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
32080 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32081 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32082 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32083 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32084 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32085 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
32086 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32087 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32088 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
32089 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
32090 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
093d3ff1 RD |
32091 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32092 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32093 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
32094 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
093d3ff1 | 32095 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32096 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
32097 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
093d3ff1 | 32098 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32099 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
093d3ff1 RD |
32100 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
32101 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32102 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32103 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32104 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
32105 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
093d3ff1 RD |
32106 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
32107 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32108 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
75219dcb RD |
32109 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
32110 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32111 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32112 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32113 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32114 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
32115 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32116 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32117 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32118 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 32119 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32120 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32121 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
f9bf356b RD |
32122 | { (char *)"new_SimpleHtmlListBox", (PyCFunction) _wrap_new_SimpleHtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
32123 | { (char *)"new_PreSimpleHtmlListBox", (PyCFunction)_wrap_new_PreSimpleHtmlListBox, METH_NOARGS, NULL}, | |
32124 | { (char *)"SimpleHtmlListBox_Create", (PyCFunction) _wrap_SimpleHtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32125 | { (char *)"SimpleHtmlListBox_swigregister", SimpleHtmlListBox_swigregister, METH_VARARGS, NULL}, | |
32126 | { (char *)"SimpleHtmlListBox_swiginit", SimpleHtmlListBox_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
32127 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, |
32128 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
093d3ff1 | 32129 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32130 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
32131 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
32132 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
093d3ff1 | 32133 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32134 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
093d3ff1 RD |
32135 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
32136 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32137 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32138 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
32139 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
32140 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
32141 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
32142 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
32143 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
32144 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
093d3ff1 RD |
32145 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
32146 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32147 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32148 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32149 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32150 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32151 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32152 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
093d3ff1 | 32153 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32154 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 32155 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32156 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32157 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
32158 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
093d3ff1 RD |
32159 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
32160 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32161 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32162 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32163 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32164 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32165 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32166 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32167 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32168 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32169 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32170 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
32171 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
32172 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
32173 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
32174 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
0085ce49 RD |
32175 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, |
32176 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
32177 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
093d3ff1 | 32178 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32179 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32180 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32181 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32182 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
093d3ff1 | 32183 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32184 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32185 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32186 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
32187 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
093d3ff1 RD |
32188 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
32189 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32190 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32191 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32192 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
093d3ff1 RD |
32193 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
32194 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32195 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32196 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32197 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32198 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
27e45892 RD |
32199 | { (char *)"new_NumberEntryDialog", (PyCFunction) _wrap_new_NumberEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32200 | { (char *)"NumberEntryDialog_GetValue", (PyCFunction)_wrap_NumberEntryDialog_GetValue, METH_O, NULL}, | |
32201 | { (char *)"NumberEntryDialog_swigregister", NumberEntryDialog_swigregister, METH_VARARGS, NULL}, | |
32202 | { (char *)"NumberEntryDialog_swiginit", NumberEntryDialog_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
32203 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, |
32204 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
093d3ff1 | 32205 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32206 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
32207 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
32208 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
32209 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
32210 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
32211 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
093d3ff1 RD |
32212 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
32213 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32214 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32215 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32216 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32217 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32218 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32219 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32220 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32221 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
093d3ff1 | 32222 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32223 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 32224 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32225 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32226 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32227 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32228 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
32229 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
6b449b19 | 32230 | { (char *)"ProgressDialog_Pulse", (PyCFunction) _wrap_ProgressDialog_Pulse, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32231 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
093d3ff1 | 32232 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32233 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32234 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32235 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
32236 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
32237 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
32238 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
093d3ff1 RD |
32239 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
32240 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32241 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32242 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32243 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32244 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32245 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
32246 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
32247 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
32248 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
093d3ff1 RD |
32249 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
32250 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32251 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32252 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32253 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32254 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32255 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
093d3ff1 | 32256 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32257 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
093d3ff1 RD |
32258 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
32259 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32260 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32261 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32262 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
093d3ff1 | 32263 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32264 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
32265 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
32266 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
32267 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
32268 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
32269 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
093d3ff1 RD |
32270 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
32271 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32272 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32273 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32274 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
093d3ff1 | 32275 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32276 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
093d3ff1 | 32277 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32278 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32279 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32280 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
32281 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
32282 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32283 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32284 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32285 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
093d3ff1 | 32286 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
976dbff5 | 32287 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
32288 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32289 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32290 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32291 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32292 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
32293 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
32294 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
32295 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
32296 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
32297 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
32298 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 32299 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32300 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32301 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32302 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
093d3ff1 | 32303 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
976dbff5 | 32304 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
32305 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32306 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32307 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32308 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32309 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
32310 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
32311 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
32312 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
32313 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
32314 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
32315 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 32316 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32317 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32318 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32319 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 | 32320 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
976dbff5 | 32321 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
32322 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32323 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32324 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32325 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32326 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
32327 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
32328 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
32329 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
32330 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
32331 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
32332 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 32333 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32334 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32335 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
0085ce49 RD |
32336 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
32337 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
32338 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
32339 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
5172800e | 32340 | { (char *)"PrintData_IsOrientationReversed", (PyCFunction)_wrap_PrintData_IsOrientationReversed, METH_O, NULL}, |
b39fe951 | 32341 | { (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL}, |
0085ce49 RD |
32342 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, |
32343 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
32344 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
32345 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
32346 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
32347 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
32348 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
32349 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
8f514ab4 | 32350 | { (char *)"PrintData_GetMedia", (PyCFunction)_wrap_PrintData_GetMedia, METH_O, NULL}, |
093d3ff1 RD |
32351 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
32352 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32353 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5172800e | 32354 | { (char *)"PrintData_SetOrientationReversed", (PyCFunction) _wrap_PrintData_SetOrientationReversed, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
32355 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, |
32356 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32357 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32358 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32359 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32360 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32361 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32362 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 32363 | { (char *)"PrintData_SetMedia", (PyCFunction) _wrap_PrintData_SetMedia, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32364 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
093d3ff1 | 32365 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32366 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
b9d6a5f3 | 32367 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32368 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32369 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32370 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
0085ce49 | 32371 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
093d3ff1 RD |
32372 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
32373 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32374 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32375 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32376 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32377 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
32378 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
32379 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
32380 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
32381 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
32382 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
32383 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
32384 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
32385 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
32386 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
32387 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
32388 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
32389 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
32390 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
b39fe951 | 32391 | { (char *)"PageSetupDialogData_IsOk", (PyCFunction)_wrap_PageSetupDialogData_IsOk, METH_O, NULL}, |
093d3ff1 RD |
32392 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32393 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32394 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32395 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32396 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32397 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32398 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32399 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32400 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32401 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
32402 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
093d3ff1 | 32403 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32404 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32405 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 32406 | { (char *)"delete_PageSetupDialog", (PyCFunction)_wrap_delete_PageSetupDialog, METH_O, NULL}, |
0085ce49 RD |
32407 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
32408 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
32409 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
093d3ff1 | 32410 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32411 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32412 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
0085ce49 RD |
32413 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
32414 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
32415 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
32416 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
32417 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
32418 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
32419 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
32420 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
32421 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
32422 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
093d3ff1 RD |
32423 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
32424 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32425 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32426 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32427 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32428 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32429 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32430 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32431 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32432 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32433 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32434 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32435 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32436 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
32437 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
32438 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
32439 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
b39fe951 | 32440 | { (char *)"PrintDialogData_IsOk", (PyCFunction)_wrap_PrintDialogData_IsOk, METH_O, NULL}, |
0085ce49 | 32441 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, |
093d3ff1 RD |
32442 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
32443 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32444 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32445 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 32446 | { (char *)"delete_PrintDialog", (PyCFunction)_wrap_delete_PrintDialog, METH_O, NULL}, |
0085ce49 RD |
32447 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
32448 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
32449 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
32450 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
093d3ff1 | 32451 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32452 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32453 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32454 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
093d3ff1 RD |
32455 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32456 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32457 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32458 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32459 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32460 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
32461 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
32462 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
093d3ff1 | 32463 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32464 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32465 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32466 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
093d3ff1 | 32467 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32468 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
32469 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
093d3ff1 | 32470 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 RD |
32471 | { (char *)"Printout_FitThisSizeToPaper", (PyCFunction) _wrap_Printout_FitThisSizeToPaper, METH_VARARGS | METH_KEYWORDS, NULL}, |
32472 | { (char *)"Printout_FitThisSizeToPage", (PyCFunction) _wrap_Printout_FitThisSizeToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32473 | { (char *)"Printout_FitThisSizeToPageMargins", (PyCFunction) _wrap_Printout_FitThisSizeToPageMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32474 | { (char *)"Printout_MapScreenSizeToPaper", (PyCFunction)_wrap_Printout_MapScreenSizeToPaper, METH_O, NULL}, | |
32475 | { (char *)"Printout_MapScreenSizeToPage", (PyCFunction)_wrap_Printout_MapScreenSizeToPage, METH_O, NULL}, | |
32476 | { (char *)"Printout_MapScreenSizeToPageMargins", (PyCFunction) _wrap_Printout_MapScreenSizeToPageMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32477 | { (char *)"Printout_MapScreenSizeToDevice", (PyCFunction)_wrap_Printout_MapScreenSizeToDevice, METH_O, NULL}, | |
32478 | { (char *)"Printout_GetLogicalPaperRect", (PyCFunction)_wrap_Printout_GetLogicalPaperRect, METH_O, NULL}, | |
32479 | { (char *)"Printout_GetLogicalPageRect", (PyCFunction)_wrap_Printout_GetLogicalPageRect, METH_O, NULL}, | |
32480 | { (char *)"Printout_GetLogicalPageMarginsRect", (PyCFunction) _wrap_Printout_GetLogicalPageMarginsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32481 | { (char *)"Printout_SetLogicalOrigin", (PyCFunction) _wrap_Printout_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32482 | { (char *)"Printout_OffsetLogicalOrigin", (PyCFunction) _wrap_Printout_OffsetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32483 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32484 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
093d3ff1 | 32485 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32486 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
093d3ff1 | 32487 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32488 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
093d3ff1 | 32489 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32490 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
70d7cb34 RD |
32491 | { (char *)"Printout_SetPaperRectPixels", (PyCFunction) _wrap_Printout_SetPaperRectPixels, METH_VARARGS | METH_KEYWORDS, NULL}, |
32492 | { (char *)"Printout_GetPaperRectPixels", (PyCFunction)_wrap_Printout_GetPaperRectPixels, METH_O, NULL}, | |
0085ce49 | 32493 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, |
093d3ff1 | 32494 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 | 32495 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32496 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
32497 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
32498 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
32499 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
c26d9ab4 | 32500 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32501 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
093d3ff1 | 32502 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32503 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32504 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
32505 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32506 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32507 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32508 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
32509 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
32510 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
32511 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
093d3ff1 | 32512 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32513 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32514 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32515 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
093d3ff1 | 32516 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32517 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
32518 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
32519 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
32520 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
32521 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
32522 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
093d3ff1 | 32523 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32524 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32525 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
0085ce49 | 32526 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
093d3ff1 | 32527 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32528 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
093d3ff1 | 32529 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32530 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
32531 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
093d3ff1 RD |
32532 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
32533 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32534 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
32535 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
093d3ff1 RD |
32536 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
32537 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32538 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32539 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32540 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
093d3ff1 | 32541 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32542 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
32543 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
32544 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
b39fe951 | 32545 | { (char *)"PrintPreview_IsOk", (PyCFunction)_wrap_PrintPreview_IsOk, METH_O, NULL}, |
093d3ff1 RD |
32546 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
32547 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32548 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
093d3ff1 | 32549 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32550 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32551 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
32552 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32553 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32554 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32555 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
32556 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32557 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32558 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32559 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
32560 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
32561 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
093d3ff1 | 32562 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32563 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32564 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
32565 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32566 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32567 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
c26d9ab4 | 32568 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32569 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32570 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c32bde28 | 32571 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
32572 | }; |
32573 | ||
32574 | ||
32575 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32576 | ||
32577 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
32578 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32579 | } | |
32580 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32581 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32582 | } | |
32583 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32584 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32585 | } | |
32586 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32587 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32588 | } | |
32589 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32590 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32591 | } | |
32592 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32593 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32594 | } | |
32595 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32596 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32597 | } | |
32598 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
32599 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32600 | } | |
32601 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32602 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32603 | } | |
32604 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32605 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32606 | } | |
32607 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
32608 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32609 | } | |
d14a1e28 RD |
32610 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
32611 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32612 | } | |
34e0a3bb RD |
32613 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
32614 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32615 | } | |
2131d850 RD |
32616 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
32617 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32618 | } | |
d14a1e28 RD |
32619 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
32620 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
32621 | } | |
32622 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32623 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32624 | } | |
32625 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32626 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32627 | } | |
32628 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32629 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32630 | } | |
32631 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32632 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32633 | } | |
32634 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32635 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32636 | } | |
32637 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32638 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32639 | } | |
32640 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32641 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32642 | } | |
32643 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32644 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32645 | } | |
53aa7709 RD |
32646 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
32647 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
32648 | } | |
d14a1e28 RD |
32649 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
32650 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32651 | } | |
32652 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32653 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32654 | } | |
34e0a3bb RD |
32655 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
32656 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32657 | } | |
d14a1e28 RD |
32658 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
32659 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32660 | } | |
32661 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32662 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32663 | } | |
32664 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32665 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32666 | } | |
32667 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32668 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32669 | } | |
32670 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32671 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32672 | } | |
32673 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32674 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32675 | } | |
32676 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32677 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32678 | } | |
32679 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32680 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32681 | } | |
32682 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
32683 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
32684 | } | |
32685 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
32686 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
32687 | } | |
32688 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32689 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32690 | } | |
32691 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32692 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32693 | } | |
32694 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32695 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32696 | } | |
32697 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32698 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32699 | } | |
32700 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32701 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32702 | } | |
32703 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32704 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32705 | } | |
32706 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32707 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32708 | } | |
32709 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
32710 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
32711 | } | |
f9bf356b RD |
32712 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { |
32713 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32714 | } | |
32715 | static void *_p_wxSimpleHtmlListBoxTo_p_wxItemContainer(void *x) { | |
32716 | return (void *)((wxItemContainer *) ((wxSimpleHtmlListBox *) x)); | |
32717 | } | |
d14a1e28 RD |
32718 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { |
32719 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32720 | } | |
d3b6e4ff RD |
32721 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
32722 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32723 | } | |
d14a1e28 RD |
32724 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
32725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32726 | } | |
32727 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
32728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32729 | } | |
32730 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
32731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
32732 | } | |
32733 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32734 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32735 | } | |
32736 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32737 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32738 | } | |
32739 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32740 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32741 | } | |
32742 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32743 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32744 | } | |
32745 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
32746 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32747 | } | |
32748 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
32749 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32750 | } | |
32751 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
32752 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32753 | } | |
32754 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
32755 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32756 | } | |
f9bf356b RD |
32757 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
32758 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32759 | } | |
27e45892 RD |
32760 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
32761 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32762 | } | |
d14a1e28 RD |
32763 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
32764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32765 | } | |
32766 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
32767 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32768 | } | |
32769 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
32770 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32771 | } | |
32772 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
32773 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
32774 | } | |
32775 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
32776 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
32777 | } | |
32778 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32779 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32780 | } | |
32781 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
32782 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32783 | } | |
32784 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
32785 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32786 | } | |
32787 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
32788 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
32789 | } | |
32790 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
32791 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32792 | } | |
32793 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
32794 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
32795 | } | |
32796 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
32797 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
32798 | } | |
32799 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
32800 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
32801 | } | |
32802 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32803 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32804 | } | |
32805 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32806 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32807 | } | |
32808 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
32809 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
32810 | } | |
32811 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
32812 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
32813 | } | |
1cb4a8aa RD |
32814 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
32815 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32816 | } | |
d14a1e28 RD |
32817 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
32818 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32819 | } | |
32820 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32821 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32822 | } | |
32823 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32824 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32825 | } | |
32826 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
32827 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32828 | } | |
32829 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32830 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32831 | } | |
32832 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32833 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32834 | } | |
32835 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
32836 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
32837 | } | |
32838 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
32839 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32840 | } | |
f9bf356b RD |
32841 | static void *_p_wxSimpleHtmlListBoxTo_p_wxEvtHandler(void *x) { |
32842 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
32843 | } | |
d14a1e28 RD |
32844 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { |
32845 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32846 | } | |
32847 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
32848 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32849 | } | |
32850 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32851 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32852 | } | |
32853 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32854 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32855 | } | |
5e483524 RD |
32856 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
32857 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
32858 | } |
32859 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
32860 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32861 | } | |
d14a1e28 RD |
32862 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
32863 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32864 | } | |
32865 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
32866 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32867 | } | |
32868 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
32869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32870 | } | |
d3b6e4ff RD |
32871 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
32872 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32873 | } | |
d14a1e28 RD |
32874 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
32875 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32876 | } | |
32877 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
32878 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32879 | } | |
f9bf356b RD |
32880 | static void *_p_wxSimpleHtmlListBoxTo_p_wxPyVListBox(void *x) { |
32881 | return (void *)((wxPyVListBox *) (wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
32882 | } | |
32883 | static void *_p_wxSimpleHtmlListBoxTo_p_wxPyHtmlListBox(void *x) { | |
32884 | return (void *)((wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
32885 | } | |
d14a1e28 RD |
32886 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { |
32887 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
32888 | } | |
32889 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
32890 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
32891 | } | |
32892 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
32893 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
32894 | } | |
32895 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
32896 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32897 | } | |
32898 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
32899 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
32900 | } | |
32901 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
32902 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
32903 | } | |
32904 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
32905 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
32906 | } | |
32907 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32908 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32909 | } | |
32910 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
32911 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
32912 | } | |
32913 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
32914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32915 | } | |
32916 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
32917 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32918 | } | |
d14a1e28 RD |
32919 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
32920 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32921 | } | |
34e0a3bb RD |
32922 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
32923 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32924 | } | |
d14a1e28 RD |
32925 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
32926 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32927 | } | |
32928 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32929 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32930 | } | |
32931 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32932 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32933 | } | |
32934 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32935 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32936 | } | |
32937 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32938 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32939 | } | |
32940 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32941 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32942 | } | |
32943 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32945 | } | |
32946 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
32947 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
32948 | } | |
32949 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32950 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32951 | } | |
32952 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
32953 | return (void *)((wxObject *) ((wxFontData *) x)); | |
32954 | } | |
32955 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
32956 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
32957 | } | |
32958 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32959 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32960 | } | |
32961 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32962 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32963 | } | |
32964 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32965 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32966 | } | |
32967 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
32968 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
32969 | } | |
5e483524 RD |
32970 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
32971 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
32972 | } |
32973 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
32974 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32975 | } | |
2131d850 RD |
32976 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
32977 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32978 | } | |
d14a1e28 RD |
32979 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
32980 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32981 | } | |
32982 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32983 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32984 | } | |
32985 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32986 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32987 | } | |
32988 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32989 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32990 | } | |
32991 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32992 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32993 | } | |
32994 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32995 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32996 | } | |
32997 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
32998 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32999 | } | |
33000 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
33001 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
33002 | } | |
33003 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
33004 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
33005 | } | |
33006 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
33007 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
33008 | } | |
33009 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
33010 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
33011 | } | |
33012 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
33013 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
33014 | } | |
33015 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
33016 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
33017 | } | |
33018 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
33019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33020 | } | |
33021 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
33022 | return (void *)((wxObject *) ((wxColourData *) x)); | |
33023 | } | |
33024 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
33025 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
33026 | } | |
33027 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
33028 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33029 | } | |
33030 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
33031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
33032 | } | |
33033 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
33034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33035 | } | |
33036 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
33037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33038 | } | |
33039 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
33040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33041 | } | |
33042 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
33043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33044 | } | |
33045 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
33046 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33047 | } | |
d3b6e4ff RD |
33048 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
33049 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33050 | } | |
27e45892 RD |
33051 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
33052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
33053 | } | |
d14a1e28 RD |
33054 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
33055 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33056 | } | |
33057 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
33058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33059 | } | |
33060 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
33061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33062 | } | |
33063 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
33064 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
33065 | } | |
33066 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
33067 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
33068 | } | |
33069 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
33070 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
33071 | } | |
53aa7709 RD |
33072 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
33073 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
33074 | } | |
d14a1e28 RD |
33075 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
33076 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
33077 | } | |
33078 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
33079 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33080 | } | |
33081 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
33082 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
33083 | } | |
33084 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
33085 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
33086 | } | |
33087 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
33088 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
33089 | } | |
33090 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
33091 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
33092 | } | |
33093 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
33094 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
33095 | } | |
33096 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
33097 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
33098 | } | |
d14a1e28 RD |
33099 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
33100 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
33101 | } | |
33102 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
33103 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
33104 | } | |
33105 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
33106 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
33107 | } | |
33108 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
33109 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
33110 | } | |
33111 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
33112 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
33113 | } | |
33114 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
33115 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
33116 | } | |
33117 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
33118 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
33119 | } | |
33120 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
33121 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
33122 | } | |
33123 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
33124 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
33125 | } | |
943e8dfd RD |
33126 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
33127 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
33128 | } | |
d14a1e28 RD |
33129 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
33130 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
33131 | } | |
943e8dfd RD |
33132 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
33133 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
33134 | } | |
d14a1e28 RD |
33135 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
33136 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
33137 | } | |
580080c5 RD |
33138 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
33139 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
33140 | } | |
d14a1e28 RD |
33141 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
33142 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
33143 | } | |
34e0a3bb RD |
33144 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
33145 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
33146 | } | |
d14a1e28 RD |
33147 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
33148 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
33149 | } | |
33150 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
33151 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33152 | } | |
33153 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
33154 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33155 | } | |
f9bf356b RD |
33156 | static void *_p_wxSimpleHtmlListBoxTo_p_wxObject(void *x) { |
33157 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
33158 | } | |
d14a1e28 RD |
33159 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
33160 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33161 | } | |
580080c5 RD |
33162 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
33163 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
33164 | } | |
d14a1e28 RD |
33165 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { |
33166 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33167 | } | |
33168 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33169 | return (void *)((wxObject *) ((wxImage *) x)); | |
33170 | } | |
33171 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
33172 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
33173 | } | |
33174 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
33175 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
33176 | } | |
33177 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33178 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33179 | } | |
33180 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
33181 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
33182 | } | |
33183 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
33184 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
33185 | } | |
33186 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
33187 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33188 | } | |
33189 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
33190 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33191 | } | |
33192 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33193 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33194 | } | |
33195 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33196 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33197 | } | |
d14a1e28 RD |
33198 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
33199 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33200 | } | |
33201 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33202 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33203 | } | |
33204 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33205 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33206 | } | |
1e0c8722 RD |
33207 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
33208 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
33209 | } | |
d14a1e28 RD |
33210 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
33211 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
33212 | } | |
33213 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
33214 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
33215 | } | |
33216 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
33217 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
33218 | } | |
33219 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
33220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
33221 | } | |
33222 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
33223 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33224 | } | |
33225 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
33226 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
33227 | } | |
33228 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
33229 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33230 | } | |
33231 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
33232 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33233 | } | |
33234 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
33235 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33236 | } | |
33237 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
33238 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
33239 | } | |
1cb4a8aa RD |
33240 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
33241 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33242 | } | |
d14a1e28 RD |
33243 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
33244 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
33245 | } | |
33246 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
33247 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
33248 | } | |
33249 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
33250 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
33251 | } | |
33252 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
33253 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
33254 | } | |
33255 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
33256 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
33257 | } | |
33258 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
33259 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
33260 | } | |
33261 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
33262 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
33263 | } | |
33264 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
33265 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
33266 | } | |
33267 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
8ac8dba0 | 33268 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d14a1e28 RD |
33269 | } |
33270 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
a68b8331 | 33271 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d14a1e28 RD |
33272 | } |
33273 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33274 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33275 | } | |
33276 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33277 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33278 | } | |
33279 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33280 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33281 | } | |
33282 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33283 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33284 | } | |
33285 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33286 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33287 | } | |
33288 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33289 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33290 | } | |
33291 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33292 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33293 | } | |
33294 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33295 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33296 | } | |
33297 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33298 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33299 | } | |
33300 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
33301 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
33302 | } | |
33303 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
33304 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33305 | } | |
33306 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33307 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33308 | } | |
33309 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33310 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33311 | } | |
33312 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33313 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33314 | } | |
33315 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33316 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33317 | } | |
33318 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
33319 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
33320 | } | |
33321 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
33322 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
33323 | } | |
33324 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33325 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33326 | } | |
33327 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33328 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33329 | } | |
33330 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
33331 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33332 | } | |
33333 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
33334 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33335 | } | |
f9bf356b RD |
33336 | static void *_p_wxSimpleHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { |
33337 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
33338 | } | |
d14a1e28 RD |
33339 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { |
33340 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33341 | } | |
33342 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
33343 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33344 | } | |
33345 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
33346 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33347 | } | |
33348 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
33349 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33350 | } | |
33351 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
33352 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
33353 | } | |
33354 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
33355 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
33356 | } | |
33357 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
33358 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
33359 | } | |
33360 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
33361 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
33362 | } | |
33363 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
33364 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
33365 | } | |
33366 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
33367 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
33368 | } | |
d14a1e28 RD |
33369 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
33370 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
33371 | } | |
33372 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
33373 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
33374 | } | |
33375 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
33376 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
33377 | } | |
d14a1e28 RD |
33378 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { |
33379 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
33380 | } | |
27e45892 RD |
33381 | static void *_p_wxNumberEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33382 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxNumberEntryDialog *) x)); | |
33383 | } | |
d3b6e4ff RD |
33384 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33385 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33386 | } | |
d14a1e28 RD |
33387 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33388 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
33389 | } | |
33390 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
33391 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33392 | } | |
33393 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
33394 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33395 | } | |
33396 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
33397 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
33398 | } | |
27e45892 RD |
33399 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
33400 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
33401 | } | |
d3b6e4ff RD |
33402 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
33403 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
33404 | } | |
d14a1e28 RD |
33405 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { |
33406 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
33407 | } | |
33408 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
33409 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33410 | } | |
33411 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
33412 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33413 | } | |
33414 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
33415 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33416 | } | |
33417 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
33418 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
33419 | } | |
33420 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33421 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33422 | } | |
33423 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
33424 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33425 | } | |
33426 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
33427 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33428 | } | |
33429 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
33430 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33431 | } | |
27e45892 RD |
33432 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
33433 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
33434 | } | |
d3b6e4ff RD |
33435 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
33436 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33437 | } | |
d14a1e28 RD |
33438 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
33439 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33440 | } | |
33441 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
33442 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33443 | } | |
33444 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
33445 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33446 | } | |
33447 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
33448 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33449 | } | |
33450 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
33451 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
33452 | } | |
33453 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
33454 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
33455 | } | |
d14a1e28 RD |
33456 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
33457 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33458 | } | |
33459 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
33460 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33461 | } | |
33462 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
33463 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33464 | } | |
33465 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
33466 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
33467 | } | |
33468 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
33469 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33470 | } | |
33471 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
33472 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
33473 | } | |
33474 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
33475 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
33476 | } | |
33477 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
33478 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
33479 | } | |
33480 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
33481 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
33482 | } | |
33483 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
33484 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
33485 | } | |
d3b6e4ff RD |
33486 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
33487 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
33488 | } | |
1cb4a8aa RD |
33489 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
33490 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33491 | } | |
d14a1e28 RD |
33492 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33493 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33494 | } | |
33495 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
33496 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33497 | } | |
33498 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
33499 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33500 | } | |
33501 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
33502 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33503 | } | |
33504 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33505 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33506 | } | |
33507 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
33508 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
33509 | } | |
33510 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
33511 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33512 | } | |
f9bf356b RD |
33513 | static void *_p_wxSimpleHtmlListBoxTo_p_wxWindow(void *x) { |
33514 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
33515 | } | |
d14a1e28 RD |
33516 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { |
33517 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33518 | } | |
33519 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
33520 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33521 | } | |
33522 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
33523 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
33524 | } | |
33525 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
33526 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33527 | } | |
33528 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
33529 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
33530 | } | |
33531 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
33532 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
33533 | } | |
33534 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
33535 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
33536 | } | |
33537 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
33538 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
33539 | } | |
33540 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
33541 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
33542 | } | |
d14a1e28 RD |
33543 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
33544 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33545 | } | |
1cb4a8aa RD |
33546 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
33547 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33548 | } | |
d14a1e28 RD |
33549 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { |
33550 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33551 | } | |
33552 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
33553 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
33554 | } | |
33555 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
33556 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
33557 | } | |
33558 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
33559 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
33560 | } | |
33561 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
33562 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
33563 | } | |
d14a1e28 RD |
33564 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
33565 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
33566 | } | |
33567 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
33568 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33569 | } | |
33570 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
33571 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33572 | } | |
33573 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
33574 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
33575 | } | |
d3b6e4ff RD |
33576 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
33577 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33578 | } | |
27e45892 RD |
33579 | static void *_p_wxNumberEntryDialogTo_p_wxDialog(void *x) { |
33580 | return (void *)((wxDialog *) ((wxNumberEntryDialog *) x)); | |
33581 | } | |
d14a1e28 RD |
33582 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
33583 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
33584 | } | |
33585 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
33586 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
33587 | } | |
33588 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
33589 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
33590 | } | |
33591 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
33592 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33593 | } | |
1cb4a8aa RD |
33594 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
33595 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33596 | } | |
d14a1e28 RD |
33597 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { |
33598 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33599 | } | |
33600 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
33601 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33602 | } | |
f9bf356b RD |
33603 | static void *_p_wxSimpleHtmlListBoxTo_p_wxPanel(void *x) { |
33604 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
33605 | } | |
d14a1e28 RD |
33606 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { |
33607 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
33608 | } | |
33609 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
33610 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33611 | } | |
33612 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
33613 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
33614 | } | |
33615 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
33616 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33617 | } | |
33618 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33619 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33620 | } | |
33621 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33622 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33623 | } | |
33624 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33625 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33626 | } | |
53aa7709 RD |
33627 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
33628 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
33629 | } | |
d14a1e28 RD |
33630 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
33631 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33632 | } | |
2131d850 RD |
33633 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
33634 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
33635 | } | |
d14a1e28 RD |
33636 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
33637 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
33638 | } | |
33639 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33640 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33641 | } | |
33642 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33643 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33644 | } | |
33645 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
33646 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
33647 | } | |
33648 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33649 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33650 | } | |
33651 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33652 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33653 | } | |
33654 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
33655 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
33656 | } | |
33657 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
33658 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33659 | } | |
f9bf356b RD |
33660 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { |
33661 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33662 | } | |
01f6b6d3 | 33663 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33664 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
33665 | 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}; | |
33666 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
33667 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
33668 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
33669 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
33670 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
f9bf356b | 33671 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33672 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
33673 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
33674 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
33675 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
33676 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
33677 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
2131d850 RD |
33678 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; |
33679 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 33680 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
2131d850 RD |
33681 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
33682 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
33683 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33684 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
33685 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
33686 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33687 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; |
33688 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
33689 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
33690 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
33691 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
33692 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
33693 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
33694 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
33695 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
33696 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
33697 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
33698 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 33699 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33700 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
33701 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
33702 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
33703 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
33704 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
33705 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
33706 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
33707 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
33708 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
33709 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
33710 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
33711 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
33712 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
33713 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
33714 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
33715 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
33716 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
33717 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
33718 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
33719 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; |
33720 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
33721 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
33722 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
33723 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
33724 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
33725 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
33726 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
33727 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
33728 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
33729 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
33730 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
33731 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 33732 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33733 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
33734 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
f9bf356b | 33735 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33736 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; |
33737 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
33738 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
33739 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
33740 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
33741 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
33742 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
33743 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
33744 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
33745 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
27e45892 | 33746 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", "wxNumberEntryDialog *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33747 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
33748 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 33749 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 33750 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33751 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
33752 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
33753 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
33754 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
33755 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
33756 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
33757 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
33758 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
33759 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
33760 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33761 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
33762 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
33763 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
33764 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
33765 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
33766 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
33767 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
33768 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
33769 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 33770 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 33771 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33772 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
33773 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 33774 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33775 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
33776 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
33777 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
33778 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
33779 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
33780 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
33781 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
33782 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
33783 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
33784 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
33785 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
33786 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
33787 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
33788 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
33789 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
33790 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
33791 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
33792 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
33793 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
33794 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
33795 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
33796 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
33797 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
33798 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
33799 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
33800 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
33801 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
33802 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
33803 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
33804 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
33805 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
33806 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
33807 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
33808 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
33809 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
33810 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
33811 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
33812 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
f9bf356b | 33813 | static swig_type_info _swigt__p_wxSimpleHtmlListBox = {"_p_wxSimpleHtmlListBox", "wxSimpleHtmlListBox *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33814 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; |
33815 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
33816 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
33817 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
33818 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
33819 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
33820 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
33821 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
33822 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
33823 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
33824 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
33825 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
33826 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
33827 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
33828 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
f9bf356b | 33829 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33830 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; |
33831 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
33832 | |
33833 | static swig_type_info *swig_type_initial[] = { | |
01f6b6d3 | 33834 | &_swigt__p_bool, |
32fe5131 RD |
33835 | &_swigt__p_char, |
33836 | &_swigt__p_form_ops_t, | |
33837 | &_swigt__p_int, | |
33838 | &_swigt__p_unsigned_char, | |
33839 | &_swigt__p_unsigned_int, | |
33840 | &_swigt__p_unsigned_long, | |
33841 | &_swigt__p_wxANIHandler, | |
33842 | &_swigt__p_wxAcceleratorTable, | |
33843 | &_swigt__p_wxActivateEvent, | |
33844 | &_swigt__p_wxArrayInt, | |
f9bf356b | 33845 | &_swigt__p_wxArrayString, |
32fe5131 RD |
33846 | &_swigt__p_wxBMPHandler, |
33847 | &_swigt__p_wxBitmap, | |
33848 | &_swigt__p_wxBoxSizer, | |
33849 | &_swigt__p_wxCURHandler, | |
33850 | &_swigt__p_wxCalculateLayoutEvent, | |
33851 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 33852 | &_swigt__p_wxClipboardTextEvent, |
32fe5131 RD |
33853 | &_swigt__p_wxCloseEvent, |
33854 | &_swigt__p_wxColour, | |
33855 | &_swigt__p_wxColourData, | |
33856 | &_swigt__p_wxColourDialog, | |
33857 | &_swigt__p_wxCommandEvent, | |
33858 | &_swigt__p_wxContextMenuEvent, | |
33859 | &_swigt__p_wxControl, | |
33860 | &_swigt__p_wxControlWithItems, | |
33861 | &_swigt__p_wxDC, | |
33862 | &_swigt__p_wxDateEvent, | |
33863 | &_swigt__p_wxDialog, | |
33864 | &_swigt__p_wxDirDialog, | |
33865 | &_swigt__p_wxDisplayChangedEvent, | |
33866 | &_swigt__p_wxDropFilesEvent, | |
33867 | &_swigt__p_wxDuplexMode, | |
33868 | &_swigt__p_wxEraseEvent, | |
33869 | &_swigt__p_wxEvent, | |
33870 | &_swigt__p_wxEvtHandler, | |
33871 | &_swigt__p_wxFSFile, | |
33872 | &_swigt__p_wxFileDialog, | |
33873 | &_swigt__p_wxFileSystem, | |
33874 | &_swigt__p_wxFindDialogEvent, | |
33875 | &_swigt__p_wxFindReplaceData, | |
33876 | &_swigt__p_wxFindReplaceDialog, | |
33877 | &_swigt__p_wxFlexGridSizer, | |
33878 | &_swigt__p_wxFocusEvent, | |
33879 | &_swigt__p_wxFont, | |
33880 | &_swigt__p_wxFontData, | |
33881 | &_swigt__p_wxFontDialog, | |
33882 | &_swigt__p_wxFrame, | |
33883 | &_swigt__p_wxGBSizerItem, | |
33884 | &_swigt__p_wxGIFHandler, | |
33885 | &_swigt__p_wxGridBagSizer, | |
33886 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 33887 | &_swigt__p_wxHtmlLinkInfo, |
32fe5131 RD |
33888 | &_swigt__p_wxICOHandler, |
33889 | &_swigt__p_wxIcon, | |
33890 | &_swigt__p_wxIconBundle, | |
33891 | &_swigt__p_wxIconizeEvent, | |
33892 | &_swigt__p_wxIdleEvent, | |
33893 | &_swigt__p_wxImage, | |
33894 | &_swigt__p_wxImageHandler, | |
33895 | &_swigt__p_wxIndividualLayoutConstraint, | |
33896 | &_swigt__p_wxInitDialogEvent, | |
f9bf356b | 33897 | &_swigt__p_wxItemContainer, |
32fe5131 RD |
33898 | &_swigt__p_wxJPEGHandler, |
33899 | &_swigt__p_wxKeyEvent, | |
33900 | &_swigt__p_wxLayoutAlgorithm, | |
33901 | &_swigt__p_wxLayoutConstraints, | |
33902 | &_swigt__p_wxMDIChildFrame, | |
33903 | &_swigt__p_wxMDIClientWindow, | |
33904 | &_swigt__p_wxMDIParentFrame, | |
33905 | &_swigt__p_wxMaximizeEvent, | |
33906 | &_swigt__p_wxMenu, | |
33907 | &_swigt__p_wxMenuBar, | |
33908 | &_swigt__p_wxMenuEvent, | |
33909 | &_swigt__p_wxMenuItem, | |
33910 | &_swigt__p_wxMessageDialog, | |
33911 | &_swigt__p_wxMiniFrame, | |
33912 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 33913 | &_swigt__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
33914 | &_swigt__p_wxMouseEvent, |
33915 | &_swigt__p_wxMoveEvent, | |
33916 | &_swigt__p_wxMultiChoiceDialog, | |
33917 | &_swigt__p_wxNavigationKeyEvent, | |
33918 | &_swigt__p_wxNcPaintEvent, | |
33919 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 33920 | &_swigt__p_wxNumberEntryDialog, |
32fe5131 RD |
33921 | &_swigt__p_wxObject, |
33922 | &_swigt__p_wxPCXHandler, | |
33923 | &_swigt__p_wxPNGHandler, | |
33924 | &_swigt__p_wxPNMHandler, | |
33925 | &_swigt__p_wxPageSetupDialog, | |
33926 | &_swigt__p_wxPageSetupDialogData, | |
33927 | &_swigt__p_wxPaintEvent, | |
33928 | &_swigt__p_wxPaletteChangedEvent, | |
33929 | &_swigt__p_wxPanel, | |
33930 | &_swigt__p_wxPaperSize, | |
33931 | &_swigt__p_wxPasswordEntryDialog, | |
33932 | &_swigt__p_wxPoint, | |
33933 | &_swigt__p_wxPopupWindow, | |
33934 | &_swigt__p_wxPreviewCanvas, | |
33935 | &_swigt__p_wxPreviewControlBar, | |
33936 | &_swigt__p_wxPreviewFrame, | |
33937 | &_swigt__p_wxPrintData, | |
33938 | &_swigt__p_wxPrintDialog, | |
33939 | &_swigt__p_wxPrintDialogData, | |
33940 | &_swigt__p_wxPrintPreview, | |
33941 | &_swigt__p_wxPrinter, | |
33942 | &_swigt__p_wxProgressDialog, | |
33943 | &_swigt__p_wxPyApp, | |
33944 | &_swigt__p_wxPyCommandEvent, | |
33945 | &_swigt__p_wxPyEvent, | |
33946 | &_swigt__p_wxPyHtmlListBox, | |
33947 | &_swigt__p_wxPyImageHandler, | |
33948 | &_swigt__p_wxPyPanel, | |
33949 | &_swigt__p_wxPyPopupTransientWindow, | |
33950 | &_swigt__p_wxPyPreviewControlBar, | |
33951 | &_swigt__p_wxPyPreviewFrame, | |
33952 | &_swigt__p_wxPyPrintPreview, | |
33953 | &_swigt__p_wxPyPrintout, | |
33954 | &_swigt__p_wxPyScrolledWindow, | |
33955 | &_swigt__p_wxPySizer, | |
33956 | &_swigt__p_wxPyTaskBarIcon, | |
33957 | &_swigt__p_wxPyVListBox, | |
33958 | &_swigt__p_wxPyVScrolledWindow, | |
33959 | &_swigt__p_wxPyValidator, | |
33960 | &_swigt__p_wxPyWindow, | |
33961 | &_swigt__p_wxQueryLayoutInfoEvent, | |
33962 | &_swigt__p_wxQueryNewPaletteEvent, | |
33963 | &_swigt__p_wxRect, | |
33964 | &_swigt__p_wxRegion, | |
33965 | &_swigt__p_wxSashEvent, | |
33966 | &_swigt__p_wxSashLayoutWindow, | |
33967 | &_swigt__p_wxSashWindow, | |
33968 | &_swigt__p_wxScrollEvent, | |
33969 | &_swigt__p_wxScrollWinEvent, | |
33970 | &_swigt__p_wxScrolledWindow, | |
33971 | &_swigt__p_wxSetCursorEvent, | |
33972 | &_swigt__p_wxShowEvent, | |
f9bf356b | 33973 | &_swigt__p_wxSimpleHtmlListBox, |
32fe5131 RD |
33974 | &_swigt__p_wxSingleChoiceDialog, |
33975 | &_swigt__p_wxSize, | |
33976 | &_swigt__p_wxSizeEvent, | |
33977 | &_swigt__p_wxSizer, | |
33978 | &_swigt__p_wxSizerItem, | |
33979 | &_swigt__p_wxSplashScreen, | |
33980 | &_swigt__p_wxSplashScreenWindow, | |
33981 | &_swigt__p_wxSplitterEvent, | |
33982 | &_swigt__p_wxSplitterWindow, | |
33983 | &_swigt__p_wxStaticBoxSizer, | |
33984 | &_swigt__p_wxStatusBar, | |
33985 | &_swigt__p_wxStdDialogButtonSizer, | |
33986 | &_swigt__p_wxString, | |
33987 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 33988 | &_swigt__p_wxTGAHandler, |
32fe5131 RD |
33989 | &_swigt__p_wxTIFFHandler, |
33990 | &_swigt__p_wxTaskBarIcon, | |
33991 | &_swigt__p_wxTaskBarIconEvent, | |
33992 | &_swigt__p_wxTextEntryDialog, | |
33993 | &_swigt__p_wxTipWindow, | |
33994 | &_swigt__p_wxToolBar, | |
33995 | &_swigt__p_wxTopLevelWindow, | |
33996 | &_swigt__p_wxUpdateUIEvent, | |
33997 | &_swigt__p_wxValidator, | |
33998 | &_swigt__p_wxVisualAttributes, | |
33999 | &_swigt__p_wxWindow, | |
34000 | &_swigt__p_wxWindowCreateEvent, | |
34001 | &_swigt__p_wxWindowDestroyEvent, | |
34002 | &_swigt__p_wxXPMHandler, | |
32fe5131 RD |
34003 | }; |
34004 | ||
01f6b6d3 | 34005 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34006 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
34007 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
34008 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34009 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
34010 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
34011 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
34012 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34013 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34014 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
34015 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34016 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
34017 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
34018 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 RD |
34019 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
34020 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 34021 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 RD |
34022 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
34023 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34024 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
34025 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
34026 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34027 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 34028 | 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 | 34029 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 34030 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34031 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; |
34032 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
34033 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34034 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34035 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34036 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34037 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34038 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34039 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 34040 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34041 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
34042 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34043 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34044 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34045 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34046 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34047 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34048 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34049 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34050 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34051 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34052 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34053 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34054 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34055 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34056 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34057 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34058 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 34059 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34060 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; |
34061 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
34062 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
34063 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34064 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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_wxTipWindow, _p_wxTipWindowTo_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_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34065 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; |
34066 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
34067 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34068 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
34069 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34070 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
34071 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
34072 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34073 | 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_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 | 34074 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34075 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
34076 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34077 | static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34078 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; |
34079 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34080 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34081 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34082 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
34083 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
34084 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34085 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34086 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34087 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 34088 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = { {&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 34089 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 34090 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 34091 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34092 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
34093 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34094 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34095 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34096 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34097 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34098 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34099 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
34100 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34101 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
34102 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
34103 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34104 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34105 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34106 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34107 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34108 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34109 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34110 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 34111 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 34112 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34113 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
34114 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 34115 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34116 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
34117 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34118 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_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_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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_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_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34119 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; |
34120 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34121 | 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_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_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}}; |
32fe5131 RD |
34122 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
34123 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34124 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
34125 | static swig_cast_info _swigc__p_wxPopupWindow[] = { {&_swigt__p_wxPopupWindow, 0, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxPopupWindow, 0, 0},{0, 0, 0, 0}}; | |
34126 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
34127 | 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}}; | |
34128 | 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}}; | |
34129 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
34130 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
34131 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
34132 | 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}}; | |
34133 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
34134 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b | 34135 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxPyHtmlListBox, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34136 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; |
34137 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = { {&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxPyPopupTransientWindow, 0, 0},{0, 0, 0, 0}}; | |
34138 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
34139 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
34140 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
34141 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
34142 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34143 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
f9bf356b RD |
34144 | static swig_cast_info _swigc__p_wxPyVListBox[] = { {&_swigt__p_wxPyVListBox, 0, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxPyVListBox, 0, 0},{0, 0, 0, 0}}; |
34145 | 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}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
34146 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; |
34147 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34148 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
34149 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
34150 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34151 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34152 | 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}}; | |
34153 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34154 | 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}}; | |
f9bf356b | 34155 | static swig_cast_info _swigc__p_wxSimpleHtmlListBox[] = { {&_swigt__p_wxSimpleHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
34156 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; |
34157 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
34158 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
34159 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34160 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34161 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34162 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
34163 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
34164 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
34165 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
34166 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34167 | 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}}; | |
34168 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
34169 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 34170 | 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_wxTopLevelWindow, 0, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0},{0, 0, 0, 0}}; |
f9bf356b | 34171 | static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 34172 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; |
f9bf356b | 34173 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_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_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_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 |
34174 | |
34175 | static swig_cast_info *swig_cast_initial[] = { | |
01f6b6d3 | 34176 | _swigc__p_bool, |
32fe5131 RD |
34177 | _swigc__p_char, |
34178 | _swigc__p_form_ops_t, | |
34179 | _swigc__p_int, | |
34180 | _swigc__p_unsigned_char, | |
34181 | _swigc__p_unsigned_int, | |
34182 | _swigc__p_unsigned_long, | |
34183 | _swigc__p_wxANIHandler, | |
34184 | _swigc__p_wxAcceleratorTable, | |
34185 | _swigc__p_wxActivateEvent, | |
34186 | _swigc__p_wxArrayInt, | |
f9bf356b | 34187 | _swigc__p_wxArrayString, |
32fe5131 RD |
34188 | _swigc__p_wxBMPHandler, |
34189 | _swigc__p_wxBitmap, | |
34190 | _swigc__p_wxBoxSizer, | |
34191 | _swigc__p_wxCURHandler, | |
34192 | _swigc__p_wxCalculateLayoutEvent, | |
34193 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 34194 | _swigc__p_wxClipboardTextEvent, |
32fe5131 RD |
34195 | _swigc__p_wxCloseEvent, |
34196 | _swigc__p_wxColour, | |
34197 | _swigc__p_wxColourData, | |
34198 | _swigc__p_wxColourDialog, | |
34199 | _swigc__p_wxCommandEvent, | |
34200 | _swigc__p_wxContextMenuEvent, | |
34201 | _swigc__p_wxControl, | |
34202 | _swigc__p_wxControlWithItems, | |
34203 | _swigc__p_wxDC, | |
34204 | _swigc__p_wxDateEvent, | |
34205 | _swigc__p_wxDialog, | |
34206 | _swigc__p_wxDirDialog, | |
34207 | _swigc__p_wxDisplayChangedEvent, | |
34208 | _swigc__p_wxDropFilesEvent, | |
34209 | _swigc__p_wxDuplexMode, | |
34210 | _swigc__p_wxEraseEvent, | |
34211 | _swigc__p_wxEvent, | |
34212 | _swigc__p_wxEvtHandler, | |
34213 | _swigc__p_wxFSFile, | |
34214 | _swigc__p_wxFileDialog, | |
34215 | _swigc__p_wxFileSystem, | |
34216 | _swigc__p_wxFindDialogEvent, | |
34217 | _swigc__p_wxFindReplaceData, | |
34218 | _swigc__p_wxFindReplaceDialog, | |
34219 | _swigc__p_wxFlexGridSizer, | |
34220 | _swigc__p_wxFocusEvent, | |
34221 | _swigc__p_wxFont, | |
34222 | _swigc__p_wxFontData, | |
34223 | _swigc__p_wxFontDialog, | |
34224 | _swigc__p_wxFrame, | |
34225 | _swigc__p_wxGBSizerItem, | |
34226 | _swigc__p_wxGIFHandler, | |
34227 | _swigc__p_wxGridBagSizer, | |
34228 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 34229 | _swigc__p_wxHtmlLinkInfo, |
32fe5131 RD |
34230 | _swigc__p_wxICOHandler, |
34231 | _swigc__p_wxIcon, | |
34232 | _swigc__p_wxIconBundle, | |
34233 | _swigc__p_wxIconizeEvent, | |
34234 | _swigc__p_wxIdleEvent, | |
34235 | _swigc__p_wxImage, | |
34236 | _swigc__p_wxImageHandler, | |
34237 | _swigc__p_wxIndividualLayoutConstraint, | |
34238 | _swigc__p_wxInitDialogEvent, | |
f9bf356b | 34239 | _swigc__p_wxItemContainer, |
32fe5131 RD |
34240 | _swigc__p_wxJPEGHandler, |
34241 | _swigc__p_wxKeyEvent, | |
34242 | _swigc__p_wxLayoutAlgorithm, | |
34243 | _swigc__p_wxLayoutConstraints, | |
34244 | _swigc__p_wxMDIChildFrame, | |
34245 | _swigc__p_wxMDIClientWindow, | |
34246 | _swigc__p_wxMDIParentFrame, | |
34247 | _swigc__p_wxMaximizeEvent, | |
34248 | _swigc__p_wxMenu, | |
34249 | _swigc__p_wxMenuBar, | |
34250 | _swigc__p_wxMenuEvent, | |
34251 | _swigc__p_wxMenuItem, | |
34252 | _swigc__p_wxMessageDialog, | |
34253 | _swigc__p_wxMiniFrame, | |
34254 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 34255 | _swigc__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
34256 | _swigc__p_wxMouseEvent, |
34257 | _swigc__p_wxMoveEvent, | |
34258 | _swigc__p_wxMultiChoiceDialog, | |
34259 | _swigc__p_wxNavigationKeyEvent, | |
34260 | _swigc__p_wxNcPaintEvent, | |
34261 | _swigc__p_wxNotifyEvent, | |
27e45892 | 34262 | _swigc__p_wxNumberEntryDialog, |
32fe5131 RD |
34263 | _swigc__p_wxObject, |
34264 | _swigc__p_wxPCXHandler, | |
34265 | _swigc__p_wxPNGHandler, | |
34266 | _swigc__p_wxPNMHandler, | |
34267 | _swigc__p_wxPageSetupDialog, | |
34268 | _swigc__p_wxPageSetupDialogData, | |
34269 | _swigc__p_wxPaintEvent, | |
34270 | _swigc__p_wxPaletteChangedEvent, | |
34271 | _swigc__p_wxPanel, | |
34272 | _swigc__p_wxPaperSize, | |
34273 | _swigc__p_wxPasswordEntryDialog, | |
34274 | _swigc__p_wxPoint, | |
34275 | _swigc__p_wxPopupWindow, | |
34276 | _swigc__p_wxPreviewCanvas, | |
34277 | _swigc__p_wxPreviewControlBar, | |
34278 | _swigc__p_wxPreviewFrame, | |
34279 | _swigc__p_wxPrintData, | |
34280 | _swigc__p_wxPrintDialog, | |
34281 | _swigc__p_wxPrintDialogData, | |
34282 | _swigc__p_wxPrintPreview, | |
34283 | _swigc__p_wxPrinter, | |
34284 | _swigc__p_wxProgressDialog, | |
34285 | _swigc__p_wxPyApp, | |
34286 | _swigc__p_wxPyCommandEvent, | |
34287 | _swigc__p_wxPyEvent, | |
34288 | _swigc__p_wxPyHtmlListBox, | |
34289 | _swigc__p_wxPyImageHandler, | |
34290 | _swigc__p_wxPyPanel, | |
34291 | _swigc__p_wxPyPopupTransientWindow, | |
34292 | _swigc__p_wxPyPreviewControlBar, | |
34293 | _swigc__p_wxPyPreviewFrame, | |
34294 | _swigc__p_wxPyPrintPreview, | |
34295 | _swigc__p_wxPyPrintout, | |
34296 | _swigc__p_wxPyScrolledWindow, | |
34297 | _swigc__p_wxPySizer, | |
34298 | _swigc__p_wxPyTaskBarIcon, | |
34299 | _swigc__p_wxPyVListBox, | |
34300 | _swigc__p_wxPyVScrolledWindow, | |
34301 | _swigc__p_wxPyValidator, | |
34302 | _swigc__p_wxPyWindow, | |
34303 | _swigc__p_wxQueryLayoutInfoEvent, | |
34304 | _swigc__p_wxQueryNewPaletteEvent, | |
34305 | _swigc__p_wxRect, | |
34306 | _swigc__p_wxRegion, | |
34307 | _swigc__p_wxSashEvent, | |
34308 | _swigc__p_wxSashLayoutWindow, | |
34309 | _swigc__p_wxSashWindow, | |
34310 | _swigc__p_wxScrollEvent, | |
34311 | _swigc__p_wxScrollWinEvent, | |
34312 | _swigc__p_wxScrolledWindow, | |
34313 | _swigc__p_wxSetCursorEvent, | |
34314 | _swigc__p_wxShowEvent, | |
f9bf356b | 34315 | _swigc__p_wxSimpleHtmlListBox, |
32fe5131 RD |
34316 | _swigc__p_wxSingleChoiceDialog, |
34317 | _swigc__p_wxSize, | |
0085ce49 RD |
34318 | _swigc__p_wxSizeEvent, |
34319 | _swigc__p_wxSizer, | |
34320 | _swigc__p_wxSizerItem, | |
34321 | _swigc__p_wxSplashScreen, | |
34322 | _swigc__p_wxSplashScreenWindow, | |
34323 | _swigc__p_wxSplitterEvent, | |
34324 | _swigc__p_wxSplitterWindow, | |
34325 | _swigc__p_wxStaticBoxSizer, | |
34326 | _swigc__p_wxStatusBar, | |
34327 | _swigc__p_wxStdDialogButtonSizer, | |
34328 | _swigc__p_wxString, | |
34329 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 34330 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
34331 | _swigc__p_wxTIFFHandler, |
34332 | _swigc__p_wxTaskBarIcon, | |
34333 | _swigc__p_wxTaskBarIconEvent, | |
34334 | _swigc__p_wxTextEntryDialog, | |
34335 | _swigc__p_wxTipWindow, | |
34336 | _swigc__p_wxToolBar, | |
34337 | _swigc__p_wxTopLevelWindow, | |
34338 | _swigc__p_wxUpdateUIEvent, | |
34339 | _swigc__p_wxValidator, | |
34340 | _swigc__p_wxVisualAttributes, | |
34341 | _swigc__p_wxWindow, | |
34342 | _swigc__p_wxWindowCreateEvent, | |
34343 | _swigc__p_wxWindowDestroyEvent, | |
34344 | _swigc__p_wxXPMHandler, | |
34345 | }; | |
34346 | ||
34347 | ||
34348 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
34349 | ||
34350 | static swig_const_info swig_const_table[] = { | |
34351 | {0, 0, 0, 0.0, 0, 0}}; | |
34352 | ||
093d3ff1 RD |
34353 | #ifdef __cplusplus |
34354 | } | |
34355 | #endif | |
0085ce49 RD |
34356 | /* ----------------------------------------------------------------------------- |
34357 | * Type initialization: | |
34358 | * This problem is tough by the requirement that no dynamic | |
34359 | * memory is used. Also, since swig_type_info structures store pointers to | |
34360 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
34361 | * to swig_type_info structures, we need some lookup code at initialization. | |
34362 | * The idea is that swig generates all the structures that are needed. | |
34363 | * The runtime then collects these partially filled structures. | |
34364 | * The SWIG_InitializeModule function takes these initial arrays out of | |
34365 | * swig_module, and does all the lookup, filling in the swig_module.types | |
34366 | * array with the correct data and linking the correct swig_cast_info | |
34367 | * structures together. | |
34368 | * | |
34369 | * The generated swig_type_info structures are assigned staticly to an initial | |
34370 | * array. We just loop though that array, and handle each type individually. | |
34371 | * First we lookup if this type has been already loaded, and if so, use the | |
34372 | * loaded structure instead of the generated one. Then we have to fill in the | |
34373 | * cast linked list. The cast data is initially stored in something like a | |
34374 | * two-dimensional array. Each row corresponds to a type (there are the same | |
34375 | * number of rows as there are in the swig_type_initial array). Each entry in | |
34376 | * a column is one of the swig_cast_info structures for that type. | |
34377 | * The cast_initial array is actually an array of arrays, because each row has | |
34378 | * a variable number of columns. So to actually build the cast linked list, | |
34379 | * we find the array of casts associated with the type, and loop through it | |
34380 | * adding the casts to the list. The one last trick we need to do is making | |
34381 | * sure the type pointer in the swig_cast_info struct is correct. | |
34382 | * | |
34383 | * First off, we lookup the cast->type name to see if it is already loaded. | |
34384 | * There are three cases to handle: | |
34385 | * 1) If the cast->type has already been loaded AND the type we are adding | |
34386 | * casting info to has not been loaded (it is in this module), THEN we | |
34387 | * replace the cast->type pointer with the type pointer that has already | |
34388 | * been loaded. | |
34389 | * 2) If BOTH types (the one we are adding casting info to, and the | |
34390 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
34391 | * the previous module so we just ignore it. | |
34392 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
34393 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
34394 | * be correct. | |
34395 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 34396 | |
d14a1e28 | 34397 | #ifdef __cplusplus |
0085ce49 RD |
34398 | extern "C" { |
34399 | #if 0 | |
34400 | } /* c-mode */ | |
34401 | #endif | |
34402 | #endif | |
34403 | ||
34404 | #if 0 | |
34405 | #define SWIGRUNTIME_DEBUG | |
34406 | #endif | |
34407 | ||
34408 | SWIGRUNTIME void | |
34409 | SWIG_InitializeModule(void *clientdata) { | |
34410 | size_t i; | |
34411 | swig_module_info *module_head; | |
34412 | static int init_run = 0; | |
34413 | ||
34414 | clientdata = clientdata; | |
34415 | ||
34416 | if (init_run) return; | |
34417 | init_run = 1; | |
34418 | ||
34419 | /* Initialize the swig_module */ | |
34420 | swig_module.type_initial = swig_type_initial; | |
34421 | swig_module.cast_initial = swig_cast_initial; | |
34422 | ||
34423 | /* Try and load any already created modules */ | |
34424 | module_head = SWIG_GetModule(clientdata); | |
34425 | if (module_head) { | |
34426 | swig_module.next = module_head->next; | |
34427 | module_head->next = &swig_module; | |
34428 | } else { | |
34429 | /* This is the first module loaded */ | |
34430 | swig_module.next = &swig_module; | |
34431 | SWIG_SetModule(clientdata, &swig_module); | |
34432 | } | |
34433 | ||
34434 | /* Now work on filling in swig_module.types */ | |
34435 | #ifdef SWIGRUNTIME_DEBUG | |
34436 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
34437 | #endif | |
34438 | for (i = 0; i < swig_module.size; ++i) { | |
34439 | swig_type_info *type = 0; | |
34440 | swig_type_info *ret; | |
34441 | swig_cast_info *cast; | |
d14a1e28 | 34442 | |
0085ce49 RD |
34443 | #ifdef SWIGRUNTIME_DEBUG |
34444 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34445 | #endif | |
d14a1e28 | 34446 | |
0085ce49 RD |
34447 | /* if there is another module already loaded */ |
34448 | if (swig_module.next != &swig_module) { | |
34449 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 34450 | } |
0085ce49 RD |
34451 | if (type) { |
34452 | /* Overwrite clientdata field */ | |
34453 | #ifdef SWIGRUNTIME_DEBUG | |
34454 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
34455 | #endif | |
34456 | if (swig_module.type_initial[i]->clientdata) { | |
34457 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
34458 | #ifdef SWIGRUNTIME_DEBUG | |
34459 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
34460 | #endif | |
34461 | } | |
34462 | } else { | |
34463 | type = swig_module.type_initial[i]; | |
093d3ff1 | 34464 | } |
0085ce49 RD |
34465 | |
34466 | /* Insert casting types */ | |
34467 | cast = swig_module.cast_initial[i]; | |
34468 | while (cast->type) { | |
34469 | /* Don't need to add information already in the list */ | |
34470 | ret = 0; | |
34471 | #ifdef SWIGRUNTIME_DEBUG | |
34472 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
34473 | #endif | |
34474 | if (swig_module.next != &swig_module) { | |
34475 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
34476 | #ifdef SWIGRUNTIME_DEBUG | |
34477 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
34478 | #endif | |
34479 | } | |
34480 | if (ret) { | |
34481 | if (type == swig_module.type_initial[i]) { | |
34482 | #ifdef SWIGRUNTIME_DEBUG | |
34483 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
34484 | #endif | |
34485 | cast->type = ret; | |
34486 | ret = 0; | |
34487 | } else { | |
34488 | /* Check for casting already in the list */ | |
34489 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
34490 | #ifdef SWIGRUNTIME_DEBUG | |
34491 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
34492 | #endif | |
34493 | if (!ocast) ret = 0; | |
34494 | } | |
34495 | } | |
34496 | ||
34497 | if (!ret) { | |
34498 | #ifdef SWIGRUNTIME_DEBUG | |
34499 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
34500 | #endif | |
34501 | if (type->cast) { | |
34502 | type->cast->prev = cast; | |
34503 | cast->next = type->cast; | |
34504 | } | |
34505 | type->cast = cast; | |
34506 | } | |
34507 | cast++; | |
093d3ff1 | 34508 | } |
0085ce49 RD |
34509 | /* Set entry in modules->types array equal to the type */ |
34510 | swig_module.types[i] = type; | |
34511 | } | |
34512 | swig_module.types[i] = 0; | |
34513 | ||
34514 | #ifdef SWIGRUNTIME_DEBUG | |
34515 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34516 | for (i = 0; i < swig_module.size; ++i) { | |
34517 | int j = 0; | |
34518 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
34519 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34520 | while (cast->type) { | |
34521 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
34522 | cast++; | |
34523 | ++j; | |
34524 | } | |
34525 | printf("---- Total casts: %d\n",j); | |
34526 | } | |
34527 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34528 | #endif | |
34529 | } | |
34530 | ||
34531 | /* This function will propagate the clientdata field of type to | |
34532 | * any new swig_type_info structures that have been added into the list | |
34533 | * of equivalent types. It is like calling | |
34534 | * SWIG_TypeClientData(type, clientdata) a second time. | |
34535 | */ | |
34536 | SWIGRUNTIME void | |
34537 | SWIG_PropagateClientData(void) { | |
34538 | size_t i; | |
34539 | swig_cast_info *equiv; | |
34540 | static int init_run = 0; | |
34541 | ||
34542 | if (init_run) return; | |
34543 | init_run = 1; | |
34544 | ||
34545 | for (i = 0; i < swig_module.size; i++) { | |
34546 | if (swig_module.types[i]->clientdata) { | |
34547 | equiv = swig_module.types[i]->cast; | |
34548 | while (equiv) { | |
34549 | if (!equiv->converter) { | |
34550 | if (equiv->type && !equiv->type->clientdata) | |
34551 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
34552 | } | |
34553 | equiv = equiv->next; | |
34554 | } | |
093d3ff1 | 34555 | } |
0085ce49 RD |
34556 | } |
34557 | } | |
34558 | ||
34559 | #ifdef __cplusplus | |
34560 | #if 0 | |
34561 | { | |
34562 | /* c-mode */ | |
34563 | #endif | |
34564 | } | |
34565 | #endif | |
34566 | ||
34567 | ||
34568 | ||
34569 | #ifdef __cplusplus | |
34570 | extern "C" { | |
34571 | #endif | |
34572 | ||
34573 | /* Python-specific SWIG API */ | |
34574 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
34575 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
34576 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
34577 | ||
34578 | /* ----------------------------------------------------------------------------- | |
34579 | * global variable support code. | |
34580 | * ----------------------------------------------------------------------------- */ | |
34581 | ||
34582 | typedef struct swig_globalvar { | |
34583 | char *name; /* Name of global variable */ | |
34584 | PyObject *(*get_attr)(void); /* Return the current value */ | |
34585 | int (*set_attr)(PyObject *); /* Set the value */ | |
34586 | struct swig_globalvar *next; | |
34587 | } swig_globalvar; | |
34588 | ||
34589 | typedef struct swig_varlinkobject { | |
34590 | PyObject_HEAD | |
34591 | swig_globalvar *vars; | |
34592 | } swig_varlinkobject; | |
34593 | ||
34594 | SWIGINTERN PyObject * | |
34595 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
34596 | return PyString_FromString("<Swig global variables>"); | |
34597 | } | |
34598 | ||
34599 | SWIGINTERN PyObject * | |
34600 | swig_varlink_str(swig_varlinkobject *v) { | |
34601 | PyObject *str = PyString_FromString("("); | |
34602 | swig_globalvar *var; | |
34603 | for (var = v->vars; var; var=var->next) { | |
34604 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
34605 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
34606 | } | |
34607 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
34608 | return str; | |
34609 | } | |
34610 | ||
34611 | SWIGINTERN int | |
34612 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
34613 | PyObject *str = swig_varlink_str(v); | |
34614 | fprintf(fp,"Swig global variables "); | |
34615 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
34616 | Py_DECREF(str); | |
34617 | return 0; | |
34618 | } | |
34619 | ||
34620 | SWIGINTERN void | |
34621 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
34622 | swig_globalvar *var = v->vars; | |
34623 | while (var) { | |
34624 | swig_globalvar *n = var->next; | |
34625 | free(var->name); | |
34626 | free(var); | |
34627 | var = n; | |
093d3ff1 | 34628 | } |
0085ce49 RD |
34629 | } |
34630 | ||
34631 | SWIGINTERN PyObject * | |
34632 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
34633 | PyObject *res = NULL; | |
34634 | swig_globalvar *var = v->vars; | |
34635 | while (var) { | |
34636 | if (strcmp(var->name,n) == 0) { | |
34637 | res = (*var->get_attr)(); | |
34638 | break; | |
34639 | } | |
34640 | var = var->next; | |
093d3ff1 | 34641 | } |
0085ce49 RD |
34642 | if (res == NULL && !PyErr_Occurred()) { |
34643 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 34644 | } |
0085ce49 RD |
34645 | return res; |
34646 | } | |
34647 | ||
34648 | SWIGINTERN int | |
34649 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
34650 | int res = 1; | |
34651 | swig_globalvar *var = v->vars; | |
34652 | while (var) { | |
34653 | if (strcmp(var->name,n) == 0) { | |
34654 | res = (*var->set_attr)(p); | |
34655 | break; | |
34656 | } | |
34657 | var = var->next; | |
093d3ff1 | 34658 | } |
0085ce49 RD |
34659 | if (res == 1 && !PyErr_Occurred()) { |
34660 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 34661 | } |
0085ce49 RD |
34662 | return res; |
34663 | } | |
34664 | ||
34665 | SWIGINTERN PyTypeObject* | |
34666 | swig_varlink_type(void) { | |
34667 | static char varlink__doc__[] = "Swig var link object"; | |
34668 | static PyTypeObject varlink_type; | |
34669 | static int type_init = 0; | |
34670 | if (!type_init) { | |
34671 | const PyTypeObject tmp | |
34672 | = { | |
34673 | PyObject_HEAD_INIT(NULL) | |
34674 | 0, /* Number of items in variable part (ob_size) */ | |
34675 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
34676 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
34677 | 0, /* Itemsize (tp_itemsize) */ | |
34678 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
34679 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
34680 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
34681 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
34682 | 0, /* tp_compare */ | |
34683 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
34684 | 0, /* tp_as_number */ | |
34685 | 0, /* tp_as_sequence */ | |
34686 | 0, /* tp_as_mapping */ | |
34687 | 0, /* tp_hash */ | |
34688 | 0, /* tp_call */ | |
34689 | (reprfunc)swig_varlink_str, /* tp_str */ | |
34690 | 0, /* tp_getattro */ | |
34691 | 0, /* tp_setattro */ | |
34692 | 0, /* tp_as_buffer */ | |
34693 | 0, /* tp_flags */ | |
34694 | varlink__doc__, /* tp_doc */ | |
34695 | 0, /* tp_traverse */ | |
34696 | 0, /* tp_clear */ | |
34697 | 0, /* tp_richcompare */ | |
34698 | 0, /* tp_weaklistoffset */ | |
34699 | #if PY_VERSION_HEX >= 0x02020000 | |
34700 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
34701 | #endif | |
34702 | #if PY_VERSION_HEX >= 0x02030000 | |
34703 | 0, /* tp_del */ | |
34704 | #endif | |
34705 | #ifdef COUNT_ALLOCS | |
34706 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
34707 | #endif | |
34708 | }; | |
34709 | varlink_type = tmp; | |
34710 | varlink_type.ob_type = &PyType_Type; | |
34711 | type_init = 1; | |
093d3ff1 | 34712 | } |
0085ce49 RD |
34713 | return &varlink_type; |
34714 | } | |
34715 | ||
34716 | /* Create a variable linking object for use later */ | |
34717 | SWIGINTERN PyObject * | |
34718 | SWIG_Python_newvarlink(void) { | |
34719 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
34720 | if (result) { | |
34721 | result->vars = 0; | |
34722 | } | |
34723 | return ((PyObject*) result); | |
34724 | } | |
34725 | ||
34726 | SWIGINTERN void | |
34727 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
34728 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
34729 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
34730 | if (gv) { | |
34731 | size_t size = strlen(name)+1; | |
34732 | gv->name = (char *)malloc(size); | |
34733 | if (gv->name) { | |
34734 | strncpy(gv->name,name,size); | |
34735 | gv->get_attr = get_attr; | |
34736 | gv->set_attr = set_attr; | |
34737 | gv->next = v->vars; | |
34738 | } | |
093d3ff1 | 34739 | } |
0085ce49 RD |
34740 | v->vars = gv; |
34741 | } | |
34742 | ||
34743 | SWIGINTERN PyObject * | |
34744 | SWIG_globals() { | |
34745 | static PyObject *_SWIG_globals = 0; | |
34746 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
34747 | return _SWIG_globals; | |
34748 | } | |
34749 | ||
34750 | /* ----------------------------------------------------------------------------- | |
34751 | * constants/methods manipulation | |
34752 | * ----------------------------------------------------------------------------- */ | |
34753 | ||
34754 | /* Install Constants */ | |
34755 | SWIGINTERN void | |
34756 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
34757 | PyObject *obj = 0; | |
34758 | size_t i; | |
34759 | for (i = 0; constants[i].type; ++i) { | |
34760 | switch(constants[i].type) { | |
34761 | case SWIG_PY_POINTER: | |
34762 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
34763 | break; | |
34764 | case SWIG_PY_BINARY: | |
34765 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
34766 | break; | |
34767 | default: | |
34768 | obj = 0; | |
34769 | break; | |
34770 | } | |
34771 | if (obj) { | |
34772 | PyDict_SetItemString(d, constants[i].name, obj); | |
34773 | Py_DECREF(obj); | |
34774 | } | |
093d3ff1 | 34775 | } |
0085ce49 RD |
34776 | } |
34777 | ||
34778 | /* -----------------------------------------------------------------------------*/ | |
34779 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
34780 | /* -----------------------------------------------------------------------------*/ | |
34781 | ||
34782 | SWIGINTERN void | |
34783 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
34784 | swig_const_info *const_table, | |
34785 | swig_type_info **types, | |
34786 | swig_type_info **types_initial) { | |
34787 | size_t i; | |
34788 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 34789 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
34790 | if (c && (c = strstr(c, "swig_ptr: "))) { |
34791 | int j; | |
34792 | swig_const_info *ci = 0; | |
453fb36b | 34793 | const char *name = c + 10; |
0085ce49 RD |
34794 | for (j = 0; const_table[j].type; ++j) { |
34795 | if (strncmp(const_table[j].name, name, | |
34796 | strlen(const_table[j].name)) == 0) { | |
34797 | ci = &(const_table[j]); | |
34798 | break; | |
34799 | } | |
34800 | } | |
34801 | if (ci) { | |
34802 | size_t shift = (ci->ptype) - types; | |
34803 | swig_type_info *ty = types_initial[shift]; | |
34804 | size_t ldoc = (c - methods[i].ml_doc); | |
34805 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
34806 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
34807 | if (ndoc) { | |
34808 | char *buff = ndoc; | |
34809 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
34810 | if (ptr) { | |
34811 | strncpy(buff, methods[i].ml_doc, ldoc); | |
34812 | buff += ldoc; | |
34813 | strncpy(buff, "swig_ptr: ", 10); | |
34814 | buff += 10; | |
34815 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
34816 | methods[i].ml_doc = ndoc; | |
34817 | } | |
34818 | } | |
34819 | } | |
34820 | } | |
093d3ff1 | 34821 | } |
0085ce49 RD |
34822 | } |
34823 | ||
34824 | #ifdef __cplusplus | |
34825 | } | |
34826 | #endif | |
34827 | ||
34828 | /* -----------------------------------------------------------------------------* | |
34829 | * Partial Init method | |
34830 | * -----------------------------------------------------------------------------*/ | |
34831 | ||
34832 | #ifdef __cplusplus | |
34833 | extern "C" | |
34834 | #endif | |
34835 | SWIGEXPORT void SWIG_init(void) { | |
34836 | PyObject *m, *d; | |
34837 | ||
34838 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
34839 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
34840 | ||
34841 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34842 | d = PyModule_GetDict(m); | |
34843 | ||
34844 | SWIG_InitializeModule(0); | |
34845 | SWIG_InstallConstants(d,swig_const_table); | |
34846 | ||
34847 | ||
34848 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
34849 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
34850 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
34851 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
34852 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
34853 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
34854 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
34855 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
34856 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
34857 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
34858 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
34859 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
34860 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
34861 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
34862 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
34863 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
34864 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
34865 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
34866 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
34867 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
34868 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
34869 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
34870 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
34871 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
34872 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
34873 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
34874 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
34875 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
34876 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
fc46b7f3 | 34877 | SWIG_Python_SetConstant(d, "WS_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxWS_EX_CONTEXTHELP))); |
0085ce49 RD |
34878 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); |
34879 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
34880 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
34881 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
fc46b7f3 RD |
34882 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); |
34883 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
0085ce49 RD |
34884 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); |
34885 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
34886 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
34887 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
34888 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
34889 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
34890 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
34891 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
34892 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
34893 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
5eb8189c | 34894 | SWIG_Python_SetConstant(d, "DEFAULT_MINIFRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_MINIFRAME_STYLE))); |
0085ce49 RD |
34895 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); |
34896 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
34897 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
34898 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
34899 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
34900 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
34901 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
34902 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
34903 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
34904 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
34905 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
34906 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
34907 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
34908 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
34909 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
34910 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
34911 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
34912 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
34913 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
34914 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
34915 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
34916 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
34917 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
34918 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
34919 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
34920 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
34921 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
34922 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
34923 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
34924 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
34925 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
34926 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
34927 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
34928 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
34929 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
34930 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
34931 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
34932 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
34933 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
34934 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
34935 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
34936 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
34937 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
34938 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
34939 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
34940 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
34941 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
34942 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
34943 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
34944 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
34945 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
34946 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
34947 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
34948 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
34949 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
34950 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
34951 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
34952 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
34953 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
f9bf356b RD |
34954 | SWIG_addvarlink(SWIG_globals(),(char*)"SimpleHtmlListBoxNameStr",SimpleHtmlListBoxNameStr_get, SimpleHtmlListBoxNameStr_set); |
34955 | SWIG_Python_SetConstant(d, "HLB_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHLB_DEFAULT_STYLE))); | |
34956 | SWIG_Python_SetConstant(d, "HLB_MULTIPLE",SWIG_From_int(static_cast< int >(wxHLB_MULTIPLE))); | |
0085ce49 RD |
34957 | |
34958 | // Map renamed classes back to their common name for OOR | |
34959 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
34960 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
34961 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
34962 | ||
34963 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
34964 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
34965 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
34966 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
34967 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
34968 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
34969 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
1ceb4f4d | 34970 | PyDict_SetItemString(d, "wxEVT_TASKBAR_CLICK", PyInt_FromLong(wxEVT_TASKBAR_CLICK)); |
0085ce49 RD |
34971 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); |
34972 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
34973 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
34974 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
34975 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
34976 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
704eda0c RD |
34977 | SWIG_Python_SetConstant(d, "DD_NEW_DIR_BUTTON",SWIG_From_int(static_cast< int >(wxDD_NEW_DIR_BUTTON))); |
34978 | SWIG_Python_SetConstant(d, "DD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDD_DEFAULT_STYLE))); | |
34979 | SWIG_Python_SetConstant(d, "DD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDD_CHANGE_DIR))); | |
34980 | SWIG_Python_SetConstant(d, "OPEN",SWIG_From_int(static_cast< int >(wxOPEN))); | |
34981 | SWIG_Python_SetConstant(d, "SAVE",SWIG_From_int(static_cast< int >(wxSAVE))); | |
34982 | SWIG_Python_SetConstant(d, "OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxOVERWRITE_PROMPT))); | |
34983 | SWIG_Python_SetConstant(d, "FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFILE_MUST_EXIST))); | |
34984 | SWIG_Python_SetConstant(d, "MULTIPLE",SWIG_From_int(static_cast< int >(wxMULTIPLE))); | |
34985 | SWIG_Python_SetConstant(d, "CHANGE_DIR",SWIG_From_int(static_cast< int >(wxCHANGE_DIR))); | |
b02396e8 | 34986 | SWIG_Python_SetConstant(d, "HIDE_READONLY",SWIG_From_int(static_cast< int >(wxHIDE_READONLY))); |
704eda0c RD |
34987 | SWIG_Python_SetConstant(d, "FD_OPEN",SWIG_From_int(static_cast< int >(wxFD_OPEN))); |
34988 | SWIG_Python_SetConstant(d, "FD_SAVE",SWIG_From_int(static_cast< int >(wxFD_SAVE))); | |
34989 | SWIG_Python_SetConstant(d, "FD_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFD_OVERWRITE_PROMPT))); | |
34990 | SWIG_Python_SetConstant(d, "FD_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFD_FILE_MUST_EXIST))); | |
34991 | SWIG_Python_SetConstant(d, "FD_MULTIPLE",SWIG_From_int(static_cast< int >(wxFD_MULTIPLE))); | |
34992 | SWIG_Python_SetConstant(d, "FD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFD_CHANGE_DIR))); | |
10044bf1 | 34993 | SWIG_Python_SetConstant(d, "FD_PREVIEW",SWIG_From_int(static_cast< int >(wxFD_PREVIEW))); |
704eda0c | 34994 | SWIG_Python_SetConstant(d, "FD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFD_DEFAULT_STYLE))); |
0085ce49 RD |
34995 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); |
34996 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
34997 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
ae5bc7f3 RD |
34998 | SWIG_Python_SetConstant(d, "PD_AUTO_HIDE",SWIG_From_int(static_cast< int >(wxPD_AUTO_HIDE))); |
34999 | SWIG_Python_SetConstant(d, "PD_APP_MODAL",SWIG_From_int(static_cast< int >(wxPD_APP_MODAL))); | |
35000 | SWIG_Python_SetConstant(d, "PD_CAN_ABORT",SWIG_From_int(static_cast< int >(wxPD_CAN_ABORT))); | |
35001 | SWIG_Python_SetConstant(d, "PD_ELAPSED_TIME",SWIG_From_int(static_cast< int >(wxPD_ELAPSED_TIME))); | |
35002 | SWIG_Python_SetConstant(d, "PD_ESTIMATED_TIME",SWIG_From_int(static_cast< int >(wxPD_ESTIMATED_TIME))); | |
35003 | SWIG_Python_SetConstant(d, "PD_REMAINING_TIME",SWIG_From_int(static_cast< int >(wxPD_REMAINING_TIME))); | |
35004 | SWIG_Python_SetConstant(d, "PD_SMOOTH",SWIG_From_int(static_cast< int >(wxPD_SMOOTH))); | |
35005 | SWIG_Python_SetConstant(d, "PD_CAN_SKIP",SWIG_From_int(static_cast< int >(wxPD_CAN_SKIP))); | |
0085ce49 RD |
35006 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); |
35007 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
35008 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
35009 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
35010 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
35011 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
35012 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
35013 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
35014 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
35015 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
35016 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
35017 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
35018 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
35019 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
35020 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
35021 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
35022 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
35023 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
35024 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
35025 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
35026 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
35027 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
35028 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
35029 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
35030 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
35031 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
35032 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
35033 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
35034 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
35035 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
35036 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
35037 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
35038 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
35039 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
35040 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
35041 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
35042 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
35043 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
35044 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
35045 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
35046 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
35047 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
35048 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
35049 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
35050 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
35051 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
35052 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
35053 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
35054 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
35055 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
35056 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
35057 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
35058 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
35059 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
35060 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
35061 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
35062 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
35063 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
35064 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
35065 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
35066 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
35067 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
35068 | ||
35069 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
35070 | ||
d14a1e28 RD |
35071 | } |
35072 |