]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 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 |
d55e5bfc | 47 | |
7449af73 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 | |
554f62e9 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__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 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 | ||
554f62e9 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 | ||
7449af73 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 | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 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 | ||
554f62e9 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 | |
7449af73 | 126 | |
d55e5bfc | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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 */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
7449af73 | 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 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
554f62e9 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 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
7449af73 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 */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
7449af73 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; | |
554f62e9 | 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>|... | |
7449af73 | 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 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 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 | */ |
7449af73 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 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 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 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 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 * | |
7449af73 | 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. */ | |
554f62e9 | 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 | |
7449af73 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; | |
7449af73 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 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 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 | } |
7449af73 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 | } |
7449af73 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) { | |
7449af73 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) { |
7449af73 | 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; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 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 | } | |
d55e5bfc | 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 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
554f62e9 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 |
554f62e9 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 | /* ----------------------------------------------------------------------------- |
554f62e9 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
554f62e9 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
554f62e9 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 |
d55e5bfc | 936 | |
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 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 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 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 { | |
554f62e9 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; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
554f62e9 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 | * | |
554f62e9 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 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
96221a45 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
554f62e9 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
d55e5bfc | 1000 | |
554f62e9 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1004 | |
554f62e9 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1008 | |
554f62e9 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1012 | |
554f62e9 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) | |
7449af73 | 1016 | |
d55e5bfc | 1017 | |
554f62e9 | 1018 | /* Runtime API */ |
d55e5bfc | 1019 | |
554f62e9 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) | |
7449af73 | 1023 | |
554f62e9 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 | |
7449af73 | 1029 | |
d55e5bfc | 1030 | |
554f62e9 | 1031 | /* Runtime API implementation */ |
d55e5bfc | 1032 | |
554f62e9 | 1033 | /* Error manipulation */ |
d55e5bfc | 1034 | |
554f62e9 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 | } |
d55e5bfc | 1042 | |
554f62e9 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1048 | } |
1049 | ||
554f62e9 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1051 | |
554f62e9 | 1052 | /* Set a constant value */ |
d55e5bfc | 1053 | |
554f62e9 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 | } |
d55e5bfc | 1059 | |
554f62e9 | 1060 | /* Append a value to the result obj */ |
d55e5bfc | 1061 | |
554f62e9 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 { |
554f62e9 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 | } |
554f62e9 RD |
1101 | return result; |
1102 | #endif | |
c32bde28 RD |
1103 | } |
1104 | ||
554f62e9 | 1105 | /* Unpack the argument tuple */ |
d55e5bfc | 1106 | |
554f62e9 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*/ | |
7449af73 | 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 */ |
7449af73 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 | ||
554f62e9 | 1616 | static PyTypeObject pyswigobject_type; |
7449af73 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
554f62e9 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 |
554f62e9 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 |
554f62e9 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 | |
554f62e9 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
554f62e9 | 1679 | }; |
7449af73 | 1680 | pyswigobject_type = tmp; |
554f62e9 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
7449af73 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
554f62e9 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c32bde28 | 1689 | { |
554f62e9 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; | |
7449af73 | 1696 | } |
554f62e9 | 1697 | return (PyObject *)sobj; |
093d3ff1 | 1698 | } |
d55e5bfc | 1699 | |
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1703 | |
093d3ff1 RD |
1704 | typedef struct { |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
554f62e9 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
c32bde28 | 1710 | |
093d3ff1 | 1711 | SWIGRUNTIME int |
554f62e9 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
d55e5bfc | 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 | } | |
554f62e9 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
9d7dfdff | 1724 | |
093d3ff1 RD |
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))) { | |
554f62e9 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
554f62e9 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
d55e5bfc 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))){ | |
554f62e9 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
554f62e9 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
d55e5bfc | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1749 | { |
554f62e9 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 | ||
554f62e9 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1757 | |
093d3ff1 | 1758 | SWIGRUNTIME PyTypeObject* |
7449af73 | 1759 | PySwigPacked_type(void) { |
554f62e9 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 | |
554f62e9 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
554f62e9 | 1842 | }; |
7449af73 | 1843 | pyswigpacked_type = tmp; |
554f62e9 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
7449af73 | 1847 | return &pyswigpacked_type; |
093d3ff1 | 1848 | } |
d55e5bfc | 1849 | |
093d3ff1 | 1850 | SWIGRUNTIME PyObject * |
554f62e9 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
554f62e9 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
7449af73 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
7449af73 | 1864 | } |
093d3ff1 | 1865 | } |
554f62e9 | 1866 | return (PyObject *) sobj; |
093d3ff1 | 1867 | } |
d55e5bfc | 1868 | |
554f62e9 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 | 1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d55e5bfc | 1871 | { |
554f62e9 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 | } |
d55e5bfc | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1883 | * pointers/data manipulation |
093d3ff1 | 1884 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1885 | |
554f62e9 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d55e5bfc | 1891 | |
554f62e9 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d55e5bfc | 1898 | |
554f62e9 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1900 | |
554f62e9 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
554f62e9 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 { |
554f62e9 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
554f62e9 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 | } | |
d55e5bfc | 1949 | |
554f62e9 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 | } |
554f62e9 | 1962 | return 0; |
093d3ff1 | 1963 | } |
d55e5bfc | 1964 | |
554f62e9 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
554f62e9 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 | } | |
d55e5bfc | 2044 | |
554f62e9 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
96221a45 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
554f62e9 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 | } | |
d55e5bfc | 2071 | |
554f62e9 | 2072 | /* Convert a packed value value */ |
d55e5bfc | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
554f62e9 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 | } |
554f62e9 RD |
2085 | return SWIG_OK; |
2086 | } | |
d55e5bfc | 2087 | |
554f62e9 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2091 | |
554f62e9 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d55e5bfc | 2096 | |
554f62e9 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 | } |
554f62e9 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
d55e5bfc | 2159 | |
554f62e9 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 |
554f62e9 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d55e5bfc | 2180 | |
554f62e9 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 { |
554f62e9 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
554f62e9 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
554f62e9 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
554f62e9 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
554f62e9 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 | } |
554f62e9 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
554f62e9 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) { |
554f62e9 | 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 | ||
7449af73 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 |
7449af73 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2251 | } |
2252 | ||
7449af73 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 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"); | |
554f62e9 | 2263 | return SWIG_ERROR; |
7449af73 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2268 | return SWIG_ERROR; |
7449af73 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)); | |
554f62e9 | 2276 | return SWIG_ERROR; |
7449af73 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2279 | return SWIG_ERROR; |
7449af73 | 2280 | Py_DECREF(o); |
554f62e9 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
7449af73 | 2283 | #endif |
093d3ff1 | 2284 | |
554f62e9 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 | ||
7449af73 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); | |
554f62e9 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
7449af73 RD |
2312 | } |
2313 | } | |
093d3ff1 | 2314 | |
554f62e9 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 | |
554f62e9 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 | ||
f460c29d RD |
2466 | #define SWIGTYPE_p_bool swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
2477 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2478 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
2480 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15] | |
2482 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[16] | |
2131d850 RD |
2483 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[17] |
2484 | #define SWIGTYPE_p_wxCloseEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxColour swig_types[19] | |
2486 | #define SWIGTYPE_p_wxColourData swig_types[20] | |
2487 | #define SWIGTYPE_p_wxColourDialog swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCommandEvent swig_types[22] | |
2489 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxControl swig_types[24] | |
2491 | #define SWIGTYPE_p_wxControlWithItems swig_types[25] | |
2492 | #define SWIGTYPE_p_wxDC swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDateEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxDialog swig_types[28] | |
2495 | #define SWIGTYPE_p_wxDirDialog swig_types[29] | |
2496 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxDuplexMode swig_types[32] | |
2499 | #define SWIGTYPE_p_wxEraseEvent swig_types[33] | |
2500 | #define SWIGTYPE_p_wxEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
2502 | #define SWIGTYPE_p_wxFSFile swig_types[36] | |
2503 | #define SWIGTYPE_p_wxFileDialog swig_types[37] | |
2504 | #define SWIGTYPE_p_wxFileSystem swig_types[38] | |
2505 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxFindReplaceData swig_types[40] | |
2507 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41] | |
2508 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2509 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFontData swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFontDialog swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFrame swig_types[47] | |
2514 | #define SWIGTYPE_p_wxGBSizerItem swig_types[48] | |
2515 | #define SWIGTYPE_p_wxGIFHandler swig_types[49] | |
2516 | #define SWIGTYPE_p_wxGridBagSizer swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGridSizer swig_types[51] | |
2518 | #define SWIGTYPE_p_wxHtmlLinkInfo swig_types[52] | |
2519 | #define SWIGTYPE_p_wxICOHandler swig_types[53] | |
2520 | #define SWIGTYPE_p_wxIcon swig_types[54] | |
2521 | #define SWIGTYPE_p_wxIconBundle swig_types[55] | |
2522 | #define SWIGTYPE_p_wxIconizeEvent swig_types[56] | |
2523 | #define SWIGTYPE_p_wxIdleEvent swig_types[57] | |
2524 | #define SWIGTYPE_p_wxImage swig_types[58] | |
2525 | #define SWIGTYPE_p_wxImageHandler swig_types[59] | |
2526 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60] | |
2527 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[61] | |
2528 | #define SWIGTYPE_p_wxJPEGHandler swig_types[62] | |
2529 | #define SWIGTYPE_p_wxKeyEvent swig_types[63] | |
2530 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[64] | |
2531 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[65] | |
2532 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[66] | |
2533 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[67] | |
2534 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[68] | |
2535 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxMenu swig_types[70] | |
2537 | #define SWIGTYPE_p_wxMenuBar swig_types[71] | |
2538 | #define SWIGTYPE_p_wxMenuEvent swig_types[72] | |
2539 | #define SWIGTYPE_p_wxMenuItem swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMessageDialog swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMiniFrame swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76] | |
0f83f5da RD |
2543 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[77] |
2544 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxMoveEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[80] | |
2547 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[81] | |
2548 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[82] | |
2549 | #define SWIGTYPE_p_wxNotifyEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[84] | |
2551 | #define SWIGTYPE_p_wxObject swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPCXHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPNGHandler swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPNMHandler swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPaintEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPanel swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPaperSize swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPoint swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPopupWindow swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPreviewFrame swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPrintData swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPrintDialog swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPrintDialogData swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPrintPreview swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPrinter swig_types[105] | |
2572 | #define SWIGTYPE_p_wxProgressDialog swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyApp swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyImageHandler swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyPanel swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyPrintout swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPySizer swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyVListBox swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyValidator swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyWindow swig_types[124] | |
2591 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[125] | |
2592 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRect swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRegion swig_types[128] | |
2595 | #define SWIGTYPE_p_wxSashEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashWindow swig_types[131] | |
2598 | #define SWIGTYPE_p_wxScrollEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrolledWindow swig_types[134] | |
2601 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxShowEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSize swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplashScreen swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterWindow swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStatusBar swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148] | |
2615 | #define SWIGTYPE_p_wxString swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTIFFHandler swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTipWindow swig_types[155] | |
2622 | #define SWIGTYPE_p_wxToolBar swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[158] | |
2625 | #define SWIGTYPE_p_wxValidator swig_types[159] | |
2626 | #define SWIGTYPE_p_wxVisualAttributes swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindow swig_types[161] | |
2628 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxXPMHandler swig_types[164] | |
2631 | static swig_type_info *swig_types[166]; | |
2632 | static swig_module_info swig_module = {swig_types, 165, 0, 0, 0, 0}; | |
7449af73 RD |
2633 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2634 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2635 | |
2636 | /* -------- TYPES TABLE (END) -------- */ | |
2637 | ||
554f62e9 RD |
2638 | #if (PY_VERSION_HEX <= 0x02000000) |
2639 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2640 | # error "This python version requires to use swig with the '-classic' option" | |
2641 | # endif | |
2642 | #endif | |
2643 | #if (PY_VERSION_HEX <= 0x02020000) | |
2644 | # error "This python version requires to use swig with the '-nomodern' option" | |
2645 | #endif | |
2646 | #if (PY_VERSION_HEX <= 0x02020000) | |
2647 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2648 | #endif | |
2649 | #ifndef METH_O | |
2650 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2651 | #endif | |
093d3ff1 RD |
2652 | |
2653 | /*----------------------------------------------- | |
2654 | @(target):= _windows_.so | |
2655 | ------------------------------------------------*/ | |
2656 | #define SWIG_init init_windows_ | |
2657 | ||
2658 | #define SWIG_name "_windows_" | |
2659 | ||
554f62e9 | 2660 | #define SWIGVERSION 0x010329 |
093d3ff1 | 2661 | |
093d3ff1 | 2662 | |
554f62e9 RD |
2663 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2664 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
093d3ff1 RD |
2665 | |
2666 | ||
554f62e9 | 2667 | #include <stdexcept> |
093d3ff1 RD |
2668 | |
2669 | ||
554f62e9 RD |
2670 | namespace swig { |
2671 | class PyObject_ptr { | |
2672 | protected: | |
2673 | PyObject *_obj; | |
093d3ff1 | 2674 | |
554f62e9 RD |
2675 | public: |
2676 | PyObject_ptr() :_obj(0) | |
2677 | { | |
2678 | } | |
093d3ff1 | 2679 | |
554f62e9 RD |
2680 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2681 | { | |
2682 | Py_XINCREF(_obj); | |
093d3ff1 | 2683 | } |
554f62e9 RD |
2684 | |
2685 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2686 | { | |
2687 | if (initial_ref) Py_XINCREF(_obj); | |
093d3ff1 | 2688 | } |
554f62e9 RD |
2689 | |
2690 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2691 | { | |
2692 | Py_XINCREF(item._obj); | |
2693 | Py_XDECREF(_obj); | |
2694 | _obj = item._obj; | |
2695 | return *this; | |
2696 | } | |
2697 | ||
2698 | ~PyObject_ptr() | |
2699 | { | |
2700 | Py_XDECREF(_obj); | |
2701 | } | |
2702 | ||
2703 | operator PyObject *() const | |
2704 | { | |
2705 | return _obj; | |
2706 | } | |
2707 | ||
2708 | PyObject *operator->() const | |
2709 | { | |
2710 | return _obj; | |
2711 | } | |
2712 | }; | |
093d3ff1 RD |
2713 | } |
2714 | ||
2715 | ||
554f62e9 RD |
2716 | namespace swig { |
2717 | struct PyObject_var : PyObject_ptr { | |
2718 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2719 | ||
2720 | PyObject_var & operator = (PyObject* obj) | |
2721 | { | |
2722 | Py_XDECREF(_obj); | |
2723 | _obj = obj; | |
2724 | return *this; | |
093d3ff1 | 2725 | } |
554f62e9 | 2726 | }; |
093d3ff1 | 2727 | } |
093d3ff1 RD |
2728 | |
2729 | ||
554f62e9 RD |
2730 | #include "wx/wxPython/wxPython.h" |
2731 | #include "wx/wxPython/pyclasses.h" | |
2732 | ||
093d3ff1 | 2733 | |
554f62e9 RD |
2734 | static const wxString wxPyEmptyString(wxEmptyString); |
2735 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 | 2736 | |
093d3ff1 | 2737 | |
554f62e9 RD |
2738 | |
2739 | #include <limits.h> | |
2740 | #ifndef LLONG_MIN | |
2741 | # define LLONG_MIN LONG_LONG_MIN | |
2742 | #endif | |
2743 | #ifndef LLONG_MAX | |
2744 | # define LLONG_MAX LONG_LONG_MAX | |
2745 | #endif | |
2746 | #ifndef ULLONG_MAX | |
2747 | # define ULLONG_MAX ULONG_LONG_MAX | |
2748 | #endif | |
2749 | ||
2750 | ||
2751 | SWIGINTERN int | |
2752 | SWIG_AsVal_long (PyObject* obj, long* val) | |
093d3ff1 | 2753 | { |
554f62e9 RD |
2754 | if (PyNumber_Check(obj)) { |
2755 | if (val) *val = PyInt_AsLong(obj); | |
2756 | return SWIG_OK; | |
2757 | } | |
2758 | return SWIG_TypeError; | |
093d3ff1 RD |
2759 | } |
2760 | ||
554f62e9 RD |
2761 | |
2762 | SWIGINTERN int | |
2763 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2764 | { |
554f62e9 RD |
2765 | long v; |
2766 | int res = SWIG_AsVal_long (obj, &v); | |
2767 | if (SWIG_IsOK(res)) { | |
2768 | if ((v < INT_MIN || v > INT_MAX)) { | |
2769 | return SWIG_OverflowError; | |
2770 | } else { | |
2771 | if (val) *val = static_cast< int >(v); | |
2772 | } | |
2773 | } | |
2774 | return res; | |
093d3ff1 RD |
2775 | } |
2776 | ||
2777 | ||
2778 | SWIGINTERN int | |
554f62e9 | 2779 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2780 | { |
2781 | if (obj == Py_True) { | |
2782 | if (val) *val = true; | |
554f62e9 RD |
2783 | return SWIG_OK; |
2784 | } else if (obj == Py_False) { | |
093d3ff1 | 2785 | if (val) *val = false; |
554f62e9 | 2786 | return SWIG_OK; |
093d3ff1 | 2787 | } else { |
554f62e9 RD |
2788 | long v = 0; |
2789 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2790 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2791 | return res; | |
093d3ff1 | 2792 | } |
093d3ff1 RD |
2793 | } |
2794 | ||
2795 | ||
554f62e9 | 2796 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2797 | |
2798 | ||
554f62e9 RD |
2799 | SWIGINTERNINLINE PyObject * |
2800 | SWIG_From_int (int value) | |
2801 | { | |
2802 | return SWIG_From_long (value); | |
2803 | } | |
093d3ff1 RD |
2804 | |
2805 | ||
2806 | SWIGINTERN int | |
554f62e9 | 2807 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
2808 | { |
2809 | if (PyNumber_Check(obj)) { | |
2810 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 2811 | return SWIG_OK; |
093d3ff1 | 2812 | } |
554f62e9 | 2813 | return SWIG_TypeError; |
093d3ff1 RD |
2814 | } |
2815 | ||
2816 | ||
554f62e9 | 2817 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 RD |
2818 | |
2819 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2820 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2821 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2822 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
554f62e9 RD |
2823 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ /*wxPyRaiseNotImplemented();*/ } |
2824 | SWIGINTERN bool wxTopLevelWindow_MacGetMetalAppearance(wxTopLevelWindow const *self){ /*wxPyRaiseNotImplemented();*/ return false; } | |
093d3ff1 RD |
2825 | |
2826 | ||
554f62e9 | 2827 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
093d3ff1 RD |
2828 | wxRect r; |
2829 | self->GetFieldRect(i, r); | |
2830 | return r; | |
2831 | } | |
2832 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2833 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2834 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2835 | ||
2836 | #include <wx/popupwin.h> | |
2837 | ||
2838 | ||
2839 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
2840 | { | |
2841 | public: | |
2842 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
2843 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
2844 | : wxPopupTransientWindow(parent, style) {} | |
2845 | ||
2846 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
2847 | DEC_PYCALLBACK__(OnDismiss); | |
2848 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
2849 | PYPRIVATE; | |
2850 | }; | |
2851 | ||
2852 | ||
2853 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
2854 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
2855 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
2856 | ||
2857 | ||
2858 | #include <wx/tipwin.h> | |
2859 | ||
554f62e9 | 2860 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
093d3ff1 RD |
2861 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2862 | } | |
2863 | ||
2864 | #include <wx/tipwin.h> | |
2865 | ||
2866 | ||
2867 | #include <wx/vscroll.h> | |
2868 | ||
2869 | ||
2870 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2871 | { | |
7449af73 | 2872 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
093d3ff1 RD |
2873 | public: |
2874 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2875 | ||
2876 | wxPyVScrolledWindow(wxWindow *parent, | |
2877 | wxWindowID id = wxID_ANY, | |
2878 | const wxPoint& pos = wxDefaultPosition, | |
2879 | const wxSize& size = wxDefaultSize, | |
2880 | long style = 0, | |
2881 | const wxString& name = wxPyPanelNameStr) | |
2882 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2883 | {} | |
2884 | ||
2885 | // Overridable virtuals | |
2886 | ||
2887 | // this function must be overridden in the derived class and it should | |
2888 | // return the height of the given line in pixels | |
2889 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2890 | ||
2891 | ||
2892 | // this function doesn't have to be overridden but it may be useful to do | |
2893 | // it if calculating the lines heights is a relatively expensive operation | |
2894 | // as it gives the user code a possibility to calculate several of them at | |
2895 | // once | |
2896 | // | |
2897 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2898 | // shouldn't rely on the latter being called for all lines in the interval | |
2899 | // specified here. It is also possible that OnGetLineHeight() will be | |
2900 | // called for the lines outside of this interval, so this is really just a | |
2901 | // hint, not a promise. | |
2902 | // | |
2903 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2904 | // usual | |
2905 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2906 | ||
2907 | ||
2908 | // when the number of lines changes, we try to estimate the total height | |
2909 | // of all lines which is a rather expensive operation in terms of lines | |
2910 | // access, so if the user code may estimate the average height | |
2911 | // better/faster than we do, it should override this function to implement | |
2912 | // its own logic | |
2913 | // | |
2914 | // this function should return the best guess for the total height it may | |
2915 | // make | |
2916 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2917 | ||
2918 | ||
2919 | // Also expose some other interesting protected methods | |
2920 | ||
2921 | ||
2922 | // find the index of the line we need to show at the top of the window such | |
2923 | // that the last (fully or partially) visible line is the given one | |
2924 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2925 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2926 | ||
2927 | // get the total height of the lines between lineMin (inclusive) and | |
2928 | // lineMax (exclusive) | |
2929 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2930 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
d55e5bfc | 2931 | |
f460c29d RD |
2932 | // update the thumb size shown by the scrollbar |
2933 | void UpdateScrollbar() { wxVScrolledWindow::UpdateScrollbar(); } | |
2934 | ||
2935 | // remove the scrollbar completely because we don't need it | |
2936 | void RemoveScrollbar() { wxVScrolledWindow::RemoveScrollbar(); } | |
d55e5bfc RD |
2937 | |
2938 | PYPRIVATE; | |
2939 | }; | |
2940 | ||
2941 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
2942 | ||
2943 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2944 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2945 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2946 | ||
2947 | ||
fc46b7f3 RD |
2948 | SWIGINTERN int |
2949 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2950 | { | |
2951 | long v = 0; | |
2952 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2953 | return SWIG_TypeError; | |
2954 | } | |
2955 | else if (val) | |
2956 | *val = (unsigned long)v; | |
2957 | return SWIG_OK; | |
2958 | } | |
2959 | ||
2960 | ||
7449af73 | 2961 | SWIGINTERNINLINE int |
554f62e9 | 2962 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c32bde28 | 2963 | { |
554f62e9 RD |
2964 | unsigned long v; |
2965 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2966 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2967 | return res; | |
d55e5bfc RD |
2968 | } |
2969 | ||
2970 | ||
7449af73 | 2971 | SWIGINTERNINLINE PyObject* |
554f62e9 | 2972 | SWIG_From_unsigned_SS_long (unsigned long value) |
d55e5bfc RD |
2973 | { |
2974 | return (value > LONG_MAX) ? | |
554f62e9 RD |
2975 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2976 | } | |
2977 | ||
2978 | ||
2979 | SWIGINTERNINLINE PyObject * | |
2980 | SWIG_From_size_t (size_t value) | |
2981 | { | |
2982 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
d55e5bfc RD |
2983 | } |
2984 | ||
2985 | ||
2986 | #include <wx/vlbox.h> | |
2987 | ||
2988 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
2989 | ||
2990 | class wxPyVListBox : public wxVListBox | |
2991 | { | |
7449af73 | 2992 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d55e5bfc RD |
2993 | public: |
2994 | wxPyVListBox() : wxVListBox() {} | |
2995 | ||
2996 | wxPyVListBox(wxWindow *parent, | |
2997 | wxWindowID id = wxID_ANY, | |
2998 | const wxPoint& pos = wxDefaultPosition, | |
2999 | const wxSize& size = wxDefaultSize, | |
3000 | long style = 0, | |
3001 | const wxString& name = wxPyVListBoxNameStr) | |
3002 | : wxVListBox(parent, id, pos, size, style, name) | |
3003 | {} | |
3004 | ||
3005 | // Overridable virtuals | |
3006 | ||
3007 | // the derived class must implement this function to actually draw the item | |
3008 | // with the given index on the provided DC | |
3009 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
3010 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
3011 | ||
3012 | ||
3013 | // the derived class must implement this method to return the height of the | |
3014 | // specified item | |
3015 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3016 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3017 | ||
3018 | ||
3019 | // this method may be used to draw separators between the lines; note that | |
3020 | // the rectangle may be modified, typically to deflate it a bit before | |
3021 | // passing to OnDrawItem() | |
3022 | // | |
3023 | // the base class version doesn't do anything | |
3024 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
1c71765a | 3025 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d55e5bfc RD |
3026 | |
3027 | ||
3028 | // this method is used to draw the items background and, maybe, a border | |
3029 | // around it | |
3030 | // | |
3031 | // the base class version implements a reasonable default behaviour which | |
3032 | // consists in drawing the selected item with the standard background | |
3033 | // colour and drawing a border around the item if it is either selected or | |
3034 | // current | |
3035 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3036 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3037 | ||
3038 | ||
3039 | PYPRIVATE; | |
3040 | }; | |
3041 | ||
3042 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3043 | ||
3044 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3045 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
1c71765a | 3046 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d55e5bfc RD |
3047 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3048 | ||
3049 | ||
554f62e9 | 3050 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3051 | unsigned long cookie = 0; |
3052 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3053 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3054 | PyObject* tup = PyTuple_New(2); |
3055 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3056 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3057 | wxPyEndBlockThreads(blocked); | |
3058 | return tup; | |
3059 | } | |
554f62e9 | 3060 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3061 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3062 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3063 | PyObject* tup = PyTuple_New(2); |
3064 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3065 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3066 | wxPyEndBlockThreads(blocked); | |
3067 | return tup; | |
3068 | } | |
d55e5bfc RD |
3069 | |
3070 | #include <wx/htmllbox.h> | |
3071 | ||
3072 | ||
3073 | class wxPyHtmlListBox : public wxHtmlListBox | |
3074 | { | |
7449af73 | 3075 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d55e5bfc RD |
3076 | public: |
3077 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3078 | ||
3079 | wxPyHtmlListBox(wxWindow *parent, | |
3080 | wxWindowID id = wxID_ANY, | |
3081 | const wxPoint& pos = wxDefaultPosition, | |
3082 | const wxSize& size = wxDefaultSize, | |
3083 | long style = 0, | |
3084 | const wxString& name = wxPyVListBoxNameStr) | |
3085 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3086 | {} | |
3087 | ||
3088 | // Overridable virtuals | |
3089 | ||
3090 | // this method must be implemented in the derived class and should return | |
3091 | // the body (i.e. without <html>) of the HTML for the given item | |
3092 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3093 | ||
3094 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3095 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3096 | ||
1c71765a RD |
3097 | // These are from wxVListBox |
3098 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3099 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3100 | ||
d55e5bfc RD |
3101 | // TODO: |
3102 | // // this method allows to customize the selection appearance: it may be used | |
3103 | // // to specify the colour of the text which normally has the given colour | |
3104 | // // colFg when it is inside the selection | |
3105 | // // | |
3106 | // // by default, the original colour is not used at all and all text has the | |
3107 | // // same (default for this system) colour inside selection | |
3108 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3109 | ||
3110 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3111 | // // background colour -- this is even more rarely used as you can change it | |
3112 | // // globally using SetSelectionBackground() | |
3113 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3114 | ||
e9d6f3a4 RD |
3115 | |
3116 | // This method may be overriden to handle clicking on a link in | |
3117 | // the listbox. By default, clicking links is ignored. | |
3118 | virtual void OnLinkClicked(size_t n, | |
3119 | const wxHtmlLinkInfo& link); | |
d55e5bfc RD |
3120 | |
3121 | PYPRIVATE; | |
3122 | }; | |
3123 | ||
3124 | ||
3125 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3126 | ||
3127 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3128 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
1c71765a RD |
3129 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3130 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d55e5bfc RD |
3131 | |
3132 | ||
e9d6f3a4 RD |
3133 | void wxPyHtmlListBox::OnLinkClicked(size_t n, |
3134 | const wxHtmlLinkInfo& link) { | |
3135 | bool found; | |
3136 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3137 | if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) { | |
3138 | PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0); | |
3139 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", n, obj)); | |
3140 | Py_DECREF(obj); | |
3141 | } | |
3142 | wxPyEndBlockThreads(blocked); | |
3143 | if (! found) | |
3144 | wxPyHtmlListBox::OnLinkClicked(n, link); | |
3145 | } | |
3146 | ||
3147 | ||
d55e5bfc RD |
3148 | |
3149 | ||
3150 | ||
ae8162c8 RD |
3151 | #ifndef wxHAS_TASK_BAR_ICON |
3152 | // implement dummy classes for platforms that don't have it | |
d55e5bfc RD |
3153 | |
3154 | class wxTaskBarIcon : public wxEvtHandler | |
3155 | { | |
3156 | public: | |
3157 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
3158 | }; | |
09c21d3b | 3159 | |
d55e5bfc RD |
3160 | |
3161 | class wxTaskBarIconEvent : public wxEvent | |
3162 | { | |
3163 | public: | |
3164 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
3165 | { wxPyRaiseNotImplemented(); } | |
3166 | virtual wxEvent* Clone() const { return NULL; } | |
ae8162c8 RD |
3167 | bool IsOk() const { return false; } |
3168 | bool IsIconInstalled() const { return false; } | |
3169 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3170 | bool RemoveIcon() { return false; } | |
3171 | bool PopupMenu(wxMenu *menu) { return false; } | |
d55e5bfc RD |
3172 | }; |
3173 | ||
3174 | enum { | |
3175 | wxEVT_TASKBAR_MOVE = 0, | |
3176 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3177 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3178 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3179 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3180 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3181 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3182 | }; | |
09c21d3b RD |
3183 | |
3184 | ||
3185 | #else | |
5e483524 RD |
3186 | // Otherwise make a class that can virtualize CreatePopupMenu |
3187 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3188 | { | |
7449af73 | 3189 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3190 | public: |
3191 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3192 | {} | |
3193 | ||
3194 | wxMenu* CreatePopupMenu() { | |
3195 | wxMenu *rval = NULL; | |
3196 | bool found; | |
5a446332 | 3197 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3198 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3199 | PyObject* ro; | |
3200 | wxMenu* ptr; | |
3201 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3202 | if (ro) { | |
3203 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3204 | rval = ptr; | |
3205 | Py_DECREF(ro); | |
3206 | } | |
3207 | } | |
3208 | wxPyEndBlockThreads(blocked); | |
3209 | if (! found) | |
3210 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3211 | return rval; | |
3212 | } | |
3213 | ||
3214 | PYPRIVATE; | |
3215 | }; | |
3216 | ||
3217 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
09c21d3b | 3218 | |
d55e5bfc RD |
3219 | #endif |
3220 | ||
554f62e9 | 3221 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
d55e5bfc | 3222 | self->RemoveIcon(); |
5e483524 | 3223 | delete self; |
d55e5bfc RD |
3224 | } |
3225 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3226 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3227 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3228 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3229 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3230 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
b02396e8 RD |
3231 | |
3232 | // for compatibility only | |
3233 | #define wxHIDE_READONLY 0 | |
3234 | ||
554f62e9 | 3235 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d55e5bfc RD |
3236 | wxArrayString arr; |
3237 | self->GetFilenames(arr); | |
3238 | return wxArrayString2PyList_helper(arr); | |
3239 | } | |
554f62e9 | 3240 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d55e5bfc RD |
3241 | wxArrayString arr; |
3242 | self->GetPaths(arr); | |
3243 | return wxArrayString2PyList_helper(arr); | |
3244 | } | |
554f62e9 | 3245 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d55e5bfc RD |
3246 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3247 | } | |
554f62e9 | 3248 | SWIGINTERN wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style=wxCHOICEDLG_STYLE,wxPoint const &pos=wxDefaultPosition){ |
d55e5bfc RD |
3249 | return new wxSingleChoiceDialog(parent, message, caption, |
3250 | choices, choices_array, NULL, style, pos); | |
3251 | } | |
c1cb24a4 | 3252 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d55e5bfc | 3253 | |
f460c29d RD |
3254 | SWIGINTERNINLINE PyObject* |
3255 | SWIG_From_bool (bool value) | |
3256 | { | |
3257 | return PyBool_FromLong(value ? 1 : 0); | |
3258 | } | |
3259 | ||
3260 | ||
d55e5bfc RD |
3261 | #include <wx/mdi.h> |
3262 | ||
3263 | // C++ version of Python aware wxWindow | |
3264 | class wxPyWindow : public wxWindow | |
3265 | { | |
3266 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3267 | public: | |
3268 | wxPyWindow() : wxWindow() {} | |
3269 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3270 | const wxPoint& pos = wxDefaultPosition, | |
3271 | const wxSize& size = wxDefaultSize, | |
3272 | long style = 0, | |
3273 | const wxString& name = wxPyPanelNameStr) | |
3274 | : wxWindow(parent, id, pos, size, style, name) {} | |
3275 | ||
caef1a4d | 3276 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc | 3277 | |
60d5fcc1 RD |
3278 | bool DoEraseBackground(wxDC* dc) { |
3279 | #ifdef __WXMSW__ | |
3280 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3281 | #else | |
3282 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3283 | dc->Clear(); | |
3284 | return true; | |
3285 | #endif | |
3286 | } | |
3287 | ||
d55e5bfc RD |
3288 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3289 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3290 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3291 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3292 | ||
3293 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3294 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3295 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3296 | ||
3297 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3298 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3299 | ||
3300 | DEC_PYCALLBACK__(InitDialog); | |
3301 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3302 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3303 | DEC_PYCALLBACK_BOOL_(Validate); | |
3304 | ||
3305 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3306 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3307 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3308 | ||
3309 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3310 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3311 | ||
caef1a4d | 3312 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3313 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3314 | |
51b83b37 RD |
3315 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3316 | ||
8d38bd1d RD |
3317 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3318 | ||
d55e5bfc RD |
3319 | PYPRIVATE; |
3320 | }; | |
3321 | ||
3322 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3323 | ||
3324 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3325 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3326 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3327 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3328 | ||
3329 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3330 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3331 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3332 | ||
3333 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3334 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3335 | ||
3336 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3337 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3338 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3339 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3340 | ||
3341 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3342 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3343 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3344 | ||
3345 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3346 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3347 | ||
caef1a4d | 3348 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
caef1a4d | 3349 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3350 | |
3351 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d55e5bfc | 3352 | |
8d38bd1d RD |
3353 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3354 | ||
d55e5bfc RD |
3355 | // C++ version of Python aware wxPanel |
3356 | class wxPyPanel : public wxPanel | |
3357 | { | |
3358 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3359 | public: | |
3360 | wxPyPanel() : wxPanel() {} | |
3361 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3362 | const wxPoint& pos = wxDefaultPosition, | |
3363 | const wxSize& size = wxDefaultSize, | |
3364 | long style = 0, | |
3365 | const wxString& name = wxPyPanelNameStr) | |
3366 | : wxPanel(parent, id, pos, size, style, name) {} | |
3367 | ||
caef1a4d | 3368 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
60d5fcc1 RD |
3369 | bool DoEraseBackground(wxDC* dc) { |
3370 | #ifdef __WXMSW__ | |
3371 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3372 | #else | |
3373 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3374 | dc->Clear(); | |
3375 | return true; | |
3376 | #endif | |
3377 | } | |
caef1a4d | 3378 | |
d55e5bfc RD |
3379 | |
3380 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3381 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3382 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3383 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3384 | ||
3385 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3386 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3387 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3388 | ||
3389 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3390 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3391 | ||
3392 | DEC_PYCALLBACK__(InitDialog); | |
3393 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3394 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3395 | DEC_PYCALLBACK_BOOL_(Validate); | |
3396 | ||
3397 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3398 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3399 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3400 | ||
3401 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3402 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3403 | ||
caef1a4d | 3404 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3405 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3406 | |
51b83b37 RD |
3407 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3408 | ||
8d38bd1d RD |
3409 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3410 | ||
d55e5bfc RD |
3411 | PYPRIVATE; |
3412 | }; | |
3413 | ||
3414 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3415 | ||
3416 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3417 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3418 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3419 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3420 | ||
3421 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3422 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3423 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3424 | ||
3425 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3426 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3427 | ||
3428 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3429 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3430 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3431 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3432 | ||
3433 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3434 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3435 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3436 | ||
3437 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3438 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3439 | ||
caef1a4d | 3440 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
caef1a4d | 3441 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 3442 | |
51b83b37 RD |
3443 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3444 | ||
8d38bd1d RD |
3445 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3446 | ||
d55e5bfc RD |
3447 | // C++ version of Python aware wxScrolledWindow |
3448 | class wxPyScrolledWindow : public wxScrolledWindow | |
3449 | { | |
3450 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3451 | public: | |
3452 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3453 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3454 | const wxPoint& pos = wxDefaultPosition, | |
3455 | const wxSize& size = wxDefaultSize, | |
3456 | long style = 0, | |
3457 | const wxString& name = wxPyPanelNameStr) | |
3458 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3459 | ||
caef1a4d | 3460 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
60d5fcc1 RD |
3461 | bool DoEraseBackground(wxDC* dc) { |
3462 | #ifdef __WXMSW__ | |
3463 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3464 | #else | |
3465 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3466 | dc->Clear(); | |
3467 | return true; | |
3468 | #endif | |
3469 | } | |
d55e5bfc RD |
3470 | |
3471 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3472 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3473 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3474 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3475 | ||
3476 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3477 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3478 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3479 | ||
3480 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3481 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3482 | ||
3483 | DEC_PYCALLBACK__(InitDialog); | |
3484 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3485 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3486 | DEC_PYCALLBACK_BOOL_(Validate); | |
3487 | ||
3488 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3489 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3490 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3491 | ||
3492 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3493 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3494 | ||
caef1a4d | 3495 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3496 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3497 | |
51b83b37 RD |
3498 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3499 | ||
8d38bd1d RD |
3500 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3501 | ||
d55e5bfc RD |
3502 | PYPRIVATE; |
3503 | }; | |
3504 | ||
3505 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3506 | ||
3507 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3508 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3509 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3510 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3511 | ||
3512 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3513 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3514 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3515 | ||
3516 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3517 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3518 | ||
3519 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3520 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3521 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3522 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3523 | ||
3524 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3525 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3526 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3527 | ||
3528 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3529 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3530 | ||
caef1a4d | 3531 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
caef1a4d RD |
3532 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3533 | ||
51b83b37 | 3534 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d55e5bfc | 3535 | |
8d38bd1d RD |
3536 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3537 | ||
d55e5bfc RD |
3538 | |
3539 | #include "wx/wxPython/printfw.h" | |
3540 | ||
3541 | ||
3542 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
3543 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
554f62e9 | 3544 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
b9d6a5f3 | 3545 | PyObject* data; |
5a446332 | 3546 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3547 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3548 | self->GetPrivDataLen()); | |
3549 | wxPyEndBlockThreads(blocked); | |
3550 | return data; | |
3551 | } | |
554f62e9 | 3552 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
b9d6a5f3 RD |
3553 | if (! PyString_Check(data)) { |
3554 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3555 | "Expected string object")); | |
3556 | return /* NULL */ ; | |
3557 | } | |
3558 | ||
5a446332 | 3559 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3560 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3561 | wxPyEndBlockThreads(blocked); | |
3562 | } | |
d55e5bfc RD |
3563 | |
3564 | ||
c1cb24a4 | 3565 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d55e5bfc RD |
3566 | |
3567 | // Since this one would be tough and ugly to do with the Macros... | |
3568 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
ae8162c8 | 3569 | bool hadErr = false; |
d55e5bfc RD |
3570 | bool found; |
3571 | ||
5a446332 | 3572 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3573 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3574 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3575 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3576 | PyObject* val; | |
3577 | ||
3578 | val = PyTuple_GetItem(result, 0); | |
3579 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
ae8162c8 | 3580 | else hadErr = true; |
d55e5bfc RD |
3581 | |
3582 | val = PyTuple_GetItem(result, 1); | |
3583 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
ae8162c8 | 3584 | else hadErr = true; |
d55e5bfc RD |
3585 | |
3586 | val = PyTuple_GetItem(result, 2); | |
3587 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
ae8162c8 | 3588 | else hadErr = true; |
d55e5bfc RD |
3589 | |
3590 | val = PyTuple_GetItem(result, 3); | |
3591 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
ae8162c8 | 3592 | else hadErr = true; |
d55e5bfc RD |
3593 | } |
3594 | else | |
ae8162c8 | 3595 | hadErr = true; |
d55e5bfc RD |
3596 | |
3597 | if (hadErr) { | |
3598 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3599 | PyErr_Print(); | |
3600 | } | |
3601 | Py_DECREF(result); | |
3602 | } | |
3603 | wxPyEndBlockThreads(blocked); | |
3604 | if (! found) | |
3605 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3606 | } | |
3607 | ||
d55e5bfc RD |
3608 | |
3609 | ||
3610 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3611 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3612 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3613 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3614 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3615 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3616 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3617 | ||
3618 | ||
3619 | ||
3620 | ||
3621 | ||
ae8162c8 | 3622 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
b06b3e70 | 3623 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d55e5bfc RD |
3624 | |
3625 | ||
ae8162c8 RD |
3626 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3627 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3628 | bool rval=false; \ | |
3629 | bool found; \ | |
7449af73 | 3630 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
ae8162c8 RD |
3631 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3632 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3633 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3634 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3635 | Py_DECREF(win); \ | |
3636 | Py_DECREF(dc); \ | |
3637 | } \ | |
3638 | wxPyEndBlockThreads(blocked); \ | |
3639 | if (! found) \ | |
3640 | rval = PCLASS::CBNAME(a, b); \ | |
3641 | return rval; \ | |
b06b3e70 | 3642 | } |
d55e5bfc RD |
3643 | |
3644 | ||
3645 | ||
3646 | ||
3647 | class wxPyPrintPreview : public wxPrintPreview | |
3648 | { | |
3649 | DECLARE_CLASS(wxPyPrintPreview) | |
3650 | public: | |
3651 | wxPyPrintPreview(wxPyPrintout* printout, | |
3652 | wxPyPrintout* printoutForPrinting, | |
3653 | wxPrintDialogData* data=NULL) | |
3654 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3655 | {} | |
3656 | wxPyPrintPreview(wxPyPrintout* printout, | |
3657 | wxPyPrintout* printoutForPrinting, | |
7449af73 | 3658 | wxPrintData* data) |
d55e5bfc RD |
3659 | : wxPrintPreview(printout, printoutForPrinting, data) |
3660 | {} | |
3661 | ||
3662 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3663 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3664 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3665 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3666 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3667 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3668 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3669 | ||
3670 | PYPRIVATE; | |
3671 | }; | |
3672 | ||
3673 | // Stupid renamed classes... Fix this in 2.5... | |
3674 | #if defined(__WXMSW__) | |
3675 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3676 | #elif defined(__WXMAC__) | |
3677 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3678 | #else | |
3679 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3680 | #endif | |
3681 | ||
3682 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3683 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3684 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3685 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3686 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3687 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3688 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3689 | ||
3690 | ||
3691 | class wxPyPreviewFrame : public wxPreviewFrame | |
3692 | { | |
7449af73 | 3693 | DECLARE_CLASS(wxPyPreviewFrame) |
d55e5bfc RD |
3694 | public: |
3695 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3696 | const wxString& title, | |
3697 | const wxPoint& pos = wxDefaultPosition, | |
3698 | const wxSize& size = wxDefaultSize, | |
3699 | long style = wxDEFAULT_FRAME_STYLE, | |
3700 | const wxString& name = wxPyFrameNameStr) | |
3701 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3702 | {} | |
3703 | ||
3704 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3705 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3706 | ||
3707 | DEC_PYCALLBACK_VOID_(Initialize); | |
3708 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3709 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3710 | ||
3711 | PYPRIVATE; | |
3712 | }; | |
3713 | ||
3714 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3715 | ||
3716 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3717 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3718 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3719 | ||
3720 | ||
3721 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3722 | { | |
7449af73 | 3723 | DECLARE_CLASS(wxPyPreviewControlBar) |
d55e5bfc RD |
3724 | public: |
3725 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3726 | long buttons, | |
3727 | wxWindow *parent, | |
3728 | const wxPoint& pos = wxDefaultPosition, | |
3729 | const wxSize& size = wxDefaultSize, | |
3730 | long style = 0, | |
3731 | const wxString& name = wxPyPanelNameStr) | |
3732 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3733 | {} | |
3734 | ||
3735 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3736 | ||
3737 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3738 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3739 | ||
3740 | PYPRIVATE; | |
3741 | }; | |
3742 | ||
3743 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3744 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3745 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3746 | ||
3747 | #ifdef __cplusplus | |
3748 | extern "C" { | |
3749 | #endif | |
554f62e9 RD |
3750 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3751 | PyObject *resultobj = 0; | |
3752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3753 | int arg2 = (int) (int)-1 ; | |
3754 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3755 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3756 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3757 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3758 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3759 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3760 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3761 | wxPanel *result = 0 ; | |
3762 | void *argp1 = 0 ; | |
3763 | int res1 = 0 ; | |
3764 | int val2 ; | |
3765 | int ecode2 = 0 ; | |
3766 | wxPoint temp3 ; | |
3767 | wxSize temp4 ; | |
3768 | long val5 ; | |
3769 | int ecode5 = 0 ; | |
3770 | bool temp6 = false ; | |
3771 | PyObject * obj0 = 0 ; | |
3772 | PyObject * obj1 = 0 ; | |
3773 | PyObject * obj2 = 0 ; | |
3774 | PyObject * obj3 = 0 ; | |
3775 | PyObject * obj4 = 0 ; | |
3776 | PyObject * obj5 = 0 ; | |
3777 | char * kwnames[] = { | |
3778 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3779 | }; | |
3780 | ||
3781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3783 | if (!SWIG_IsOK(res1)) { | |
3784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3785 | } | |
3786 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3787 | if (obj1) { | |
3788 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3789 | if (!SWIG_IsOK(ecode2)) { | |
3790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3791 | } | |
3792 | arg2 = static_cast< int >(val2); | |
3793 | } | |
3794 | if (obj2) { | |
d55e5bfc | 3795 | { |
554f62e9 RD |
3796 | arg3 = &temp3; |
3797 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 3798 | } |
554f62e9 RD |
3799 | } |
3800 | if (obj3) { | |
d55e5bfc | 3801 | { |
554f62e9 RD |
3802 | arg4 = &temp4; |
3803 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3804 | } |
554f62e9 RD |
3805 | } |
3806 | if (obj4) { | |
3807 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3808 | if (!SWIG_IsOK(ecode5)) { | |
3809 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3810 | } | |
3811 | arg5 = static_cast< long >(val5); | |
3812 | } | |
3813 | if (obj5) { | |
d55e5bfc | 3814 | { |
554f62e9 RD |
3815 | arg6 = wxString_in_helper(obj5); |
3816 | if (arg6 == NULL) SWIG_fail; | |
3817 | temp6 = true; | |
3818 | } | |
3819 | } | |
3820 | { | |
3821 | if (!wxPyCheckForApp()) SWIG_fail; | |
3822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3823 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3824 | wxPyEndAllowThreads(__tstate); | |
3825 | if (PyErr_Occurred()) SWIG_fail; | |
3826 | } | |
3827 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3828 | { | |
3829 | if (temp6) | |
3830 | delete arg6; | |
3831 | } | |
3832 | return resultobj; | |
3833 | fail: | |
3834 | { | |
3835 | if (temp6) | |
3836 | delete arg6; | |
3837 | } | |
3838 | return NULL; | |
d55e5bfc RD |
3839 | } |
3840 | ||
3841 | ||
554f62e9 RD |
3842 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3843 | PyObject *resultobj = 0; | |
3844 | wxPanel *result = 0 ; | |
3845 | ||
3846 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3847 | { | |
3848 | if (!wxPyCheckForApp()) SWIG_fail; | |
3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3850 | result = (wxPanel *)new wxPanel(); | |
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj = 0; | |
3863 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3864 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3865 | int arg3 = (int) (int)-1 ; | |
3866 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3867 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3868 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3869 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3870 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3871 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3872 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3873 | bool result; | |
3874 | void *argp1 = 0 ; | |
3875 | int res1 = 0 ; | |
3876 | void *argp2 = 0 ; | |
3877 | int res2 = 0 ; | |
3878 | int val3 ; | |
3879 | int ecode3 = 0 ; | |
3880 | wxPoint temp4 ; | |
3881 | wxSize temp5 ; | |
3882 | long val6 ; | |
3883 | int ecode6 = 0 ; | |
3884 | bool temp7 = false ; | |
3885 | PyObject * obj0 = 0 ; | |
3886 | PyObject * obj1 = 0 ; | |
3887 | PyObject * obj2 = 0 ; | |
3888 | PyObject * obj3 = 0 ; | |
3889 | PyObject * obj4 = 0 ; | |
3890 | PyObject * obj5 = 0 ; | |
3891 | PyObject * obj6 = 0 ; | |
3892 | char * kwnames[] = { | |
3893 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3894 | }; | |
3895 | ||
3896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3898 | if (!SWIG_IsOK(res1)) { | |
3899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3900 | } | |
3901 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3902 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3903 | if (!SWIG_IsOK(res2)) { | |
3904 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3905 | } | |
3906 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3907 | if (obj2) { | |
3908 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3909 | if (!SWIG_IsOK(ecode3)) { | |
3910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3911 | } | |
3912 | arg3 = static_cast< int >(val3); | |
3913 | } | |
3914 | if (obj3) { | |
d55e5bfc | 3915 | { |
554f62e9 RD |
3916 | arg4 = &temp4; |
3917 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3918 | } |
554f62e9 RD |
3919 | } |
3920 | if (obj4) { | |
d55e5bfc | 3921 | { |
554f62e9 RD |
3922 | arg5 = &temp5; |
3923 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3924 | } |
554f62e9 RD |
3925 | } |
3926 | if (obj5) { | |
3927 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3928 | if (!SWIG_IsOK(ecode6)) { | |
3929 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3930 | } | |
3931 | arg6 = static_cast< long >(val6); | |
3932 | } | |
3933 | if (obj6) { | |
d55e5bfc | 3934 | { |
554f62e9 RD |
3935 | arg7 = wxString_in_helper(obj6); |
3936 | if (arg7 == NULL) SWIG_fail; | |
3937 | temp7 = true; | |
d55e5bfc | 3938 | } |
554f62e9 RD |
3939 | } |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3943 | wxPyEndAllowThreads(__tstate); | |
3944 | if (PyErr_Occurred()) SWIG_fail; | |
3945 | } | |
3946 | { | |
3947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3948 | } | |
3949 | { | |
3950 | if (temp7) | |
3951 | delete arg7; | |
3952 | } | |
3953 | return resultobj; | |
3954 | fail: | |
3955 | { | |
3956 | if (temp7) | |
3957 | delete arg7; | |
3958 | } | |
3959 | return NULL; | |
b519803b RD |
3960 | } |
3961 | ||
3962 | ||
554f62e9 RD |
3963 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3964 | PyObject *resultobj = 0; | |
3965 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3966 | void *argp1 = 0 ; | |
3967 | int res1 = 0 ; | |
3968 | PyObject *swig_obj[1] ; | |
3969 | ||
3970 | if (!args) SWIG_fail; | |
3971 | swig_obj[0] = args; | |
3972 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3973 | if (!SWIG_IsOK(res1)) { | |
3974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3975 | } | |
3976 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3977 | { | |
3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3979 | (arg1)->SetFocusIgnoringChildren(); | |
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | resultobj = SWIG_Py_Void(); | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj = 0; | |
3992 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3993 | SwigValueWrapper<wxVisualAttributes > result; | |
3994 | int val1 ; | |
3995 | int ecode1 = 0 ; | |
3996 | PyObject * obj0 = 0 ; | |
3997 | char * kwnames[] = { | |
3998 | (char *) "variant", NULL | |
3999 | }; | |
4000 | ||
4001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
4002 | if (obj0) { | |
4003 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4004 | if (!SWIG_IsOK(ecode1)) { | |
4005 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
4006 | } | |
4007 | arg1 = static_cast< wxWindowVariant >(val1); | |
4008 | } | |
4009 | { | |
4010 | if (!wxPyCheckForApp()) SWIG_fail; | |
4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4012 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
4013 | wxPyEndAllowThreads(__tstate); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | } | |
4016 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
4017 | return resultobj; | |
4018 | fail: | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4024 | PyObject *obj; | |
4025 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4026 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
4027 | return SWIG_Py_Void(); | |
4028 | } | |
4029 | ||
4030 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4031 | return SWIG_Python_InitShadowInstance(args); | |
4032 | } | |
4033 | ||
4034 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4035 | PyObject *resultobj = 0; | |
4036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4037 | int arg2 = (int) (int)-1 ; | |
4038 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4039 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4040 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4041 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4042 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
4043 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
4044 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4045 | wxScrolledWindow *result = 0 ; | |
4046 | void *argp1 = 0 ; | |
4047 | int res1 = 0 ; | |
4048 | int val2 ; | |
4049 | int ecode2 = 0 ; | |
4050 | wxPoint temp3 ; | |
4051 | wxSize temp4 ; | |
4052 | long val5 ; | |
4053 | int ecode5 = 0 ; | |
4054 | bool temp6 = false ; | |
4055 | PyObject * obj0 = 0 ; | |
4056 | PyObject * obj1 = 0 ; | |
4057 | PyObject * obj2 = 0 ; | |
4058 | PyObject * obj3 = 0 ; | |
4059 | PyObject * obj4 = 0 ; | |
4060 | PyObject * obj5 = 0 ; | |
4061 | char * kwnames[] = { | |
4062 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4063 | }; | |
4064 | ||
4065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4067 | if (!SWIG_IsOK(res1)) { | |
4068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4069 | } | |
4070 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4071 | if (obj1) { | |
4072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4073 | if (!SWIG_IsOK(ecode2)) { | |
4074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4075 | } | |
4076 | arg2 = static_cast< int >(val2); | |
4077 | } | |
4078 | if (obj2) { | |
b519803b | 4079 | { |
554f62e9 RD |
4080 | arg3 = &temp3; |
4081 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 4082 | } |
554f62e9 RD |
4083 | } |
4084 | if (obj3) { | |
f20a2e1f | 4085 | { |
554f62e9 RD |
4086 | arg4 = &temp4; |
4087 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 4088 | } |
554f62e9 RD |
4089 | } |
4090 | if (obj4) { | |
4091 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4092 | if (!SWIG_IsOK(ecode5)) { | |
4093 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4094 | } | |
4095 | arg5 = static_cast< long >(val5); | |
4096 | } | |
4097 | if (obj5) { | |
f20a2e1f | 4098 | { |
554f62e9 RD |
4099 | arg6 = wxString_in_helper(obj5); |
4100 | if (arg6 == NULL) SWIG_fail; | |
4101 | temp6 = true; | |
f20a2e1f | 4102 | } |
554f62e9 RD |
4103 | } |
4104 | { | |
4105 | if (!wxPyCheckForApp()) SWIG_fail; | |
4106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4107 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4108 | wxPyEndAllowThreads(__tstate); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4111 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4112 | { | |
4113 | if (temp6) | |
4114 | delete arg6; | |
4115 | } | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | { | |
4119 | if (temp6) | |
4120 | delete arg6; | |
4121 | } | |
4122 | return NULL; | |
f20a2e1f RD |
4123 | } |
4124 | ||
4125 | ||
554f62e9 RD |
4126 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4127 | PyObject *resultobj = 0; | |
4128 | wxScrolledWindow *result = 0 ; | |
4129 | ||
4130 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4131 | { | |
4132 | if (!wxPyCheckForApp()) SWIG_fail; | |
4133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4134 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4135 | wxPyEndAllowThreads(__tstate); | |
4136 | if (PyErr_Occurred()) SWIG_fail; | |
4137 | } | |
4138 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4139 | return resultobj; | |
4140 | fail: | |
4141 | return NULL; | |
4142 | } | |
4143 | ||
4144 | ||
4145 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4146 | PyObject *resultobj = 0; | |
4147 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4148 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4149 | int arg3 = (int) (int)-1 ; | |
4150 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4151 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4152 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4153 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4154 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4155 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4156 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4157 | bool result; | |
4158 | void *argp1 = 0 ; | |
4159 | int res1 = 0 ; | |
4160 | void *argp2 = 0 ; | |
4161 | int res2 = 0 ; | |
4162 | int val3 ; | |
4163 | int ecode3 = 0 ; | |
4164 | wxPoint temp4 ; | |
4165 | wxSize temp5 ; | |
4166 | long val6 ; | |
4167 | int ecode6 = 0 ; | |
4168 | bool temp7 = false ; | |
4169 | PyObject * obj0 = 0 ; | |
4170 | PyObject * obj1 = 0 ; | |
4171 | PyObject * obj2 = 0 ; | |
4172 | PyObject * obj3 = 0 ; | |
4173 | PyObject * obj4 = 0 ; | |
4174 | PyObject * obj5 = 0 ; | |
4175 | PyObject * obj6 = 0 ; | |
4176 | char * kwnames[] = { | |
4177 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4178 | }; | |
4179 | ||
4180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4182 | if (!SWIG_IsOK(res1)) { | |
4183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4184 | } | |
4185 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4186 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4187 | if (!SWIG_IsOK(res2)) { | |
4188 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4189 | } | |
4190 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4191 | if (obj2) { | |
4192 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4193 | if (!SWIG_IsOK(ecode3)) { | |
4194 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4195 | } | |
4196 | arg3 = static_cast< int >(val3); | |
4197 | } | |
4198 | if (obj3) { | |
d55e5bfc | 4199 | { |
554f62e9 RD |
4200 | arg4 = &temp4; |
4201 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4202 | } | |
4203 | } | |
4204 | if (obj4) { | |
d55e5bfc | 4205 | { |
554f62e9 RD |
4206 | arg5 = &temp5; |
4207 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4208 | } |
554f62e9 RD |
4209 | } |
4210 | if (obj5) { | |
4211 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4212 | if (!SWIG_IsOK(ecode6)) { | |
4213 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4214 | } | |
4215 | arg6 = static_cast< long >(val6); | |
4216 | } | |
4217 | if (obj6) { | |
d55e5bfc | 4218 | { |
554f62e9 RD |
4219 | arg7 = wxString_in_helper(obj6); |
4220 | if (arg7 == NULL) SWIG_fail; | |
4221 | temp7 = true; | |
d55e5bfc | 4222 | } |
554f62e9 RD |
4223 | } |
4224 | { | |
4225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4226 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
4230 | { | |
4231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4232 | } | |
4233 | { | |
4234 | if (temp7) | |
4235 | delete arg7; | |
4236 | } | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | { | |
4240 | if (temp7) | |
4241 | delete arg7; | |
4242 | } | |
4243 | return NULL; | |
4244 | } | |
4245 | ||
4246 | ||
4247 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4248 | PyObject *resultobj = 0; | |
4249 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4250 | int arg2 ; | |
4251 | int arg3 ; | |
4252 | int arg4 ; | |
4253 | int arg5 ; | |
4254 | int arg6 = (int) 0 ; | |
4255 | int arg7 = (int) 0 ; | |
4256 | bool arg8 = (bool) false ; | |
4257 | void *argp1 = 0 ; | |
4258 | int res1 = 0 ; | |
4259 | int val2 ; | |
4260 | int ecode2 = 0 ; | |
4261 | int val3 ; | |
4262 | int ecode3 = 0 ; | |
4263 | int val4 ; | |
4264 | int ecode4 = 0 ; | |
4265 | int val5 ; | |
4266 | int ecode5 = 0 ; | |
4267 | int val6 ; | |
4268 | int ecode6 = 0 ; | |
4269 | int val7 ; | |
4270 | int ecode7 = 0 ; | |
4271 | bool val8 ; | |
4272 | int ecode8 = 0 ; | |
4273 | PyObject * obj0 = 0 ; | |
4274 | PyObject * obj1 = 0 ; | |
4275 | PyObject * obj2 = 0 ; | |
4276 | PyObject * obj3 = 0 ; | |
4277 | PyObject * obj4 = 0 ; | |
4278 | PyObject * obj5 = 0 ; | |
4279 | PyObject * obj6 = 0 ; | |
4280 | PyObject * obj7 = 0 ; | |
4281 | char * kwnames[] = { | |
4282 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4283 | }; | |
4284 | ||
4285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4287 | if (!SWIG_IsOK(res1)) { | |
4288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4289 | } | |
4290 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4291 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4292 | if (!SWIG_IsOK(ecode2)) { | |
4293 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4294 | } | |
4295 | arg2 = static_cast< int >(val2); | |
4296 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4297 | if (!SWIG_IsOK(ecode3)) { | |
4298 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4299 | } | |
4300 | arg3 = static_cast< int >(val3); | |
4301 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4302 | if (!SWIG_IsOK(ecode4)) { | |
4303 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4304 | } | |
4305 | arg4 = static_cast< int >(val4); | |
4306 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4307 | if (!SWIG_IsOK(ecode5)) { | |
4308 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4309 | } | |
4310 | arg5 = static_cast< int >(val5); | |
4311 | if (obj5) { | |
4312 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4313 | if (!SWIG_IsOK(ecode6)) { | |
4314 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4315 | } | |
4316 | arg6 = static_cast< int >(val6); | |
4317 | } | |
4318 | if (obj6) { | |
4319 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4320 | if (!SWIG_IsOK(ecode7)) { | |
4321 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4322 | } | |
4323 | arg7 = static_cast< int >(val7); | |
4324 | } | |
4325 | if (obj7) { | |
4326 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4327 | if (!SWIG_IsOK(ecode8)) { | |
4328 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4329 | } | |
4330 | arg8 = static_cast< bool >(val8); | |
4331 | } | |
4332 | { | |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4334 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4335 | wxPyEndAllowThreads(__tstate); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
4338 | resultobj = SWIG_Py_Void(); | |
4339 | return resultobj; | |
4340 | fail: | |
4341 | return NULL; | |
4342 | } | |
4343 | ||
4344 | ||
4345 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4346 | PyObject *resultobj = 0; | |
4347 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4348 | int arg2 ; | |
4349 | int arg3 ; | |
4350 | void *argp1 = 0 ; | |
4351 | int res1 = 0 ; | |
4352 | int val2 ; | |
4353 | int ecode2 = 0 ; | |
4354 | int val3 ; | |
4355 | int ecode3 = 0 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | PyObject * obj2 = 0 ; | |
4359 | char * kwnames[] = { | |
4360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4361 | }; | |
4362 | ||
4363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4365 | if (!SWIG_IsOK(res1)) { | |
4366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4367 | } | |
4368 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4370 | if (!SWIG_IsOK(ecode2)) { | |
4371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4372 | } | |
4373 | arg2 = static_cast< int >(val2); | |
4374 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4375 | if (!SWIG_IsOK(ecode3)) { | |
4376 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4377 | } | |
4378 | arg3 = static_cast< int >(val3); | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | (arg1)->Scroll(arg2,arg3); | |
4382 | wxPyEndAllowThreads(__tstate); | |
4383 | if (PyErr_Occurred()) SWIG_fail; | |
4384 | } | |
4385 | resultobj = SWIG_Py_Void(); | |
4386 | return resultobj; | |
4387 | fail: | |
4388 | return NULL; | |
4389 | } | |
4390 | ||
4391 | ||
4392 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4393 | PyObject *resultobj = 0; | |
4394 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4395 | int arg2 ; | |
4396 | int result; | |
4397 | void *argp1 = 0 ; | |
4398 | int res1 = 0 ; | |
4399 | int val2 ; | |
4400 | int ecode2 = 0 ; | |
4401 | PyObject * obj0 = 0 ; | |
4402 | PyObject * obj1 = 0 ; | |
4403 | char * kwnames[] = { | |
4404 | (char *) "self",(char *) "orient", NULL | |
4405 | }; | |
4406 | ||
4407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4409 | if (!SWIG_IsOK(res1)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4411 | } | |
4412 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4414 | if (!SWIG_IsOK(ecode2)) { | |
4415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4416 | } | |
4417 | arg2 = static_cast< int >(val2); | |
4418 | { | |
4419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4420 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | } | |
4424 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4425 | return resultobj; | |
4426 | fail: | |
4427 | return NULL; | |
4428 | } | |
4429 | ||
4430 | ||
4431 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4432 | PyObject *resultobj = 0; | |
4433 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4434 | int arg2 ; | |
4435 | int arg3 ; | |
4436 | void *argp1 = 0 ; | |
4437 | int res1 = 0 ; | |
4438 | int val2 ; | |
4439 | int ecode2 = 0 ; | |
4440 | int val3 ; | |
4441 | int ecode3 = 0 ; | |
4442 | PyObject * obj0 = 0 ; | |
4443 | PyObject * obj1 = 0 ; | |
4444 | PyObject * obj2 = 0 ; | |
4445 | char * kwnames[] = { | |
4446 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4447 | }; | |
4448 | ||
4449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4451 | if (!SWIG_IsOK(res1)) { | |
4452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4453 | } | |
4454 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4455 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4456 | if (!SWIG_IsOK(ecode2)) { | |
4457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4458 | } | |
4459 | arg2 = static_cast< int >(val2); | |
4460 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4461 | if (!SWIG_IsOK(ecode3)) { | |
4462 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4463 | } | |
4464 | arg3 = static_cast< int >(val3); | |
4465 | { | |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4468 | wxPyEndAllowThreads(__tstate); | |
4469 | if (PyErr_Occurred()) SWIG_fail; | |
4470 | } | |
4471 | resultobj = SWIG_Py_Void(); | |
4472 | return resultobj; | |
4473 | fail: | |
4474 | return NULL; | |
4475 | } | |
4476 | ||
4477 | ||
4478 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4479 | PyObject *resultobj = 0; | |
4480 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4481 | int arg2 ; | |
4482 | int arg3 ; | |
4483 | void *argp1 = 0 ; | |
4484 | int res1 = 0 ; | |
4485 | int val2 ; | |
4486 | int ecode2 = 0 ; | |
4487 | int val3 ; | |
4488 | int ecode3 = 0 ; | |
4489 | PyObject * obj0 = 0 ; | |
4490 | PyObject * obj1 = 0 ; | |
4491 | PyObject * obj2 = 0 ; | |
4492 | char * kwnames[] = { | |
4493 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4494 | }; | |
4495 | ||
4496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4498 | if (!SWIG_IsOK(res1)) { | |
4499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4500 | } | |
4501 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4502 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4503 | if (!SWIG_IsOK(ecode2)) { | |
4504 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4505 | } | |
4506 | arg2 = static_cast< int >(val2); | |
4507 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4508 | if (!SWIG_IsOK(ecode3)) { | |
4509 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4510 | } | |
4511 | arg3 = static_cast< int >(val3); | |
4512 | { | |
4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4514 | (arg1)->SetScrollRate(arg2,arg3); | |
4515 | wxPyEndAllowThreads(__tstate); | |
4516 | if (PyErr_Occurred()) SWIG_fail; | |
4517 | } | |
4518 | resultobj = SWIG_Py_Void(); | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4526 | PyObject *resultobj = 0; | |
4527 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4528 | int *arg2 = (int *) 0 ; | |
4529 | int *arg3 = (int *) 0 ; | |
4530 | void *argp1 = 0 ; | |
4531 | int res1 = 0 ; | |
4532 | int temp2 ; | |
4533 | int res2 = SWIG_TMPOBJ ; | |
4534 | int temp3 ; | |
4535 | int res3 = SWIG_TMPOBJ ; | |
4536 | PyObject *swig_obj[1] ; | |
4537 | ||
4538 | arg2 = &temp2; | |
4539 | arg3 = &temp3; | |
4540 | if (!args) SWIG_fail; | |
4541 | swig_obj[0] = args; | |
4542 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4543 | if (!SWIG_IsOK(res1)) { | |
4544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4545 | } | |
4546 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4547 | { | |
4548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4549 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4550 | wxPyEndAllowThreads(__tstate); | |
4551 | if (PyErr_Occurred()) SWIG_fail; | |
4552 | } | |
4553 | resultobj = SWIG_Py_Void(); | |
4554 | if (SWIG_IsTmpObj(res2)) { | |
4555 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4556 | } else { | |
4557 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4558 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4559 | } | |
4560 | if (SWIG_IsTmpObj(res3)) { | |
4561 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4562 | } else { | |
4563 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4564 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4565 | } | |
4566 | return resultobj; | |
4567 | fail: | |
4568 | return NULL; | |
4569 | } | |
4570 | ||
4571 | ||
4572 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4573 | PyObject *resultobj = 0; | |
4574 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4575 | bool arg2 ; | |
4576 | bool arg3 ; | |
4577 | void *argp1 = 0 ; | |
4578 | int res1 = 0 ; | |
4579 | bool val2 ; | |
4580 | int ecode2 = 0 ; | |
4581 | bool val3 ; | |
4582 | int ecode3 = 0 ; | |
4583 | PyObject * obj0 = 0 ; | |
4584 | PyObject * obj1 = 0 ; | |
4585 | PyObject * obj2 = 0 ; | |
4586 | char * kwnames[] = { | |
4587 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4588 | }; | |
4589 | ||
4590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4592 | if (!SWIG_IsOK(res1)) { | |
4593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4594 | } | |
4595 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4596 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4597 | if (!SWIG_IsOK(ecode2)) { | |
4598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4599 | } | |
4600 | arg2 = static_cast< bool >(val2); | |
4601 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4602 | if (!SWIG_IsOK(ecode3)) { | |
4603 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4604 | } | |
4605 | arg3 = static_cast< bool >(val3); | |
4606 | { | |
4607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4608 | (arg1)->EnableScrolling(arg2,arg3); | |
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
4612 | resultobj = SWIG_Py_Void(); | |
4613 | return resultobj; | |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4620 | PyObject *resultobj = 0; | |
4621 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4622 | int *arg2 = (int *) 0 ; | |
4623 | int *arg3 = (int *) 0 ; | |
4624 | void *argp1 = 0 ; | |
4625 | int res1 = 0 ; | |
4626 | int temp2 ; | |
4627 | int res2 = SWIG_TMPOBJ ; | |
4628 | int temp3 ; | |
4629 | int res3 = SWIG_TMPOBJ ; | |
4630 | PyObject *swig_obj[1] ; | |
4631 | ||
4632 | arg2 = &temp2; | |
4633 | arg3 = &temp3; | |
4634 | if (!args) SWIG_fail; | |
4635 | swig_obj[0] = args; | |
4636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4637 | if (!SWIG_IsOK(res1)) { | |
4638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4639 | } | |
4640 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4641 | { | |
4642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4643 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4644 | wxPyEndAllowThreads(__tstate); | |
4645 | if (PyErr_Occurred()) SWIG_fail; | |
4646 | } | |
4647 | resultobj = SWIG_Py_Void(); | |
4648 | if (SWIG_IsTmpObj(res2)) { | |
4649 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4650 | } else { | |
4651 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4652 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4653 | } | |
4654 | if (SWIG_IsTmpObj(res3)) { | |
4655 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4656 | } else { | |
4657 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4658 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4659 | } | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
4663 | } | |
4664 | ||
4665 | ||
4666 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4667 | PyObject *resultobj = 0; | |
4668 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4669 | double arg2 ; | |
4670 | double arg3 ; | |
4671 | void *argp1 = 0 ; | |
4672 | int res1 = 0 ; | |
4673 | double val2 ; | |
4674 | int ecode2 = 0 ; | |
4675 | double val3 ; | |
4676 | int ecode3 = 0 ; | |
4677 | PyObject * obj0 = 0 ; | |
4678 | PyObject * obj1 = 0 ; | |
4679 | PyObject * obj2 = 0 ; | |
4680 | char * kwnames[] = { | |
4681 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4682 | }; | |
4683 | ||
4684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4686 | if (!SWIG_IsOK(res1)) { | |
4687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4688 | } | |
4689 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4690 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4691 | if (!SWIG_IsOK(ecode2)) { | |
4692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4693 | } | |
4694 | arg2 = static_cast< double >(val2); | |
4695 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4696 | if (!SWIG_IsOK(ecode3)) { | |
4697 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4698 | } | |
4699 | arg3 = static_cast< double >(val3); | |
4700 | { | |
4701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4702 | (arg1)->SetScale(arg2,arg3); | |
4703 | wxPyEndAllowThreads(__tstate); | |
4704 | if (PyErr_Occurred()) SWIG_fail; | |
4705 | } | |
4706 | resultobj = SWIG_Py_Void(); | |
4707 | return resultobj; | |
4708 | fail: | |
4709 | return NULL; | |
d55e5bfc RD |
4710 | } |
4711 | ||
4712 | ||
554f62e9 RD |
4713 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4714 | PyObject *resultobj = 0; | |
4715 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4716 | double result; | |
4717 | void *argp1 = 0 ; | |
4718 | int res1 = 0 ; | |
4719 | PyObject *swig_obj[1] ; | |
4720 | ||
4721 | if (!args) SWIG_fail; | |
4722 | swig_obj[0] = args; | |
4723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4724 | if (!SWIG_IsOK(res1)) { | |
4725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4726 | } | |
4727 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4728 | { | |
4729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4730 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4731 | wxPyEndAllowThreads(__tstate); | |
4732 | if (PyErr_Occurred()) SWIG_fail; | |
4733 | } | |
4734 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
d55e5bfc RD |
4738 | } |
4739 | ||
4740 | ||
554f62e9 RD |
4741 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4742 | PyObject *resultobj = 0; | |
4743 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4744 | double result; | |
4745 | void *argp1 = 0 ; | |
4746 | int res1 = 0 ; | |
4747 | PyObject *swig_obj[1] ; | |
4748 | ||
4749 | if (!args) SWIG_fail; | |
4750 | swig_obj[0] = args; | |
4751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4752 | if (!SWIG_IsOK(res1)) { | |
4753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4754 | } | |
4755 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4756 | { | |
4757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4758 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4759 | wxPyEndAllowThreads(__tstate); | |
4760 | if (PyErr_Occurred()) SWIG_fail; | |
4761 | } | |
4762 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4763 | return resultobj; | |
4764 | fail: | |
4765 | return NULL; | |
d55e5bfc RD |
4766 | } |
4767 | ||
4768 | ||
554f62e9 RD |
4769 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4770 | PyObject *resultobj = 0; | |
4771 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4772 | wxPoint *arg2 = 0 ; | |
4773 | wxPoint result; | |
4774 | void *argp1 = 0 ; | |
4775 | int res1 = 0 ; | |
4776 | wxPoint temp2 ; | |
4777 | ||
4778 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4780 | if (!SWIG_IsOK(res1)) { | |
4781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4782 | } | |
4783 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4784 | { | |
4785 | arg2 = &temp2; | |
4786 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4787 | } | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4794 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4795 | return resultobj; | |
4796 | fail: | |
4797 | return NULL; | |
4798 | } | |
4799 | ||
4800 | ||
4801 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4802 | PyObject *resultobj = 0; | |
4803 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4804 | int arg2 ; | |
4805 | int arg3 ; | |
4806 | int *arg4 = (int *) 0 ; | |
4807 | int *arg5 = (int *) 0 ; | |
4808 | void *argp1 = 0 ; | |
4809 | int res1 = 0 ; | |
4810 | int val2 ; | |
4811 | int ecode2 = 0 ; | |
4812 | int val3 ; | |
4813 | int ecode3 = 0 ; | |
4814 | int temp4 ; | |
4815 | int res4 = SWIG_TMPOBJ ; | |
4816 | int temp5 ; | |
4817 | int res5 = SWIG_TMPOBJ ; | |
4818 | ||
4819 | arg4 = &temp4; | |
4820 | arg5 = &temp5; | |
4821 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4823 | if (!SWIG_IsOK(res1)) { | |
4824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4825 | } | |
4826 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4827 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4828 | if (!SWIG_IsOK(ecode2)) { | |
4829 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4830 | } | |
4831 | arg2 = static_cast< int >(val2); | |
4832 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4833 | if (!SWIG_IsOK(ecode3)) { | |
4834 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4835 | } | |
4836 | arg3 = static_cast< int >(val3); | |
4837 | { | |
4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4839 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4840 | wxPyEndAllowThreads(__tstate); | |
4841 | if (PyErr_Occurred()) SWIG_fail; | |
4842 | } | |
4843 | resultobj = SWIG_Py_Void(); | |
4844 | if (SWIG_IsTmpObj(res4)) { | |
4845 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4846 | } else { | |
4847 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4848 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4849 | } | |
4850 | if (SWIG_IsTmpObj(res5)) { | |
4851 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4852 | } else { | |
4853 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4854 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4855 | } | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
d55e5bfc RD |
4859 | } |
4860 | ||
4861 | ||
554f62e9 RD |
4862 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4863 | int argc; | |
4864 | PyObject *argv[4]; | |
4865 | ||
4866 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4867 | --argc; | |
4868 | if (argc == 2) { | |
4869 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4870 | } | |
4871 | if (argc == 3) { | |
4872 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4873 | } | |
4874 | ||
4875 | fail: | |
4876 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4877 | return NULL; | |
d55e5bfc RD |
4878 | } |
4879 | ||
4880 | ||
554f62e9 RD |
4881 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4882 | PyObject *resultobj = 0; | |
4883 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4884 | wxPoint *arg2 = 0 ; | |
4885 | wxPoint result; | |
4886 | void *argp1 = 0 ; | |
4887 | int res1 = 0 ; | |
4888 | wxPoint temp2 ; | |
4889 | ||
4890 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4892 | if (!SWIG_IsOK(res1)) { | |
4893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4894 | } | |
4895 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4896 | { | |
4897 | arg2 = &temp2; | |
4898 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4899 | } | |
4900 | { | |
4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4902 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
4913 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4914 | PyObject *resultobj = 0; | |
4915 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4916 | int arg2 ; | |
4917 | int arg3 ; | |
4918 | int *arg4 = (int *) 0 ; | |
4919 | int *arg5 = (int *) 0 ; | |
4920 | void *argp1 = 0 ; | |
4921 | int res1 = 0 ; | |
4922 | int val2 ; | |
4923 | int ecode2 = 0 ; | |
4924 | int val3 ; | |
4925 | int ecode3 = 0 ; | |
4926 | int temp4 ; | |
4927 | int res4 = SWIG_TMPOBJ ; | |
4928 | int temp5 ; | |
4929 | int res5 = SWIG_TMPOBJ ; | |
4930 | ||
4931 | arg4 = &temp4; | |
4932 | arg5 = &temp5; | |
4933 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4935 | if (!SWIG_IsOK(res1)) { | |
4936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4937 | } | |
4938 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4939 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4940 | if (!SWIG_IsOK(ecode2)) { | |
4941 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4942 | } | |
4943 | arg2 = static_cast< int >(val2); | |
4944 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4945 | if (!SWIG_IsOK(ecode3)) { | |
4946 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4947 | } | |
4948 | arg3 = static_cast< int >(val3); | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4952 | wxPyEndAllowThreads(__tstate); | |
4953 | if (PyErr_Occurred()) SWIG_fail; | |
4954 | } | |
4955 | resultobj = SWIG_Py_Void(); | |
4956 | if (SWIG_IsTmpObj(res4)) { | |
4957 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4958 | } else { | |
4959 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4960 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4961 | } | |
4962 | if (SWIG_IsTmpObj(res5)) { | |
4963 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4964 | } else { | |
4965 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4967 | } | |
4968 | return resultobj; | |
4969 | fail: | |
4970 | return NULL; | |
d55e5bfc RD |
4971 | } |
4972 | ||
4973 | ||
554f62e9 RD |
4974 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4975 | int argc; | |
4976 | PyObject *argv[4]; | |
4977 | ||
4978 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4979 | --argc; | |
4980 | if (argc == 2) { | |
4981 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4982 | } | |
4983 | if (argc == 3) { | |
4984 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4985 | } | |
4986 | ||
4987 | fail: | |
4988 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4989 | return NULL; | |
d55e5bfc RD |
4990 | } |
4991 | ||
4992 | ||
554f62e9 RD |
4993 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4994 | PyObject *resultobj = 0; | |
4995 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4996 | void *argp1 = 0 ; | |
4997 | int res1 = 0 ; | |
4998 | PyObject *swig_obj[1] ; | |
4999 | ||
5000 | if (!args) SWIG_fail; | |
5001 | swig_obj[0] = args; | |
5002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5003 | if (!SWIG_IsOK(res1)) { | |
5004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5005 | } | |
5006 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5007 | { | |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | (arg1)->AdjustScrollbars(); | |
5010 | wxPyEndAllowThreads(__tstate); | |
5011 | if (PyErr_Occurred()) SWIG_fail; | |
5012 | } | |
5013 | resultobj = SWIG_Py_Void(); | |
5014 | return resultobj; | |
5015 | fail: | |
5016 | return NULL; | |
5017 | } | |
5018 | ||
5019 | ||
5020 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5021 | PyObject *resultobj = 0; | |
5022 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5023 | wxScrollWinEvent *arg2 = 0 ; | |
5024 | int result; | |
5025 | void *argp1 = 0 ; | |
5026 | int res1 = 0 ; | |
5027 | void *argp2 = 0 ; | |
5028 | int res2 = 0 ; | |
5029 | PyObject * obj0 = 0 ; | |
5030 | PyObject * obj1 = 0 ; | |
5031 | char * kwnames[] = { | |
5032 | (char *) "self",(char *) "event", NULL | |
5033 | }; | |
5034 | ||
5035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
5036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5037 | if (!SWIG_IsOK(res1)) { | |
5038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5039 | } | |
5040 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5041 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
5042 | if (!SWIG_IsOK(res2)) { | |
5043 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5044 | } | |
5045 | if (!argp2) { | |
5046 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5047 | } | |
5048 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
5049 | { | |
5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5051 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj = 0; | |
5064 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5065 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5066 | void *argp1 = 0 ; | |
5067 | int res1 = 0 ; | |
5068 | void *argp2 = 0 ; | |
5069 | int res2 = 0 ; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | PyObject * obj1 = 0 ; | |
5072 | char * kwnames[] = { | |
5073 | (char *) "self",(char *) "target", NULL | |
5074 | }; | |
5075 | ||
5076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5078 | if (!SWIG_IsOK(res1)) { | |
5079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5080 | } | |
5081 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5082 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5083 | if (!SWIG_IsOK(res2)) { | |
5084 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5085 | } | |
5086 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->SetTargetWindow(arg2); | |
5090 | wxPyEndAllowThreads(__tstate); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | resultobj = SWIG_Py_Void(); | |
5094 | return resultobj; | |
5095 | fail: | |
5096 | return NULL; | |
d55e5bfc RD |
5097 | } |
5098 | ||
5099 | ||
554f62e9 RD |
5100 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5101 | PyObject *resultobj = 0; | |
5102 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5103 | wxWindow *result = 0 ; | |
5104 | void *argp1 = 0 ; | |
5105 | int res1 = 0 ; | |
5106 | PyObject *swig_obj[1] ; | |
5107 | ||
5108 | if (!args) SWIG_fail; | |
5109 | swig_obj[0] = args; | |
5110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5111 | if (!SWIG_IsOK(res1)) { | |
5112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5113 | } | |
5114 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5115 | { | |
5116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5117 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | { | |
5122 | resultobj = wxPyMake_wxObject(result, 0); | |
5123 | } | |
5124 | return resultobj; | |
5125 | fail: | |
5126 | return NULL; | |
5127 | } | |
5128 | ||
5129 | ||
5130 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5131 | PyObject *resultobj = 0; | |
5132 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5133 | wxRect *arg2 = 0 ; | |
5134 | void *argp1 = 0 ; | |
5135 | int res1 = 0 ; | |
5136 | wxRect temp2 ; | |
5137 | PyObject * obj0 = 0 ; | |
5138 | PyObject * obj1 = 0 ; | |
5139 | char * kwnames[] = { | |
5140 | (char *) "self",(char *) "rect", NULL | |
5141 | }; | |
5142 | ||
5143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
5144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5145 | if (!SWIG_IsOK(res1)) { | |
5146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5147 | } | |
5148 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5149 | { | |
5150 | arg2 = &temp2; | |
5151 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5152 | } | |
5153 | { | |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | resultobj = SWIG_Py_Void(); | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
d55e5bfc RD |
5163 | } |
5164 | ||
5165 | ||
554f62e9 RD |
5166 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5167 | PyObject *resultobj = 0; | |
5168 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5169 | wxRect result; | |
5170 | void *argp1 = 0 ; | |
5171 | int res1 = 0 ; | |
5172 | PyObject *swig_obj[1] ; | |
5173 | ||
5174 | if (!args) SWIG_fail; | |
5175 | swig_obj[0] = args; | |
5176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5177 | if (!SWIG_IsOK(res1)) { | |
5178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5179 | } | |
5180 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5181 | { | |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
5194 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5195 | PyObject *resultobj = 0; | |
5196 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5197 | wxDC *arg2 = 0 ; | |
5198 | void *argp1 = 0 ; | |
5199 | int res1 = 0 ; | |
5200 | void *argp2 = 0 ; | |
5201 | int res2 = 0 ; | |
5202 | PyObject * obj0 = 0 ; | |
5203 | PyObject * obj1 = 0 ; | |
5204 | char * kwnames[] = { | |
5205 | (char *) "self",(char *) "dc", NULL | |
5206 | }; | |
5207 | ||
5208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5210 | if (!SWIG_IsOK(res1)) { | |
5211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5212 | } | |
5213 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5214 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5215 | if (!SWIG_IsOK(res2)) { | |
5216 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5217 | } | |
5218 | if (!argp2) { | |
5219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5220 | } | |
5221 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | (arg1)->DoPrepareDC(*arg2); | |
5225 | wxPyEndAllowThreads(__tstate); | |
5226 | if (PyErr_Occurred()) SWIG_fail; | |
5227 | } | |
5228 | resultobj = SWIG_Py_Void(); | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
5232 | } | |
5233 | ||
5234 | ||
5235 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj = 0; | |
5237 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5238 | SwigValueWrapper<wxVisualAttributes > result; | |
5239 | int val1 ; | |
5240 | int ecode1 = 0 ; | |
5241 | PyObject * obj0 = 0 ; | |
5242 | char * kwnames[] = { | |
5243 | (char *) "variant", NULL | |
5244 | }; | |
5245 | ||
5246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5247 | if (obj0) { | |
5248 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5249 | if (!SWIG_IsOK(ecode1)) { | |
5250 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5251 | } | |
5252 | arg1 = static_cast< wxWindowVariant >(val1); | |
5253 | } | |
5254 | { | |
5255 | if (!wxPyCheckForApp()) SWIG_fail; | |
5256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5257 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
5261 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5262 | return resultobj; | |
5263 | fail: | |
5264 | return NULL; | |
d55e5bfc RD |
5265 | } |
5266 | ||
5267 | ||
554f62e9 RD |
5268 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5269 | PyObject *obj; | |
5270 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5271 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5272 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5273 | } |
5274 | ||
554f62e9 RD |
5275 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5276 | return SWIG_Python_InitShadowInstance(args); | |
5277 | } | |
d55e5bfc | 5278 | |
554f62e9 RD |
5279 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5280 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5281 | return 1; | |
d55e5bfc RD |
5282 | } |
5283 | ||
5284 | ||
554f62e9 RD |
5285 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5286 | PyObject *pyobj = 0; | |
5287 | ||
5288 | { | |
5289 | #if wxUSE_UNICODE | |
5290 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5291 | #else | |
5292 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5293 | #endif | |
5294 | } | |
5295 | return pyobj; | |
d55e5bfc RD |
5296 | } |
5297 | ||
5298 | ||
554f62e9 RD |
5299 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5300 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5301 | return 1; | |
d55e5bfc RD |
5302 | } |
5303 | ||
5304 | ||
554f62e9 RD |
5305 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5306 | PyObject *pyobj = 0; | |
5307 | ||
5308 | { | |
5309 | #if wxUSE_UNICODE | |
5310 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5311 | #else | |
5312 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5313 | #endif | |
5314 | } | |
5315 | return pyobj; | |
d55e5bfc RD |
5316 | } |
5317 | ||
5318 | ||
554f62e9 RD |
5319 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5320 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5321 | return 1; | |
d55e5bfc RD |
5322 | } |
5323 | ||
5324 | ||
554f62e9 RD |
5325 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5326 | PyObject *pyobj = 0; | |
5327 | ||
5328 | { | |
5329 | #if wxUSE_UNICODE | |
5330 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5331 | #else | |
5332 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5333 | #endif | |
5334 | } | |
5335 | return pyobj; | |
d55e5bfc RD |
5336 | } |
5337 | ||
5338 | ||
554f62e9 RD |
5339 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5340 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5341 | return 1; | |
d55e5bfc RD |
5342 | } |
5343 | ||
5344 | ||
554f62e9 RD |
5345 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5346 | PyObject *pyobj = 0; | |
5347 | ||
5348 | { | |
5349 | #if wxUSE_UNICODE | |
5350 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5351 | #else | |
5352 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5353 | #endif | |
5354 | } | |
5355 | return pyobj; | |
5356 | } | |
5357 | ||
5358 | ||
5359 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5360 | PyObject *resultobj = 0; | |
5361 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5362 | bool arg2 = (bool) true ; | |
5363 | void *argp1 = 0 ; | |
5364 | int res1 = 0 ; | |
5365 | bool val2 ; | |
5366 | int ecode2 = 0 ; | |
5367 | PyObject * obj0 = 0 ; | |
5368 | PyObject * obj1 = 0 ; | |
5369 | char * kwnames[] = { | |
5370 | (char *) "self",(char *) "maximize", NULL | |
5371 | }; | |
5372 | ||
5373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5375 | if (!SWIG_IsOK(res1)) { | |
5376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5377 | } | |
5378 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5379 | if (obj1) { | |
5380 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5381 | if (!SWIG_IsOK(ecode2)) { | |
5382 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5383 | } | |
5384 | arg2 = static_cast< bool >(val2); | |
5385 | } | |
5386 | { | |
5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5388 | (arg1)->Maximize(arg2); | |
5389 | wxPyEndAllowThreads(__tstate); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
5392 | resultobj = SWIG_Py_Void(); | |
5393 | return resultobj; | |
5394 | fail: | |
5395 | return NULL; | |
d55e5bfc RD |
5396 | } |
5397 | ||
5398 | ||
554f62e9 RD |
5399 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5400 | PyObject *resultobj = 0; | |
5401 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5402 | void *argp1 = 0 ; | |
5403 | int res1 = 0 ; | |
5404 | PyObject *swig_obj[1] ; | |
5405 | ||
5406 | if (!args) SWIG_fail; | |
5407 | swig_obj[0] = args; | |
5408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5409 | if (!SWIG_IsOK(res1)) { | |
5410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5411 | } | |
5412 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5413 | { | |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | (arg1)->Restore(); | |
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
5419 | resultobj = SWIG_Py_Void(); | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj = 0; | |
5428 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5429 | bool arg2 = (bool) true ; | |
5430 | void *argp1 = 0 ; | |
5431 | int res1 = 0 ; | |
5432 | bool val2 ; | |
5433 | int ecode2 = 0 ; | |
5434 | PyObject * obj0 = 0 ; | |
5435 | PyObject * obj1 = 0 ; | |
5436 | char * kwnames[] = { | |
5437 | (char *) "self",(char *) "iconize", NULL | |
5438 | }; | |
5439 | ||
5440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5442 | if (!SWIG_IsOK(res1)) { | |
5443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5444 | } | |
5445 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5446 | if (obj1) { | |
5447 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5448 | if (!SWIG_IsOK(ecode2)) { | |
5449 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5450 | } | |
5451 | arg2 = static_cast< bool >(val2); | |
5452 | } | |
5453 | { | |
5454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5455 | (arg1)->Iconize(arg2); | |
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | resultobj = SWIG_Py_Void(); | |
5460 | return resultobj; | |
5461 | fail: | |
5462 | return NULL; | |
d55e5bfc RD |
5463 | } |
5464 | ||
5465 | ||
554f62e9 RD |
5466 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5467 | PyObject *resultobj = 0; | |
5468 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5469 | bool result; | |
5470 | void *argp1 = 0 ; | |
5471 | int res1 = 0 ; | |
5472 | PyObject *swig_obj[1] ; | |
5473 | ||
5474 | if (!args) SWIG_fail; | |
5475 | swig_obj[0] = args; | |
5476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5477 | if (!SWIG_IsOK(res1)) { | |
5478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5479 | } | |
5480 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5481 | { | |
5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5483 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | { | |
5488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5489 | } | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | return NULL; | |
d55e5bfc RD |
5493 | } |
5494 | ||
5495 | ||
f460c29d RD |
5496 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsAlwaysMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5497 | PyObject *resultobj = 0; | |
5498 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5499 | bool result; | |
5500 | void *argp1 = 0 ; | |
5501 | int res1 = 0 ; | |
5502 | PyObject *swig_obj[1] ; | |
5503 | ||
5504 | if (!args) SWIG_fail; | |
5505 | swig_obj[0] = args; | |
5506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5507 | if (!SWIG_IsOK(res1)) { | |
5508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsAlwaysMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5509 | } | |
5510 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5511 | { | |
5512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5513 | result = (bool)((wxTopLevelWindow const *)arg1)->IsAlwaysMaximized(); | |
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
5517 | { | |
5518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5519 | } | |
5520 | return resultobj; | |
5521 | fail: | |
5522 | return NULL; | |
5523 | } | |
5524 | ||
5525 | ||
554f62e9 RD |
5526 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5527 | PyObject *resultobj = 0; | |
5528 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5529 | bool result; | |
5530 | void *argp1 = 0 ; | |
5531 | int res1 = 0 ; | |
5532 | PyObject *swig_obj[1] ; | |
5533 | ||
5534 | if (!args) SWIG_fail; | |
5535 | swig_obj[0] = args; | |
5536 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5537 | if (!SWIG_IsOK(res1)) { | |
5538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5539 | } | |
5540 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5544 | wxPyEndAllowThreads(__tstate); | |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
5546 | } | |
5547 | { | |
5548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5549 | } | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
d55e5bfc RD |
5553 | } |
5554 | ||
5555 | ||
554f62e9 RD |
5556 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5557 | PyObject *resultobj = 0; | |
5558 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5559 | wxIcon result; | |
5560 | void *argp1 = 0 ; | |
5561 | int res1 = 0 ; | |
5562 | PyObject *swig_obj[1] ; | |
5563 | ||
5564 | if (!args) SWIG_fail; | |
5565 | swig_obj[0] = args; | |
5566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5567 | if (!SWIG_IsOK(res1)) { | |
5568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5569 | } | |
5570 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5571 | { | |
5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5573 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
5576 | } | |
5577 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5578 | return resultobj; | |
5579 | fail: | |
5580 | return NULL; | |
5581 | } | |
5582 | ||
5583 | ||
5584 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5585 | PyObject *resultobj = 0; | |
5586 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5587 | wxIcon *arg2 = 0 ; | |
5588 | void *argp1 = 0 ; | |
5589 | int res1 = 0 ; | |
5590 | void *argp2 = 0 ; | |
5591 | int res2 = 0 ; | |
5592 | PyObject * obj0 = 0 ; | |
5593 | PyObject * obj1 = 0 ; | |
5594 | char * kwnames[] = { | |
5595 | (char *) "self",(char *) "icon", NULL | |
5596 | }; | |
5597 | ||
5598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5600 | if (!SWIG_IsOK(res1)) { | |
5601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5602 | } | |
5603 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5604 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5605 | if (!SWIG_IsOK(res2)) { | |
5606 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5607 | } | |
5608 | if (!argp2) { | |
5609 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5610 | } | |
5611 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5612 | { | |
5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5614 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
5618 | resultobj = SWIG_Py_Void(); | |
5619 | return resultobj; | |
5620 | fail: | |
5621 | return NULL; | |
5622 | } | |
5623 | ||
5624 | ||
5625 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5626 | PyObject *resultobj = 0; | |
5627 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5628 | wxIconBundle *arg2 = 0 ; | |
5629 | void *argp1 = 0 ; | |
5630 | int res1 = 0 ; | |
5631 | void *argp2 = 0 ; | |
5632 | int res2 = 0 ; | |
5633 | PyObject * obj0 = 0 ; | |
5634 | PyObject * obj1 = 0 ; | |
5635 | char * kwnames[] = { | |
5636 | (char *) "self",(char *) "icons", NULL | |
5637 | }; | |
5638 | ||
5639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5641 | if (!SWIG_IsOK(res1)) { | |
5642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5643 | } | |
5644 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5645 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5646 | if (!SWIG_IsOK(res2)) { | |
5647 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5648 | } | |
5649 | if (!argp2) { | |
5650 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5651 | } | |
5652 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
5658 | } | |
5659 | resultobj = SWIG_Py_Void(); | |
5660 | return resultobj; | |
5661 | fail: | |
5662 | return NULL; | |
5663 | } | |
5664 | ||
5665 | ||
5666 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5667 | PyObject *resultobj = 0; | |
5668 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5669 | bool arg2 ; | |
5670 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5671 | bool result; | |
5672 | void *argp1 = 0 ; | |
5673 | int res1 = 0 ; | |
5674 | bool val2 ; | |
5675 | int ecode2 = 0 ; | |
5676 | long val3 ; | |
5677 | int ecode3 = 0 ; | |
5678 | PyObject * obj0 = 0 ; | |
5679 | PyObject * obj1 = 0 ; | |
5680 | PyObject * obj2 = 0 ; | |
5681 | char * kwnames[] = { | |
5682 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5683 | }; | |
5684 | ||
5685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5687 | if (!SWIG_IsOK(res1)) { | |
5688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5689 | } | |
5690 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5691 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5692 | if (!SWIG_IsOK(ecode2)) { | |
5693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5694 | } | |
5695 | arg2 = static_cast< bool >(val2); | |
5696 | if (obj2) { | |
5697 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5698 | if (!SWIG_IsOK(ecode3)) { | |
5699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5700 | } | |
5701 | arg3 = static_cast< long >(val3); | |
5702 | } | |
5703 | { | |
5704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5705 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
5709 | { | |
5710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5711 | } | |
5712 | return resultobj; | |
5713 | fail: | |
5714 | return NULL; | |
d55e5bfc RD |
5715 | } |
5716 | ||
5717 | ||
554f62e9 RD |
5718 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5719 | PyObject *resultobj = 0; | |
5720 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5721 | bool result; | |
5722 | void *argp1 = 0 ; | |
5723 | int res1 = 0 ; | |
5724 | PyObject *swig_obj[1] ; | |
5725 | ||
5726 | if (!args) SWIG_fail; | |
5727 | swig_obj[0] = args; | |
5728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5729 | if (!SWIG_IsOK(res1)) { | |
5730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5731 | } | |
5732 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5736 | wxPyEndAllowThreads(__tstate); | |
5737 | if (PyErr_Occurred()) SWIG_fail; | |
5738 | } | |
5739 | { | |
5740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5741 | } | |
5742 | return resultobj; | |
5743 | fail: | |
5744 | return NULL; | |
5745 | } | |
5746 | ||
5747 | ||
5748 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5749 | PyObject *resultobj = 0; | |
5750 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5751 | wxString *arg2 = 0 ; | |
5752 | void *argp1 = 0 ; | |
5753 | int res1 = 0 ; | |
5754 | bool temp2 = false ; | |
5755 | PyObject * obj0 = 0 ; | |
5756 | PyObject * obj1 = 0 ; | |
5757 | char * kwnames[] = { | |
5758 | (char *) "self",(char *) "title", NULL | |
5759 | }; | |
5760 | ||
5761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5763 | if (!SWIG_IsOK(res1)) { | |
5764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5765 | } | |
5766 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5767 | { | |
5768 | arg2 = wxString_in_helper(obj1); | |
5769 | if (arg2 == NULL) SWIG_fail; | |
5770 | temp2 = true; | |
5771 | } | |
5772 | { | |
5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5774 | (arg1)->SetTitle((wxString const &)*arg2); | |
5775 | wxPyEndAllowThreads(__tstate); | |
5776 | if (PyErr_Occurred()) SWIG_fail; | |
5777 | } | |
5778 | resultobj = SWIG_Py_Void(); | |
5779 | { | |
5780 | if (temp2) | |
5781 | delete arg2; | |
5782 | } | |
5783 | return resultobj; | |
5784 | fail: | |
5785 | { | |
5786 | if (temp2) | |
5787 | delete arg2; | |
5788 | } | |
5789 | return NULL; | |
d55e5bfc RD |
5790 | } |
5791 | ||
5792 | ||
554f62e9 RD |
5793 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5794 | PyObject *resultobj = 0; | |
5795 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5796 | wxString result; | |
5797 | void *argp1 = 0 ; | |
5798 | int res1 = 0 ; | |
5799 | PyObject *swig_obj[1] ; | |
5800 | ||
5801 | if (!args) SWIG_fail; | |
5802 | swig_obj[0] = args; | |
5803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5804 | if (!SWIG_IsOK(res1)) { | |
5805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5806 | } | |
5807 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5808 | { | |
5809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5810 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5811 | wxPyEndAllowThreads(__tstate); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
5814 | { | |
5815 | #if wxUSE_UNICODE | |
5816 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5817 | #else | |
5818 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5819 | #endif | |
5820 | } | |
5821 | return resultobj; | |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
5827 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5828 | PyObject *resultobj = 0; | |
5829 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5830 | wxRegion *arg2 = 0 ; | |
5831 | bool result; | |
5832 | void *argp1 = 0 ; | |
5833 | int res1 = 0 ; | |
5834 | void *argp2 = 0 ; | |
5835 | int res2 = 0 ; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | PyObject * obj1 = 0 ; | |
5838 | char * kwnames[] = { | |
5839 | (char *) "self",(char *) "region", NULL | |
5840 | }; | |
5841 | ||
5842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5844 | if (!SWIG_IsOK(res1)) { | |
5845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5846 | } | |
5847 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5848 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5849 | if (!SWIG_IsOK(res2)) { | |
5850 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5851 | } | |
5852 | if (!argp2) { | |
5853 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5854 | } | |
5855 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5859 | wxPyEndAllowThreads(__tstate); | |
5860 | if (PyErr_Occurred()) SWIG_fail; | |
5861 | } | |
5862 | { | |
5863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5864 | } | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | return NULL; | |
5868 | } | |
5869 | ||
5870 | ||
5871 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5872 | PyObject *resultobj = 0; | |
5873 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5874 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5875 | void *argp1 = 0 ; | |
5876 | int res1 = 0 ; | |
5877 | int val2 ; | |
5878 | int ecode2 = 0 ; | |
5879 | PyObject * obj0 = 0 ; | |
5880 | PyObject * obj1 = 0 ; | |
5881 | char * kwnames[] = { | |
5882 | (char *) "self",(char *) "flags", NULL | |
5883 | }; | |
5884 | ||
5885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5887 | if (!SWIG_IsOK(res1)) { | |
5888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5889 | } | |
5890 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5891 | if (obj1) { | |
5892 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5893 | if (!SWIG_IsOK(ecode2)) { | |
5894 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5895 | } | |
5896 | arg2 = static_cast< int >(val2); | |
5897 | } | |
5898 | { | |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | (arg1)->RequestUserAttention(arg2); | |
5901 | wxPyEndAllowThreads(__tstate); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
5903 | } | |
5904 | resultobj = SWIG_Py_Void(); | |
5905 | return resultobj; | |
5906 | fail: | |
5907 | return NULL; | |
d55e5bfc RD |
5908 | } |
5909 | ||
5910 | ||
554f62e9 RD |
5911 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5912 | PyObject *resultobj = 0; | |
5913 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5914 | bool result; | |
5915 | void *argp1 = 0 ; | |
5916 | int res1 = 0 ; | |
5917 | PyObject *swig_obj[1] ; | |
5918 | ||
5919 | if (!args) SWIG_fail; | |
5920 | swig_obj[0] = args; | |
5921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5922 | if (!SWIG_IsOK(res1)) { | |
5923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5924 | } | |
5925 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | result = (bool)(arg1)->IsActive(); | |
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
5932 | { | |
5933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5934 | } | |
5935 | return resultobj; | |
5936 | fail: | |
5937 | return NULL; | |
5938 | } | |
5939 | ||
5940 | ||
5941 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5942 | PyObject *resultobj = 0; | |
5943 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5944 | bool arg2 ; | |
5945 | void *argp1 = 0 ; | |
5946 | int res1 = 0 ; | |
5947 | bool val2 ; | |
5948 | int ecode2 = 0 ; | |
5949 | PyObject * obj0 = 0 ; | |
5950 | PyObject * obj1 = 0 ; | |
5951 | char * kwnames[] = { | |
5952 | (char *) "self",(char *) "on", NULL | |
5953 | }; | |
5954 | ||
5955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5957 | if (!SWIG_IsOK(res1)) { | |
5958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5959 | } | |
5960 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5961 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5962 | if (!SWIG_IsOK(ecode2)) { | |
5963 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5964 | } | |
5965 | arg2 = static_cast< bool >(val2); | |
5966 | { | |
5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5968 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5969 | wxPyEndAllowThreads(__tstate); | |
5970 | if (PyErr_Occurred()) SWIG_fail; | |
5971 | } | |
5972 | resultobj = SWIG_Py_Void(); | |
5973 | return resultobj; | |
5974 | fail: | |
5975 | return NULL; | |
d55e5bfc RD |
5976 | } |
5977 | ||
5978 | ||
554f62e9 RD |
5979 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5980 | PyObject *resultobj = 0; | |
5981 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5982 | bool result; | |
5983 | void *argp1 = 0 ; | |
5984 | int res1 = 0 ; | |
5985 | PyObject *swig_obj[1] ; | |
5986 | ||
5987 | if (!args) SWIG_fail; | |
5988 | swig_obj[0] = args; | |
5989 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5990 | if (!SWIG_IsOK(res1)) { | |
5991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5992 | } | |
5993 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1); | |
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | { | |
6001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6002 | } | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj = 0; | |
6011 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6012 | int arg2 = (int) wxBOTH ; | |
6013 | void *argp1 = 0 ; | |
6014 | int res1 = 0 ; | |
6015 | int val2 ; | |
6016 | int ecode2 = 0 ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | char * kwnames[] = { | |
6020 | (char *) "self",(char *) "dir", NULL | |
6021 | }; | |
6022 | ||
6023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
6024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6025 | if (!SWIG_IsOK(res1)) { | |
6026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6027 | } | |
6028 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6029 | if (obj1) { | |
6030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6031 | if (!SWIG_IsOK(ecode2)) { | |
6032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
6033 | } | |
6034 | arg2 = static_cast< int >(val2); | |
6035 | } | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | (arg1)->CenterOnScreen(arg2); | |
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
6042 | resultobj = SWIG_Py_Void(); | |
6043 | return resultobj; | |
6044 | fail: | |
6045 | return NULL; | |
6046 | } | |
6047 | ||
6048 | ||
10044bf1 RD |
6049 | SWIGINTERN PyObject *_wrap_TopLevelWindow_EnableCloseButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6050 | PyObject *resultobj = 0; | |
6051 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6052 | bool arg2 = (bool) true ; | |
6053 | bool result; | |
6054 | void *argp1 = 0 ; | |
6055 | int res1 = 0 ; | |
6056 | bool val2 ; | |
6057 | int ecode2 = 0 ; | |
6058 | PyObject * obj0 = 0 ; | |
6059 | PyObject * obj1 = 0 ; | |
6060 | char * kwnames[] = { | |
6061 | (char *) "self",(char *) "enable", NULL | |
6062 | }; | |
6063 | ||
6064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_EnableCloseButton",kwnames,&obj0,&obj1)) SWIG_fail; | |
6065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6066 | if (!SWIG_IsOK(res1)) { | |
6067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6068 | } | |
6069 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6070 | if (obj1) { | |
6071 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
6072 | if (!SWIG_IsOK(ecode2)) { | |
6073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "2"" of type '" "bool""'"); | |
6074 | } | |
6075 | arg2 = static_cast< bool >(val2); | |
6076 | } | |
6077 | { | |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | result = (bool)(arg1)->EnableCloseButton(arg2); | |
6080 | wxPyEndAllowThreads(__tstate); | |
6081 | if (PyErr_Occurred()) SWIG_fail; | |
6082 | } | |
6083 | { | |
6084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6085 | } | |
6086 | return resultobj; | |
6087 | fail: | |
6088 | return NULL; | |
6089 | } | |
6090 | ||
6091 | ||
1eeb270e RD |
6092 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6093 | PyObject *resultobj = 0; | |
6094 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6095 | wxWindow *result = 0 ; | |
6096 | void *argp1 = 0 ; | |
6097 | int res1 = 0 ; | |
6098 | PyObject *swig_obj[1] ; | |
6099 | ||
6100 | if (!args) SWIG_fail; | |
6101 | swig_obj[0] = args; | |
6102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6103 | if (!SWIG_IsOK(res1)) { | |
6104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6105 | } | |
6106 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6107 | { | |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetDefaultItem(); | |
6110 | wxPyEndAllowThreads(__tstate); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | } | |
6113 | { | |
6114 | resultobj = wxPyMake_wxObject(result, 0); | |
6115 | } | |
6116 | return resultobj; | |
6117 | fail: | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
6122 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6123 | PyObject *resultobj = 0; | |
6124 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6126 | wxWindow *result = 0 ; | |
6127 | void *argp1 = 0 ; | |
6128 | int res1 = 0 ; | |
6129 | void *argp2 = 0 ; | |
6130 | int res2 = 0 ; | |
6131 | PyObject * obj0 = 0 ; | |
6132 | PyObject * obj1 = 0 ; | |
6133 | char * kwnames[] = { | |
6134 | (char *) "self",(char *) "child", NULL | |
6135 | }; | |
6136 | ||
6137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6139 | if (!SWIG_IsOK(res1)) { | |
6140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6141 | } | |
6142 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6143 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6144 | if (!SWIG_IsOK(res2)) { | |
6145 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6146 | } | |
6147 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6148 | { | |
6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6150 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
6151 | wxPyEndAllowThreads(__tstate); | |
6152 | if (PyErr_Occurred()) SWIG_fail; | |
6153 | } | |
6154 | { | |
6155 | resultobj = wxPyMake_wxObject(result, 0); | |
6156 | } | |
6157 | return resultobj; | |
6158 | fail: | |
6159 | return NULL; | |
6160 | } | |
6161 | ||
6162 | ||
6163 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6164 | PyObject *resultobj = 0; | |
6165 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6166 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6167 | void *argp1 = 0 ; | |
6168 | int res1 = 0 ; | |
6169 | void *argp2 = 0 ; | |
6170 | int res2 = 0 ; | |
6171 | PyObject * obj0 = 0 ; | |
6172 | PyObject * obj1 = 0 ; | |
6173 | char * kwnames[] = { | |
6174 | (char *) "self",(char *) "win", NULL | |
6175 | }; | |
6176 | ||
6177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTmpDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6179 | if (!SWIG_IsOK(res1)) { | |
6180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6181 | } | |
6182 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6183 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6184 | if (!SWIG_IsOK(res2)) { | |
6185 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6186 | } | |
6187 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6188 | { | |
6189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6190 | (arg1)->SetTmpDefaultItem(arg2); | |
6191 | wxPyEndAllowThreads(__tstate); | |
6192 | if (PyErr_Occurred()) SWIG_fail; | |
6193 | } | |
6194 | resultobj = SWIG_Py_Void(); | |
6195 | return resultobj; | |
6196 | fail: | |
6197 | return NULL; | |
6198 | } | |
6199 | ||
6200 | ||
6201 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6202 | PyObject *resultobj = 0; | |
6203 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6204 | wxWindow *result = 0 ; | |
6205 | void *argp1 = 0 ; | |
6206 | int res1 = 0 ; | |
6207 | PyObject *swig_obj[1] ; | |
6208 | ||
6209 | if (!args) SWIG_fail; | |
6210 | swig_obj[0] = args; | |
6211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6212 | if (!SWIG_IsOK(res1)) { | |
6213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6214 | } | |
6215 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6216 | { | |
6217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6218 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetTmpDefaultItem(); | |
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | { | |
6223 | resultobj = wxPyMake_wxObject(result, 0); | |
6224 | } | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
554f62e9 RD |
6231 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6232 | PyObject *obj; | |
6233 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6234 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
6235 | return SWIG_Py_Void(); | |
6236 | } | |
6237 | ||
6238 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6239 | PyObject *resultobj = 0; | |
6240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6241 | int arg2 = (int) (int)-1 ; | |
6242 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6243 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6244 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6245 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6246 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6247 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6248 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6249 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6250 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6251 | wxFrame *result = 0 ; | |
6252 | void *argp1 = 0 ; | |
6253 | int res1 = 0 ; | |
6254 | int val2 ; | |
6255 | int ecode2 = 0 ; | |
6256 | bool temp3 = false ; | |
6257 | wxPoint temp4 ; | |
6258 | wxSize temp5 ; | |
6259 | long val6 ; | |
6260 | int ecode6 = 0 ; | |
6261 | bool temp7 = false ; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | PyObject * obj1 = 0 ; | |
6264 | PyObject * obj2 = 0 ; | |
6265 | PyObject * obj3 = 0 ; | |
6266 | PyObject * obj4 = 0 ; | |
6267 | PyObject * obj5 = 0 ; | |
6268 | PyObject * obj6 = 0 ; | |
6269 | char * kwnames[] = { | |
6270 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6271 | }; | |
6272 | ||
6273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6275 | if (!SWIG_IsOK(res1)) { | |
6276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6277 | } | |
6278 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6279 | if (obj1) { | |
6280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6281 | if (!SWIG_IsOK(ecode2)) { | |
6282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6283 | } | |
6284 | arg2 = static_cast< int >(val2); | |
6285 | } | |
6286 | if (obj2) { | |
093d3ff1 | 6287 | { |
554f62e9 RD |
6288 | arg3 = wxString_in_helper(obj2); |
6289 | if (arg3 == NULL) SWIG_fail; | |
6290 | temp3 = true; | |
f5b96ee1 | 6291 | } |
554f62e9 RD |
6292 | } |
6293 | if (obj3) { | |
f5b96ee1 | 6294 | { |
554f62e9 RD |
6295 | arg4 = &temp4; |
6296 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 6297 | } |
554f62e9 RD |
6298 | } |
6299 | if (obj4) { | |
f20a2e1f | 6300 | { |
554f62e9 RD |
6301 | arg5 = &temp5; |
6302 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 6303 | } |
554f62e9 RD |
6304 | } |
6305 | if (obj5) { | |
6306 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6307 | if (!SWIG_IsOK(ecode6)) { | |
6308 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6309 | } | |
6310 | arg6 = static_cast< long >(val6); | |
6311 | } | |
6312 | if (obj6) { | |
f20a2e1f | 6313 | { |
554f62e9 RD |
6314 | arg7 = wxString_in_helper(obj6); |
6315 | if (arg7 == NULL) SWIG_fail; | |
6316 | temp7 = true; | |
f20a2e1f | 6317 | } |
554f62e9 RD |
6318 | } |
6319 | { | |
6320 | if (!wxPyCheckForApp()) SWIG_fail; | |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6323 | wxPyEndAllowThreads(__tstate); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | } | |
6326 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6327 | { | |
6328 | if (temp3) | |
6329 | delete arg3; | |
6330 | } | |
6331 | { | |
6332 | if (temp7) | |
6333 | delete arg7; | |
6334 | } | |
6335 | return resultobj; | |
6336 | fail: | |
6337 | { | |
6338 | if (temp3) | |
6339 | delete arg3; | |
6340 | } | |
6341 | { | |
6342 | if (temp7) | |
6343 | delete arg7; | |
6344 | } | |
6345 | return NULL; | |
d55e5bfc RD |
6346 | } |
6347 | ||
6348 | ||
554f62e9 RD |
6349 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6350 | PyObject *resultobj = 0; | |
6351 | wxFrame *result = 0 ; | |
6352 | ||
6353 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6354 | { | |
6355 | if (!wxPyCheckForApp()) SWIG_fail; | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | result = (wxFrame *)new wxFrame(); | |
6358 | wxPyEndAllowThreads(__tstate); | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
6361 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6362 | return resultobj; | |
6363 | fail: | |
6364 | return NULL; | |
6365 | } | |
6366 | ||
6367 | ||
6368 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6369 | PyObject *resultobj = 0; | |
6370 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6372 | int arg3 = (int) (int)-1 ; | |
6373 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6374 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6375 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6376 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6377 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6378 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6379 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6380 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6381 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6382 | bool result; | |
6383 | void *argp1 = 0 ; | |
6384 | int res1 = 0 ; | |
6385 | void *argp2 = 0 ; | |
6386 | int res2 = 0 ; | |
6387 | int val3 ; | |
6388 | int ecode3 = 0 ; | |
6389 | bool temp4 = false ; | |
6390 | wxPoint temp5 ; | |
6391 | wxSize temp6 ; | |
6392 | long val7 ; | |
6393 | int ecode7 = 0 ; | |
6394 | bool temp8 = false ; | |
6395 | PyObject * obj0 = 0 ; | |
6396 | PyObject * obj1 = 0 ; | |
6397 | PyObject * obj2 = 0 ; | |
6398 | PyObject * obj3 = 0 ; | |
6399 | PyObject * obj4 = 0 ; | |
6400 | PyObject * obj5 = 0 ; | |
6401 | PyObject * obj6 = 0 ; | |
6402 | PyObject * obj7 = 0 ; | |
6403 | char * kwnames[] = { | |
6404 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6405 | }; | |
6406 | ||
6407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6409 | if (!SWIG_IsOK(res1)) { | |
6410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6411 | } | |
6412 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6413 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6414 | if (!SWIG_IsOK(res2)) { | |
6415 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6416 | } | |
6417 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6418 | if (obj2) { | |
6419 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6420 | if (!SWIG_IsOK(ecode3)) { | |
6421 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6422 | } | |
6423 | arg3 = static_cast< int >(val3); | |
6424 | } | |
6425 | if (obj3) { | |
d55e5bfc | 6426 | { |
554f62e9 RD |
6427 | arg4 = wxString_in_helper(obj3); |
6428 | if (arg4 == NULL) SWIG_fail; | |
6429 | temp4 = true; | |
d55e5bfc | 6430 | } |
554f62e9 RD |
6431 | } |
6432 | if (obj4) { | |
d55e5bfc | 6433 | { |
554f62e9 RD |
6434 | arg5 = &temp5; |
6435 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 6436 | } |
554f62e9 RD |
6437 | } |
6438 | if (obj5) { | |
d55e5bfc | 6439 | { |
554f62e9 RD |
6440 | arg6 = &temp6; |
6441 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 6442 | } |
554f62e9 RD |
6443 | } |
6444 | if (obj6) { | |
6445 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6446 | if (!SWIG_IsOK(ecode7)) { | |
6447 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6448 | } | |
6449 | arg7 = static_cast< long >(val7); | |
6450 | } | |
6451 | if (obj7) { | |
6452 | { | |
6453 | arg8 = wxString_in_helper(obj7); | |
6454 | if (arg8 == NULL) SWIG_fail; | |
6455 | temp8 = true; | |
6456 | } | |
6457 | } | |
6458 | { | |
6459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6460 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6461 | wxPyEndAllowThreads(__tstate); | |
6462 | if (PyErr_Occurred()) SWIG_fail; | |
6463 | } | |
6464 | { | |
6465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6466 | } | |
6467 | { | |
6468 | if (temp4) | |
6469 | delete arg4; | |
6470 | } | |
6471 | { | |
6472 | if (temp8) | |
6473 | delete arg8; | |
6474 | } | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | { | |
6478 | if (temp4) | |
6479 | delete arg4; | |
6480 | } | |
6481 | { | |
6482 | if (temp8) | |
6483 | delete arg8; | |
6484 | } | |
6485 | return NULL; | |
d55e5bfc RD |
6486 | } |
6487 | ||
6488 | ||
554f62e9 RD |
6489 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6490 | PyObject *resultobj = 0; | |
6491 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6492 | void *argp1 = 0 ; | |
6493 | int res1 = 0 ; | |
6494 | PyObject *swig_obj[1] ; | |
6495 | ||
6496 | if (!args) SWIG_fail; | |
6497 | swig_obj[0] = args; | |
6498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6499 | if (!SWIG_IsOK(res1)) { | |
6500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6501 | } | |
6502 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | (arg1)->SendSizeEvent(); | |
6506 | wxPyEndAllowThreads(__tstate); | |
6507 | if (PyErr_Occurred()) SWIG_fail; | |
6508 | } | |
6509 | resultobj = SWIG_Py_Void(); | |
6510 | return resultobj; | |
6511 | fail: | |
6512 | return NULL; | |
6513 | } | |
6514 | ||
6515 | ||
6516 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6517 | PyObject *resultobj = 0; | |
6518 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6519 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6520 | void *argp1 = 0 ; | |
6521 | int res1 = 0 ; | |
6522 | void *argp2 = 0 ; | |
6523 | int res2 = 0 ; | |
6524 | PyObject * obj0 = 0 ; | |
6525 | PyObject * obj1 = 0 ; | |
6526 | char * kwnames[] = { | |
6527 | (char *) "self",(char *) "menubar", NULL | |
6528 | }; | |
6529 | ||
6530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6532 | if (!SWIG_IsOK(res1)) { | |
6533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6534 | } | |
6535 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6536 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6537 | if (!SWIG_IsOK(res2)) { | |
6538 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6539 | } | |
6540 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6541 | { | |
6542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6543 | (arg1)->SetMenuBar(arg2); | |
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | resultobj = SWIG_Py_Void(); | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
d55e5bfc RD |
6551 | } |
6552 | ||
6553 | ||
554f62e9 RD |
6554 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6555 | PyObject *resultobj = 0; | |
6556 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6557 | wxMenuBar *result = 0 ; | |
6558 | void *argp1 = 0 ; | |
6559 | int res1 = 0 ; | |
6560 | PyObject *swig_obj[1] ; | |
6561 | ||
6562 | if (!args) SWIG_fail; | |
6563 | swig_obj[0] = args; | |
6564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6565 | if (!SWIG_IsOK(res1)) { | |
6566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6567 | } | |
6568 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6569 | { | |
6570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6571 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | { | |
6576 | resultobj = wxPyMake_wxObject(result, 0); | |
6577 | } | |
6578 | return resultobj; | |
6579 | fail: | |
6580 | return NULL; | |
6581 | } | |
6582 | ||
6583 | ||
6584 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6585 | PyObject *resultobj = 0; | |
6586 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6587 | int arg2 ; | |
6588 | bool result; | |
6589 | void *argp1 = 0 ; | |
6590 | int res1 = 0 ; | |
6591 | int val2 ; | |
6592 | int ecode2 = 0 ; | |
6593 | PyObject * obj0 = 0 ; | |
6594 | PyObject * obj1 = 0 ; | |
6595 | char * kwnames[] = { | |
6596 | (char *) "self",(char *) "winid", NULL | |
6597 | }; | |
6598 | ||
6599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6601 | if (!SWIG_IsOK(res1)) { | |
6602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6603 | } | |
6604 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6606 | if (!SWIG_IsOK(ecode2)) { | |
6607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6608 | } | |
6609 | arg2 = static_cast< int >(val2); | |
6610 | { | |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6613 | wxPyEndAllowThreads(__tstate); | |
6614 | if (PyErr_Occurred()) SWIG_fail; | |
6615 | } | |
6616 | { | |
6617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6618 | } | |
6619 | return resultobj; | |
6620 | fail: | |
6621 | return NULL; | |
6622 | } | |
6623 | ||
6624 | ||
6625 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6626 | PyObject *resultobj = 0; | |
6627 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6628 | int arg2 = (int) 1 ; | |
6629 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6630 | int arg4 = (int) 0 ; | |
6631 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6632 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6633 | wxStatusBar *result = 0 ; | |
6634 | void *argp1 = 0 ; | |
6635 | int res1 = 0 ; | |
6636 | int val2 ; | |
6637 | int ecode2 = 0 ; | |
6638 | long val3 ; | |
6639 | int ecode3 = 0 ; | |
6640 | int val4 ; | |
6641 | int ecode4 = 0 ; | |
6642 | bool temp5 = false ; | |
6643 | PyObject * obj0 = 0 ; | |
6644 | PyObject * obj1 = 0 ; | |
6645 | PyObject * obj2 = 0 ; | |
6646 | PyObject * obj3 = 0 ; | |
6647 | PyObject * obj4 = 0 ; | |
6648 | char * kwnames[] = { | |
6649 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6650 | }; | |
6651 | ||
6652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6654 | if (!SWIG_IsOK(res1)) { | |
6655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6656 | } | |
6657 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6658 | if (obj1) { | |
6659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6660 | if (!SWIG_IsOK(ecode2)) { | |
6661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6662 | } | |
6663 | arg2 = static_cast< int >(val2); | |
6664 | } | |
6665 | if (obj2) { | |
6666 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6667 | if (!SWIG_IsOK(ecode3)) { | |
6668 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6669 | } | |
6670 | arg3 = static_cast< long >(val3); | |
6671 | } | |
6672 | if (obj3) { | |
6673 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6674 | if (!SWIG_IsOK(ecode4)) { | |
6675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6676 | } | |
6677 | arg4 = static_cast< int >(val4); | |
6678 | } | |
6679 | if (obj4) { | |
d55e5bfc | 6680 | { |
554f62e9 RD |
6681 | arg5 = wxString_in_helper(obj4); |
6682 | if (arg5 == NULL) SWIG_fail; | |
6683 | temp5 = true; | |
6684 | } | |
6685 | } | |
6686 | { | |
6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6688 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6689 | wxPyEndAllowThreads(__tstate); | |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
6692 | { | |
6693 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6694 | } | |
6695 | { | |
6696 | if (temp5) | |
6697 | delete arg5; | |
6698 | } | |
6699 | return resultobj; | |
6700 | fail: | |
6701 | { | |
6702 | if (temp5) | |
6703 | delete arg5; | |
6704 | } | |
6705 | return NULL; | |
d55e5bfc RD |
6706 | } |
6707 | ||
6708 | ||
554f62e9 RD |
6709 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6710 | PyObject *resultobj = 0; | |
6711 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6712 | wxStatusBar *result = 0 ; | |
6713 | void *argp1 = 0 ; | |
6714 | int res1 = 0 ; | |
6715 | PyObject *swig_obj[1] ; | |
6716 | ||
6717 | if (!args) SWIG_fail; | |
6718 | swig_obj[0] = args; | |
6719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6720 | if (!SWIG_IsOK(res1)) { | |
6721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6722 | } | |
6723 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6724 | { | |
6725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6726 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | { | |
6731 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6732 | } | |
6733 | return resultobj; | |
6734 | fail: | |
6735 | return NULL; | |
6736 | } | |
6737 | ||
6738 | ||
6739 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6740 | PyObject *resultobj = 0; | |
6741 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6742 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6743 | void *argp1 = 0 ; | |
6744 | int res1 = 0 ; | |
6745 | void *argp2 = 0 ; | |
6746 | int res2 = 0 ; | |
6747 | PyObject * obj0 = 0 ; | |
6748 | PyObject * obj1 = 0 ; | |
6749 | char * kwnames[] = { | |
6750 | (char *) "self",(char *) "statBar", NULL | |
6751 | }; | |
6752 | ||
6753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6755 | if (!SWIG_IsOK(res1)) { | |
6756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6757 | } | |
6758 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6759 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6760 | if (!SWIG_IsOK(res2)) { | |
6761 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6762 | } | |
6763 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6764 | { | |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | (arg1)->SetStatusBar(arg2); | |
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | resultobj = SWIG_Py_Void(); | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj = 0; | |
6779 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6780 | wxString *arg2 = 0 ; | |
6781 | int arg3 = (int) 0 ; | |
6782 | void *argp1 = 0 ; | |
6783 | int res1 = 0 ; | |
6784 | bool temp2 = false ; | |
6785 | int val3 ; | |
6786 | int ecode3 = 0 ; | |
6787 | PyObject * obj0 = 0 ; | |
6788 | PyObject * obj1 = 0 ; | |
6789 | PyObject * obj2 = 0 ; | |
6790 | char * kwnames[] = { | |
6791 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6792 | }; | |
6793 | ||
6794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6796 | if (!SWIG_IsOK(res1)) { | |
6797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6798 | } | |
6799 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6800 | { | |
6801 | arg2 = wxString_in_helper(obj1); | |
6802 | if (arg2 == NULL) SWIG_fail; | |
6803 | temp2 = true; | |
6804 | } | |
6805 | if (obj2) { | |
6806 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6807 | if (!SWIG_IsOK(ecode3)) { | |
6808 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6809 | } | |
6810 | arg3 = static_cast< int >(val3); | |
6811 | } | |
6812 | { | |
6813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6814 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6815 | wxPyEndAllowThreads(__tstate); | |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
6817 | } | |
6818 | resultobj = SWIG_Py_Void(); | |
6819 | { | |
6820 | if (temp2) | |
6821 | delete arg2; | |
6822 | } | |
6823 | return resultobj; | |
6824 | fail: | |
6825 | { | |
6826 | if (temp2) | |
6827 | delete arg2; | |
6828 | } | |
6829 | return NULL; | |
d55e5bfc RD |
6830 | } |
6831 | ||
6832 | ||
554f62e9 RD |
6833 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6834 | PyObject *resultobj = 0; | |
6835 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6836 | int arg2 ; | |
6837 | int *arg3 = (int *) 0 ; | |
6838 | void *argp1 = 0 ; | |
6839 | int res1 = 0 ; | |
6840 | PyObject * obj0 = 0 ; | |
6841 | PyObject * obj1 = 0 ; | |
6842 | char * kwnames[] = { | |
6843 | (char *) "self",(char *) "widths", NULL | |
6844 | }; | |
6845 | ||
6846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6848 | if (!SWIG_IsOK(res1)) { | |
6849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6850 | } | |
6851 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6852 | { | |
6853 | arg2 = PyList_Size(obj1); | |
6854 | arg3 = int_LIST_helper(obj1); | |
6855 | if (arg3 == NULL) SWIG_fail; | |
6856 | } | |
6857 | { | |
6858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6859 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6860 | wxPyEndAllowThreads(__tstate); | |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
6862 | } | |
6863 | resultobj = SWIG_Py_Void(); | |
6864 | { | |
6865 | if (arg3) delete [] arg3; | |
6866 | } | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | { | |
6870 | if (arg3) delete [] arg3; | |
6871 | } | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj = 0; | |
6878 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6879 | wxString *arg2 = 0 ; | |
6880 | int arg3 = (int) 0 ; | |
6881 | void *argp1 = 0 ; | |
6882 | int res1 = 0 ; | |
6883 | bool temp2 = false ; | |
6884 | int val3 ; | |
6885 | int ecode3 = 0 ; | |
6886 | PyObject * obj0 = 0 ; | |
6887 | PyObject * obj1 = 0 ; | |
6888 | PyObject * obj2 = 0 ; | |
6889 | char * kwnames[] = { | |
6890 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6891 | }; | |
6892 | ||
6893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6895 | if (!SWIG_IsOK(res1)) { | |
6896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6897 | } | |
6898 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6899 | { | |
6900 | arg2 = wxString_in_helper(obj1); | |
6901 | if (arg2 == NULL) SWIG_fail; | |
6902 | temp2 = true; | |
6903 | } | |
6904 | if (obj2) { | |
6905 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6906 | if (!SWIG_IsOK(ecode3)) { | |
6907 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6908 | } | |
6909 | arg3 = static_cast< int >(val3); | |
6910 | } | |
6911 | { | |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6914 | wxPyEndAllowThreads(__tstate); | |
6915 | if (PyErr_Occurred()) SWIG_fail; | |
6916 | } | |
6917 | resultobj = SWIG_Py_Void(); | |
6918 | { | |
6919 | if (temp2) | |
6920 | delete arg2; | |
6921 | } | |
6922 | return resultobj; | |
6923 | fail: | |
6924 | { | |
6925 | if (temp2) | |
6926 | delete arg2; | |
6927 | } | |
6928 | return NULL; | |
6929 | } | |
6930 | ||
6931 | ||
6932 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6933 | PyObject *resultobj = 0; | |
6934 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6935 | int arg2 = (int) 0 ; | |
6936 | void *argp1 = 0 ; | |
6937 | int res1 = 0 ; | |
6938 | int val2 ; | |
6939 | int ecode2 = 0 ; | |
6940 | PyObject * obj0 = 0 ; | |
6941 | PyObject * obj1 = 0 ; | |
6942 | char * kwnames[] = { | |
6943 | (char *) "self",(char *) "number", NULL | |
6944 | }; | |
6945 | ||
6946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6948 | if (!SWIG_IsOK(res1)) { | |
6949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6950 | } | |
6951 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6952 | if (obj1) { | |
6953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6954 | if (!SWIG_IsOK(ecode2)) { | |
6955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6956 | } | |
6957 | arg2 = static_cast< int >(val2); | |
6958 | } | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | (arg1)->PopStatusText(arg2); | |
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | resultobj = SWIG_Py_Void(); | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj = 0; | |
6974 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6975 | int arg2 ; | |
6976 | void *argp1 = 0 ; | |
6977 | int res1 = 0 ; | |
6978 | int val2 ; | |
6979 | int ecode2 = 0 ; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | PyObject * obj1 = 0 ; | |
6982 | char * kwnames[] = { | |
6983 | (char *) "self",(char *) "n", NULL | |
6984 | }; | |
6985 | ||
6986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6988 | if (!SWIG_IsOK(res1)) { | |
6989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6990 | } | |
6991 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6992 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6993 | if (!SWIG_IsOK(ecode2)) { | |
6994 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6995 | } | |
6996 | arg2 = static_cast< int >(val2); | |
6997 | { | |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6999 | (arg1)->SetStatusBarPane(arg2); | |
7000 | wxPyEndAllowThreads(__tstate); | |
7001 | if (PyErr_Occurred()) SWIG_fail; | |
7002 | } | |
7003 | resultobj = SWIG_Py_Void(); | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
d55e5bfc RD |
7007 | } |
7008 | ||
7009 | ||
554f62e9 RD |
7010 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7011 | PyObject *resultobj = 0; | |
7012 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7013 | int result; | |
7014 | void *argp1 = 0 ; | |
7015 | int res1 = 0 ; | |
7016 | PyObject *swig_obj[1] ; | |
7017 | ||
7018 | if (!args) SWIG_fail; | |
7019 | swig_obj[0] = args; | |
7020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7021 | if (!SWIG_IsOK(res1)) { | |
7022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7023 | } | |
7024 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7025 | { | |
7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7027 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
7028 | wxPyEndAllowThreads(__tstate); | |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
7030 | } | |
7031 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | return NULL; | |
7035 | } | |
7036 | ||
7037 | ||
7038 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7039 | PyObject *resultobj = 0; | |
7040 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7041 | long arg2 = (long) -1 ; | |
7042 | int arg3 = (int) -1 ; | |
7043 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
7044 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7045 | wxToolBar *result = 0 ; | |
7046 | void *argp1 = 0 ; | |
7047 | int res1 = 0 ; | |
7048 | long val2 ; | |
7049 | int ecode2 = 0 ; | |
7050 | int val3 ; | |
7051 | int ecode3 = 0 ; | |
7052 | bool temp4 = false ; | |
7053 | PyObject * obj0 = 0 ; | |
7054 | PyObject * obj1 = 0 ; | |
7055 | PyObject * obj2 = 0 ; | |
7056 | PyObject * obj3 = 0 ; | |
7057 | char * kwnames[] = { | |
7058 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
7059 | }; | |
7060 | ||
7061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7063 | if (!SWIG_IsOK(res1)) { | |
7064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7065 | } | |
7066 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7067 | if (obj1) { | |
7068 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7069 | if (!SWIG_IsOK(ecode2)) { | |
7070 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
7071 | } | |
7072 | arg2 = static_cast< long >(val2); | |
7073 | } | |
7074 | if (obj2) { | |
7075 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7076 | if (!SWIG_IsOK(ecode3)) { | |
7077 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
7078 | } | |
7079 | arg3 = static_cast< int >(val3); | |
7080 | } | |
7081 | if (obj3) { | |
d55e5bfc | 7082 | { |
554f62e9 RD |
7083 | arg4 = wxString_in_helper(obj3); |
7084 | if (arg4 == NULL) SWIG_fail; | |
7085 | temp4 = true; | |
d55e5bfc | 7086 | } |
554f62e9 RD |
7087 | } |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | { | |
7095 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7096 | } | |
7097 | { | |
7098 | if (temp4) | |
7099 | delete arg4; | |
7100 | } | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | { | |
7104 | if (temp4) | |
7105 | delete arg4; | |
7106 | } | |
7107 | return NULL; | |
d55e5bfc RD |
7108 | } |
7109 | ||
7110 | ||
554f62e9 RD |
7111 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7112 | PyObject *resultobj = 0; | |
7113 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7114 | wxToolBar *result = 0 ; | |
7115 | void *argp1 = 0 ; | |
7116 | int res1 = 0 ; | |
7117 | PyObject *swig_obj[1] ; | |
7118 | ||
7119 | if (!args) SWIG_fail; | |
7120 | swig_obj[0] = args; | |
7121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7122 | if (!SWIG_IsOK(res1)) { | |
7123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7124 | } | |
7125 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | { | |
7133 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7134 | } | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | return NULL; | |
7138 | } | |
7139 | ||
7140 | ||
7141 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7142 | PyObject *resultobj = 0; | |
7143 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7144 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
7145 | void *argp1 = 0 ; | |
7146 | int res1 = 0 ; | |
7147 | void *argp2 = 0 ; | |
7148 | int res2 = 0 ; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | PyObject * obj1 = 0 ; | |
7151 | char * kwnames[] = { | |
7152 | (char *) "self",(char *) "toolbar", NULL | |
7153 | }; | |
7154 | ||
7155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
7156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7157 | if (!SWIG_IsOK(res1)) { | |
7158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7159 | } | |
7160 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7161 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
7162 | if (!SWIG_IsOK(res2)) { | |
7163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
7164 | } | |
7165 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
7166 | { | |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | (arg1)->SetToolBar(arg2); | |
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) SWIG_fail; | |
7171 | } | |
7172 | resultobj = SWIG_Py_Void(); | |
7173 | return resultobj; | |
7174 | fail: | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
7179 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7180 | PyObject *resultobj = 0; | |
7181 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7182 | wxString *arg2 = 0 ; | |
7183 | bool arg3 ; | |
7184 | void *argp1 = 0 ; | |
7185 | int res1 = 0 ; | |
7186 | bool temp2 = false ; | |
7187 | bool val3 ; | |
7188 | int ecode3 = 0 ; | |
7189 | PyObject * obj0 = 0 ; | |
7190 | PyObject * obj1 = 0 ; | |
7191 | PyObject * obj2 = 0 ; | |
7192 | char * kwnames[] = { | |
7193 | (char *) "self",(char *) "text",(char *) "show", NULL | |
7194 | }; | |
7195 | ||
7196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7198 | if (!SWIG_IsOK(res1)) { | |
7199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7200 | } | |
7201 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7202 | { | |
7203 | arg2 = wxString_in_helper(obj1); | |
7204 | if (arg2 == NULL) SWIG_fail; | |
7205 | temp2 = true; | |
7206 | } | |
7207 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7208 | if (!SWIG_IsOK(ecode3)) { | |
7209 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
7210 | } | |
7211 | arg3 = static_cast< bool >(val3); | |
7212 | { | |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7214 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
7217 | } | |
7218 | resultobj = SWIG_Py_Void(); | |
7219 | { | |
7220 | if (temp2) | |
7221 | delete arg2; | |
7222 | } | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | { | |
7226 | if (temp2) | |
7227 | delete arg2; | |
7228 | } | |
7229 | return NULL; | |
7230 | } | |
7231 | ||
7232 | ||
7233 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7234 | PyObject *resultobj = 0; | |
7235 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7236 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7237 | void *argp1 = 0 ; | |
7238 | int res1 = 0 ; | |
7239 | void *argp2 = 0 ; | |
7240 | int res2 = 0 ; | |
7241 | PyObject * obj0 = 0 ; | |
7242 | PyObject * obj1 = 0 ; | |
7243 | char * kwnames[] = { | |
7244 | (char *) "self",(char *) "menu", NULL | |
7245 | }; | |
7246 | ||
7247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7249 | if (!SWIG_IsOK(res1)) { | |
7250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7251 | } | |
7252 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7253 | if (obj1) { | |
7254 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7255 | if (!SWIG_IsOK(res2)) { | |
7256 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d55e5bfc | 7257 | } |
554f62e9 RD |
7258 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7259 | } | |
7260 | { | |
7261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7262 | (arg1)->DoMenuUpdates(arg2); | |
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
7266 | resultobj = SWIG_Py_Void(); | |
7267 | return resultobj; | |
7268 | fail: | |
7269 | return NULL; | |
7270 | } | |
7271 | ||
7272 | ||
7273 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7274 | PyObject *resultobj = 0; | |
7275 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7276 | SwigValueWrapper<wxVisualAttributes > result; | |
7277 | int val1 ; | |
7278 | int ecode1 = 0 ; | |
7279 | PyObject * obj0 = 0 ; | |
7280 | char * kwnames[] = { | |
7281 | (char *) "variant", NULL | |
7282 | }; | |
7283 | ||
7284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7285 | if (obj0) { | |
7286 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7287 | if (!SWIG_IsOK(ecode1)) { | |
7288 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7289 | } | |
7290 | arg1 = static_cast< wxWindowVariant >(val1); | |
7291 | } | |
7292 | { | |
7293 | if (!wxPyCheckForApp()) SWIG_fail; | |
7294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7295 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
7306 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7307 | PyObject *obj; | |
7308 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7309 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7310 | return SWIG_Py_Void(); | |
7311 | } | |
7312 | ||
7313 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7314 | return SWIG_Python_InitShadowInstance(args); | |
7315 | } | |
7316 | ||
7317 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7318 | PyObject *resultobj = 0; | |
7319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7320 | int arg2 = (int) (int)-1 ; | |
7321 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7322 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7327 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7328 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7329 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7330 | wxDialog *result = 0 ; | |
7331 | void *argp1 = 0 ; | |
7332 | int res1 = 0 ; | |
7333 | int val2 ; | |
7334 | int ecode2 = 0 ; | |
7335 | bool temp3 = false ; | |
7336 | wxPoint temp4 ; | |
7337 | wxSize temp5 ; | |
7338 | long val6 ; | |
7339 | int ecode6 = 0 ; | |
7340 | bool temp7 = false ; | |
7341 | PyObject * obj0 = 0 ; | |
7342 | PyObject * obj1 = 0 ; | |
7343 | PyObject * obj2 = 0 ; | |
7344 | PyObject * obj3 = 0 ; | |
7345 | PyObject * obj4 = 0 ; | |
7346 | PyObject * obj5 = 0 ; | |
7347 | PyObject * obj6 = 0 ; | |
7348 | char * kwnames[] = { | |
7349 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7350 | }; | |
7351 | ||
7352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7354 | if (!SWIG_IsOK(res1)) { | |
7355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7356 | } | |
7357 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7358 | if (obj1) { | |
7359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7360 | if (!SWIG_IsOK(ecode2)) { | |
7361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7362 | } | |
7363 | arg2 = static_cast< int >(val2); | |
7364 | } | |
7365 | if (obj2) { | |
d55e5bfc | 7366 | { |
554f62e9 RD |
7367 | arg3 = wxString_in_helper(obj2); |
7368 | if (arg3 == NULL) SWIG_fail; | |
7369 | temp3 = true; | |
d55e5bfc | 7370 | } |
554f62e9 RD |
7371 | } |
7372 | if (obj3) { | |
d55e5bfc | 7373 | { |
554f62e9 RD |
7374 | arg4 = &temp4; |
7375 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7376 | } |
554f62e9 RD |
7377 | } |
7378 | if (obj4) { | |
d55e5bfc | 7379 | { |
554f62e9 RD |
7380 | arg5 = &temp5; |
7381 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7382 | } |
554f62e9 RD |
7383 | } |
7384 | if (obj5) { | |
7385 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7386 | if (!SWIG_IsOK(ecode6)) { | |
7387 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7388 | } | |
7389 | arg6 = static_cast< long >(val6); | |
7390 | } | |
7391 | if (obj6) { | |
093d3ff1 | 7392 | { |
554f62e9 RD |
7393 | arg7 = wxString_in_helper(obj6); |
7394 | if (arg7 == NULL) SWIG_fail; | |
7395 | temp7 = true; | |
d55e5bfc | 7396 | } |
554f62e9 RD |
7397 | } |
7398 | { | |
7399 | if (!wxPyCheckForApp()) SWIG_fail; | |
7400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7401 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7406 | { | |
7407 | if (temp3) | |
7408 | delete arg3; | |
7409 | } | |
7410 | { | |
7411 | if (temp7) | |
7412 | delete arg7; | |
7413 | } | |
7414 | return resultobj; | |
7415 | fail: | |
7416 | { | |
7417 | if (temp3) | |
7418 | delete arg3; | |
7419 | } | |
7420 | { | |
7421 | if (temp7) | |
7422 | delete arg7; | |
7423 | } | |
7424 | return NULL; | |
d55e5bfc RD |
7425 | } |
7426 | ||
7427 | ||
554f62e9 RD |
7428 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7429 | PyObject *resultobj = 0; | |
7430 | wxDialog *result = 0 ; | |
7431 | ||
7432 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7433 | { | |
7434 | if (!wxPyCheckForApp()) SWIG_fail; | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (wxDialog *)new wxDialog(); | |
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7441 | return resultobj; | |
7442 | fail: | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
7447 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7448 | PyObject *resultobj = 0; | |
7449 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7450 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7451 | int arg3 = (int) (int)-1 ; | |
7452 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7453 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7454 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7455 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7456 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7457 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7458 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7459 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7460 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7461 | bool result; | |
7462 | void *argp1 = 0 ; | |
7463 | int res1 = 0 ; | |
7464 | void *argp2 = 0 ; | |
7465 | int res2 = 0 ; | |
7466 | int val3 ; | |
7467 | int ecode3 = 0 ; | |
7468 | bool temp4 = false ; | |
7469 | wxPoint temp5 ; | |
7470 | wxSize temp6 ; | |
7471 | long val7 ; | |
7472 | int ecode7 = 0 ; | |
7473 | bool temp8 = false ; | |
7474 | PyObject * obj0 = 0 ; | |
7475 | PyObject * obj1 = 0 ; | |
7476 | PyObject * obj2 = 0 ; | |
7477 | PyObject * obj3 = 0 ; | |
7478 | PyObject * obj4 = 0 ; | |
7479 | PyObject * obj5 = 0 ; | |
7480 | PyObject * obj6 = 0 ; | |
7481 | PyObject * obj7 = 0 ; | |
7482 | char * kwnames[] = { | |
7483 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7484 | }; | |
7485 | ||
7486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7488 | if (!SWIG_IsOK(res1)) { | |
7489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7490 | } | |
7491 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7492 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7493 | if (!SWIG_IsOK(res2)) { | |
7494 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7495 | } | |
7496 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7497 | if (obj2) { | |
7498 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7499 | if (!SWIG_IsOK(ecode3)) { | |
7500 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7501 | } | |
7502 | arg3 = static_cast< int >(val3); | |
7503 | } | |
7504 | if (obj3) { | |
093d3ff1 | 7505 | { |
554f62e9 RD |
7506 | arg4 = wxString_in_helper(obj3); |
7507 | if (arg4 == NULL) SWIG_fail; | |
7508 | temp4 = true; | |
d55e5bfc | 7509 | } |
554f62e9 RD |
7510 | } |
7511 | if (obj4) { | |
d55e5bfc | 7512 | { |
554f62e9 RD |
7513 | arg5 = &temp5; |
7514 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7515 | } |
554f62e9 RD |
7516 | } |
7517 | if (obj5) { | |
d55e5bfc | 7518 | { |
554f62e9 RD |
7519 | arg6 = &temp6; |
7520 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7521 | } |
554f62e9 RD |
7522 | } |
7523 | if (obj6) { | |
7524 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7525 | if (!SWIG_IsOK(ecode7)) { | |
7526 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7527 | } | |
7528 | arg7 = static_cast< long >(val7); | |
7529 | } | |
7530 | if (obj7) { | |
d55e5bfc | 7531 | { |
554f62e9 RD |
7532 | arg8 = wxString_in_helper(obj7); |
7533 | if (arg8 == NULL) SWIG_fail; | |
7534 | temp8 = true; | |
d55e5bfc | 7535 | } |
554f62e9 RD |
7536 | } |
7537 | { | |
7538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7539 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | { | |
7544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7545 | } | |
7546 | { | |
7547 | if (temp4) | |
7548 | delete arg4; | |
7549 | } | |
7550 | { | |
7551 | if (temp8) | |
7552 | delete arg8; | |
7553 | } | |
7554 | return resultobj; | |
7555 | fail: | |
7556 | { | |
7557 | if (temp4) | |
7558 | delete arg4; | |
7559 | } | |
7560 | { | |
7561 | if (temp8) | |
7562 | delete arg8; | |
7563 | } | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj = 0; | |
7570 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7571 | int arg2 ; | |
7572 | void *argp1 = 0 ; | |
7573 | int res1 = 0 ; | |
7574 | int val2 ; | |
7575 | int ecode2 = 0 ; | |
7576 | PyObject * obj0 = 0 ; | |
7577 | PyObject * obj1 = 0 ; | |
7578 | char * kwnames[] = { | |
7579 | (char *) "self",(char *) "returnCode", NULL | |
7580 | }; | |
7581 | ||
7582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7584 | if (!SWIG_IsOK(res1)) { | |
7585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7586 | } | |
7587 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7588 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7589 | if (!SWIG_IsOK(ecode2)) { | |
7590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7591 | } | |
7592 | arg2 = static_cast< int >(val2); | |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | (arg1)->SetReturnCode(arg2); | |
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | resultobj = SWIG_Py_Void(); | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
d55e5bfc RD |
7603 | } |
7604 | ||
7605 | ||
554f62e9 RD |
7606 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7607 | PyObject *resultobj = 0; | |
7608 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7609 | int result; | |
7610 | void *argp1 = 0 ; | |
7611 | int res1 = 0 ; | |
7612 | PyObject *swig_obj[1] ; | |
7613 | ||
7614 | if (!args) SWIG_fail; | |
7615 | swig_obj[0] = args; | |
7616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7617 | if (!SWIG_IsOK(res1)) { | |
7618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7619 | } | |
7620 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
7627 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7628 | return resultobj; | |
7629 | fail: | |
7630 | return NULL; | |
7631 | } | |
7632 | ||
7633 | ||
7634 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7635 | PyObject *resultobj = 0; | |
7636 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7637 | int arg2 ; | |
7638 | void *argp1 = 0 ; | |
7639 | int res1 = 0 ; | |
7640 | int val2 ; | |
7641 | int ecode2 = 0 ; | |
7642 | PyObject * obj0 = 0 ; | |
7643 | PyObject * obj1 = 0 ; | |
7644 | char * kwnames[] = { | |
7645 | (char *) "self",(char *) "affirmativeId", NULL | |
7646 | }; | |
7647 | ||
7648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7650 | if (!SWIG_IsOK(res1)) { | |
7651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7652 | } | |
7653 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7655 | if (!SWIG_IsOK(ecode2)) { | |
7656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7657 | } | |
7658 | arg2 = static_cast< int >(val2); | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | (arg1)->SetAffirmativeId(arg2); | |
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | resultobj = SWIG_Py_Void(); | |
7666 | return resultobj; | |
7667 | fail: | |
7668 | return NULL; | |
d55e5bfc RD |
7669 | } |
7670 | ||
7671 | ||
554f62e9 RD |
7672 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7673 | PyObject *resultobj = 0; | |
7674 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7675 | int result; | |
7676 | void *argp1 = 0 ; | |
7677 | int res1 = 0 ; | |
7678 | PyObject *swig_obj[1] ; | |
7679 | ||
7680 | if (!args) SWIG_fail; | |
7681 | swig_obj[0] = args; | |
7682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7683 | if (!SWIG_IsOK(res1)) { | |
7684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7685 | } | |
7686 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7687 | { | |
7688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7689 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) SWIG_fail; | |
7692 | } | |
7693 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7694 | return resultobj; | |
7695 | fail: | |
7696 | return NULL; | |
7697 | } | |
7698 | ||
7699 | ||
7700 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj = 0; | |
7702 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7703 | int arg2 ; | |
7704 | void *argp1 = 0 ; | |
7705 | int res1 = 0 ; | |
7706 | int val2 ; | |
7707 | int ecode2 = 0 ; | |
7708 | PyObject * obj0 = 0 ; | |
7709 | PyObject * obj1 = 0 ; | |
7710 | char * kwnames[] = { | |
7711 | (char *) "self",(char *) "escapeId", NULL | |
7712 | }; | |
7713 | ||
7714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7716 | if (!SWIG_IsOK(res1)) { | |
7717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7718 | } | |
7719 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7720 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7721 | if (!SWIG_IsOK(ecode2)) { | |
7722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7723 | } | |
7724 | arg2 = static_cast< int >(val2); | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | (arg1)->SetEscapeId(arg2); | |
7728 | wxPyEndAllowThreads(__tstate); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | resultobj = SWIG_Py_Void(); | |
7732 | return resultobj; | |
7733 | fail: | |
7734 | return NULL; | |
d55e5bfc RD |
7735 | } |
7736 | ||
7737 | ||
554f62e9 RD |
7738 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7739 | PyObject *resultobj = 0; | |
7740 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7741 | int result; | |
7742 | void *argp1 = 0 ; | |
7743 | int res1 = 0 ; | |
7744 | PyObject *swig_obj[1] ; | |
7745 | ||
7746 | if (!args) SWIG_fail; | |
7747 | swig_obj[0] = args; | |
7748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7749 | if (!SWIG_IsOK(res1)) { | |
7750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7751 | } | |
7752 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7753 | { | |
7754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7755 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj = 0; | |
7768 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7769 | wxString *arg2 = 0 ; | |
7770 | wxSizer *result = 0 ; | |
7771 | void *argp1 = 0 ; | |
7772 | int res1 = 0 ; | |
7773 | bool temp2 = false ; | |
7774 | PyObject * obj0 = 0 ; | |
7775 | PyObject * obj1 = 0 ; | |
7776 | char * kwnames[] = { | |
7777 | (char *) "self",(char *) "message", NULL | |
7778 | }; | |
7779 | ||
7780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7782 | if (!SWIG_IsOK(res1)) { | |
7783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7784 | } | |
7785 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7786 | { | |
7787 | arg2 = wxString_in_helper(obj1); | |
7788 | if (arg2 == NULL) SWIG_fail; | |
7789 | temp2 = true; | |
7790 | } | |
7791 | { | |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
7797 | { | |
7798 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7799 | } | |
7800 | { | |
7801 | if (temp2) | |
7802 | delete arg2; | |
7803 | } | |
7804 | return resultobj; | |
7805 | fail: | |
7806 | { | |
7807 | if (temp2) | |
7808 | delete arg2; | |
7809 | } | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | SWIGINTERN PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj = 0; | |
7816 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7817 | long arg2 ; | |
7818 | bool arg3 = (bool) false ; | |
7819 | int arg4 = (int) 0 ; | |
7820 | wxSizer *result = 0 ; | |
7821 | void *argp1 = 0 ; | |
7822 | int res1 = 0 ; | |
7823 | long val2 ; | |
7824 | int ecode2 = 0 ; | |
7825 | bool val3 ; | |
7826 | int ecode3 = 0 ; | |
7827 | int val4 ; | |
7828 | int ecode4 = 0 ; | |
7829 | PyObject * obj0 = 0 ; | |
7830 | PyObject * obj1 = 0 ; | |
7831 | PyObject * obj2 = 0 ; | |
7832 | PyObject * obj3 = 0 ; | |
7833 | char * kwnames[] = { | |
7834 | (char *) "self",(char *) "flags",(char *) "separated",(char *) "distance", NULL | |
7835 | }; | |
7836 | ||
7837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7839 | if (!SWIG_IsOK(res1)) { | |
7840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7841 | } | |
7842 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7843 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7844 | if (!SWIG_IsOK(ecode2)) { | |
7845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7846 | } | |
7847 | arg2 = static_cast< long >(val2); | |
7848 | if (obj2) { | |
7849 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7850 | if (!SWIG_IsOK(ecode3)) { | |
7851 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "3"" of type '" "bool""'"); | |
7852 | } | |
7853 | arg3 = static_cast< bool >(val3); | |
7854 | } | |
7855 | if (obj3) { | |
7856 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7857 | if (!SWIG_IsOK(ecode4)) { | |
7858 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "4"" of type '" "int""'"); | |
7859 | } | |
7860 | arg4 = static_cast< int >(val4); | |
7861 | } | |
7862 | { | |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2,arg3,arg4); | |
7865 | wxPyEndAllowThreads(__tstate); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
7868 | { | |
7869 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7870 | } | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj = 0; | |
7879 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7880 | long arg2 ; | |
7881 | wxStdDialogButtonSizer *result = 0 ; | |
7882 | void *argp1 = 0 ; | |
7883 | int res1 = 0 ; | |
7884 | long val2 ; | |
7885 | int ecode2 = 0 ; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | PyObject * obj1 = 0 ; | |
7888 | char * kwnames[] = { | |
7889 | (char *) "self",(char *) "flags", NULL | |
7890 | }; | |
7891 | ||
7892 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7893 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7894 | if (!SWIG_IsOK(res1)) { | |
7895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7896 | } | |
7897 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7898 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7899 | if (!SWIG_IsOK(ecode2)) { | |
7900 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7901 | } | |
7902 | arg2 = static_cast< long >(val2); | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
7909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7910 | return resultobj; | |
7911 | fail: | |
7912 | return NULL; | |
d55e5bfc RD |
7913 | } |
7914 | ||
7915 | ||
554f62e9 RD |
7916 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7917 | PyObject *resultobj = 0; | |
7918 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7919 | bool result; | |
7920 | void *argp1 = 0 ; | |
7921 | int res1 = 0 ; | |
7922 | PyObject *swig_obj[1] ; | |
7923 | ||
7924 | if (!args) SWIG_fail; | |
7925 | swig_obj[0] = args; | |
7926 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7927 | if (!SWIG_IsOK(res1)) { | |
7928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7929 | } | |
7930 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | } | |
7937 | { | |
7938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7939 | } | |
7940 | return resultobj; | |
7941 | fail: | |
7942 | return NULL; | |
c32bde28 RD |
7943 | } |
7944 | ||
7945 | ||
554f62e9 RD |
7946 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7947 | PyObject *resultobj = 0; | |
7948 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7949 | int result; | |
7950 | void *argp1 = 0 ; | |
7951 | int res1 = 0 ; | |
7952 | PyObject *swig_obj[1] ; | |
7953 | ||
7954 | if (!args) SWIG_fail; | |
7955 | swig_obj[0] = args; | |
7956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7957 | if (!SWIG_IsOK(res1)) { | |
7958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7959 | } | |
7960 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7961 | { | |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | result = (int)(arg1)->ShowModal(); | |
7964 | wxPyEndAllowThreads(__tstate); | |
7965 | if (PyErr_Occurred()) SWIG_fail; | |
7966 | } | |
7967 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7968 | return resultobj; | |
7969 | fail: | |
7970 | return NULL; | |
7971 | } | |
7972 | ||
7973 | ||
7974 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7975 | PyObject *resultobj = 0; | |
7976 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7977 | int arg2 ; | |
7978 | void *argp1 = 0 ; | |
7979 | int res1 = 0 ; | |
7980 | int val2 ; | |
7981 | int ecode2 = 0 ; | |
7982 | PyObject * obj0 = 0 ; | |
7983 | PyObject * obj1 = 0 ; | |
7984 | char * kwnames[] = { | |
7985 | (char *) "self",(char *) "retCode", NULL | |
7986 | }; | |
7987 | ||
7988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7990 | if (!SWIG_IsOK(res1)) { | |
7991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7992 | } | |
7993 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7995 | if (!SWIG_IsOK(ecode2)) { | |
7996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7997 | } | |
7998 | arg2 = static_cast< int >(val2); | |
7999 | { | |
8000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8001 | (arg1)->EndModal(arg2); | |
8002 | wxPyEndAllowThreads(__tstate); | |
8003 | if (PyErr_Occurred()) SWIG_fail; | |
8004 | } | |
8005 | resultobj = SWIG_Py_Void(); | |
8006 | return resultobj; | |
8007 | fail: | |
8008 | return NULL; | |
8009 | } | |
8010 | ||
8011 | ||
8012 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8013 | PyObject *resultobj = 0; | |
8014 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8015 | SwigValueWrapper<wxVisualAttributes > result; | |
8016 | int val1 ; | |
8017 | int ecode1 = 0 ; | |
8018 | PyObject * obj0 = 0 ; | |
8019 | char * kwnames[] = { | |
8020 | (char *) "variant", NULL | |
8021 | }; | |
8022 | ||
8023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
8024 | if (obj0) { | |
8025 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
8026 | if (!SWIG_IsOK(ecode1)) { | |
8027 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
8028 | } | |
8029 | arg1 = static_cast< wxWindowVariant >(val1); | |
8030 | } | |
8031 | { | |
8032 | if (!wxPyCheckForApp()) SWIG_fail; | |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
8035 | wxPyEndAllowThreads(__tstate); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
8039 | return resultobj; | |
8040 | fail: | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8046 | PyObject *obj; | |
8047 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8048 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
8049 | return SWIG_Py_Void(); | |
8050 | } | |
8051 | ||
8052 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8053 | return SWIG_Python_InitShadowInstance(args); | |
8054 | } | |
8055 | ||
8056 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8057 | PyObject *resultobj = 0; | |
8058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8059 | int arg2 = (int) (int)-1 ; | |
8060 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8061 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8062 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8063 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8064 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8065 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8066 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
8067 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
8068 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8069 | wxMiniFrame *result = 0 ; | |
8070 | void *argp1 = 0 ; | |
8071 | int res1 = 0 ; | |
8072 | int val2 ; | |
8073 | int ecode2 = 0 ; | |
8074 | bool temp3 = false ; | |
8075 | wxPoint temp4 ; | |
8076 | wxSize temp5 ; | |
8077 | long val6 ; | |
8078 | int ecode6 = 0 ; | |
8079 | bool temp7 = false ; | |
8080 | PyObject * obj0 = 0 ; | |
8081 | PyObject * obj1 = 0 ; | |
8082 | PyObject * obj2 = 0 ; | |
8083 | PyObject * obj3 = 0 ; | |
8084 | PyObject * obj4 = 0 ; | |
8085 | PyObject * obj5 = 0 ; | |
8086 | PyObject * obj6 = 0 ; | |
8087 | char * kwnames[] = { | |
8088 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8089 | }; | |
8090 | ||
8091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8093 | if (!SWIG_IsOK(res1)) { | |
8094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8095 | } | |
8096 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8097 | if (obj1) { | |
8098 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8099 | if (!SWIG_IsOK(ecode2)) { | |
8100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
8101 | } | |
8102 | arg2 = static_cast< int >(val2); | |
8103 | } | |
8104 | if (obj2) { | |
5e483524 | 8105 | { |
554f62e9 RD |
8106 | arg3 = wxString_in_helper(obj2); |
8107 | if (arg3 == NULL) SWIG_fail; | |
8108 | temp3 = true; | |
5e483524 | 8109 | } |
554f62e9 RD |
8110 | } |
8111 | if (obj3) { | |
093d3ff1 | 8112 | { |
554f62e9 RD |
8113 | arg4 = &temp4; |
8114 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 8115 | } |
554f62e9 RD |
8116 | } |
8117 | if (obj4) { | |
84f85550 | 8118 | { |
554f62e9 RD |
8119 | arg5 = &temp5; |
8120 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
84f85550 | 8121 | } |
554f62e9 RD |
8122 | } |
8123 | if (obj5) { | |
8124 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8125 | if (!SWIG_IsOK(ecode6)) { | |
8126 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
8127 | } | |
8128 | arg6 = static_cast< long >(val6); | |
8129 | } | |
8130 | if (obj6) { | |
84f85550 | 8131 | { |
554f62e9 RD |
8132 | arg7 = wxString_in_helper(obj6); |
8133 | if (arg7 == NULL) SWIG_fail; | |
8134 | temp7 = true; | |
84f85550 | 8135 | } |
554f62e9 RD |
8136 | } |
8137 | { | |
8138 | if (!wxPyCheckForApp()) SWIG_fail; | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8141 | wxPyEndAllowThreads(__tstate); | |
8142 | if (PyErr_Occurred()) SWIG_fail; | |
8143 | } | |
8144 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
8145 | { | |
8146 | if (temp3) | |
8147 | delete arg3; | |
8148 | } | |
8149 | { | |
8150 | if (temp7) | |
8151 | delete arg7; | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | { | |
8156 | if (temp3) | |
8157 | delete arg3; | |
8158 | } | |
8159 | { | |
8160 | if (temp7) | |
8161 | delete arg7; | |
8162 | } | |
8163 | return NULL; | |
84f85550 RD |
8164 | } |
8165 | ||
8166 | ||
554f62e9 RD |
8167 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8168 | PyObject *resultobj = 0; | |
8169 | wxMiniFrame *result = 0 ; | |
8170 | ||
8171 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
8172 | { | |
8173 | if (!wxPyCheckForApp()) SWIG_fail; | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | result = (wxMiniFrame *)new wxMiniFrame(); | |
8176 | wxPyEndAllowThreads(__tstate); | |
8177 | if (PyErr_Occurred()) SWIG_fail; | |
8178 | } | |
8179 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
8180 | return resultobj; | |
8181 | fail: | |
8182 | return NULL; | |
8183 | } | |
8184 | ||
8185 | ||
8186 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj = 0; | |
8188 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
8189 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8190 | int arg3 = (int) (int)-1 ; | |
8191 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8192 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8193 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8194 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8195 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8196 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8197 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
8198 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
8199 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8200 | bool result; | |
8201 | void *argp1 = 0 ; | |
8202 | int res1 = 0 ; | |
8203 | void *argp2 = 0 ; | |
8204 | int res2 = 0 ; | |
8205 | int val3 ; | |
8206 | int ecode3 = 0 ; | |
8207 | bool temp4 = false ; | |
8208 | wxPoint temp5 ; | |
8209 | wxSize temp6 ; | |
8210 | long val7 ; | |
8211 | int ecode7 = 0 ; | |
8212 | bool temp8 = false ; | |
8213 | PyObject * obj0 = 0 ; | |
8214 | PyObject * obj1 = 0 ; | |
8215 | PyObject * obj2 = 0 ; | |
8216 | PyObject * obj3 = 0 ; | |
8217 | PyObject * obj4 = 0 ; | |
8218 | PyObject * obj5 = 0 ; | |
8219 | PyObject * obj6 = 0 ; | |
8220 | PyObject * obj7 = 0 ; | |
8221 | char * kwnames[] = { | |
8222 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8223 | }; | |
8224 | ||
8225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
8227 | if (!SWIG_IsOK(res1)) { | |
8228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
8229 | } | |
8230 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
8231 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8232 | if (!SWIG_IsOK(res2)) { | |
8233 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8234 | } | |
8235 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8236 | if (obj2) { | |
8237 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8238 | if (!SWIG_IsOK(ecode3)) { | |
8239 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8240 | } | |
8241 | arg3 = static_cast< int >(val3); | |
8242 | } | |
8243 | if (obj3) { | |
b1fcee84 | 8244 | { |
554f62e9 RD |
8245 | arg4 = wxString_in_helper(obj3); |
8246 | if (arg4 == NULL) SWIG_fail; | |
8247 | temp4 = true; | |
d55e5bfc | 8248 | } |
554f62e9 RD |
8249 | } |
8250 | if (obj4) { | |
d55e5bfc | 8251 | { |
554f62e9 RD |
8252 | arg5 = &temp5; |
8253 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8254 | } |
554f62e9 RD |
8255 | } |
8256 | if (obj5) { | |
d55e5bfc | 8257 | { |
554f62e9 RD |
8258 | arg6 = &temp6; |
8259 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8260 | } |
554f62e9 RD |
8261 | } |
8262 | if (obj6) { | |
8263 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8264 | if (!SWIG_IsOK(ecode7)) { | |
8265 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8266 | } | |
8267 | arg7 = static_cast< long >(val7); | |
8268 | } | |
8269 | if (obj7) { | |
d55e5bfc | 8270 | { |
554f62e9 RD |
8271 | arg8 = wxString_in_helper(obj7); |
8272 | if (arg8 == NULL) SWIG_fail; | |
8273 | temp8 = true; | |
d55e5bfc | 8274 | } |
554f62e9 RD |
8275 | } |
8276 | { | |
8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8278 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8279 | wxPyEndAllowThreads(__tstate); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | } | |
8282 | { | |
8283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8284 | } | |
8285 | { | |
8286 | if (temp4) | |
8287 | delete arg4; | |
8288 | } | |
8289 | { | |
8290 | if (temp8) | |
8291 | delete arg8; | |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | { | |
8296 | if (temp4) | |
8297 | delete arg4; | |
8298 | } | |
8299 | { | |
8300 | if (temp8) | |
8301 | delete arg8; | |
8302 | } | |
8303 | return NULL; | |
8304 | } | |
8305 | ||
8306 | ||
8307 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8308 | PyObject *obj; | |
8309 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8310 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8311 | return SWIG_Py_Void(); | |
8312 | } | |
8313 | ||
8314 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8315 | return SWIG_Python_InitShadowInstance(args); | |
8316 | } | |
8317 | ||
8318 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8319 | PyObject *resultobj = 0; | |
8320 | wxBitmap *arg1 = 0 ; | |
8321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8322 | int arg3 ; | |
8323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8327 | long arg6 = (long) wxNO_BORDER ; | |
8328 | wxSplashScreenWindow *result = 0 ; | |
8329 | void *argp1 = 0 ; | |
8330 | int res1 = 0 ; | |
8331 | void *argp2 = 0 ; | |
8332 | int res2 = 0 ; | |
8333 | int val3 ; | |
8334 | int ecode3 = 0 ; | |
8335 | wxPoint temp4 ; | |
8336 | wxSize temp5 ; | |
8337 | long val6 ; | |
8338 | int ecode6 = 0 ; | |
8339 | PyObject * obj0 = 0 ; | |
8340 | PyObject * obj1 = 0 ; | |
8341 | PyObject * obj2 = 0 ; | |
8342 | PyObject * obj3 = 0 ; | |
8343 | PyObject * obj4 = 0 ; | |
8344 | PyObject * obj5 = 0 ; | |
8345 | char * kwnames[] = { | |
8346 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8347 | }; | |
8348 | ||
8349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8350 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8351 | if (!SWIG_IsOK(res1)) { | |
8352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8353 | } | |
8354 | if (!argp1) { | |
8355 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8356 | } | |
8357 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8358 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8359 | if (!SWIG_IsOK(res2)) { | |
8360 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8361 | } | |
8362 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8363 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8364 | if (!SWIG_IsOK(ecode3)) { | |
8365 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8366 | } | |
8367 | arg3 = static_cast< int >(val3); | |
8368 | if (obj3) { | |
d55e5bfc | 8369 | { |
554f62e9 RD |
8370 | arg4 = &temp4; |
8371 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8372 | } |
554f62e9 RD |
8373 | } |
8374 | if (obj4) { | |
d55e5bfc | 8375 | { |
554f62e9 RD |
8376 | arg5 = &temp5; |
8377 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8378 | } | |
8379 | } | |
8380 | if (obj5) { | |
8381 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8382 | if (!SWIG_IsOK(ecode6)) { | |
8383 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8384 | } | |
8385 | arg6 = static_cast< long >(val6); | |
8386 | } | |
8387 | { | |
8388 | if (!wxPyCheckForApp()) SWIG_fail; | |
8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8390 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8391 | wxPyEndAllowThreads(__tstate); | |
8392 | if (PyErr_Occurred()) SWIG_fail; | |
8393 | } | |
8394 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8395 | return resultobj; | |
8396 | fail: | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
8401 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8402 | PyObject *resultobj = 0; | |
8403 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8404 | wxBitmap *arg2 = 0 ; | |
8405 | void *argp1 = 0 ; | |
8406 | int res1 = 0 ; | |
8407 | void *argp2 = 0 ; | |
8408 | int res2 = 0 ; | |
8409 | PyObject * obj0 = 0 ; | |
8410 | PyObject * obj1 = 0 ; | |
8411 | char * kwnames[] = { | |
8412 | (char *) "self",(char *) "bitmap", NULL | |
8413 | }; | |
8414 | ||
8415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8417 | if (!SWIG_IsOK(res1)) { | |
8418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8419 | } | |
8420 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8421 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8422 | if (!SWIG_IsOK(res2)) { | |
8423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8424 | } | |
8425 | if (!argp2) { | |
8426 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8427 | } | |
8428 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8429 | { | |
8430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8431 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | resultobj = SWIG_Py_Void(); | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | return NULL; | |
d55e5bfc RD |
8439 | } |
8440 | ||
8441 | ||
554f62e9 RD |
8442 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8443 | PyObject *resultobj = 0; | |
8444 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8445 | wxBitmap *result = 0 ; | |
8446 | void *argp1 = 0 ; | |
8447 | int res1 = 0 ; | |
8448 | PyObject *swig_obj[1] ; | |
8449 | ||
8450 | if (!args) SWIG_fail; | |
8451 | swig_obj[0] = args; | |
8452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8453 | if (!SWIG_IsOK(res1)) { | |
8454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8455 | } | |
8456 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8457 | { | |
8458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 8459 | { |
554f62e9 RD |
8460 | wxBitmap &_result_ref = (arg1)->GetBitmap(); |
8461 | result = (wxBitmap *) &_result_ref; | |
d55e5bfc | 8462 | } |
554f62e9 RD |
8463 | wxPyEndAllowThreads(__tstate); |
8464 | if (PyErr_Occurred()) SWIG_fail; | |
8465 | } | |
8466 | { | |
8467 | wxBitmap* resultptr = new wxBitmap(*result); | |
8468 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8469 | } | |
8470 | return resultobj; | |
8471 | fail: | |
8472 | return NULL; | |
8473 | } | |
8474 | ||
8475 | ||
8476 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8477 | PyObject *obj; | |
8478 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8479 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8480 | return SWIG_Py_Void(); | |
8481 | } | |
8482 | ||
8483 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8484 | return SWIG_Python_InitShadowInstance(args); | |
8485 | } | |
8486 | ||
8487 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8488 | PyObject *resultobj = 0; | |
8489 | wxBitmap *arg1 = 0 ; | |
8490 | long arg2 ; | |
8491 | int arg3 ; | |
8492 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8493 | int arg5 = (int) -1 ; | |
8494 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8495 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8496 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8497 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8498 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8499 | wxSplashScreen *result = 0 ; | |
8500 | void *argp1 = 0 ; | |
8501 | int res1 = 0 ; | |
8502 | long val2 ; | |
8503 | int ecode2 = 0 ; | |
8504 | int val3 ; | |
8505 | int ecode3 = 0 ; | |
8506 | void *argp4 = 0 ; | |
8507 | int res4 = 0 ; | |
8508 | int val5 ; | |
8509 | int ecode5 = 0 ; | |
8510 | wxPoint temp6 ; | |
8511 | wxSize temp7 ; | |
8512 | long val8 ; | |
8513 | int ecode8 = 0 ; | |
8514 | PyObject * obj0 = 0 ; | |
8515 | PyObject * obj1 = 0 ; | |
8516 | PyObject * obj2 = 0 ; | |
8517 | PyObject * obj3 = 0 ; | |
8518 | PyObject * obj4 = 0 ; | |
8519 | PyObject * obj5 = 0 ; | |
8520 | PyObject * obj6 = 0 ; | |
8521 | PyObject * obj7 = 0 ; | |
8522 | char * kwnames[] = { | |
8523 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8524 | }; | |
8525 | ||
8526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8527 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8528 | if (!SWIG_IsOK(res1)) { | |
8529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8530 | } | |
8531 | if (!argp1) { | |
8532 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8533 | } | |
8534 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8535 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8536 | if (!SWIG_IsOK(ecode2)) { | |
8537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8538 | } | |
8539 | arg2 = static_cast< long >(val2); | |
8540 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8541 | if (!SWIG_IsOK(ecode3)) { | |
8542 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8543 | } | |
8544 | arg3 = static_cast< int >(val3); | |
8545 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8546 | if (!SWIG_IsOK(res4)) { | |
8547 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8548 | } | |
8549 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8550 | if (obj4) { | |
8551 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8552 | if (!SWIG_IsOK(ecode5)) { | |
8553 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8554 | } | |
8555 | arg5 = static_cast< int >(val5); | |
8556 | } | |
8557 | if (obj5) { | |
d55e5bfc | 8558 | { |
554f62e9 RD |
8559 | arg6 = &temp6; |
8560 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8561 | } |
554f62e9 RD |
8562 | } |
8563 | if (obj6) { | |
d55e5bfc | 8564 | { |
554f62e9 RD |
8565 | arg7 = &temp7; |
8566 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 8567 | } |
554f62e9 RD |
8568 | } |
8569 | if (obj7) { | |
8570 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8571 | if (!SWIG_IsOK(ecode8)) { | |
8572 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8573 | } | |
8574 | arg8 = static_cast< long >(val8); | |
8575 | } | |
8576 | { | |
8577 | if (!wxPyCheckForApp()) SWIG_fail; | |
8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8579 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8580 | wxPyEndAllowThreads(__tstate); | |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8582 | } | |
8583 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8584 | return resultobj; | |
8585 | fail: | |
8586 | return NULL; | |
d55e5bfc RD |
8587 | } |
8588 | ||
8589 | ||
554f62e9 RD |
8590 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8591 | PyObject *resultobj = 0; | |
8592 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8593 | long result; | |
8594 | void *argp1 = 0 ; | |
8595 | int res1 = 0 ; | |
8596 | PyObject *swig_obj[1] ; | |
8597 | ||
8598 | if (!args) SWIG_fail; | |
8599 | swig_obj[0] = args; | |
8600 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8601 | if (!SWIG_IsOK(res1)) { | |
8602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8603 | } | |
8604 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8608 | wxPyEndAllowThreads(__tstate); | |
8609 | if (PyErr_Occurred()) SWIG_fail; | |
8610 | } | |
8611 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8612 | return resultobj; | |
8613 | fail: | |
8614 | return NULL; | |
d55e5bfc RD |
8615 | } |
8616 | ||
8617 | ||
554f62e9 RD |
8618 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8619 | PyObject *resultobj = 0; | |
8620 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8621 | wxSplashScreenWindow *result = 0 ; | |
8622 | void *argp1 = 0 ; | |
8623 | int res1 = 0 ; | |
8624 | PyObject *swig_obj[1] ; | |
8625 | ||
8626 | if (!args) SWIG_fail; | |
8627 | swig_obj[0] = args; | |
8628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8629 | if (!SWIG_IsOK(res1)) { | |
8630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8631 | } | |
8632 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8636 | wxPyEndAllowThreads(__tstate); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
8639 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8640 | return resultobj; | |
8641 | fail: | |
8642 | return NULL; | |
d55e5bfc RD |
8643 | } |
8644 | ||
8645 | ||
554f62e9 RD |
8646 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8647 | PyObject *resultobj = 0; | |
8648 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8649 | int result; | |
8650 | void *argp1 = 0 ; | |
8651 | int res1 = 0 ; | |
8652 | PyObject *swig_obj[1] ; | |
8653 | ||
8654 | if (!args) SWIG_fail; | |
8655 | swig_obj[0] = args; | |
8656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8657 | if (!SWIG_IsOK(res1)) { | |
8658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8659 | } | |
8660 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8664 | wxPyEndAllowThreads(__tstate); | |
8665 | if (PyErr_Occurred()) SWIG_fail; | |
8666 | } | |
8667 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8668 | return resultobj; | |
8669 | fail: | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8675 | PyObject *obj; | |
8676 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8677 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8678 | return SWIG_Py_Void(); | |
8679 | } | |
8680 | ||
8681 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8682 | return SWIG_Python_InitShadowInstance(args); | |
8683 | } | |
8684 | ||
8685 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8686 | PyObject *resultobj = 0; | |
8687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8688 | int arg2 = (int) -1 ; | |
8689 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8690 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8691 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8692 | wxStatusBar *result = 0 ; | |
8693 | void *argp1 = 0 ; | |
8694 | int res1 = 0 ; | |
8695 | int val2 ; | |
8696 | int ecode2 = 0 ; | |
8697 | long val3 ; | |
8698 | int ecode3 = 0 ; | |
8699 | bool temp4 = false ; | |
8700 | PyObject * obj0 = 0 ; | |
8701 | PyObject * obj1 = 0 ; | |
8702 | PyObject * obj2 = 0 ; | |
8703 | PyObject * obj3 = 0 ; | |
8704 | char * kwnames[] = { | |
8705 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8706 | }; | |
8707 | ||
8708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8710 | if (!SWIG_IsOK(res1)) { | |
8711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8712 | } | |
8713 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8714 | if (obj1) { | |
8715 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8716 | if (!SWIG_IsOK(ecode2)) { | |
8717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8718 | } | |
8719 | arg2 = static_cast< int >(val2); | |
8720 | } | |
8721 | if (obj2) { | |
8722 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8723 | if (!SWIG_IsOK(ecode3)) { | |
8724 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8725 | } | |
8726 | arg3 = static_cast< long >(val3); | |
8727 | } | |
8728 | if (obj3) { | |
d55e5bfc | 8729 | { |
554f62e9 RD |
8730 | arg4 = wxString_in_helper(obj3); |
8731 | if (arg4 == NULL) SWIG_fail; | |
8732 | temp4 = true; | |
d55e5bfc | 8733 | } |
554f62e9 RD |
8734 | } |
8735 | { | |
8736 | if (!wxPyCheckForApp()) SWIG_fail; | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8739 | wxPyEndAllowThreads(__tstate); | |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
8741 | } | |
8742 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8743 | { | |
8744 | if (temp4) | |
8745 | delete arg4; | |
8746 | } | |
8747 | return resultobj; | |
8748 | fail: | |
8749 | { | |
8750 | if (temp4) | |
8751 | delete arg4; | |
8752 | } | |
8753 | return NULL; | |
d55e5bfc RD |
8754 | } |
8755 | ||
8756 | ||
554f62e9 RD |
8757 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8758 | PyObject *resultobj = 0; | |
8759 | wxStatusBar *result = 0 ; | |
8760 | ||
8761 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8762 | { | |
8763 | if (!wxPyCheckForApp()) SWIG_fail; | |
8764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8765 | result = (wxStatusBar *)new wxStatusBar(); | |
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8770 | return resultobj; | |
8771 | fail: | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
8776 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8777 | PyObject *resultobj = 0; | |
8778 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8779 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8780 | int arg3 = (int) -1 ; | |
8781 | long arg4 = (long) wxST_SIZEGRIP ; | |
8782 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8783 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8784 | bool result; | |
8785 | void *argp1 = 0 ; | |
8786 | int res1 = 0 ; | |
8787 | void *argp2 = 0 ; | |
8788 | int res2 = 0 ; | |
8789 | int val3 ; | |
8790 | int ecode3 = 0 ; | |
8791 | long val4 ; | |
8792 | int ecode4 = 0 ; | |
8793 | bool temp5 = false ; | |
8794 | PyObject * obj0 = 0 ; | |
8795 | PyObject * obj1 = 0 ; | |
8796 | PyObject * obj2 = 0 ; | |
8797 | PyObject * obj3 = 0 ; | |
8798 | PyObject * obj4 = 0 ; | |
8799 | char * kwnames[] = { | |
8800 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8801 | }; | |
8802 | ||
8803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8805 | if (!SWIG_IsOK(res1)) { | |
8806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8807 | } | |
8808 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8809 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8810 | if (!SWIG_IsOK(res2)) { | |
8811 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8812 | } | |
8813 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8814 | if (obj2) { | |
8815 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8816 | if (!SWIG_IsOK(ecode3)) { | |
8817 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8818 | } | |
8819 | arg3 = static_cast< int >(val3); | |
8820 | } | |
8821 | if (obj3) { | |
8822 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8823 | if (!SWIG_IsOK(ecode4)) { | |
8824 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8825 | } | |
8826 | arg4 = static_cast< long >(val4); | |
8827 | } | |
8828 | if (obj4) { | |
d55e5bfc | 8829 | { |
554f62e9 RD |
8830 | arg5 = wxString_in_helper(obj4); |
8831 | if (arg5 == NULL) SWIG_fail; | |
8832 | temp5 = true; | |
d55e5bfc | 8833 | } |
554f62e9 RD |
8834 | } |
8835 | { | |
8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8837 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8838 | wxPyEndAllowThreads(__tstate); | |
8839 | if (PyErr_Occurred()) SWIG_fail; | |
8840 | } | |
8841 | { | |
8842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8843 | } | |
8844 | { | |
8845 | if (temp5) | |
8846 | delete arg5; | |
8847 | } | |
8848 | return resultobj; | |
8849 | fail: | |
8850 | { | |
8851 | if (temp5) | |
8852 | delete arg5; | |
8853 | } | |
8854 | return NULL; | |
8855 | } | |
8856 | ||
8857 | ||
8858 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8859 | PyObject *resultobj = 0; | |
8860 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8861 | int arg2 = (int) 1 ; | |
8862 | void *argp1 = 0 ; | |
8863 | int res1 = 0 ; | |
8864 | int val2 ; | |
8865 | int ecode2 = 0 ; | |
8866 | PyObject * obj0 = 0 ; | |
8867 | PyObject * obj1 = 0 ; | |
8868 | char * kwnames[] = { | |
8869 | (char *) "self",(char *) "number", NULL | |
8870 | }; | |
8871 | ||
8872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8874 | if (!SWIG_IsOK(res1)) { | |
8875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8876 | } | |
8877 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8878 | if (obj1) { | |
8879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8880 | if (!SWIG_IsOK(ecode2)) { | |
8881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8882 | } | |
8883 | arg2 = static_cast< int >(val2); | |
8884 | } | |
8885 | { | |
8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8887 | (arg1)->SetFieldsCount(arg2); | |
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
8891 | resultobj = SWIG_Py_Void(); | |
8892 | return resultobj; | |
8893 | fail: | |
8894 | return NULL; | |
d55e5bfc RD |
8895 | } |
8896 | ||
8897 | ||
554f62e9 RD |
8898 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8899 | PyObject *resultobj = 0; | |
8900 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8901 | int result; | |
8902 | void *argp1 = 0 ; | |
8903 | int res1 = 0 ; | |
8904 | PyObject *swig_obj[1] ; | |
8905 | ||
8906 | if (!args) SWIG_fail; | |
8907 | swig_obj[0] = args; | |
8908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8909 | if (!SWIG_IsOK(res1)) { | |
8910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8911 | } | |
8912 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8913 | { | |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8916 | wxPyEndAllowThreads(__tstate); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
8918 | } | |
8919 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8920 | return resultobj; | |
8921 | fail: | |
8922 | return NULL; | |
8923 | } | |
8924 | ||
8925 | ||
8926 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8927 | PyObject *resultobj = 0; | |
8928 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8929 | wxString *arg2 = 0 ; | |
8930 | int arg3 = (int) 0 ; | |
8931 | void *argp1 = 0 ; | |
8932 | int res1 = 0 ; | |
8933 | bool temp2 = false ; | |
8934 | int val3 ; | |
8935 | int ecode3 = 0 ; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | PyObject * obj1 = 0 ; | |
8938 | PyObject * obj2 = 0 ; | |
8939 | char * kwnames[] = { | |
8940 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8941 | }; | |
8942 | ||
8943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8945 | if (!SWIG_IsOK(res1)) { | |
8946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8947 | } | |
8948 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8949 | { | |
8950 | arg2 = wxString_in_helper(obj1); | |
8951 | if (arg2 == NULL) SWIG_fail; | |
8952 | temp2 = true; | |
8953 | } | |
8954 | if (obj2) { | |
8955 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8956 | if (!SWIG_IsOK(ecode3)) { | |
8957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8958 | } | |
8959 | arg3 = static_cast< int >(val3); | |
8960 | } | |
8961 | { | |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8964 | wxPyEndAllowThreads(__tstate); | |
8965 | if (PyErr_Occurred()) SWIG_fail; | |
8966 | } | |
8967 | resultobj = SWIG_Py_Void(); | |
8968 | { | |
8969 | if (temp2) | |
8970 | delete arg2; | |
8971 | } | |
8972 | return resultobj; | |
8973 | fail: | |
8974 | { | |
8975 | if (temp2) | |
8976 | delete arg2; | |
8977 | } | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj = 0; | |
8984 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8985 | int arg2 = (int) 0 ; | |
8986 | wxString result; | |
8987 | void *argp1 = 0 ; | |
8988 | int res1 = 0 ; | |
8989 | int val2 ; | |
8990 | int ecode2 = 0 ; | |
8991 | PyObject * obj0 = 0 ; | |
8992 | PyObject * obj1 = 0 ; | |
8993 | char * kwnames[] = { | |
8994 | (char *) "self",(char *) "number", NULL | |
8995 | }; | |
8996 | ||
8997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8999 | if (!SWIG_IsOK(res1)) { | |
9000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9001 | } | |
9002 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9003 | if (obj1) { | |
9004 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9005 | if (!SWIG_IsOK(ecode2)) { | |
9006 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9007 | } | |
9008 | arg2 = static_cast< int >(val2); | |
9009 | } | |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
9013 | wxPyEndAllowThreads(__tstate); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | } | |
9016 | { | |
9017 | #if wxUSE_UNICODE | |
9018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9019 | #else | |
9020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9021 | #endif | |
9022 | } | |
9023 | return resultobj; | |
9024 | fail: | |
9025 | return NULL; | |
9026 | } | |
9027 | ||
9028 | ||
9029 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9030 | PyObject *resultobj = 0; | |
9031 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9032 | wxString *arg2 = 0 ; | |
9033 | int arg3 = (int) 0 ; | |
9034 | void *argp1 = 0 ; | |
9035 | int res1 = 0 ; | |
9036 | bool temp2 = false ; | |
9037 | int val3 ; | |
9038 | int ecode3 = 0 ; | |
9039 | PyObject * obj0 = 0 ; | |
9040 | PyObject * obj1 = 0 ; | |
9041 | PyObject * obj2 = 0 ; | |
9042 | char * kwnames[] = { | |
9043 | (char *) "self",(char *) "text",(char *) "number", NULL | |
9044 | }; | |
9045 | ||
9046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9048 | if (!SWIG_IsOK(res1)) { | |
9049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9050 | } | |
9051 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9052 | { | |
9053 | arg2 = wxString_in_helper(obj1); | |
9054 | if (arg2 == NULL) SWIG_fail; | |
9055 | temp2 = true; | |
9056 | } | |
9057 | if (obj2) { | |
9058 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9059 | if (!SWIG_IsOK(ecode3)) { | |
9060 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
9061 | } | |
9062 | arg3 = static_cast< int >(val3); | |
9063 | } | |
9064 | { | |
9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9066 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
9070 | resultobj = SWIG_Py_Void(); | |
9071 | { | |
9072 | if (temp2) | |
9073 | delete arg2; | |
9074 | } | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | { | |
9078 | if (temp2) | |
9079 | delete arg2; | |
9080 | } | |
9081 | return NULL; | |
9082 | } | |
9083 | ||
9084 | ||
9085 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9086 | PyObject *resultobj = 0; | |
9087 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9088 | int arg2 = (int) 0 ; | |
9089 | void *argp1 = 0 ; | |
9090 | int res1 = 0 ; | |
9091 | int val2 ; | |
9092 | int ecode2 = 0 ; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | PyObject * obj1 = 0 ; | |
9095 | char * kwnames[] = { | |
9096 | (char *) "self",(char *) "number", NULL | |
9097 | }; | |
9098 | ||
9099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",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_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9103 | } | |
9104 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9105 | if (obj1) { | |
9106 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9107 | if (!SWIG_IsOK(ecode2)) { | |
9108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9109 | } | |
9110 | arg2 = static_cast< int >(val2); | |
9111 | } | |
9112 | { | |
9113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9114 | (arg1)->PopStatusText(arg2); | |
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | resultobj = SWIG_Py_Void(); | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj = 0; | |
9127 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9128 | int arg2 ; | |
9129 | int *arg3 = (int *) 0 ; | |
9130 | void *argp1 = 0 ; | |
9131 | int res1 = 0 ; | |
9132 | PyObject * obj0 = 0 ; | |
9133 | PyObject * obj1 = 0 ; | |
9134 | char * kwnames[] = { | |
9135 | (char *) "self",(char *) "widths", NULL | |
9136 | }; | |
9137 | ||
9138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
9139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9140 | if (!SWIG_IsOK(res1)) { | |
9141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9142 | } | |
9143 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9144 | { | |
9145 | arg2 = PyList_Size(obj1); | |
9146 | arg3 = int_LIST_helper(obj1); | |
9147 | if (arg3 == NULL) SWIG_fail; | |
9148 | } | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
9155 | resultobj = SWIG_Py_Void(); | |
9156 | { | |
9157 | if (arg3) delete [] arg3; | |
9158 | } | |
9159 | return resultobj; | |
9160 | fail: | |
9161 | { | |
9162 | if (arg3) delete [] arg3; | |
9163 | } | |
9164 | return NULL; | |
d55e5bfc RD |
9165 | } |
9166 | ||
9167 | ||
554f62e9 RD |
9168 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9169 | PyObject *resultobj = 0; | |
9170 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9171 | int arg2 ; | |
9172 | int *arg3 = (int *) 0 ; | |
9173 | void *argp1 = 0 ; | |
9174 | int res1 = 0 ; | |
9175 | PyObject * obj0 = 0 ; | |
9176 | PyObject * obj1 = 0 ; | |
9177 | char * kwnames[] = { | |
9178 | (char *) "self",(char *) "styles", NULL | |
9179 | }; | |
9180 | ||
9181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
9182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9183 | if (!SWIG_IsOK(res1)) { | |
9184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9185 | } | |
9186 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9187 | { | |
9188 | arg2 = PyList_Size(obj1); | |
9189 | arg3 = int_LIST_helper(obj1); | |
9190 | if (arg3 == NULL) SWIG_fail; | |
9191 | } | |
9192 | { | |
9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9194 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
9195 | wxPyEndAllowThreads(__tstate); | |
9196 | if (PyErr_Occurred()) SWIG_fail; | |
9197 | } | |
9198 | resultobj = SWIG_Py_Void(); | |
9199 | { | |
9200 | if (arg3) delete [] arg3; | |
9201 | } | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | { | |
9205 | if (arg3) delete [] arg3; | |
9206 | } | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj = 0; | |
9213 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9214 | int arg2 ; | |
9215 | wxRect result; | |
9216 | void *argp1 = 0 ; | |
9217 | int res1 = 0 ; | |
9218 | int val2 ; | |
9219 | int ecode2 = 0 ; | |
9220 | PyObject * obj0 = 0 ; | |
9221 | PyObject * obj1 = 0 ; | |
9222 | char * kwnames[] = { | |
9223 | (char *) "self",(char *) "i", NULL | |
9224 | }; | |
9225 | ||
9226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9228 | if (!SWIG_IsOK(res1)) { | |
9229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9230 | } | |
9231 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9232 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9233 | if (!SWIG_IsOK(ecode2)) { | |
9234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
9235 | } | |
9236 | arg2 = static_cast< int >(val2); | |
9237 | { | |
9238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9239 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
9243 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9244 | return resultobj; | |
9245 | fail: | |
9246 | return NULL; | |
9247 | } | |
9248 | ||
9249 | ||
9250 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9251 | PyObject *resultobj = 0; | |
9252 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9253 | int arg2 ; | |
9254 | void *argp1 = 0 ; | |
9255 | int res1 = 0 ; | |
9256 | int val2 ; | |
9257 | int ecode2 = 0 ; | |
9258 | PyObject * obj0 = 0 ; | |
9259 | PyObject * obj1 = 0 ; | |
9260 | char * kwnames[] = { | |
9261 | (char *) "self",(char *) "height", NULL | |
9262 | }; | |
9263 | ||
9264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9266 | if (!SWIG_IsOK(res1)) { | |
9267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9268 | } | |
9269 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9270 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9271 | if (!SWIG_IsOK(ecode2)) { | |
9272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9273 | } | |
9274 | arg2 = static_cast< int >(val2); | |
9275 | { | |
9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9277 | (arg1)->SetMinHeight(arg2); | |
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | resultobj = SWIG_Py_Void(); | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
d55e5bfc RD |
9285 | } |
9286 | ||
9287 | ||
554f62e9 RD |
9288 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9289 | PyObject *resultobj = 0; | |
9290 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9291 | int result; | |
9292 | void *argp1 = 0 ; | |
9293 | int res1 = 0 ; | |
9294 | PyObject *swig_obj[1] ; | |
9295 | ||
9296 | if (!args) SWIG_fail; | |
9297 | swig_obj[0] = args; | |
9298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9299 | if (!SWIG_IsOK(res1)) { | |
9300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9301 | } | |
9302 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9303 | { | |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9306 | wxPyEndAllowThreads(__tstate); | |
9307 | if (PyErr_Occurred()) SWIG_fail; | |
9308 | } | |
9309 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9310 | return resultobj; | |
9311 | fail: | |
9312 | return NULL; | |
d55e5bfc RD |
9313 | } |
9314 | ||
9315 | ||
554f62e9 RD |
9316 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9317 | PyObject *resultobj = 0; | |
9318 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9319 | int result; | |
9320 | void *argp1 = 0 ; | |
9321 | int res1 = 0 ; | |
9322 | PyObject *swig_obj[1] ; | |
9323 | ||
9324 | if (!args) SWIG_fail; | |
9325 | swig_obj[0] = args; | |
9326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9327 | if (!SWIG_IsOK(res1)) { | |
9328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9329 | } | |
9330 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9334 | wxPyEndAllowThreads(__tstate); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | } | |
9337 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9338 | return resultobj; | |
9339 | fail: | |
9340 | return NULL; | |
9341 | } | |
9342 | ||
9343 | ||
9344 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9345 | PyObject *resultobj = 0; | |
9346 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9347 | SwigValueWrapper<wxVisualAttributes > result; | |
9348 | int val1 ; | |
9349 | int ecode1 = 0 ; | |
9350 | PyObject * obj0 = 0 ; | |
9351 | char * kwnames[] = { | |
9352 | (char *) "variant", NULL | |
9353 | }; | |
9354 | ||
9355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9356 | if (obj0) { | |
9357 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9358 | if (!SWIG_IsOK(ecode1)) { | |
9359 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9360 | } | |
9361 | arg1 = static_cast< wxWindowVariant >(val1); | |
9362 | } | |
9363 | { | |
9364 | if (!wxPyCheckForApp()) SWIG_fail; | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9366 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
9370 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9371 | return resultobj; | |
9372 | fail: | |
9373 | return NULL; | |
d55e5bfc RD |
9374 | } |
9375 | ||
9376 | ||
554f62e9 RD |
9377 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9378 | PyObject *obj; | |
9379 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9380 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9381 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9382 | } |
9383 | ||
554f62e9 RD |
9384 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9385 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9386 | } |
9387 | ||
554f62e9 RD |
9388 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9389 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9390 | return 1; | |
d55e5bfc RD |
9391 | } |
9392 | ||
9393 | ||
554f62e9 RD |
9394 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9395 | PyObject *pyobj = 0; | |
9396 | ||
9397 | { | |
9398 | #if wxUSE_UNICODE | |
9399 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9400 | #else | |
9401 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9402 | #endif | |
9403 | } | |
9404 | return pyobj; | |
9405 | } | |
9406 | ||
9407 | ||
9408 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9409 | PyObject *resultobj = 0; | |
9410 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9411 | int arg2 = (int) -1 ; | |
9412 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9413 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9414 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9415 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9416 | long arg5 = (long) wxSP_3D ; | |
9417 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9418 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9419 | wxSplitterWindow *result = 0 ; | |
9420 | void *argp1 = 0 ; | |
9421 | int res1 = 0 ; | |
9422 | int val2 ; | |
9423 | int ecode2 = 0 ; | |
9424 | wxPoint temp3 ; | |
9425 | wxSize temp4 ; | |
9426 | long val5 ; | |
9427 | int ecode5 = 0 ; | |
9428 | bool temp6 = false ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
9431 | PyObject * obj2 = 0 ; | |
9432 | PyObject * obj3 = 0 ; | |
9433 | PyObject * obj4 = 0 ; | |
9434 | PyObject * obj5 = 0 ; | |
9435 | char * kwnames[] = { | |
9436 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9437 | }; | |
9438 | ||
9439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9441 | if (!SWIG_IsOK(res1)) { | |
9442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9443 | } | |
9444 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9445 | if (obj1) { | |
9446 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9447 | if (!SWIG_IsOK(ecode2)) { | |
9448 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9449 | } | |
9450 | arg2 = static_cast< int >(val2); | |
9451 | } | |
9452 | if (obj2) { | |
093d3ff1 | 9453 | { |
554f62e9 RD |
9454 | arg3 = &temp3; |
9455 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 9456 | } |
554f62e9 RD |
9457 | } |
9458 | if (obj3) { | |
d55e5bfc | 9459 | { |
554f62e9 RD |
9460 | arg4 = &temp4; |
9461 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9462 | } |
554f62e9 RD |
9463 | } |
9464 | if (obj4) { | |
9465 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9466 | if (!SWIG_IsOK(ecode5)) { | |
9467 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9468 | } | |
9469 | arg5 = static_cast< long >(val5); | |
9470 | } | |
9471 | if (obj5) { | |
093d3ff1 | 9472 | { |
554f62e9 RD |
9473 | arg6 = wxString_in_helper(obj5); |
9474 | if (arg6 == NULL) SWIG_fail; | |
9475 | temp6 = true; | |
093d3ff1 | 9476 | } |
554f62e9 RD |
9477 | } |
9478 | { | |
9479 | if (!wxPyCheckForApp()) SWIG_fail; | |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9481 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9486 | { | |
9487 | if (temp6) | |
9488 | delete arg6; | |
9489 | } | |
9490 | return resultobj; | |
9491 | fail: | |
9492 | { | |
9493 | if (temp6) | |
9494 | delete arg6; | |
9495 | } | |
9496 | return NULL; | |
d55e5bfc RD |
9497 | } |
9498 | ||
9499 | ||
554f62e9 RD |
9500 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9501 | PyObject *resultobj = 0; | |
9502 | wxSplitterWindow *result = 0 ; | |
9503 | ||
9504 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9505 | { | |
9506 | if (!wxPyCheckForApp()) SWIG_fail; | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9509 | wxPyEndAllowThreads(__tstate); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
9511 | } | |
9512 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9513 | return resultobj; | |
9514 | fail: | |
9515 | return NULL; | |
9516 | } | |
9517 | ||
9518 | ||
9519 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9520 | PyObject *resultobj = 0; | |
9521 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9523 | int arg3 = (int) -1 ; | |
9524 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9525 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9526 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9527 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9528 | long arg6 = (long) wxSP_3D ; | |
9529 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9530 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9531 | bool result; | |
9532 | void *argp1 = 0 ; | |
9533 | int res1 = 0 ; | |
9534 | void *argp2 = 0 ; | |
9535 | int res2 = 0 ; | |
9536 | int val3 ; | |
9537 | int ecode3 = 0 ; | |
9538 | wxPoint temp4 ; | |
9539 | wxSize temp5 ; | |
9540 | long val6 ; | |
9541 | int ecode6 = 0 ; | |
9542 | bool temp7 = false ; | |
9543 | PyObject * obj0 = 0 ; | |
9544 | PyObject * obj1 = 0 ; | |
9545 | PyObject * obj2 = 0 ; | |
9546 | PyObject * obj3 = 0 ; | |
9547 | PyObject * obj4 = 0 ; | |
9548 | PyObject * obj5 = 0 ; | |
9549 | PyObject * obj6 = 0 ; | |
9550 | char * kwnames[] = { | |
9551 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9552 | }; | |
9553 | ||
9554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9556 | if (!SWIG_IsOK(res1)) { | |
9557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9558 | } | |
9559 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9560 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9561 | if (!SWIG_IsOK(res2)) { | |
9562 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9563 | } | |
9564 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9565 | if (obj2) { | |
9566 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9567 | if (!SWIG_IsOK(ecode3)) { | |
9568 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9569 | } | |
9570 | arg3 = static_cast< int >(val3); | |
9571 | } | |
9572 | if (obj3) { | |
d55e5bfc | 9573 | { |
554f62e9 RD |
9574 | arg4 = &temp4; |
9575 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9576 | } |
554f62e9 RD |
9577 | } |
9578 | if (obj4) { | |
d55e5bfc | 9579 | { |
554f62e9 RD |
9580 | arg5 = &temp5; |
9581 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9582 | } |
554f62e9 RD |
9583 | } |
9584 | if (obj5) { | |
9585 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9586 | if (!SWIG_IsOK(ecode6)) { | |
9587 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9588 | } | |
9589 | arg6 = static_cast< long >(val6); | |
9590 | } | |
9591 | if (obj6) { | |
d55e5bfc | 9592 | { |
554f62e9 RD |
9593 | arg7 = wxString_in_helper(obj6); |
9594 | if (arg7 == NULL) SWIG_fail; | |
9595 | temp7 = true; | |
d55e5bfc | 9596 | } |
554f62e9 RD |
9597 | } |
9598 | { | |
9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9600 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
9604 | { | |
9605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9606 | } | |
9607 | { | |
9608 | if (temp7) | |
9609 | delete arg7; | |
9610 | } | |
9611 | return resultobj; | |
9612 | fail: | |
9613 | { | |
9614 | if (temp7) | |
9615 | delete arg7; | |
9616 | } | |
9617 | return NULL; | |
d55e5bfc RD |
9618 | } |
9619 | ||
9620 | ||
554f62e9 RD |
9621 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9622 | PyObject *resultobj = 0; | |
9623 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9624 | wxWindow *result = 0 ; | |
9625 | void *argp1 = 0 ; | |
9626 | int res1 = 0 ; | |
9627 | PyObject *swig_obj[1] ; | |
9628 | ||
9629 | if (!args) SWIG_fail; | |
9630 | swig_obj[0] = args; | |
9631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9632 | if (!SWIG_IsOK(res1)) { | |
9633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9634 | } | |
9635 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9636 | { | |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9639 | wxPyEndAllowThreads(__tstate); | |
9640 | if (PyErr_Occurred()) SWIG_fail; | |
9641 | } | |
9642 | { | |
9643 | resultobj = wxPyMake_wxObject(result, 0); | |
9644 | } | |
9645 | return resultobj; | |
9646 | fail: | |
9647 | return NULL; | |
d55e5bfc RD |
9648 | } |
9649 | ||
9650 | ||
554f62e9 RD |
9651 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9652 | PyObject *resultobj = 0; | |
9653 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9654 | wxWindow *result = 0 ; | |
9655 | void *argp1 = 0 ; | |
9656 | int res1 = 0 ; | |
9657 | PyObject *swig_obj[1] ; | |
9658 | ||
9659 | if (!args) SWIG_fail; | |
9660 | swig_obj[0] = args; | |
9661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9662 | if (!SWIG_IsOK(res1)) { | |
9663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9664 | } | |
9665 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9666 | { | |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9668 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | resultobj = wxPyMake_wxObject(result, 0); | |
9674 | } | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj = 0; | |
9683 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9684 | int arg2 ; | |
9685 | void *argp1 = 0 ; | |
9686 | int res1 = 0 ; | |
9687 | int val2 ; | |
9688 | int ecode2 = 0 ; | |
9689 | PyObject * obj0 = 0 ; | |
9690 | PyObject * obj1 = 0 ; | |
9691 | char * kwnames[] = { | |
9692 | (char *) "self",(char *) "mode", NULL | |
9693 | }; | |
9694 | ||
9695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9697 | if (!SWIG_IsOK(res1)) { | |
9698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9699 | } | |
9700 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9702 | if (!SWIG_IsOK(ecode2)) { | |
9703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9704 | } | |
9705 | arg2 = static_cast< int >(val2); | |
9706 | { | |
9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9708 | (arg1)->SetSplitMode(arg2); | |
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = SWIG_Py_Void(); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
d55e5bfc RD |
9716 | } |
9717 | ||
9718 | ||
554f62e9 RD |
9719 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9720 | PyObject *resultobj = 0; | |
9721 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9722 | wxSplitMode result; | |
9723 | void *argp1 = 0 ; | |
9724 | int res1 = 0 ; | |
9725 | PyObject *swig_obj[1] ; | |
9726 | ||
9727 | if (!args) SWIG_fail; | |
9728 | swig_obj[0] = args; | |
9729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9730 | if (!SWIG_IsOK(res1)) { | |
9731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9732 | } | |
9733 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | return NULL; | |
9744 | } | |
9745 | ||
9746 | ||
9747 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9748 | PyObject *resultobj = 0; | |
9749 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9750 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9751 | void *argp1 = 0 ; | |
9752 | int res1 = 0 ; | |
9753 | void *argp2 = 0 ; | |
9754 | int res2 = 0 ; | |
9755 | PyObject * obj0 = 0 ; | |
9756 | PyObject * obj1 = 0 ; | |
9757 | char * kwnames[] = { | |
9758 | (char *) "self",(char *) "window", NULL | |
9759 | }; | |
9760 | ||
9761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9763 | if (!SWIG_IsOK(res1)) { | |
9764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9765 | } | |
9766 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9767 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9768 | if (!SWIG_IsOK(res2)) { | |
9769 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9770 | } | |
9771 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9772 | { | |
9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9774 | (arg1)->Initialize(arg2); | |
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
9778 | resultobj = SWIG_Py_Void(); | |
9779 | return resultobj; | |
9780 | fail: | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
9785 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9786 | PyObject *resultobj = 0; | |
9787 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9788 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9789 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9790 | int arg4 = (int) 0 ; | |
9791 | bool result; | |
9792 | void *argp1 = 0 ; | |
9793 | int res1 = 0 ; | |
9794 | void *argp2 = 0 ; | |
9795 | int res2 = 0 ; | |
9796 | void *argp3 = 0 ; | |
9797 | int res3 = 0 ; | |
9798 | int val4 ; | |
9799 | int ecode4 = 0 ; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | PyObject * obj1 = 0 ; | |
9802 | PyObject * obj2 = 0 ; | |
9803 | PyObject * obj3 = 0 ; | |
9804 | char * kwnames[] = { | |
9805 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9806 | }; | |
9807 | ||
9808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9810 | if (!SWIG_IsOK(res1)) { | |
9811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9812 | } | |
9813 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9814 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9815 | if (!SWIG_IsOK(res2)) { | |
9816 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9817 | } | |
9818 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9819 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9820 | if (!SWIG_IsOK(res3)) { | |
9821 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9822 | } | |
9823 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9824 | if (obj3) { | |
9825 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9826 | if (!SWIG_IsOK(ecode4)) { | |
9827 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9828 | } | |
9829 | arg4 = static_cast< int >(val4); | |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9834 | wxPyEndAllowThreads(__tstate); | |
9835 | if (PyErr_Occurred()) SWIG_fail; | |
9836 | } | |
9837 | { | |
9838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9839 | } | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj = 0; | |
9848 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9849 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9850 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9851 | int arg4 = (int) 0 ; | |
9852 | bool result; | |
9853 | void *argp1 = 0 ; | |
9854 | int res1 = 0 ; | |
9855 | void *argp2 = 0 ; | |
9856 | int res2 = 0 ; | |
9857 | void *argp3 = 0 ; | |
9858 | int res3 = 0 ; | |
9859 | int val4 ; | |
9860 | int ecode4 = 0 ; | |
9861 | PyObject * obj0 = 0 ; | |
9862 | PyObject * obj1 = 0 ; | |
9863 | PyObject * obj2 = 0 ; | |
9864 | PyObject * obj3 = 0 ; | |
9865 | char * kwnames[] = { | |
9866 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9867 | }; | |
9868 | ||
9869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9871 | if (!SWIG_IsOK(res1)) { | |
9872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9873 | } | |
9874 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9875 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9876 | if (!SWIG_IsOK(res2)) { | |
9877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9878 | } | |
9879 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9880 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9881 | if (!SWIG_IsOK(res3)) { | |
9882 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9883 | } | |
9884 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9885 | if (obj3) { | |
9886 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9887 | if (!SWIG_IsOK(ecode4)) { | |
9888 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9889 | } | |
9890 | arg4 = static_cast< int >(val4); | |
9891 | } | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9895 | wxPyEndAllowThreads(__tstate); | |
9896 | if (PyErr_Occurred()) SWIG_fail; | |
9897 | } | |
9898 | { | |
9899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9900 | } | |
9901 | return resultobj; | |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
9907 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9908 | PyObject *resultobj = 0; | |
9909 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9910 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9911 | bool result; | |
9912 | void *argp1 = 0 ; | |
9913 | int res1 = 0 ; | |
9914 | void *argp2 = 0 ; | |
9915 | int res2 = 0 ; | |
9916 | PyObject * obj0 = 0 ; | |
9917 | PyObject * obj1 = 0 ; | |
9918 | char * kwnames[] = { | |
9919 | (char *) "self",(char *) "toRemove", NULL | |
9920 | }; | |
9921 | ||
9922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9924 | if (!SWIG_IsOK(res1)) { | |
9925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9926 | } | |
9927 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9928 | if (obj1) { | |
9929 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9930 | if (!SWIG_IsOK(res2)) { | |
9931 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d55e5bfc | 9932 | } |
554f62e9 RD |
9933 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9934 | } | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | result = (bool)(arg1)->Unsplit(arg2); | |
9938 | wxPyEndAllowThreads(__tstate); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | } | |
9941 | { | |
9942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9943 | } | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9951 | PyObject *resultobj = 0; | |
9952 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9953 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9954 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9955 | bool result; | |
9956 | void *argp1 = 0 ; | |
9957 | int res1 = 0 ; | |
9958 | void *argp2 = 0 ; | |
9959 | int res2 = 0 ; | |
9960 | void *argp3 = 0 ; | |
9961 | int res3 = 0 ; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | PyObject * obj1 = 0 ; | |
9964 | PyObject * obj2 = 0 ; | |
9965 | char * kwnames[] = { | |
9966 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9967 | }; | |
9968 | ||
9969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9971 | if (!SWIG_IsOK(res1)) { | |
9972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9973 | } | |
9974 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9975 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9976 | if (!SWIG_IsOK(res2)) { | |
9977 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9978 | } | |
9979 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9980 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9981 | if (!SWIG_IsOK(res3)) { | |
9982 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9983 | } | |
9984 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
9991 | { | |
9992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9993 | } | |
9994 | return resultobj; | |
9995 | fail: | |
9996 | return NULL; | |
d55e5bfc RD |
9997 | } |
9998 | ||
9999 | ||
554f62e9 RD |
10000 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10001 | PyObject *resultobj = 0; | |
10002 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10003 | void *argp1 = 0 ; | |
10004 | int res1 = 0 ; | |
10005 | PyObject *swig_obj[1] ; | |
10006 | ||
10007 | if (!args) SWIG_fail; | |
10008 | swig_obj[0] = args; | |
10009 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10010 | if (!SWIG_IsOK(res1)) { | |
10011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10012 | } | |
10013 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | (arg1)->UpdateSize(); | |
10017 | wxPyEndAllowThreads(__tstate); | |
10018 | if (PyErr_Occurred()) SWIG_fail; | |
10019 | } | |
10020 | resultobj = SWIG_Py_Void(); | |
10021 | return resultobj; | |
10022 | fail: | |
10023 | return NULL; | |
f20a2e1f RD |
10024 | } |
10025 | ||
10026 | ||
554f62e9 RD |
10027 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10028 | PyObject *resultobj = 0; | |
10029 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10030 | bool result; | |
10031 | void *argp1 = 0 ; | |
10032 | int res1 = 0 ; | |
10033 | PyObject *swig_obj[1] ; | |
10034 | ||
10035 | if (!args) SWIG_fail; | |
10036 | swig_obj[0] = args; | |
10037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10038 | if (!SWIG_IsOK(res1)) { | |
10039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10040 | } | |
10041 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10042 | { | |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
10045 | wxPyEndAllowThreads(__tstate); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
10048 | { | |
10049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10050 | } | |
10051 | return resultobj; | |
10052 | fail: | |
10053 | return NULL; | |
10054 | } | |
10055 | ||
10056 | ||
10057 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10058 | PyObject *resultobj = 0; | |
10059 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10060 | int arg2 ; | |
10061 | void *argp1 = 0 ; | |
10062 | int res1 = 0 ; | |
10063 | int val2 ; | |
10064 | int ecode2 = 0 ; | |
10065 | PyObject * obj0 = 0 ; | |
10066 | PyObject * obj1 = 0 ; | |
10067 | char * kwnames[] = { | |
10068 | (char *) "self",(char *) "width", NULL | |
10069 | }; | |
10070 | ||
10071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10073 | if (!SWIG_IsOK(res1)) { | |
10074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10075 | } | |
10076 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10077 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10078 | if (!SWIG_IsOK(ecode2)) { | |
10079 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
10080 | } | |
10081 | arg2 = static_cast< int >(val2); | |
10082 | { | |
10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10084 | (arg1)->SetSashSize(arg2); | |
10085 | wxPyEndAllowThreads(__tstate); | |
10086 | if (PyErr_Occurred()) SWIG_fail; | |
10087 | } | |
10088 | resultobj = SWIG_Py_Void(); | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | return NULL; | |
10092 | } | |
10093 | ||
10094 | ||
10095 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10096 | PyObject *resultobj = 0; | |
10097 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10098 | int arg2 ; | |
10099 | void *argp1 = 0 ; | |
10100 | int res1 = 0 ; | |
10101 | int val2 ; | |
10102 | int ecode2 = 0 ; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | PyObject * obj1 = 0 ; | |
10105 | char * kwnames[] = { | |
10106 | (char *) "self",(char *) "width", NULL | |
10107 | }; | |
10108 | ||
10109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10111 | if (!SWIG_IsOK(res1)) { | |
10112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10113 | } | |
10114 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10115 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10116 | if (!SWIG_IsOK(ecode2)) { | |
10117 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
10118 | } | |
10119 | arg2 = static_cast< int >(val2); | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | (arg1)->SetBorderSize(arg2); | |
10123 | wxPyEndAllowThreads(__tstate); | |
10124 | if (PyErr_Occurred()) SWIG_fail; | |
10125 | } | |
10126 | resultobj = SWIG_Py_Void(); | |
10127 | return resultobj; | |
10128 | fail: | |
10129 | return NULL; | |
d55e5bfc RD |
10130 | } |
10131 | ||
10132 | ||
554f62e9 RD |
10133 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10134 | PyObject *resultobj = 0; | |
10135 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10136 | int result; | |
10137 | void *argp1 = 0 ; | |
10138 | int res1 = 0 ; | |
10139 | PyObject *swig_obj[1] ; | |
10140 | ||
10141 | if (!args) SWIG_fail; | |
10142 | swig_obj[0] = args; | |
10143 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10144 | if (!SWIG_IsOK(res1)) { | |
10145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10146 | } | |
10147 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10148 | { | |
10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10150 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
10154 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10155 | return resultobj; | |
10156 | fail: | |
10157 | return NULL; | |
d55e5bfc RD |
10158 | } |
10159 | ||
10160 | ||
554f62e9 RD |
10161 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10162 | PyObject *resultobj = 0; | |
10163 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10164 | int result; | |
10165 | void *argp1 = 0 ; | |
10166 | int res1 = 0 ; | |
10167 | PyObject *swig_obj[1] ; | |
10168 | ||
10169 | if (!args) SWIG_fail; | |
10170 | swig_obj[0] = args; | |
10171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10172 | if (!SWIG_IsOK(res1)) { | |
10173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10174 | } | |
10175 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10176 | { | |
10177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10178 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
10179 | wxPyEndAllowThreads(__tstate); | |
10180 | if (PyErr_Occurred()) SWIG_fail; | |
10181 | } | |
10182 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10183 | return resultobj; | |
10184 | fail: | |
10185 | return NULL; | |
10186 | } | |
10187 | ||
10188 | ||
10189 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10190 | PyObject *resultobj = 0; | |
10191 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10192 | int arg2 ; | |
10193 | bool arg3 = (bool) true ; | |
10194 | void *argp1 = 0 ; | |
10195 | int res1 = 0 ; | |
10196 | int val2 ; | |
10197 | int ecode2 = 0 ; | |
10198 | bool val3 ; | |
10199 | int ecode3 = 0 ; | |
10200 | PyObject * obj0 = 0 ; | |
10201 | PyObject * obj1 = 0 ; | |
10202 | PyObject * obj2 = 0 ; | |
10203 | char * kwnames[] = { | |
10204 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
10205 | }; | |
10206 | ||
10207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10209 | if (!SWIG_IsOK(res1)) { | |
10210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10211 | } | |
10212 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10213 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10214 | if (!SWIG_IsOK(ecode2)) { | |
10215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10216 | } | |
10217 | arg2 = static_cast< int >(val2); | |
10218 | if (obj2) { | |
10219 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10220 | if (!SWIG_IsOK(ecode3)) { | |
10221 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
10222 | } | |
10223 | arg3 = static_cast< bool >(val3); | |
10224 | } | |
10225 | { | |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | (arg1)->SetSashPosition(arg2,arg3); | |
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | resultobj = SWIG_Py_Void(); | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
d55e5bfc RD |
10235 | } |
10236 | ||
10237 | ||
554f62e9 RD |
10238 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10239 | PyObject *resultobj = 0; | |
10240 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10241 | int result; | |
10242 | void *argp1 = 0 ; | |
10243 | int res1 = 0 ; | |
10244 | PyObject *swig_obj[1] ; | |
10245 | ||
10246 | if (!args) SWIG_fail; | |
10247 | swig_obj[0] = args; | |
10248 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10249 | if (!SWIG_IsOK(res1)) { | |
10250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10251 | } | |
10252 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10253 | { | |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
10259 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
10266 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10267 | PyObject *resultobj = 0; | |
10268 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10269 | double arg2 ; | |
10270 | void *argp1 = 0 ; | |
10271 | int res1 = 0 ; | |
10272 | double val2 ; | |
10273 | int ecode2 = 0 ; | |
10274 | PyObject * obj0 = 0 ; | |
10275 | PyObject * obj1 = 0 ; | |
10276 | char * kwnames[] = { | |
10277 | (char *) "self",(char *) "gravity", NULL | |
10278 | }; | |
10279 | ||
10280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10282 | if (!SWIG_IsOK(res1)) { | |
10283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10284 | } | |
10285 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10286 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10287 | if (!SWIG_IsOK(ecode2)) { | |
10288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10289 | } | |
10290 | arg2 = static_cast< double >(val2); | |
10291 | { | |
10292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10293 | (arg1)->SetSashGravity(arg2); | |
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | resultobj = SWIG_Py_Void(); | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
d55e5bfc RD |
10301 | } |
10302 | ||
10303 | ||
554f62e9 RD |
10304 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10305 | PyObject *resultobj = 0; | |
10306 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10307 | double result; | |
10308 | void *argp1 = 0 ; | |
10309 | int res1 = 0 ; | |
10310 | PyObject *swig_obj[1] ; | |
10311 | ||
10312 | if (!args) SWIG_fail; | |
10313 | swig_obj[0] = args; | |
10314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10315 | if (!SWIG_IsOK(res1)) { | |
10316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10317 | } | |
10318 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10319 | { | |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10322 | wxPyEndAllowThreads(__tstate); | |
10323 | if (PyErr_Occurred()) SWIG_fail; | |
10324 | } | |
10325 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10326 | return resultobj; | |
10327 | fail: | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
10332 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj = 0; | |
10334 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10335 | int arg2 ; | |
10336 | void *argp1 = 0 ; | |
10337 | int res1 = 0 ; | |
10338 | int val2 ; | |
10339 | int ecode2 = 0 ; | |
10340 | PyObject * obj0 = 0 ; | |
10341 | PyObject * obj1 = 0 ; | |
10342 | char * kwnames[] = { | |
10343 | (char *) "self",(char *) "min", NULL | |
10344 | }; | |
10345 | ||
10346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10348 | if (!SWIG_IsOK(res1)) { | |
10349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10350 | } | |
10351 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10352 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10353 | if (!SWIG_IsOK(ecode2)) { | |
10354 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10355 | } | |
10356 | arg2 = static_cast< int >(val2); | |
10357 | { | |
10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10359 | (arg1)->SetMinimumPaneSize(arg2); | |
10360 | wxPyEndAllowThreads(__tstate); | |
10361 | if (PyErr_Occurred()) SWIG_fail; | |
10362 | } | |
10363 | resultobj = SWIG_Py_Void(); | |
10364 | return resultobj; | |
10365 | fail: | |
10366 | return NULL; | |
d55e5bfc RD |
10367 | } |
10368 | ||
10369 | ||
554f62e9 RD |
10370 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10371 | PyObject *resultobj = 0; | |
10372 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10373 | int result; | |
10374 | void *argp1 = 0 ; | |
10375 | int res1 = 0 ; | |
10376 | PyObject *swig_obj[1] ; | |
10377 | ||
10378 | if (!args) SWIG_fail; | |
10379 | swig_obj[0] = args; | |
10380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10381 | if (!SWIG_IsOK(res1)) { | |
10382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10383 | } | |
10384 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10385 | { | |
10386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10387 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj = 0; | |
10400 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10401 | int arg2 ; | |
10402 | int arg3 ; | |
10403 | int arg4 = (int) 5 ; | |
10404 | bool result; | |
10405 | void *argp1 = 0 ; | |
10406 | int res1 = 0 ; | |
10407 | int val2 ; | |
10408 | int ecode2 = 0 ; | |
10409 | int val3 ; | |
10410 | int ecode3 = 0 ; | |
10411 | int val4 ; | |
10412 | int ecode4 = 0 ; | |
10413 | PyObject * obj0 = 0 ; | |
10414 | PyObject * obj1 = 0 ; | |
10415 | PyObject * obj2 = 0 ; | |
10416 | PyObject * obj3 = 0 ; | |
10417 | char * kwnames[] = { | |
10418 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10419 | }; | |
10420 | ||
10421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10423 | if (!SWIG_IsOK(res1)) { | |
10424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10425 | } | |
10426 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10427 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10428 | if (!SWIG_IsOK(ecode2)) { | |
10429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10430 | } | |
10431 | arg2 = static_cast< int >(val2); | |
10432 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10433 | if (!SWIG_IsOK(ecode3)) { | |
10434 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10435 | } | |
10436 | arg3 = static_cast< int >(val3); | |
10437 | if (obj3) { | |
10438 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10439 | if (!SWIG_IsOK(ecode4)) { | |
10440 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10441 | } | |
10442 | arg4 = static_cast< int >(val4); | |
10443 | } | |
10444 | { | |
10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10446 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10447 | wxPyEndAllowThreads(__tstate); | |
10448 | if (PyErr_Occurred()) SWIG_fail; | |
10449 | } | |
10450 | { | |
10451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10452 | } | |
10453 | return resultobj; | |
10454 | fail: | |
10455 | return NULL; | |
b1fcee84 RD |
10456 | } |
10457 | ||
10458 | ||
554f62e9 RD |
10459 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10460 | PyObject *resultobj = 0; | |
10461 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10462 | void *argp1 = 0 ; | |
10463 | int res1 = 0 ; | |
10464 | PyObject *swig_obj[1] ; | |
10465 | ||
10466 | if (!args) SWIG_fail; | |
10467 | swig_obj[0] = args; | |
10468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10469 | if (!SWIG_IsOK(res1)) { | |
10470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10471 | } | |
10472 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10473 | { | |
10474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10475 | (arg1)->SizeWindows(); | |
10476 | wxPyEndAllowThreads(__tstate); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
10479 | resultobj = SWIG_Py_Void(); | |
10480 | return resultobj; | |
10481 | fail: | |
10482 | return NULL; | |
10483 | } | |
10484 | ||
10485 | ||
10486 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10487 | PyObject *resultobj = 0; | |
10488 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10489 | bool arg2 ; | |
10490 | void *argp1 = 0 ; | |
10491 | int res1 = 0 ; | |
10492 | bool val2 ; | |
10493 | int ecode2 = 0 ; | |
10494 | PyObject * obj0 = 0 ; | |
10495 | PyObject * obj1 = 0 ; | |
10496 | char * kwnames[] = { | |
10497 | (char *) "self",(char *) "needUpdating", NULL | |
10498 | }; | |
10499 | ||
10500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10502 | if (!SWIG_IsOK(res1)) { | |
10503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10504 | } | |
10505 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10506 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10507 | if (!SWIG_IsOK(ecode2)) { | |
10508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10509 | } | |
10510 | arg2 = static_cast< bool >(val2); | |
10511 | { | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | (arg1)->SetNeedUpdating(arg2); | |
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | resultobj = SWIG_Py_Void(); | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
b1fcee84 RD |
10521 | } |
10522 | ||
10523 | ||
554f62e9 RD |
10524 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10525 | PyObject *resultobj = 0; | |
10526 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10527 | bool result; | |
10528 | void *argp1 = 0 ; | |
10529 | int res1 = 0 ; | |
10530 | PyObject *swig_obj[1] ; | |
10531 | ||
10532 | if (!args) SWIG_fail; | |
10533 | swig_obj[0] = args; | |
10534 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10535 | if (!SWIG_IsOK(res1)) { | |
10536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10537 | } | |
10538 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10539 | { | |
10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10541 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | { | |
10546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10547 | } | |
10548 | return resultobj; | |
10549 | fail: | |
10550 | return NULL; | |
b1fcee84 RD |
10551 | } |
10552 | ||
10553 | ||
554f62e9 RD |
10554 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10555 | PyObject *resultobj = 0; | |
10556 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10557 | SwigValueWrapper<wxVisualAttributes > result; | |
10558 | int val1 ; | |
10559 | int ecode1 = 0 ; | |
10560 | PyObject * obj0 = 0 ; | |
10561 | char * kwnames[] = { | |
10562 | (char *) "variant", NULL | |
10563 | }; | |
10564 | ||
10565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10566 | if (obj0) { | |
10567 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10568 | if (!SWIG_IsOK(ecode1)) { | |
10569 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10570 | } | |
10571 | arg1 = static_cast< wxWindowVariant >(val1); | |
10572 | } | |
10573 | { | |
10574 | if (!wxPyCheckForApp()) SWIG_fail; | |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10577 | wxPyEndAllowThreads(__tstate); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | return NULL; | |
b1fcee84 RD |
10584 | } |
10585 | ||
10586 | ||
554f62e9 RD |
10587 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10588 | PyObject *obj; | |
10589 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10590 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10591 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10592 | } |
10593 | ||
554f62e9 RD |
10594 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10595 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
10596 | } |
10597 | ||
554f62e9 RD |
10598 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10599 | PyObject *resultobj = 0; | |
10600 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10601 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10602 | wxSplitterEvent *result = 0 ; | |
10603 | int val1 ; | |
10604 | int ecode1 = 0 ; | |
10605 | void *argp2 = 0 ; | |
10606 | int res2 = 0 ; | |
10607 | PyObject * obj0 = 0 ; | |
10608 | PyObject * obj1 = 0 ; | |
10609 | char * kwnames[] = { | |
10610 | (char *) "type",(char *) "splitter", NULL | |
10611 | }; | |
10612 | ||
10613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10614 | if (obj0) { | |
10615 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10616 | if (!SWIG_IsOK(ecode1)) { | |
10617 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10618 | } | |
10619 | arg1 = static_cast< wxEventType >(val1); | |
10620 | } | |
10621 | if (obj1) { | |
10622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10623 | if (!SWIG_IsOK(res2)) { | |
10624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
62d32a5f | 10625 | } |
554f62e9 RD |
10626 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10627 | } | |
10628 | { | |
10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10630 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10635 | return resultobj; | |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
10641 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10642 | PyObject *resultobj = 0; | |
10643 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10644 | int arg2 ; | |
10645 | void *argp1 = 0 ; | |
10646 | int res1 = 0 ; | |
10647 | int val2 ; | |
10648 | int ecode2 = 0 ; | |
10649 | PyObject * obj0 = 0 ; | |
10650 | PyObject * obj1 = 0 ; | |
10651 | char * kwnames[] = { | |
10652 | (char *) "self",(char *) "pos", NULL | |
10653 | }; | |
10654 | ||
10655 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10657 | if (!SWIG_IsOK(res1)) { | |
10658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10659 | } | |
10660 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10661 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10662 | if (!SWIG_IsOK(ecode2)) { | |
10663 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10664 | } | |
10665 | arg2 = static_cast< int >(val2); | |
10666 | { | |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | (arg1)->SetSashPosition(arg2); | |
10669 | wxPyEndAllowThreads(__tstate); | |
10670 | if (PyErr_Occurred()) SWIG_fail; | |
10671 | } | |
10672 | resultobj = SWIG_Py_Void(); | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
62d32a5f RD |
10676 | } |
10677 | ||
10678 | ||
554f62e9 RD |
10679 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10680 | PyObject *resultobj = 0; | |
10681 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10682 | int result; | |
10683 | void *argp1 = 0 ; | |
10684 | int res1 = 0 ; | |
10685 | PyObject *swig_obj[1] ; | |
10686 | ||
10687 | if (!args) SWIG_fail; | |
10688 | swig_obj[0] = args; | |
10689 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10690 | if (!SWIG_IsOK(res1)) { | |
10691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10692 | } | |
10693 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10694 | { | |
10695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10696 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10701 | return resultobj; | |
10702 | fail: | |
10703 | return NULL; | |
d55e5bfc RD |
10704 | } |
10705 | ||
10706 | ||
554f62e9 RD |
10707 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10708 | PyObject *resultobj = 0; | |
10709 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10710 | wxWindow *result = 0 ; | |
10711 | void *argp1 = 0 ; | |
10712 | int res1 = 0 ; | |
10713 | PyObject *swig_obj[1] ; | |
10714 | ||
10715 | if (!args) SWIG_fail; | |
10716 | swig_obj[0] = args; | |
10717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10718 | if (!SWIG_IsOK(res1)) { | |
10719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10720 | } | |
10721 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10722 | { | |
10723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10724 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) SWIG_fail; | |
10727 | } | |
10728 | { | |
10729 | resultobj = wxPyMake_wxObject(result, 0); | |
10730 | } | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
d55e5bfc RD |
10734 | } |
10735 | ||
10736 | ||
554f62e9 RD |
10737 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10738 | PyObject *resultobj = 0; | |
10739 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10740 | int result; | |
10741 | void *argp1 = 0 ; | |
10742 | int res1 = 0 ; | |
10743 | PyObject *swig_obj[1] ; | |
10744 | ||
10745 | if (!args) SWIG_fail; | |
10746 | swig_obj[0] = args; | |
10747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10748 | if (!SWIG_IsOK(res1)) { | |
10749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10750 | } | |
10751 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10752 | { | |
10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10754 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
10757 | } | |
10758 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10759 | return resultobj; | |
10760 | fail: | |
10761 | return NULL; | |
d55e5bfc RD |
10762 | } |
10763 | ||
10764 | ||
554f62e9 RD |
10765 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10766 | PyObject *resultobj = 0; | |
10767 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10768 | int result; | |
10769 | void *argp1 = 0 ; | |
10770 | int res1 = 0 ; | |
10771 | PyObject *swig_obj[1] ; | |
10772 | ||
10773 | if (!args) SWIG_fail; | |
10774 | swig_obj[0] = args; | |
10775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10776 | if (!SWIG_IsOK(res1)) { | |
10777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10778 | } | |
10779 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10780 | { | |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10783 | wxPyEndAllowThreads(__tstate); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | return NULL; | |
f20a2e1f RD |
10790 | } |
10791 | ||
10792 | ||
554f62e9 RD |
10793 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10794 | PyObject *obj; | |
10795 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10796 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10797 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10798 | } |
10799 | ||
554f62e9 RD |
10800 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10801 | return SWIG_Python_InitShadowInstance(args); | |
10802 | } | |
d55e5bfc | 10803 | |
554f62e9 RD |
10804 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10805 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10806 | return 1; | |
d55e5bfc RD |
10807 | } |
10808 | ||
10809 | ||
554f62e9 RD |
10810 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10811 | PyObject *pyobj = 0; | |
10812 | ||
10813 | { | |
10814 | #if wxUSE_UNICODE | |
10815 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10816 | #else | |
10817 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10818 | #endif | |
10819 | } | |
10820 | return pyobj; | |
d55e5bfc RD |
10821 | } |
10822 | ||
10823 | ||
554f62e9 RD |
10824 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10825 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10826 | return 1; | |
d55e5bfc RD |
10827 | } |
10828 | ||
10829 | ||
554f62e9 RD |
10830 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10831 | PyObject *pyobj = 0; | |
10832 | ||
10833 | { | |
10834 | #if wxUSE_UNICODE | |
10835 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10836 | #else | |
10837 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10838 | #endif | |
10839 | } | |
10840 | return pyobj; | |
10841 | } | |
10842 | ||
10843 | ||
10844 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10845 | PyObject *resultobj = 0; | |
10846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10847 | int arg2 = (int) -1 ; | |
10848 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10849 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10850 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10851 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10852 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10853 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10854 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10855 | wxSashWindow *result = 0 ; | |
10856 | void *argp1 = 0 ; | |
10857 | int res1 = 0 ; | |
10858 | int val2 ; | |
10859 | int ecode2 = 0 ; | |
10860 | wxPoint temp3 ; | |
10861 | wxSize temp4 ; | |
10862 | long val5 ; | |
10863 | int ecode5 = 0 ; | |
10864 | bool temp6 = false ; | |
10865 | PyObject * obj0 = 0 ; | |
10866 | PyObject * obj1 = 0 ; | |
10867 | PyObject * obj2 = 0 ; | |
10868 | PyObject * obj3 = 0 ; | |
10869 | PyObject * obj4 = 0 ; | |
10870 | PyObject * obj5 = 0 ; | |
10871 | char * kwnames[] = { | |
10872 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10873 | }; | |
10874 | ||
10875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10877 | if (!SWIG_IsOK(res1)) { | |
10878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10879 | } | |
10880 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10881 | if (obj1) { | |
10882 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10883 | if (!SWIG_IsOK(ecode2)) { | |
10884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10885 | } | |
10886 | arg2 = static_cast< int >(val2); | |
10887 | } | |
10888 | if (obj2) { | |
093d3ff1 | 10889 | { |
554f62e9 RD |
10890 | arg3 = &temp3; |
10891 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 10892 | } |
554f62e9 RD |
10893 | } |
10894 | if (obj3) { | |
d55e5bfc | 10895 | { |
554f62e9 RD |
10896 | arg4 = &temp4; |
10897 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10898 | } |
554f62e9 RD |
10899 | } |
10900 | if (obj4) { | |
10901 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10902 | if (!SWIG_IsOK(ecode5)) { | |
10903 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10904 | } | |
10905 | arg5 = static_cast< long >(val5); | |
10906 | } | |
10907 | if (obj5) { | |
d55e5bfc | 10908 | { |
554f62e9 RD |
10909 | arg6 = wxString_in_helper(obj5); |
10910 | if (arg6 == NULL) SWIG_fail; | |
10911 | temp6 = true; | |
d55e5bfc | 10912 | } |
554f62e9 RD |
10913 | } |
10914 | { | |
10915 | if (!wxPyCheckForApp()) SWIG_fail; | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10918 | wxPyEndAllowThreads(__tstate); | |
10919 | if (PyErr_Occurred()) SWIG_fail; | |
10920 | } | |
10921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10922 | { | |
10923 | if (temp6) | |
10924 | delete arg6; | |
10925 | } | |
10926 | return resultobj; | |
10927 | fail: | |
10928 | { | |
10929 | if (temp6) | |
10930 | delete arg6; | |
10931 | } | |
10932 | return NULL; | |
d55e5bfc RD |
10933 | } |
10934 | ||
10935 | ||
554f62e9 RD |
10936 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10937 | PyObject *resultobj = 0; | |
10938 | wxSashWindow *result = 0 ; | |
10939 | ||
10940 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10941 | { | |
10942 | if (!wxPyCheckForApp()) SWIG_fail; | |
10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10944 | result = (wxSashWindow *)new wxSashWindow(); | |
10945 | wxPyEndAllowThreads(__tstate); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | } | |
10948 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10949 | return resultobj; | |
10950 | fail: | |
10951 | return NULL; | |
10952 | } | |
10953 | ||
10954 | ||
10955 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10956 | PyObject *resultobj = 0; | |
10957 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10958 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10959 | int arg3 = (int) -1 ; | |
10960 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10961 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10962 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10963 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10964 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10965 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10966 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10967 | bool result; | |
10968 | void *argp1 = 0 ; | |
10969 | int res1 = 0 ; | |
10970 | void *argp2 = 0 ; | |
10971 | int res2 = 0 ; | |
10972 | int val3 ; | |
10973 | int ecode3 = 0 ; | |
10974 | wxPoint temp4 ; | |
10975 | wxSize temp5 ; | |
10976 | long val6 ; | |
10977 | int ecode6 = 0 ; | |
10978 | bool temp7 = false ; | |
10979 | PyObject * obj0 = 0 ; | |
10980 | PyObject * obj1 = 0 ; | |
10981 | PyObject * obj2 = 0 ; | |
10982 | PyObject * obj3 = 0 ; | |
10983 | PyObject * obj4 = 0 ; | |
10984 | PyObject * obj5 = 0 ; | |
10985 | PyObject * obj6 = 0 ; | |
10986 | char * kwnames[] = { | |
10987 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10988 | }; | |
10989 | ||
10990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10992 | if (!SWIG_IsOK(res1)) { | |
10993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10994 | } | |
10995 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10996 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10997 | if (!SWIG_IsOK(res2)) { | |
10998 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10999 | } | |
11000 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
11001 | if (obj2) { | |
11002 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11003 | if (!SWIG_IsOK(ecode3)) { | |
11004 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
11005 | } | |
11006 | arg3 = static_cast< int >(val3); | |
11007 | } | |
11008 | if (obj3) { | |
093d3ff1 | 11009 | { |
554f62e9 RD |
11010 | arg4 = &temp4; |
11011 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 11012 | } |
554f62e9 RD |
11013 | } |
11014 | if (obj4) { | |
d55e5bfc | 11015 | { |
554f62e9 RD |
11016 | arg5 = &temp5; |
11017 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 11018 | } |
554f62e9 RD |
11019 | } |
11020 | if (obj5) { | |
11021 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
11022 | if (!SWIG_IsOK(ecode6)) { | |
11023 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
11024 | } | |
11025 | arg6 = static_cast< long >(val6); | |
11026 | } | |
11027 | if (obj6) { | |
093d3ff1 | 11028 | { |
554f62e9 RD |
11029 | arg7 = wxString_in_helper(obj6); |
11030 | if (arg7 == NULL) SWIG_fail; | |
11031 | temp7 = true; | |
093d3ff1 | 11032 | } |
554f62e9 RD |
11033 | } |
11034 | { | |
11035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11036 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | { | |
11041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11042 | } | |
11043 | { | |
11044 | if (temp7) | |
11045 | delete arg7; | |
11046 | } | |
11047 | return resultobj; | |
11048 | fail: | |
11049 | { | |
11050 | if (temp7) | |
11051 | delete arg7; | |
11052 | } | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
11057 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11058 | PyObject *resultobj = 0; | |
11059 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11060 | wxSashEdgePosition arg2 ; | |
11061 | bool arg3 ; | |
11062 | void *argp1 = 0 ; | |
11063 | int res1 = 0 ; | |
11064 | int val2 ; | |
11065 | int ecode2 = 0 ; | |
11066 | bool val3 ; | |
11067 | int ecode3 = 0 ; | |
11068 | PyObject * obj0 = 0 ; | |
11069 | PyObject * obj1 = 0 ; | |
11070 | PyObject * obj2 = 0 ; | |
11071 | char * kwnames[] = { | |
11072 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
11073 | }; | |
11074 | ||
11075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11077 | if (!SWIG_IsOK(res1)) { | |
11078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11079 | } | |
11080 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11082 | if (!SWIG_IsOK(ecode2)) { | |
11083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11084 | } | |
11085 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11086 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11087 | if (!SWIG_IsOK(ecode3)) { | |
11088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
11089 | } | |
11090 | arg3 = static_cast< bool >(val3); | |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | (arg1)->SetSashVisible(arg2,arg3); | |
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | resultobj = SWIG_Py_Void(); | |
11098 | return resultobj; | |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11105 | PyObject *resultobj = 0; | |
11106 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11107 | wxSashEdgePosition arg2 ; | |
11108 | bool result; | |
11109 | void *argp1 = 0 ; | |
11110 | int res1 = 0 ; | |
11111 | int val2 ; | |
11112 | int ecode2 = 0 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | char * kwnames[] = { | |
11116 | (char *) "self",(char *) "edge", NULL | |
11117 | }; | |
11118 | ||
11119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
11120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11121 | if (!SWIG_IsOK(res1)) { | |
11122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11123 | } | |
11124 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11126 | if (!SWIG_IsOK(ecode2)) { | |
11127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11128 | } | |
11129 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11138 | } | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj = 0; | |
11147 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11148 | wxSashEdgePosition arg2 ; | |
11149 | bool arg3 ; | |
11150 | void *argp1 = 0 ; | |
11151 | int res1 = 0 ; | |
11152 | int val2 ; | |
11153 | int ecode2 = 0 ; | |
11154 | bool val3 ; | |
11155 | int ecode3 = 0 ; | |
11156 | PyObject * obj0 = 0 ; | |
11157 | PyObject * obj1 = 0 ; | |
11158 | PyObject * obj2 = 0 ; | |
11159 | char * kwnames[] = { | |
11160 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
11161 | }; | |
11162 | ||
11163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11165 | if (!SWIG_IsOK(res1)) { | |
11166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11167 | } | |
11168 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11169 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11170 | if (!SWIG_IsOK(ecode2)) { | |
11171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11172 | } | |
11173 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11174 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11175 | if (!SWIG_IsOK(ecode3)) { | |
11176 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
11177 | } | |
11178 | arg3 = static_cast< bool >(val3); | |
11179 | { | |
11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11181 | (arg1)->SetSashBorder(arg2,arg3); | |
11182 | wxPyEndAllowThreads(__tstate); | |
11183 | if (PyErr_Occurred()) SWIG_fail; | |
11184 | } | |
11185 | resultobj = SWIG_Py_Void(); | |
11186 | return resultobj; | |
11187 | fail: | |
11188 | return NULL; | |
11189 | } | |
11190 | ||
11191 | ||
11192 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11193 | PyObject *resultobj = 0; | |
11194 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11195 | wxSashEdgePosition arg2 ; | |
11196 | bool result; | |
11197 | void *argp1 = 0 ; | |
11198 | int res1 = 0 ; | |
11199 | int val2 ; | |
11200 | int ecode2 = 0 ; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | PyObject * obj1 = 0 ; | |
11203 | char * kwnames[] = { | |
11204 | (char *) "self",(char *) "edge", NULL | |
11205 | }; | |
11206 | ||
11207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
11208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11209 | if (!SWIG_IsOK(res1)) { | |
11210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11211 | } | |
11212 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11213 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11214 | if (!SWIG_IsOK(ecode2)) { | |
11215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11216 | } | |
11217 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11226 | } | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj = 0; | |
11235 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11236 | wxSashEdgePosition arg2 ; | |
11237 | int result; | |
11238 | void *argp1 = 0 ; | |
11239 | int res1 = 0 ; | |
11240 | int val2 ; | |
11241 | int ecode2 = 0 ; | |
11242 | PyObject * obj0 = 0 ; | |
11243 | PyObject * obj1 = 0 ; | |
11244 | char * kwnames[] = { | |
11245 | (char *) "self",(char *) "edge", NULL | |
11246 | }; | |
11247 | ||
11248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11250 | if (!SWIG_IsOK(res1)) { | |
11251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11252 | } | |
11253 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11255 | if (!SWIG_IsOK(ecode2)) { | |
11256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11257 | } | |
11258 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11259 | { | |
11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11261 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11266 | return resultobj; | |
11267 | fail: | |
11268 | return NULL; | |
11269 | } | |
11270 | ||
11271 | ||
11272 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11273 | PyObject *resultobj = 0; | |
11274 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11275 | int arg2 ; | |
11276 | void *argp1 = 0 ; | |
11277 | int res1 = 0 ; | |
11278 | int val2 ; | |
11279 | int ecode2 = 0 ; | |
11280 | PyObject * obj0 = 0 ; | |
11281 | PyObject * obj1 = 0 ; | |
11282 | char * kwnames[] = { | |
11283 | (char *) "self",(char *) "width", NULL | |
11284 | }; | |
11285 | ||
11286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11288 | if (!SWIG_IsOK(res1)) { | |
11289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11290 | } | |
11291 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11292 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11293 | if (!SWIG_IsOK(ecode2)) { | |
11294 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11295 | } | |
11296 | arg2 = static_cast< int >(val2); | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | (arg1)->SetDefaultBorderSize(arg2); | |
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | resultobj = SWIG_Py_Void(); | |
11304 | return resultobj; | |
11305 | fail: | |
11306 | return NULL; | |
d55e5bfc RD |
11307 | } |
11308 | ||
11309 | ||
554f62e9 RD |
11310 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11311 | PyObject *resultobj = 0; | |
11312 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11313 | int result; | |
11314 | void *argp1 = 0 ; | |
11315 | int res1 = 0 ; | |
11316 | PyObject *swig_obj[1] ; | |
11317 | ||
11318 | if (!args) SWIG_fail; | |
11319 | swig_obj[0] = args; | |
11320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11321 | if (!SWIG_IsOK(res1)) { | |
11322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11323 | } | |
11324 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11325 | { | |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11328 | wxPyEndAllowThreads(__tstate); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | } | |
11331 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11332 | return resultobj; | |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11339 | PyObject *resultobj = 0; | |
11340 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11341 | int arg2 ; | |
11342 | void *argp1 = 0 ; | |
11343 | int res1 = 0 ; | |
11344 | int val2 ; | |
11345 | int ecode2 = 0 ; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | PyObject * obj1 = 0 ; | |
11348 | char * kwnames[] = { | |
11349 | (char *) "self",(char *) "width", NULL | |
11350 | }; | |
11351 | ||
11352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11354 | if (!SWIG_IsOK(res1)) { | |
11355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11356 | } | |
11357 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11358 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11359 | if (!SWIG_IsOK(ecode2)) { | |
11360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11361 | } | |
11362 | arg2 = static_cast< int >(val2); | |
11363 | { | |
11364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11365 | (arg1)->SetExtraBorderSize(arg2); | |
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
11369 | resultobj = SWIG_Py_Void(); | |
11370 | return resultobj; | |
11371 | fail: | |
11372 | return NULL; | |
d55e5bfc RD |
11373 | } |
11374 | ||
11375 | ||
554f62e9 RD |
11376 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11377 | PyObject *resultobj = 0; | |
11378 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11379 | int result; | |
11380 | void *argp1 = 0 ; | |
11381 | int res1 = 0 ; | |
11382 | PyObject *swig_obj[1] ; | |
11383 | ||
11384 | if (!args) SWIG_fail; | |
11385 | swig_obj[0] = args; | |
11386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11387 | if (!SWIG_IsOK(res1)) { | |
11388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11389 | } | |
11390 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11391 | { | |
11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11393 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11398 | return resultobj; | |
11399 | fail: | |
11400 | return NULL; | |
11401 | } | |
11402 | ||
11403 | ||
11404 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11405 | PyObject *resultobj = 0; | |
11406 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11407 | int arg2 ; | |
11408 | void *argp1 = 0 ; | |
11409 | int res1 = 0 ; | |
11410 | int val2 ; | |
11411 | int ecode2 = 0 ; | |
11412 | PyObject * obj0 = 0 ; | |
11413 | PyObject * obj1 = 0 ; | |
11414 | char * kwnames[] = { | |
11415 | (char *) "self",(char *) "min", NULL | |
11416 | }; | |
11417 | ||
11418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11420 | if (!SWIG_IsOK(res1)) { | |
11421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11422 | } | |
11423 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11424 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11425 | if (!SWIG_IsOK(ecode2)) { | |
11426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11427 | } | |
11428 | arg2 = static_cast< int >(val2); | |
11429 | { | |
11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11431 | (arg1)->SetMinimumSizeX(arg2); | |
11432 | wxPyEndAllowThreads(__tstate); | |
11433 | if (PyErr_Occurred()) SWIG_fail; | |
11434 | } | |
11435 | resultobj = SWIG_Py_Void(); | |
11436 | return resultobj; | |
11437 | fail: | |
11438 | return NULL; | |
11439 | } | |
11440 | ||
11441 | ||
11442 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11443 | PyObject *resultobj = 0; | |
11444 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11445 | int arg2 ; | |
11446 | void *argp1 = 0 ; | |
11447 | int res1 = 0 ; | |
11448 | int val2 ; | |
11449 | int ecode2 = 0 ; | |
11450 | PyObject * obj0 = 0 ; | |
11451 | PyObject * obj1 = 0 ; | |
11452 | char * kwnames[] = { | |
11453 | (char *) "self",(char *) "min", NULL | |
11454 | }; | |
11455 | ||
11456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11458 | if (!SWIG_IsOK(res1)) { | |
11459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11460 | } | |
11461 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11462 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11463 | if (!SWIG_IsOK(ecode2)) { | |
11464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11465 | } | |
11466 | arg2 = static_cast< int >(val2); | |
11467 | { | |
11468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11469 | (arg1)->SetMinimumSizeY(arg2); | |
11470 | wxPyEndAllowThreads(__tstate); | |
11471 | if (PyErr_Occurred()) SWIG_fail; | |
11472 | } | |
11473 | resultobj = SWIG_Py_Void(); | |
11474 | return resultobj; | |
11475 | fail: | |
11476 | return NULL; | |
d55e5bfc RD |
11477 | } |
11478 | ||
11479 | ||
554f62e9 RD |
11480 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11481 | PyObject *resultobj = 0; | |
11482 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11483 | int result; | |
11484 | void *argp1 = 0 ; | |
11485 | int res1 = 0 ; | |
11486 | PyObject *swig_obj[1] ; | |
11487 | ||
11488 | if (!args) SWIG_fail; | |
11489 | swig_obj[0] = args; | |
11490 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11491 | if (!SWIG_IsOK(res1)) { | |
11492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11493 | } | |
11494 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11497 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11498 | wxPyEndAllowThreads(__tstate); | |
11499 | if (PyErr_Occurred()) SWIG_fail; | |
11500 | } | |
11501 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11502 | return resultobj; | |
11503 | fail: | |
11504 | return NULL; | |
d55e5bfc RD |
11505 | } |
11506 | ||
11507 | ||
554f62e9 RD |
11508 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11509 | PyObject *resultobj = 0; | |
11510 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11511 | int result; | |
11512 | void *argp1 = 0 ; | |
11513 | int res1 = 0 ; | |
11514 | PyObject *swig_obj[1] ; | |
11515 | ||
11516 | if (!args) SWIG_fail; | |
11517 | swig_obj[0] = args; | |
11518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11519 | if (!SWIG_IsOK(res1)) { | |
11520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11521 | } | |
11522 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11523 | { | |
11524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11525 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11526 | wxPyEndAllowThreads(__tstate); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
11529 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11530 | return resultobj; | |
11531 | fail: | |
11532 | return NULL; | |
11533 | } | |
11534 | ||
11535 | ||
11536 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11537 | PyObject *resultobj = 0; | |
11538 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11539 | int arg2 ; | |
11540 | void *argp1 = 0 ; | |
11541 | int res1 = 0 ; | |
11542 | int val2 ; | |
11543 | int ecode2 = 0 ; | |
11544 | PyObject * obj0 = 0 ; | |
11545 | PyObject * obj1 = 0 ; | |
11546 | char * kwnames[] = { | |
11547 | (char *) "self",(char *) "max", NULL | |
11548 | }; | |
11549 | ||
11550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11552 | if (!SWIG_IsOK(res1)) { | |
11553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11554 | } | |
11555 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11556 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11557 | if (!SWIG_IsOK(ecode2)) { | |
11558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11559 | } | |
11560 | arg2 = static_cast< int >(val2); | |
11561 | { | |
11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11563 | (arg1)->SetMaximumSizeX(arg2); | |
11564 | wxPyEndAllowThreads(__tstate); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
11567 | resultobj = SWIG_Py_Void(); | |
11568 | return resultobj; | |
11569 | fail: | |
11570 | return NULL; | |
11571 | } | |
11572 | ||
11573 | ||
11574 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11575 | PyObject *resultobj = 0; | |
11576 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11577 | int arg2 ; | |
11578 | void *argp1 = 0 ; | |
11579 | int res1 = 0 ; | |
11580 | int val2 ; | |
11581 | int ecode2 = 0 ; | |
11582 | PyObject * obj0 = 0 ; | |
11583 | PyObject * obj1 = 0 ; | |
11584 | char * kwnames[] = { | |
11585 | (char *) "self",(char *) "max", NULL | |
11586 | }; | |
11587 | ||
11588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11590 | if (!SWIG_IsOK(res1)) { | |
11591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11592 | } | |
11593 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11594 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11595 | if (!SWIG_IsOK(ecode2)) { | |
11596 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11597 | } | |
11598 | arg2 = static_cast< int >(val2); | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | (arg1)->SetMaximumSizeY(arg2); | |
11602 | wxPyEndAllowThreads(__tstate); | |
11603 | if (PyErr_Occurred()) SWIG_fail; | |
11604 | } | |
11605 | resultobj = SWIG_Py_Void(); | |
11606 | return resultobj; | |
11607 | fail: | |
11608 | return NULL; | |
d55e5bfc RD |
11609 | } |
11610 | ||
11611 | ||
554f62e9 RD |
11612 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11613 | PyObject *resultobj = 0; | |
11614 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11615 | int result; | |
11616 | void *argp1 = 0 ; | |
11617 | int res1 = 0 ; | |
11618 | PyObject *swig_obj[1] ; | |
11619 | ||
11620 | if (!args) SWIG_fail; | |
11621 | swig_obj[0] = args; | |
11622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11623 | if (!SWIG_IsOK(res1)) { | |
11624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11625 | } | |
11626 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11627 | { | |
11628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11629 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11634 | return resultobj; | |
11635 | fail: | |
11636 | return NULL; | |
d55e5bfc RD |
11637 | } |
11638 | ||
11639 | ||
554f62e9 RD |
11640 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11641 | PyObject *resultobj = 0; | |
11642 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11643 | int result; | |
11644 | void *argp1 = 0 ; | |
11645 | int res1 = 0 ; | |
11646 | PyObject *swig_obj[1] ; | |
11647 | ||
11648 | if (!args) SWIG_fail; | |
11649 | swig_obj[0] = args; | |
11650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11651 | if (!SWIG_IsOK(res1)) { | |
11652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11653 | } | |
11654 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11655 | { | |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11657 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11662 | return resultobj; | |
11663 | fail: | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
11668 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj = 0; | |
11670 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11671 | int arg2 ; | |
11672 | int arg3 ; | |
11673 | int arg4 = (int) 2 ; | |
11674 | wxSashEdgePosition result; | |
11675 | void *argp1 = 0 ; | |
11676 | int res1 = 0 ; | |
11677 | int val2 ; | |
11678 | int ecode2 = 0 ; | |
11679 | int val3 ; | |
11680 | int ecode3 = 0 ; | |
11681 | int val4 ; | |
11682 | int ecode4 = 0 ; | |
11683 | PyObject * obj0 = 0 ; | |
11684 | PyObject * obj1 = 0 ; | |
11685 | PyObject * obj2 = 0 ; | |
11686 | PyObject * obj3 = 0 ; | |
11687 | char * kwnames[] = { | |
11688 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11689 | }; | |
11690 | ||
11691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11693 | if (!SWIG_IsOK(res1)) { | |
11694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11695 | } | |
11696 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11697 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11698 | if (!SWIG_IsOK(ecode2)) { | |
11699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11700 | } | |
11701 | arg2 = static_cast< int >(val2); | |
11702 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11703 | if (!SWIG_IsOK(ecode3)) { | |
11704 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11705 | } | |
11706 | arg3 = static_cast< int >(val3); | |
11707 | if (obj3) { | |
11708 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11709 | if (!SWIG_IsOK(ecode4)) { | |
11710 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11711 | } | |
11712 | arg4 = static_cast< int >(val4); | |
11713 | } | |
11714 | { | |
11715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11716 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11717 | wxPyEndAllowThreads(__tstate); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11721 | return resultobj; | |
11722 | fail: | |
11723 | return NULL; | |
d55e5bfc RD |
11724 | } |
11725 | ||
11726 | ||
554f62e9 RD |
11727 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11728 | PyObject *resultobj = 0; | |
11729 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11730 | void *argp1 = 0 ; | |
11731 | int res1 = 0 ; | |
11732 | PyObject *swig_obj[1] ; | |
11733 | ||
11734 | if (!args) SWIG_fail; | |
11735 | swig_obj[0] = args; | |
11736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11737 | if (!SWIG_IsOK(res1)) { | |
11738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11739 | } | |
11740 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11741 | { | |
11742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11743 | (arg1)->SizeWindows(); | |
11744 | wxPyEndAllowThreads(__tstate); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
11747 | resultobj = SWIG_Py_Void(); | |
11748 | return resultobj; | |
11749 | fail: | |
11750 | return NULL; | |
d55e5bfc RD |
11751 | } |
11752 | ||
11753 | ||
554f62e9 RD |
11754 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11755 | PyObject *obj; | |
11756 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11757 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11758 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11759 | } |
11760 | ||
554f62e9 RD |
11761 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11762 | return SWIG_Python_InitShadowInstance(args); | |
11763 | } | |
d55e5bfc | 11764 | |
554f62e9 RD |
11765 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11766 | PyObject *resultobj = 0; | |
11767 | int arg1 = (int) 0 ; | |
11768 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11769 | wxSashEvent *result = 0 ; | |
11770 | int val1 ; | |
11771 | int ecode1 = 0 ; | |
11772 | int val2 ; | |
11773 | int ecode2 = 0 ; | |
11774 | PyObject * obj0 = 0 ; | |
11775 | PyObject * obj1 = 0 ; | |
11776 | char * kwnames[] = { | |
11777 | (char *) "id",(char *) "edge", NULL | |
11778 | }; | |
11779 | ||
11780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11781 | if (obj0) { | |
11782 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11783 | if (!SWIG_IsOK(ecode1)) { | |
11784 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11785 | } | |
11786 | arg1 = static_cast< int >(val1); | |
11787 | } | |
11788 | if (obj1) { | |
11789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11790 | if (!SWIG_IsOK(ecode2)) { | |
11791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11792 | } | |
11793 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11794 | } | |
11795 | { | |
11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11797 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11798 | wxPyEndAllowThreads(__tstate); | |
11799 | if (PyErr_Occurred()) SWIG_fail; | |
11800 | } | |
11801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11802 | return resultobj; | |
11803 | fail: | |
11804 | return NULL; | |
11805 | } | |
11806 | ||
11807 | ||
11808 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11809 | PyObject *resultobj = 0; | |
11810 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11811 | wxSashEdgePosition arg2 ; | |
11812 | void *argp1 = 0 ; | |
11813 | int res1 = 0 ; | |
11814 | int val2 ; | |
11815 | int ecode2 = 0 ; | |
11816 | PyObject * obj0 = 0 ; | |
11817 | PyObject * obj1 = 0 ; | |
11818 | char * kwnames[] = { | |
11819 | (char *) "self",(char *) "edge", NULL | |
11820 | }; | |
11821 | ||
11822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11824 | if (!SWIG_IsOK(res1)) { | |
11825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11826 | } | |
11827 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11828 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11829 | if (!SWIG_IsOK(ecode2)) { | |
11830 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11831 | } | |
11832 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11833 | { | |
11834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11835 | (arg1)->SetEdge(arg2); | |
11836 | wxPyEndAllowThreads(__tstate); | |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
11838 | } | |
11839 | resultobj = SWIG_Py_Void(); | |
11840 | return resultobj; | |
11841 | fail: | |
11842 | return NULL; | |
d55e5bfc RD |
11843 | } |
11844 | ||
11845 | ||
554f62e9 RD |
11846 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11847 | PyObject *resultobj = 0; | |
11848 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11849 | wxSashEdgePosition result; | |
11850 | void *argp1 = 0 ; | |
11851 | int res1 = 0 ; | |
11852 | PyObject *swig_obj[1] ; | |
11853 | ||
11854 | if (!args) SWIG_fail; | |
11855 | swig_obj[0] = args; | |
11856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11857 | if (!SWIG_IsOK(res1)) { | |
11858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11859 | } | |
11860 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11861 | { | |
11862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11863 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
11874 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11875 | PyObject *resultobj = 0; | |
11876 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11877 | wxRect *arg2 = 0 ; | |
11878 | void *argp1 = 0 ; | |
11879 | int res1 = 0 ; | |
11880 | wxRect temp2 ; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | PyObject * obj1 = 0 ; | |
11883 | char * kwnames[] = { | |
11884 | (char *) "self",(char *) "rect", NULL | |
11885 | }; | |
11886 | ||
11887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11889 | if (!SWIG_IsOK(res1)) { | |
11890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11891 | } | |
11892 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11893 | { | |
11894 | arg2 = &temp2; | |
11895 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11896 | } | |
11897 | { | |
11898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11899 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11900 | wxPyEndAllowThreads(__tstate); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
11903 | resultobj = SWIG_Py_Void(); | |
11904 | return resultobj; | |
11905 | fail: | |
11906 | return NULL; | |
d55e5bfc RD |
11907 | } |
11908 | ||
11909 | ||
554f62e9 RD |
11910 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11911 | PyObject *resultobj = 0; | |
11912 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11913 | wxRect result; | |
11914 | void *argp1 = 0 ; | |
11915 | int res1 = 0 ; | |
11916 | PyObject *swig_obj[1] ; | |
11917 | ||
11918 | if (!args) SWIG_fail; | |
11919 | swig_obj[0] = args; | |
11920 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11921 | if (!SWIG_IsOK(res1)) { | |
11922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11923 | } | |
11924 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11925 | { | |
11926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11927 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
11931 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11932 | return resultobj; | |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
11938 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11939 | PyObject *resultobj = 0; | |
11940 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11941 | wxSashDragStatus arg2 ; | |
11942 | void *argp1 = 0 ; | |
11943 | int res1 = 0 ; | |
11944 | int val2 ; | |
11945 | int ecode2 = 0 ; | |
11946 | PyObject * obj0 = 0 ; | |
11947 | PyObject * obj1 = 0 ; | |
11948 | char * kwnames[] = { | |
11949 | (char *) "self",(char *) "status", NULL | |
11950 | }; | |
11951 | ||
11952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11954 | if (!SWIG_IsOK(res1)) { | |
11955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11956 | } | |
11957 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11958 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11959 | if (!SWIG_IsOK(ecode2)) { | |
11960 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11961 | } | |
11962 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11963 | { | |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | (arg1)->SetDragStatus(arg2); | |
11966 | wxPyEndAllowThreads(__tstate); | |
11967 | if (PyErr_Occurred()) SWIG_fail; | |
11968 | } | |
11969 | resultobj = SWIG_Py_Void(); | |
11970 | return resultobj; | |
11971 | fail: | |
11972 | return NULL; | |
d55e5bfc RD |
11973 | } |
11974 | ||
11975 | ||
554f62e9 RD |
11976 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11977 | PyObject *resultobj = 0; | |
11978 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11979 | wxSashDragStatus result; | |
11980 | void *argp1 = 0 ; | |
11981 | int res1 = 0 ; | |
11982 | PyObject *swig_obj[1] ; | |
11983 | ||
11984 | if (!args) SWIG_fail; | |
11985 | swig_obj[0] = args; | |
11986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11987 | if (!SWIG_IsOK(res1)) { | |
11988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11989 | } | |
11990 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11991 | { | |
11992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11993 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11994 | wxPyEndAllowThreads(__tstate); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
11996 | } | |
11997 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11998 | return resultobj; | |
11999 | fail: | |
12000 | return NULL; | |
03837c5c RD |
12001 | } |
12002 | ||
12003 | ||
554f62e9 RD |
12004 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12005 | PyObject *obj; | |
12006 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12007 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
12008 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12009 | } |
12010 | ||
554f62e9 RD |
12011 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12012 | return SWIG_Python_InitShadowInstance(args); | |
12013 | } | |
d55e5bfc | 12014 | |
554f62e9 RD |
12015 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12016 | PyObject *resultobj = 0; | |
12017 | int arg1 = (int) 0 ; | |
12018 | wxQueryLayoutInfoEvent *result = 0 ; | |
12019 | int val1 ; | |
12020 | int ecode1 = 0 ; | |
12021 | PyObject * obj0 = 0 ; | |
12022 | char * kwnames[] = { | |
12023 | (char *) "id", NULL | |
12024 | }; | |
12025 | ||
12026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
12027 | if (obj0) { | |
12028 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12029 | if (!SWIG_IsOK(ecode1)) { | |
12030 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
12031 | } | |
12032 | arg1 = static_cast< int >(val1); | |
12033 | } | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
12041 | return resultobj; | |
12042 | fail: | |
12043 | return NULL; | |
12044 | } | |
12045 | ||
12046 | ||
12047 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12048 | PyObject *resultobj = 0; | |
12049 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12050 | int arg2 ; | |
12051 | void *argp1 = 0 ; | |
12052 | int res1 = 0 ; | |
12053 | int val2 ; | |
12054 | int ecode2 = 0 ; | |
12055 | PyObject * obj0 = 0 ; | |
12056 | PyObject * obj1 = 0 ; | |
12057 | char * kwnames[] = { | |
12058 | (char *) "self",(char *) "length", NULL | |
12059 | }; | |
12060 | ||
12061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12063 | if (!SWIG_IsOK(res1)) { | |
12064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12065 | } | |
12066 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12068 | if (!SWIG_IsOK(ecode2)) { | |
12069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
12070 | } | |
12071 | arg2 = static_cast< int >(val2); | |
12072 | { | |
12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12074 | (arg1)->SetRequestedLength(arg2); | |
12075 | wxPyEndAllowThreads(__tstate); | |
12076 | if (PyErr_Occurred()) SWIG_fail; | |
12077 | } | |
12078 | resultobj = SWIG_Py_Void(); | |
12079 | return resultobj; | |
12080 | fail: | |
12081 | return NULL; | |
d55e5bfc RD |
12082 | } |
12083 | ||
12084 | ||
554f62e9 RD |
12085 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12086 | PyObject *resultobj = 0; | |
12087 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12088 | int result; | |
12089 | void *argp1 = 0 ; | |
12090 | int res1 = 0 ; | |
12091 | PyObject *swig_obj[1] ; | |
12092 | ||
12093 | if (!args) SWIG_fail; | |
12094 | swig_obj[0] = args; | |
12095 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12096 | if (!SWIG_IsOK(res1)) { | |
12097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12098 | } | |
12099 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12100 | { | |
12101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12102 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
12103 | wxPyEndAllowThreads(__tstate); | |
12104 | if (PyErr_Occurred()) SWIG_fail; | |
12105 | } | |
12106 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | return NULL; | |
12110 | } | |
12111 | ||
12112 | ||
12113 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12114 | PyObject *resultobj = 0; | |
12115 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12116 | int arg2 ; | |
12117 | void *argp1 = 0 ; | |
12118 | int res1 = 0 ; | |
12119 | int val2 ; | |
12120 | int ecode2 = 0 ; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | PyObject * obj1 = 0 ; | |
12123 | char * kwnames[] = { | |
12124 | (char *) "self",(char *) "flags", NULL | |
12125 | }; | |
12126 | ||
12127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12129 | if (!SWIG_IsOK(res1)) { | |
12130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12131 | } | |
12132 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12133 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12134 | if (!SWIG_IsOK(ecode2)) { | |
12135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12136 | } | |
12137 | arg2 = static_cast< int >(val2); | |
12138 | { | |
12139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12140 | (arg1)->SetFlags(arg2); | |
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
12144 | resultobj = SWIG_Py_Void(); | |
12145 | return resultobj; | |
12146 | fail: | |
12147 | return NULL; | |
d55e5bfc RD |
12148 | } |
12149 | ||
12150 | ||
554f62e9 RD |
12151 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12152 | PyObject *resultobj = 0; | |
12153 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12154 | int result; | |
12155 | void *argp1 = 0 ; | |
12156 | int res1 = 0 ; | |
12157 | PyObject *swig_obj[1] ; | |
12158 | ||
12159 | if (!args) SWIG_fail; | |
12160 | swig_obj[0] = args; | |
12161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12162 | if (!SWIG_IsOK(res1)) { | |
12163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12164 | } | |
12165 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12166 | { | |
12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12168 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
12169 | wxPyEndAllowThreads(__tstate); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
12171 | } | |
12172 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12173 | return resultobj; | |
12174 | fail: | |
12175 | return NULL; | |
12176 | } | |
12177 | ||
12178 | ||
12179 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12180 | PyObject *resultobj = 0; | |
12181 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12182 | wxSize *arg2 = 0 ; | |
12183 | void *argp1 = 0 ; | |
12184 | int res1 = 0 ; | |
12185 | wxSize temp2 ; | |
12186 | PyObject * obj0 = 0 ; | |
12187 | PyObject * obj1 = 0 ; | |
12188 | char * kwnames[] = { | |
12189 | (char *) "self",(char *) "size", NULL | |
12190 | }; | |
12191 | ||
12192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12194 | if (!SWIG_IsOK(res1)) { | |
12195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12196 | } | |
12197 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12198 | { | |
12199 | arg2 = &temp2; | |
12200 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12201 | } | |
12202 | { | |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12204 | (arg1)->SetSize((wxSize const &)*arg2); | |
12205 | wxPyEndAllowThreads(__tstate); | |
12206 | if (PyErr_Occurred()) SWIG_fail; | |
12207 | } | |
12208 | resultobj = SWIG_Py_Void(); | |
12209 | return resultobj; | |
12210 | fail: | |
12211 | return NULL; | |
d55e5bfc RD |
12212 | } |
12213 | ||
12214 | ||
554f62e9 RD |
12215 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12216 | PyObject *resultobj = 0; | |
12217 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12218 | wxSize result; | |
12219 | void *argp1 = 0 ; | |
12220 | int res1 = 0 ; | |
12221 | PyObject *swig_obj[1] ; | |
12222 | ||
12223 | if (!args) SWIG_fail; | |
12224 | swig_obj[0] = args; | |
12225 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12226 | if (!SWIG_IsOK(res1)) { | |
12227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12228 | } | |
12229 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12230 | { | |
12231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12232 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
12233 | wxPyEndAllowThreads(__tstate); | |
12234 | if (PyErr_Occurred()) SWIG_fail; | |
12235 | } | |
12236 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12237 | return resultobj; | |
12238 | fail: | |
12239 | return NULL; | |
12240 | } | |
12241 | ||
12242 | ||
12243 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12244 | PyObject *resultobj = 0; | |
12245 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12246 | wxLayoutOrientation arg2 ; | |
12247 | void *argp1 = 0 ; | |
12248 | int res1 = 0 ; | |
12249 | int val2 ; | |
12250 | int ecode2 = 0 ; | |
12251 | PyObject * obj0 = 0 ; | |
12252 | PyObject * obj1 = 0 ; | |
12253 | char * kwnames[] = { | |
12254 | (char *) "self",(char *) "orient", NULL | |
12255 | }; | |
12256 | ||
12257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12259 | if (!SWIG_IsOK(res1)) { | |
12260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12261 | } | |
12262 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12264 | if (!SWIG_IsOK(ecode2)) { | |
12265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12266 | } | |
12267 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12268 | { | |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | (arg1)->SetOrientation(arg2); | |
12271 | wxPyEndAllowThreads(__tstate); | |
12272 | if (PyErr_Occurred()) SWIG_fail; | |
12273 | } | |
12274 | resultobj = SWIG_Py_Void(); | |
12275 | return resultobj; | |
12276 | fail: | |
12277 | return NULL; | |
f20a2e1f RD |
12278 | } |
12279 | ||
12280 | ||
554f62e9 RD |
12281 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12282 | PyObject *resultobj = 0; | |
12283 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12284 | wxLayoutOrientation result; | |
12285 | void *argp1 = 0 ; | |
12286 | int res1 = 0 ; | |
12287 | PyObject *swig_obj[1] ; | |
12288 | ||
12289 | if (!args) SWIG_fail; | |
12290 | swig_obj[0] = args; | |
12291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12292 | if (!SWIG_IsOK(res1)) { | |
12293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12294 | } | |
12295 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12296 | { | |
12297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12298 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12299 | wxPyEndAllowThreads(__tstate); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12303 | return resultobj; | |
12304 | fail: | |
12305 | return NULL; | |
12306 | } | |
12307 | ||
12308 | ||
12309 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12310 | PyObject *resultobj = 0; | |
12311 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12312 | wxLayoutAlignment arg2 ; | |
12313 | void *argp1 = 0 ; | |
12314 | int res1 = 0 ; | |
12315 | int val2 ; | |
12316 | int ecode2 = 0 ; | |
12317 | PyObject * obj0 = 0 ; | |
12318 | PyObject * obj1 = 0 ; | |
12319 | char * kwnames[] = { | |
12320 | (char *) "self",(char *) "align", NULL | |
12321 | }; | |
12322 | ||
12323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12325 | if (!SWIG_IsOK(res1)) { | |
12326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12327 | } | |
12328 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12329 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12330 | if (!SWIG_IsOK(ecode2)) { | |
12331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12332 | } | |
12333 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | (arg1)->SetAlignment(arg2); | |
12337 | wxPyEndAllowThreads(__tstate); | |
12338 | if (PyErr_Occurred()) SWIG_fail; | |
12339 | } | |
12340 | resultobj = SWIG_Py_Void(); | |
12341 | return resultobj; | |
12342 | fail: | |
12343 | return NULL; | |
d55e5bfc | 12344 | } |
554f62e9 RD |
12345 | |
12346 | ||
12347 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12348 | PyObject *resultobj = 0; | |
12349 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12350 | wxLayoutAlignment result; | |
12351 | void *argp1 = 0 ; | |
12352 | int res1 = 0 ; | |
12353 | PyObject *swig_obj[1] ; | |
12354 | ||
12355 | if (!args) SWIG_fail; | |
12356 | swig_obj[0] = args; | |
12357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12358 | if (!SWIG_IsOK(res1)) { | |
12359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12360 | } | |
12361 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12365 | wxPyEndAllowThreads(__tstate); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
12368 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12369 | return resultobj; | |
12370 | fail: | |
12371 | return NULL; | |
d55e5bfc RD |
12372 | } |
12373 | ||
12374 | ||
554f62e9 RD |
12375 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12376 | PyObject *obj; | |
12377 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12378 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12379 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12380 | } |
12381 | ||
554f62e9 RD |
12382 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12383 | return SWIG_Python_InitShadowInstance(args); | |
12384 | } | |
d55e5bfc | 12385 | |
554f62e9 RD |
12386 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12387 | PyObject *resultobj = 0; | |
12388 | int arg1 = (int) 0 ; | |
12389 | wxCalculateLayoutEvent *result = 0 ; | |
12390 | int val1 ; | |
12391 | int ecode1 = 0 ; | |
12392 | PyObject * obj0 = 0 ; | |
12393 | char * kwnames[] = { | |
12394 | (char *) "id", NULL | |
12395 | }; | |
12396 | ||
12397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12398 | if (obj0) { | |
12399 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12400 | if (!SWIG_IsOK(ecode1)) { | |
12401 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12402 | } | |
12403 | arg1 = static_cast< int >(val1); | |
12404 | } | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12408 | wxPyEndAllowThreads(__tstate); | |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
12410 | } | |
12411 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12412 | return resultobj; | |
12413 | fail: | |
12414 | return NULL; | |
12415 | } | |
12416 | ||
12417 | ||
12418 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12419 | PyObject *resultobj = 0; | |
12420 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12421 | int arg2 ; | |
12422 | void *argp1 = 0 ; | |
12423 | int res1 = 0 ; | |
12424 | int val2 ; | |
12425 | int ecode2 = 0 ; | |
12426 | PyObject * obj0 = 0 ; | |
12427 | PyObject * obj1 = 0 ; | |
12428 | char * kwnames[] = { | |
12429 | (char *) "self",(char *) "flags", NULL | |
12430 | }; | |
12431 | ||
12432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12434 | if (!SWIG_IsOK(res1)) { | |
12435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12436 | } | |
12437 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12438 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12439 | if (!SWIG_IsOK(ecode2)) { | |
12440 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12441 | } | |
12442 | arg2 = static_cast< int >(val2); | |
12443 | { | |
12444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12445 | (arg1)->SetFlags(arg2); | |
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
12449 | resultobj = SWIG_Py_Void(); | |
12450 | return resultobj; | |
12451 | fail: | |
12452 | return NULL; | |
d55e5bfc RD |
12453 | } |
12454 | ||
12455 | ||
554f62e9 RD |
12456 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12457 | PyObject *resultobj = 0; | |
12458 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12459 | int result; | |
12460 | void *argp1 = 0 ; | |
12461 | int res1 = 0 ; | |
12462 | PyObject *swig_obj[1] ; | |
12463 | ||
12464 | if (!args) SWIG_fail; | |
12465 | swig_obj[0] = args; | |
12466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12467 | if (!SWIG_IsOK(res1)) { | |
12468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12469 | } | |
12470 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
12477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12478 | return resultobj; | |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12485 | PyObject *resultobj = 0; | |
12486 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12487 | wxRect *arg2 = 0 ; | |
12488 | void *argp1 = 0 ; | |
12489 | int res1 = 0 ; | |
12490 | wxRect temp2 ; | |
12491 | PyObject * obj0 = 0 ; | |
12492 | PyObject * obj1 = 0 ; | |
12493 | char * kwnames[] = { | |
12494 | (char *) "self",(char *) "rect", NULL | |
12495 | }; | |
12496 | ||
12497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12499 | if (!SWIG_IsOK(res1)) { | |
12500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12501 | } | |
12502 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12503 | { | |
12504 | arg2 = &temp2; | |
12505 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12506 | } | |
12507 | { | |
12508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12509 | (arg1)->SetRect((wxRect const &)*arg2); | |
12510 | wxPyEndAllowThreads(__tstate); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | } | |
12513 | resultobj = SWIG_Py_Void(); | |
12514 | return resultobj; | |
12515 | fail: | |
12516 | return NULL; | |
12517 | } | |
12518 | ||
12519 | ||
12520 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12521 | PyObject *resultobj = 0; | |
12522 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12523 | wxRect result; | |
12524 | void *argp1 = 0 ; | |
12525 | int res1 = 0 ; | |
12526 | PyObject *swig_obj[1] ; | |
12527 | ||
12528 | if (!args) SWIG_fail; | |
12529 | swig_obj[0] = args; | |
12530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12531 | if (!SWIG_IsOK(res1)) { | |
12532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12533 | } | |
12534 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12535 | { | |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12537 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
12541 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12542 | return resultobj; | |
12543 | fail: | |
12544 | return NULL; | |
12545 | } | |
12546 | ||
12547 | ||
12548 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12549 | PyObject *obj; | |
12550 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12551 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12552 | return SWIG_Py_Void(); | |
12553 | } | |
12554 | ||
12555 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12556 | return SWIG_Python_InitShadowInstance(args); | |
12557 | } | |
12558 | ||
12559 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12560 | PyObject *resultobj = 0; | |
12561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12562 | int arg2 = (int) -1 ; | |
12563 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12564 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12565 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12566 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12567 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12568 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12569 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12570 | wxSashLayoutWindow *result = 0 ; | |
12571 | void *argp1 = 0 ; | |
12572 | int res1 = 0 ; | |
12573 | int val2 ; | |
12574 | int ecode2 = 0 ; | |
12575 | wxPoint temp3 ; | |
12576 | wxSize temp4 ; | |
12577 | long val5 ; | |
12578 | int ecode5 = 0 ; | |
12579 | bool temp6 = false ; | |
12580 | PyObject * obj0 = 0 ; | |
12581 | PyObject * obj1 = 0 ; | |
12582 | PyObject * obj2 = 0 ; | |
12583 | PyObject * obj3 = 0 ; | |
12584 | PyObject * obj4 = 0 ; | |
12585 | PyObject * obj5 = 0 ; | |
12586 | char * kwnames[] = { | |
12587 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12588 | }; | |
12589 | ||
12590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12592 | if (!SWIG_IsOK(res1)) { | |
12593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12594 | } | |
12595 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12596 | if (obj1) { | |
12597 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12598 | if (!SWIG_IsOK(ecode2)) { | |
12599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12600 | } | |
12601 | arg2 = static_cast< int >(val2); | |
12602 | } | |
12603 | if (obj2) { | |
d55e5bfc | 12604 | { |
554f62e9 RD |
12605 | arg3 = &temp3; |
12606 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 12607 | } |
554f62e9 RD |
12608 | } |
12609 | if (obj3) { | |
d55e5bfc | 12610 | { |
554f62e9 RD |
12611 | arg4 = &temp4; |
12612 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12613 | } |
554f62e9 RD |
12614 | } |
12615 | if (obj4) { | |
12616 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12617 | if (!SWIG_IsOK(ecode5)) { | |
12618 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12619 | } | |
12620 | arg5 = static_cast< long >(val5); | |
12621 | } | |
12622 | if (obj5) { | |
d55e5bfc | 12623 | { |
554f62e9 RD |
12624 | arg6 = wxString_in_helper(obj5); |
12625 | if (arg6 == NULL) SWIG_fail; | |
12626 | temp6 = true; | |
d55e5bfc | 12627 | } |
554f62e9 RD |
12628 | } |
12629 | { | |
12630 | if (!wxPyCheckForApp()) SWIG_fail; | |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12637 | { | |
12638 | if (temp6) | |
12639 | delete arg6; | |
12640 | } | |
12641 | return resultobj; | |
12642 | fail: | |
12643 | { | |
12644 | if (temp6) | |
12645 | delete arg6; | |
12646 | } | |
12647 | return NULL; | |
d55e5bfc RD |
12648 | } |
12649 | ||
12650 | ||
554f62e9 RD |
12651 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12652 | PyObject *resultobj = 0; | |
12653 | wxSashLayoutWindow *result = 0 ; | |
12654 | ||
12655 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12656 | { | |
12657 | if (!wxPyCheckForApp()) SWIG_fail; | |
12658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12659 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12660 | wxPyEndAllowThreads(__tstate); | |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
12667 | } | |
12668 | ||
12669 | ||
12670 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12671 | PyObject *resultobj = 0; | |
12672 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12673 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12674 | int arg3 = (int) -1 ; | |
12675 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12676 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12677 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12678 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12679 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12680 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12681 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12682 | bool result; | |
12683 | void *argp1 = 0 ; | |
12684 | int res1 = 0 ; | |
12685 | void *argp2 = 0 ; | |
12686 | int res2 = 0 ; | |
12687 | int val3 ; | |
12688 | int ecode3 = 0 ; | |
12689 | wxPoint temp4 ; | |
12690 | wxSize temp5 ; | |
12691 | long val6 ; | |
12692 | int ecode6 = 0 ; | |
12693 | bool temp7 = false ; | |
12694 | PyObject * obj0 = 0 ; | |
12695 | PyObject * obj1 = 0 ; | |
12696 | PyObject * obj2 = 0 ; | |
12697 | PyObject * obj3 = 0 ; | |
12698 | PyObject * obj4 = 0 ; | |
12699 | PyObject * obj5 = 0 ; | |
12700 | PyObject * obj6 = 0 ; | |
12701 | char * kwnames[] = { | |
12702 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12703 | }; | |
12704 | ||
12705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12707 | if (!SWIG_IsOK(res1)) { | |
12708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12709 | } | |
12710 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12711 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12712 | if (!SWIG_IsOK(res2)) { | |
12713 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12714 | } | |
12715 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12716 | if (obj2) { | |
12717 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12718 | if (!SWIG_IsOK(ecode3)) { | |
12719 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12720 | } | |
12721 | arg3 = static_cast< int >(val3); | |
12722 | } | |
12723 | if (obj3) { | |
d55e5bfc | 12724 | { |
554f62e9 RD |
12725 | arg4 = &temp4; |
12726 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12727 | } |
554f62e9 RD |
12728 | } |
12729 | if (obj4) { | |
d55e5bfc | 12730 | { |
554f62e9 RD |
12731 | arg5 = &temp5; |
12732 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 12733 | } |
554f62e9 RD |
12734 | } |
12735 | if (obj5) { | |
12736 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12737 | if (!SWIG_IsOK(ecode6)) { | |
12738 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12739 | } | |
12740 | arg6 = static_cast< long >(val6); | |
12741 | } | |
12742 | if (obj6) { | |
d55e5bfc | 12743 | { |
554f62e9 RD |
12744 | arg7 = wxString_in_helper(obj6); |
12745 | if (arg7 == NULL) SWIG_fail; | |
12746 | temp7 = true; | |
d55e5bfc | 12747 | } |
554f62e9 RD |
12748 | } |
12749 | { | |
12750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12751 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12752 | wxPyEndAllowThreads(__tstate); | |
12753 | if (PyErr_Occurred()) SWIG_fail; | |
12754 | } | |
12755 | { | |
12756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12757 | } | |
12758 | { | |
12759 | if (temp7) | |
12760 | delete arg7; | |
12761 | } | |
12762 | return resultobj; | |
12763 | fail: | |
12764 | { | |
12765 | if (temp7) | |
12766 | delete arg7; | |
12767 | } | |
12768 | return NULL; | |
d55e5bfc RD |
12769 | } |
12770 | ||
12771 | ||
554f62e9 RD |
12772 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12773 | PyObject *resultobj = 0; | |
12774 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12775 | wxLayoutAlignment result; | |
12776 | void *argp1 = 0 ; | |
12777 | int res1 = 0 ; | |
12778 | PyObject *swig_obj[1] ; | |
12779 | ||
12780 | if (!args) SWIG_fail; | |
12781 | swig_obj[0] = args; | |
12782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12783 | if (!SWIG_IsOK(res1)) { | |
12784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12785 | } | |
12786 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12787 | { | |
12788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12789 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
12793 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | return NULL; | |
d55e5bfc RD |
12797 | } |
12798 | ||
12799 | ||
554f62e9 RD |
12800 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12801 | PyObject *resultobj = 0; | |
12802 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12803 | wxLayoutOrientation result; | |
12804 | void *argp1 = 0 ; | |
12805 | int res1 = 0 ; | |
12806 | PyObject *swig_obj[1] ; | |
12807 | ||
12808 | if (!args) SWIG_fail; | |
12809 | swig_obj[0] = args; | |
12810 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12811 | if (!SWIG_IsOK(res1)) { | |
12812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12813 | } | |
12814 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12818 | wxPyEndAllowThreads(__tstate); | |
12819 | if (PyErr_Occurred()) SWIG_fail; | |
12820 | } | |
12821 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12822 | return resultobj; | |
12823 | fail: | |
12824 | return NULL; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12829 | PyObject *resultobj = 0; | |
12830 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12831 | wxLayoutAlignment arg2 ; | |
12832 | void *argp1 = 0 ; | |
12833 | int res1 = 0 ; | |
12834 | int val2 ; | |
12835 | int ecode2 = 0 ; | |
12836 | PyObject * obj0 = 0 ; | |
12837 | PyObject * obj1 = 0 ; | |
12838 | char * kwnames[] = { | |
12839 | (char *) "self",(char *) "alignment", NULL | |
12840 | }; | |
12841 | ||
12842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12844 | if (!SWIG_IsOK(res1)) { | |
12845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12846 | } | |
12847 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12848 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12849 | if (!SWIG_IsOK(ecode2)) { | |
12850 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12851 | } | |
12852 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12853 | { | |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | (arg1)->SetAlignment(arg2); | |
12856 | wxPyEndAllowThreads(__tstate); | |
12857 | if (PyErr_Occurred()) SWIG_fail; | |
12858 | } | |
12859 | resultobj = SWIG_Py_Void(); | |
12860 | return resultobj; | |
12861 | fail: | |
12862 | return NULL; | |
12863 | } | |
12864 | ||
12865 | ||
12866 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12867 | PyObject *resultobj = 0; | |
12868 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12869 | wxSize *arg2 = 0 ; | |
12870 | void *argp1 = 0 ; | |
12871 | int res1 = 0 ; | |
12872 | wxSize temp2 ; | |
12873 | PyObject * obj0 = 0 ; | |
12874 | PyObject * obj1 = 0 ; | |
12875 | char * kwnames[] = { | |
12876 | (char *) "self",(char *) "size", NULL | |
12877 | }; | |
12878 | ||
12879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12881 | if (!SWIG_IsOK(res1)) { | |
12882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12883 | } | |
12884 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12885 | { | |
12886 | arg2 = &temp2; | |
12887 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12888 | } | |
12889 | { | |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12891 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12892 | wxPyEndAllowThreads(__tstate); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | resultobj = SWIG_Py_Void(); | |
12896 | return resultobj; | |
12897 | fail: | |
12898 | return NULL; | |
12899 | } | |
12900 | ||
12901 | ||
12902 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12903 | PyObject *resultobj = 0; | |
12904 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12905 | wxLayoutOrientation arg2 ; | |
12906 | void *argp1 = 0 ; | |
12907 | int res1 = 0 ; | |
12908 | int val2 ; | |
12909 | int ecode2 = 0 ; | |
12910 | PyObject * obj0 = 0 ; | |
12911 | PyObject * obj1 = 0 ; | |
12912 | char * kwnames[] = { | |
12913 | (char *) "self",(char *) "orientation", NULL | |
12914 | }; | |
12915 | ||
12916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12918 | if (!SWIG_IsOK(res1)) { | |
12919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12920 | } | |
12921 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12922 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12923 | if (!SWIG_IsOK(ecode2)) { | |
12924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12925 | } | |
12926 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12927 | { | |
12928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12929 | (arg1)->SetOrientation(arg2); | |
12930 | wxPyEndAllowThreads(__tstate); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
12933 | resultobj = SWIG_Py_Void(); | |
12934 | return resultobj; | |
12935 | fail: | |
12936 | return NULL; | |
d55e5bfc RD |
12937 | } |
12938 | ||
12939 | ||
554f62e9 RD |
12940 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12941 | PyObject *obj; | |
12942 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12943 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12944 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12945 | } |
12946 | ||
554f62e9 RD |
12947 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12948 | return SWIG_Python_InitShadowInstance(args); | |
12949 | } | |
d55e5bfc | 12950 | |
554f62e9 RD |
12951 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12952 | PyObject *resultobj = 0; | |
12953 | wxLayoutAlgorithm *result = 0 ; | |
12954 | ||
12955 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12956 | { | |
12957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12958 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12963 | return resultobj; | |
12964 | fail: | |
12965 | return NULL; | |
d55e5bfc RD |
12966 | } |
12967 | ||
12968 | ||
554f62e9 RD |
12969 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12970 | PyObject *resultobj = 0; | |
12971 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12972 | void *argp1 = 0 ; | |
12973 | int res1 = 0 ; | |
12974 | PyObject *swig_obj[1] ; | |
12975 | ||
12976 | if (!args) SWIG_fail; | |
12977 | swig_obj[0] = args; | |
12978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12979 | if (!SWIG_IsOK(res1)) { | |
12980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12981 | } | |
12982 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12983 | { | |
12984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12985 | delete arg1; | |
d55e5bfc | 12986 | |
554f62e9 RD |
12987 | wxPyEndAllowThreads(__tstate); |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
12990 | resultobj = SWIG_Py_Void(); | |
12991 | return resultobj; | |
12992 | fail: | |
12993 | return NULL; | |
12994 | } | |
12995 | ||
12996 | ||
12997 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12998 | PyObject *resultobj = 0; | |
12999 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13000 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
13001 | wxRect *arg3 = (wxRect *) NULL ; | |
13002 | bool result; | |
13003 | void *argp1 = 0 ; | |
13004 | int res1 = 0 ; | |
13005 | void *argp2 = 0 ; | |
13006 | int res2 = 0 ; | |
13007 | void *argp3 = 0 ; | |
13008 | int res3 = 0 ; | |
13009 | PyObject * obj0 = 0 ; | |
13010 | PyObject * obj1 = 0 ; | |
13011 | PyObject * obj2 = 0 ; | |
13012 | char * kwnames[] = { | |
13013 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
13014 | }; | |
13015 | ||
13016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13018 | if (!SWIG_IsOK(res1)) { | |
13019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13020 | } | |
13021 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13022 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
13023 | if (!SWIG_IsOK(res2)) { | |
13024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
13025 | } | |
13026 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
13027 | if (obj2) { | |
13028 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13029 | if (!SWIG_IsOK(res3)) { | |
13030 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
d55e5bfc | 13031 | } |
554f62e9 RD |
13032 | arg3 = reinterpret_cast< wxRect * >(argp3); |
13033 | } | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
13037 | wxPyEndAllowThreads(__tstate); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
13040 | { | |
13041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13042 | } | |
13043 | return resultobj; | |
13044 | fail: | |
13045 | return NULL; | |
13046 | } | |
13047 | ||
13048 | ||
13049 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13050 | PyObject *resultobj = 0; | |
13051 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13052 | wxFrame *arg2 = (wxFrame *) 0 ; | |
13053 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13054 | bool result; | |
13055 | void *argp1 = 0 ; | |
13056 | int res1 = 0 ; | |
13057 | void *argp2 = 0 ; | |
13058 | int res2 = 0 ; | |
13059 | void *argp3 = 0 ; | |
13060 | int res3 = 0 ; | |
13061 | PyObject * obj0 = 0 ; | |
13062 | PyObject * obj1 = 0 ; | |
13063 | PyObject * obj2 = 0 ; | |
13064 | char * kwnames[] = { | |
13065 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
13066 | }; | |
13067 | ||
13068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13070 | if (!SWIG_IsOK(res1)) { | |
13071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13072 | } | |
13073 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13074 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
13075 | if (!SWIG_IsOK(res2)) { | |
13076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
13077 | } | |
13078 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
13079 | if (obj2) { | |
13080 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13081 | if (!SWIG_IsOK(res3)) { | |
13082 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 13083 | } |
554f62e9 RD |
13084 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13085 | } | |
13086 | { | |
13087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13088 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
13089 | wxPyEndAllowThreads(__tstate); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
13092 | { | |
13093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13094 | } | |
13095 | return resultobj; | |
13096 | fail: | |
13097 | return NULL; | |
13098 | } | |
13099 | ||
13100 | ||
13101 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13102 | PyObject *resultobj = 0; | |
13103 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13104 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13105 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13106 | bool result; | |
13107 | void *argp1 = 0 ; | |
13108 | int res1 = 0 ; | |
13109 | void *argp2 = 0 ; | |
13110 | int res2 = 0 ; | |
13111 | void *argp3 = 0 ; | |
13112 | int res3 = 0 ; | |
13113 | PyObject * obj0 = 0 ; | |
13114 | PyObject * obj1 = 0 ; | |
13115 | PyObject * obj2 = 0 ; | |
13116 | char * kwnames[] = { | |
13117 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
13118 | }; | |
13119 | ||
13120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13122 | if (!SWIG_IsOK(res1)) { | |
13123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13124 | } | |
13125 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13126 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13127 | if (!SWIG_IsOK(res2)) { | |
13128 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13129 | } | |
13130 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13131 | if (obj2) { | |
13132 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13133 | if (!SWIG_IsOK(res3)) { | |
13134 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 13135 | } |
554f62e9 RD |
13136 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13137 | } | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13140 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
13141 | wxPyEndAllowThreads(__tstate); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | } | |
13144 | { | |
13145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13146 | } | |
13147 | return resultobj; | |
13148 | fail: | |
13149 | return NULL; | |
d55e5bfc RD |
13150 | } |
13151 | ||
13152 | ||
554f62e9 RD |
13153 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13154 | PyObject *obj; | |
13155 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13156 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
13157 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13158 | } |
13159 | ||
554f62e9 RD |
13160 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13161 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13162 | } |
13163 | ||
554f62e9 RD |
13164 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13165 | PyObject *resultobj = 0; | |
13166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13167 | int arg2 = (int) wxBORDER_NONE ; | |
13168 | wxPopupWindow *result = 0 ; | |
13169 | void *argp1 = 0 ; | |
13170 | int res1 = 0 ; | |
13171 | int val2 ; | |
13172 | int ecode2 = 0 ; | |
13173 | PyObject * obj0 = 0 ; | |
13174 | PyObject * obj1 = 0 ; | |
13175 | char * kwnames[] = { | |
13176 | (char *) "parent",(char *) "flags", NULL | |
13177 | }; | |
13178 | ||
13179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13181 | if (!SWIG_IsOK(res1)) { | |
13182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13183 | } | |
13184 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13185 | if (obj1) { | |
13186 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13187 | if (!SWIG_IsOK(ecode2)) { | |
13188 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
13189 | } | |
13190 | arg2 = static_cast< int >(val2); | |
13191 | } | |
13192 | { | |
13193 | if (!wxPyCheckForApp()) SWIG_fail; | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
13199 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
13200 | return resultobj; | |
13201 | fail: | |
13202 | return NULL; | |
d55e5bfc RD |
13203 | } |
13204 | ||
13205 | ||
554f62e9 RD |
13206 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13207 | PyObject *resultobj = 0; | |
13208 | wxPopupWindow *result = 0 ; | |
13209 | ||
13210 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
13211 | { | |
13212 | if (!wxPyCheckForApp()) SWIG_fail; | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = (wxPopupWindow *)new wxPopupWindow(); | |
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
13219 | return resultobj; | |
13220 | fail: | |
13221 | return NULL; | |
13222 | } | |
13223 | ||
13224 | ||
13225 | SWIGINTERN PyObject *_wrap_PopupWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13226 | PyObject *resultobj = 0; | |
13227 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13228 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13229 | int arg3 = (int) wxBORDER_NONE ; | |
13230 | bool result; | |
13231 | void *argp1 = 0 ; | |
13232 | int res1 = 0 ; | |
13233 | void *argp2 = 0 ; | |
13234 | int res2 = 0 ; | |
13235 | int val3 ; | |
13236 | int ecode3 = 0 ; | |
13237 | PyObject * obj0 = 0 ; | |
13238 | PyObject * obj1 = 0 ; | |
13239 | PyObject * obj2 = 0 ; | |
13240 | char * kwnames[] = { | |
13241 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
13242 | }; | |
13243 | ||
13244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13246 | if (!SWIG_IsOK(res1)) { | |
13247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Create" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13248 | } | |
13249 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13250 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13251 | if (!SWIG_IsOK(res2)) { | |
13252 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13253 | } | |
13254 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13255 | if (obj2) { | |
13256 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13257 | if (!SWIG_IsOK(ecode3)) { | |
13258 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PopupWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13259 | } | |
13260 | arg3 = static_cast< int >(val3); | |
13261 | } | |
13262 | { | |
13263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13264 | result = (bool)(arg1)->Create(arg2,arg3); | |
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
13268 | { | |
13269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13270 | } | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
13277 | SWIGINTERN PyObject *_wrap_PopupWindow_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13278 | PyObject *resultobj = 0; | |
13279 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13280 | wxPoint *arg2 = 0 ; | |
13281 | wxSize *arg3 = 0 ; | |
13282 | void *argp1 = 0 ; | |
13283 | int res1 = 0 ; | |
13284 | wxPoint temp2 ; | |
13285 | wxSize temp3 ; | |
13286 | PyObject * obj0 = 0 ; | |
13287 | PyObject * obj1 = 0 ; | |
13288 | PyObject * obj2 = 0 ; | |
13289 | char * kwnames[] = { | |
13290 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
13291 | }; | |
13292 | ||
13293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13295 | if (!SWIG_IsOK(res1)) { | |
13296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Position" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13297 | } | |
13298 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13299 | { | |
13300 | arg2 = &temp2; | |
13301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13302 | } | |
13303 | { | |
13304 | arg3 = &temp3; | |
13305 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13306 | } | |
13307 | { | |
13308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13309 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13310 | wxPyEndAllowThreads(__tstate); | |
13311 | if (PyErr_Occurred()) SWIG_fail; | |
13312 | } | |
13313 | resultobj = SWIG_Py_Void(); | |
13314 | return resultobj; | |
13315 | fail: | |
13316 | return NULL; | |
d55e5bfc RD |
13317 | } |
13318 | ||
13319 | ||
554f62e9 RD |
13320 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13321 | PyObject *obj; | |
13322 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13323 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13324 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13325 | } |
13326 | ||
554f62e9 RD |
13327 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13328 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13329 | } |
13330 | ||
554f62e9 RD |
13331 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13332 | PyObject *resultobj = 0; | |
13333 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13334 | int arg2 = (int) wxBORDER_NONE ; | |
13335 | wxPyPopupTransientWindow *result = 0 ; | |
13336 | void *argp1 = 0 ; | |
13337 | int res1 = 0 ; | |
13338 | int val2 ; | |
13339 | int ecode2 = 0 ; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | PyObject * obj1 = 0 ; | |
13342 | char * kwnames[] = { | |
13343 | (char *) "parent",(char *) "style", NULL | |
13344 | }; | |
13345 | ||
13346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13348 | if (!SWIG_IsOK(res1)) { | |
13349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13350 | } | |
13351 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13352 | if (obj1) { | |
13353 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13354 | if (!SWIG_IsOK(ecode2)) { | |
13355 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13356 | } | |
13357 | arg2 = static_cast< int >(val2); | |
13358 | } | |
13359 | { | |
13360 | if (!wxPyCheckForApp()) SWIG_fail; | |
13361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13362 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
d55e5bfc RD |
13370 | } |
13371 | ||
13372 | ||
554f62e9 RD |
13373 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13374 | PyObject *resultobj = 0; | |
13375 | wxPyPopupTransientWindow *result = 0 ; | |
13376 | ||
13377 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13378 | { | |
13379 | if (!wxPyCheckForApp()) SWIG_fail; | |
13380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13381 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13382 | wxPyEndAllowThreads(__tstate); | |
13383 | if (PyErr_Occurred()) SWIG_fail; | |
13384 | } | |
13385 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13386 | return resultobj; | |
13387 | fail: | |
13388 | return NULL; | |
13389 | } | |
13390 | ||
13391 | ||
13392 | SWIGINTERN PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13393 | PyObject *resultobj = 0; | |
13394 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13395 | PyObject *arg2 = (PyObject *) 0 ; | |
13396 | PyObject *arg3 = (PyObject *) 0 ; | |
13397 | void *argp1 = 0 ; | |
13398 | int res1 = 0 ; | |
13399 | PyObject * obj0 = 0 ; | |
13400 | PyObject * obj1 = 0 ; | |
13401 | PyObject * obj2 = 0 ; | |
13402 | char * kwnames[] = { | |
13403 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13404 | }; | |
13405 | ||
13406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13408 | if (!SWIG_IsOK(res1)) { | |
13409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13410 | } | |
13411 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13412 | arg2 = obj1; | |
13413 | arg3 = obj2; | |
13414 | { | |
13415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13416 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13417 | wxPyEndAllowThreads(__tstate); | |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
13419 | } | |
13420 | resultobj = SWIG_Py_Void(); | |
13421 | return resultobj; | |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Popup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13428 | PyObject *resultobj = 0; | |
13429 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13430 | wxWindow *arg2 = (wxWindow *) NULL ; | |
13431 | void *argp1 = 0 ; | |
13432 | int res1 = 0 ; | |
13433 | void *argp2 = 0 ; | |
13434 | int res2 = 0 ; | |
13435 | PyObject * obj0 = 0 ; | |
13436 | PyObject * obj1 = 0 ; | |
13437 | char * kwnames[] = { | |
13438 | (char *) "self",(char *) "focus", NULL | |
13439 | }; | |
13440 | ||
13441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) SWIG_fail; | |
13442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13443 | if (!SWIG_IsOK(res1)) { | |
13444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Popup" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13445 | } | |
13446 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13447 | if (obj1) { | |
13448 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13449 | if (!SWIG_IsOK(res2)) { | |
13450 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupTransientWindow_Popup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13451 | } |
554f62e9 RD |
13452 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
13453 | } | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | (arg1)->Popup(arg2); | |
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | resultobj = SWIG_Py_Void(); | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | return NULL; | |
d55e5bfc RD |
13464 | } |
13465 | ||
13466 | ||
554f62e9 RD |
13467 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13468 | PyObject *resultobj = 0; | |
13469 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13470 | void *argp1 = 0 ; | |
13471 | int res1 = 0 ; | |
13472 | PyObject *swig_obj[1] ; | |
13473 | ||
13474 | if (!args) SWIG_fail; | |
13475 | swig_obj[0] = args; | |
13476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13477 | if (!SWIG_IsOK(res1)) { | |
13478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Dismiss" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13479 | } | |
13480 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13481 | { | |
13482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13483 | (arg1)->Dismiss(); | |
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | resultobj = SWIG_Py_Void(); | |
13488 | return resultobj; | |
13489 | fail: | |
13490 | return NULL; | |
13491 | } | |
13492 | ||
13493 | ||
13494 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13495 | PyObject *obj; | |
13496 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13497 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13498 | return SWIG_Py_Void(); | |
13499 | } | |
13500 | ||
13501 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13502 | return SWIG_Python_InitShadowInstance(args); | |
13503 | } | |
13504 | ||
13505 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13506 | PyObject *resultobj = 0; | |
13507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13508 | wxString *arg2 = 0 ; | |
13509 | int arg3 = (int) 100 ; | |
13510 | wxRect *arg4 = (wxRect *) NULL ; | |
13511 | wxTipWindow *result = 0 ; | |
13512 | void *argp1 = 0 ; | |
13513 | int res1 = 0 ; | |
13514 | bool temp2 = false ; | |
13515 | int val3 ; | |
13516 | int ecode3 = 0 ; | |
13517 | void *argp4 = 0 ; | |
13518 | int res4 = 0 ; | |
13519 | PyObject * obj0 = 0 ; | |
13520 | PyObject * obj1 = 0 ; | |
13521 | PyObject * obj2 = 0 ; | |
13522 | PyObject * obj3 = 0 ; | |
13523 | char * kwnames[] = { | |
13524 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13525 | }; | |
13526 | ||
13527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13529 | if (!SWIG_IsOK(res1)) { | |
13530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13531 | } | |
13532 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13533 | { | |
13534 | arg2 = wxString_in_helper(obj1); | |
13535 | if (arg2 == NULL) SWIG_fail; | |
13536 | temp2 = true; | |
13537 | } | |
13538 | if (obj2) { | |
13539 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13540 | if (!SWIG_IsOK(ecode3)) { | |
13541 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13542 | } | |
13543 | arg3 = static_cast< int >(val3); | |
13544 | } | |
13545 | if (obj3) { | |
13546 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13547 | if (!SWIG_IsOK(res4)) { | |
13548 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
093d3ff1 | 13549 | } |
554f62e9 RD |
13550 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13551 | } | |
13552 | { | |
13553 | if (!wxPyCheckForApp()) SWIG_fail; | |
13554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13555 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13556 | wxPyEndAllowThreads(__tstate); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | } | |
13559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13560 | { | |
13561 | if (temp2) | |
13562 | delete arg2; | |
13563 | } | |
13564 | return resultobj; | |
13565 | fail: | |
13566 | { | |
13567 | if (temp2) | |
13568 | delete arg2; | |
13569 | } | |
13570 | return NULL; | |
b519803b RD |
13571 | } |
13572 | ||
13573 | ||
554f62e9 RD |
13574 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13575 | PyObject *resultobj = 0; | |
13576 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13577 | wxRect *arg2 = 0 ; | |
13578 | void *argp1 = 0 ; | |
13579 | int res1 = 0 ; | |
13580 | wxRect temp2 ; | |
13581 | PyObject * obj0 = 0 ; | |
13582 | PyObject * obj1 = 0 ; | |
13583 | char * kwnames[] = { | |
13584 | (char *) "self",(char *) "rectBound", NULL | |
13585 | }; | |
13586 | ||
13587 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13589 | if (!SWIG_IsOK(res1)) { | |
13590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13591 | } | |
13592 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13593 | { | |
13594 | arg2 = &temp2; | |
13595 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13596 | } | |
13597 | { | |
13598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13599 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
13603 | resultobj = SWIG_Py_Void(); | |
13604 | return resultobj; | |
13605 | fail: | |
13606 | return NULL; | |
b519803b RD |
13607 | } |
13608 | ||
13609 | ||
554f62e9 RD |
13610 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13611 | PyObject *resultobj = 0; | |
13612 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13613 | void *argp1 = 0 ; | |
13614 | int res1 = 0 ; | |
13615 | PyObject *swig_obj[1] ; | |
13616 | ||
13617 | if (!args) SWIG_fail; | |
13618 | swig_obj[0] = args; | |
13619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13620 | if (!SWIG_IsOK(res1)) { | |
13621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13622 | } | |
13623 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13624 | { | |
13625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13626 | (arg1)->Close(); | |
13627 | wxPyEndAllowThreads(__tstate); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | resultobj = SWIG_Py_Void(); | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13638 | PyObject *obj; | |
13639 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13640 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13641 | return SWIG_Py_Void(); | |
13642 | } | |
13643 | ||
13644 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13645 | return SWIG_Python_InitShadowInstance(args); | |
13646 | } | |
13647 | ||
13648 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj = 0; | |
13650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13651 | int arg2 = (int) wxID_ANY ; | |
13652 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13653 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13654 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13655 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13656 | long arg5 = (long) 0 ; | |
13657 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13658 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13659 | wxPyVScrolledWindow *result = 0 ; | |
13660 | void *argp1 = 0 ; | |
13661 | int res1 = 0 ; | |
13662 | int val2 ; | |
13663 | int ecode2 = 0 ; | |
13664 | wxPoint temp3 ; | |
13665 | wxSize temp4 ; | |
13666 | long val5 ; | |
13667 | int ecode5 = 0 ; | |
13668 | bool temp6 = false ; | |
13669 | PyObject * obj0 = 0 ; | |
13670 | PyObject * obj1 = 0 ; | |
13671 | PyObject * obj2 = 0 ; | |
13672 | PyObject * obj3 = 0 ; | |
13673 | PyObject * obj4 = 0 ; | |
13674 | PyObject * obj5 = 0 ; | |
13675 | char * kwnames[] = { | |
13676 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13677 | }; | |
13678 | ||
13679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13681 | if (!SWIG_IsOK(res1)) { | |
13682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13683 | } | |
13684 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13685 | if (obj1) { | |
13686 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13687 | if (!SWIG_IsOK(ecode2)) { | |
13688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13689 | } | |
13690 | arg2 = static_cast< int >(val2); | |
13691 | } | |
13692 | if (obj2) { | |
093d3ff1 | 13693 | { |
554f62e9 RD |
13694 | arg3 = &temp3; |
13695 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 13696 | } |
554f62e9 RD |
13697 | } |
13698 | if (obj3) { | |
d55e5bfc | 13699 | { |
554f62e9 RD |
13700 | arg4 = &temp4; |
13701 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13702 | } |
554f62e9 RD |
13703 | } |
13704 | if (obj4) { | |
13705 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13706 | if (!SWIG_IsOK(ecode5)) { | |
13707 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13708 | } | |
13709 | arg5 = static_cast< long >(val5); | |
13710 | } | |
13711 | if (obj5) { | |
093d3ff1 | 13712 | { |
554f62e9 RD |
13713 | arg6 = wxString_in_helper(obj5); |
13714 | if (arg6 == NULL) SWIG_fail; | |
13715 | temp6 = true; | |
093d3ff1 | 13716 | } |
554f62e9 RD |
13717 | } |
13718 | { | |
13719 | if (!wxPyCheckForApp()) SWIG_fail; | |
13720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13721 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13722 | wxPyEndAllowThreads(__tstate); | |
13723 | if (PyErr_Occurred()) SWIG_fail; | |
13724 | } | |
13725 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13726 | { | |
13727 | if (temp6) | |
13728 | delete arg6; | |
13729 | } | |
13730 | return resultobj; | |
13731 | fail: | |
13732 | { | |
13733 | if (temp6) | |
13734 | delete arg6; | |
13735 | } | |
13736 | return NULL; | |
d55e5bfc RD |
13737 | } |
13738 | ||
13739 | ||
554f62e9 RD |
13740 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13741 | PyObject *resultobj = 0; | |
13742 | wxPyVScrolledWindow *result = 0 ; | |
13743 | ||
13744 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13745 | { | |
13746 | if (!wxPyCheckForApp()) SWIG_fail; | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13749 | wxPyEndAllowThreads(__tstate); | |
13750 | if (PyErr_Occurred()) SWIG_fail; | |
13751 | } | |
13752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13753 | return resultobj; | |
13754 | fail: | |
13755 | return NULL; | |
13756 | } | |
13757 | ||
13758 | ||
13759 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13760 | PyObject *resultobj = 0; | |
13761 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13762 | PyObject *arg2 = (PyObject *) 0 ; | |
13763 | PyObject *arg3 = (PyObject *) 0 ; | |
13764 | void *argp1 = 0 ; | |
13765 | int res1 = 0 ; | |
13766 | PyObject * obj0 = 0 ; | |
13767 | PyObject * obj1 = 0 ; | |
13768 | PyObject * obj2 = 0 ; | |
13769 | char * kwnames[] = { | |
13770 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13771 | }; | |
13772 | ||
13773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13775 | if (!SWIG_IsOK(res1)) { | |
13776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13777 | } | |
13778 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13779 | arg2 = obj1; | |
13780 | arg3 = obj2; | |
13781 | { | |
13782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13783 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13784 | wxPyEndAllowThreads(__tstate); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
13787 | resultobj = SWIG_Py_Void(); | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13795 | PyObject *resultobj = 0; | |
13796 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13797 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13798 | int arg3 = (int) wxID_ANY ; | |
13799 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13800 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13801 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13802 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13803 | long arg6 = (long) 0 ; | |
13804 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13805 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13806 | bool result; | |
13807 | void *argp1 = 0 ; | |
13808 | int res1 = 0 ; | |
13809 | void *argp2 = 0 ; | |
13810 | int res2 = 0 ; | |
13811 | int val3 ; | |
13812 | int ecode3 = 0 ; | |
13813 | wxPoint temp4 ; | |
13814 | wxSize temp5 ; | |
13815 | long val6 ; | |
13816 | int ecode6 = 0 ; | |
13817 | bool temp7 = false ; | |
13818 | PyObject * obj0 = 0 ; | |
13819 | PyObject * obj1 = 0 ; | |
13820 | PyObject * obj2 = 0 ; | |
13821 | PyObject * obj3 = 0 ; | |
13822 | PyObject * obj4 = 0 ; | |
13823 | PyObject * obj5 = 0 ; | |
13824 | PyObject * obj6 = 0 ; | |
13825 | char * kwnames[] = { | |
13826 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13827 | }; | |
13828 | ||
13829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13831 | if (!SWIG_IsOK(res1)) { | |
13832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13833 | } | |
13834 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13835 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13836 | if (!SWIG_IsOK(res2)) { | |
13837 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13838 | } | |
13839 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13840 | if (obj2) { | |
13841 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13842 | if (!SWIG_IsOK(ecode3)) { | |
13843 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13844 | } | |
13845 | arg3 = static_cast< int >(val3); | |
13846 | } | |
13847 | if (obj3) { | |
d55e5bfc | 13848 | { |
554f62e9 RD |
13849 | arg4 = &temp4; |
13850 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13851 | } |
554f62e9 RD |
13852 | } |
13853 | if (obj4) { | |
d55e5bfc | 13854 | { |
554f62e9 RD |
13855 | arg5 = &temp5; |
13856 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 13857 | } |
554f62e9 RD |
13858 | } |
13859 | if (obj5) { | |
13860 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13861 | if (!SWIG_IsOK(ecode6)) { | |
13862 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13863 | } | |
13864 | arg6 = static_cast< long >(val6); | |
13865 | } | |
13866 | if (obj6) { | |
093d3ff1 | 13867 | { |
554f62e9 RD |
13868 | arg7 = wxString_in_helper(obj6); |
13869 | if (arg7 == NULL) SWIG_fail; | |
13870 | temp7 = true; | |
093d3ff1 | 13871 | } |
554f62e9 RD |
13872 | } |
13873 | { | |
13874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13875 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | { | |
13880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13881 | } | |
13882 | { | |
13883 | if (temp7) | |
13884 | delete arg7; | |
13885 | } | |
13886 | return resultobj; | |
13887 | fail: | |
13888 | { | |
13889 | if (temp7) | |
13890 | delete arg7; | |
13891 | } | |
13892 | return NULL; | |
13893 | } | |
13894 | ||
13895 | ||
13896 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13897 | PyObject *resultobj = 0; | |
13898 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13899 | size_t arg2 ; | |
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 *) "count", NULL | |
13908 | }; | |
13909 | ||
13910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",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_SetLineCount" "', 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_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13919 | } | |
13920 | arg2 = static_cast< size_t >(val2); | |
13921 | { | |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13923 | (arg1)->SetLineCount(arg2); | |
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
13927 | resultobj = SWIG_Py_Void(); | |
13928 | return resultobj; | |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj = 0; | |
13936 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13937 | size_t arg2 ; | |
13938 | bool result; | |
13939 | void *argp1 = 0 ; | |
13940 | int res1 = 0 ; | |
13941 | size_t val2 ; | |
13942 | int ecode2 = 0 ; | |
13943 | PyObject * obj0 = 0 ; | |
13944 | PyObject * obj1 = 0 ; | |
13945 | char * kwnames[] = { | |
13946 | (char *) "self",(char *) "line", NULL | |
13947 | }; | |
13948 | ||
13949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13951 | if (!SWIG_IsOK(res1)) { | |
13952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13953 | } | |
13954 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13955 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13956 | if (!SWIG_IsOK(ecode2)) { | |
13957 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13958 | } | |
13959 | arg2 = static_cast< size_t >(val2); | |
13960 | { | |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13963 | wxPyEndAllowThreads(__tstate); | |
13964 | if (PyErr_Occurred()) SWIG_fail; | |
13965 | } | |
13966 | { | |
13967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13968 | } | |
13969 | return resultobj; | |
13970 | fail: | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13976 | PyObject *resultobj = 0; | |
13977 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13978 | size_t arg2 ; | |
13979 | void *argp1 = 0 ; | |
13980 | int res1 = 0 ; | |
13981 | size_t val2 ; | |
13982 | int ecode2 = 0 ; | |
13983 | PyObject * obj0 = 0 ; | |
13984 | PyObject * obj1 = 0 ; | |
13985 | char * kwnames[] = { | |
13986 | (char *) "self",(char *) "line", NULL | |
13987 | }; | |
13988 | ||
13989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13991 | if (!SWIG_IsOK(res1)) { | |
13992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13993 | } | |
13994 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13995 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13996 | if (!SWIG_IsOK(ecode2)) { | |
13997 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13998 | } | |
13999 | arg2 = static_cast< size_t >(val2); | |
14000 | { | |
14001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14002 | (arg1)->RefreshLine(arg2); | |
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | resultobj = SWIG_Py_Void(); | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj = 0; | |
14015 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14016 | size_t arg2 ; | |
14017 | size_t arg3 ; | |
14018 | void *argp1 = 0 ; | |
14019 | int res1 = 0 ; | |
14020 | size_t val2 ; | |
14021 | int ecode2 = 0 ; | |
14022 | size_t val3 ; | |
14023 | int ecode3 = 0 ; | |
14024 | PyObject * obj0 = 0 ; | |
14025 | PyObject * obj1 = 0 ; | |
14026 | PyObject * obj2 = 0 ; | |
14027 | char * kwnames[] = { | |
f460c29d | 14028 | (char *) "self",(char *) "from",(char *) "to", NULL |
554f62e9 RD |
14029 | }; |
14030 | ||
14031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14033 | if (!SWIG_IsOK(res1)) { | |
14034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14035 | } | |
14036 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14037 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14038 | if (!SWIG_IsOK(ecode2)) { | |
14039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
14040 | } | |
14041 | arg2 = static_cast< size_t >(val2); | |
14042 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14043 | if (!SWIG_IsOK(ecode3)) { | |
14044 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
14045 | } | |
14046 | arg3 = static_cast< size_t >(val3); | |
14047 | { | |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14049 | (arg1)->RefreshLines(arg2,arg3); | |
14050 | wxPyEndAllowThreads(__tstate); | |
14051 | if (PyErr_Occurred()) SWIG_fail; | |
14052 | } | |
14053 | resultobj = SWIG_Py_Void(); | |
14054 | return resultobj; | |
14055 | fail: | |
14056 | return NULL; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14061 | PyObject *resultobj = 0; | |
14062 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14063 | int arg2 ; | |
14064 | int arg3 ; | |
14065 | int result; | |
14066 | void *argp1 = 0 ; | |
14067 | int res1 = 0 ; | |
14068 | int val2 ; | |
14069 | int ecode2 = 0 ; | |
14070 | int val3 ; | |
14071 | int ecode3 = 0 ; | |
14072 | PyObject * obj0 = 0 ; | |
14073 | PyObject * obj1 = 0 ; | |
14074 | PyObject * obj2 = 0 ; | |
14075 | char * kwnames[] = { | |
14076 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14077 | }; | |
14078 | ||
14079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14081 | if (!SWIG_IsOK(res1)) { | |
14082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14083 | } | |
14084 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14085 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14086 | if (!SWIG_IsOK(ecode2)) { | |
14087 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
14088 | } | |
14089 | arg2 = static_cast< int >(val2); | |
14090 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14091 | if (!SWIG_IsOK(ecode3)) { | |
14092 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
14093 | } | |
14094 | arg3 = static_cast< int >(val3); | |
14095 | { | |
14096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14097 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
14101 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
14108 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14109 | PyObject *resultobj = 0; | |
14110 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14111 | wxPoint *arg2 = 0 ; | |
14112 | int result; | |
14113 | void *argp1 = 0 ; | |
14114 | int res1 = 0 ; | |
14115 | wxPoint temp2 ; | |
14116 | PyObject * obj0 = 0 ; | |
14117 | PyObject * obj1 = 0 ; | |
14118 | char * kwnames[] = { | |
14119 | (char *) "self",(char *) "pt", NULL | |
14120 | }; | |
14121 | ||
14122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
14123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14124 | if (!SWIG_IsOK(res1)) { | |
14125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14126 | } | |
14127 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14128 | { | |
14129 | arg2 = &temp2; | |
14130 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14131 | } | |
14132 | { | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14139 | return resultobj; | |
14140 | fail: | |
14141 | return NULL; | |
f20a2e1f RD |
14142 | } |
14143 | ||
14144 | ||
554f62e9 RD |
14145 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14146 | PyObject *resultobj = 0; | |
14147 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14148 | void *argp1 = 0 ; | |
14149 | int res1 = 0 ; | |
14150 | PyObject *swig_obj[1] ; | |
14151 | ||
14152 | if (!args) SWIG_fail; | |
14153 | swig_obj[0] = args; | |
14154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14155 | if (!SWIG_IsOK(res1)) { | |
14156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14157 | } | |
14158 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14159 | { | |
14160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14161 | (arg1)->RefreshAll(); | |
14162 | wxPyEndAllowThreads(__tstate); | |
14163 | if (PyErr_Occurred()) SWIG_fail; | |
14164 | } | |
14165 | resultobj = SWIG_Py_Void(); | |
14166 | return resultobj; | |
14167 | fail: | |
14168 | return NULL; | |
d55e5bfc RD |
14169 | } |
14170 | ||
14171 | ||
554f62e9 RD |
14172 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14173 | PyObject *resultobj = 0; | |
14174 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14175 | size_t result; | |
14176 | void *argp1 = 0 ; | |
14177 | int res1 = 0 ; | |
14178 | PyObject *swig_obj[1] ; | |
14179 | ||
14180 | if (!args) SWIG_fail; | |
14181 | swig_obj[0] = args; | |
14182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14183 | if (!SWIG_IsOK(res1)) { | |
14184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14185 | } | |
14186 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14187 | { | |
14188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14189 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
14193 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14194 | return resultobj; | |
14195 | fail: | |
14196 | return NULL; | |
d55e5bfc RD |
14197 | } |
14198 | ||
14199 | ||
554f62e9 RD |
14200 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14201 | PyObject *resultobj = 0; | |
14202 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14203 | size_t result; | |
14204 | void *argp1 = 0 ; | |
14205 | int res1 = 0 ; | |
14206 | PyObject *swig_obj[1] ; | |
14207 | ||
14208 | if (!args) SWIG_fail; | |
14209 | swig_obj[0] = args; | |
14210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14211 | if (!SWIG_IsOK(res1)) { | |
14212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14213 | } | |
14214 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14215 | { | |
14216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14217 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
14221 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14222 | return resultobj; | |
14223 | fail: | |
14224 | return NULL; | |
d55e5bfc RD |
14225 | } |
14226 | ||
14227 | ||
554f62e9 RD |
14228 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14229 | PyObject *resultobj = 0; | |
14230 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14231 | size_t result; | |
14232 | void *argp1 = 0 ; | |
14233 | int res1 = 0 ; | |
14234 | PyObject *swig_obj[1] ; | |
14235 | ||
14236 | if (!args) SWIG_fail; | |
14237 | swig_obj[0] = args; | |
14238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14239 | if (!SWIG_IsOK(res1)) { | |
14240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14241 | } | |
14242 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14243 | { | |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
14246 | wxPyEndAllowThreads(__tstate); | |
14247 | if (PyErr_Occurred()) SWIG_fail; | |
14248 | } | |
14249 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14250 | return resultobj; | |
14251 | fail: | |
14252 | return NULL; | |
14253 | } | |
14254 | ||
14255 | ||
14256 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14257 | PyObject *resultobj = 0; | |
14258 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14259 | size_t arg2 ; | |
14260 | bool result; | |
14261 | void *argp1 = 0 ; | |
14262 | int res1 = 0 ; | |
14263 | size_t val2 ; | |
14264 | int ecode2 = 0 ; | |
14265 | PyObject * obj0 = 0 ; | |
14266 | PyObject * obj1 = 0 ; | |
14267 | char * kwnames[] = { | |
14268 | (char *) "self",(char *) "line", NULL | |
14269 | }; | |
14270 | ||
14271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
14272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14273 | if (!SWIG_IsOK(res1)) { | |
14274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14275 | } | |
14276 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14277 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14278 | if (!SWIG_IsOK(ecode2)) { | |
14279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
14280 | } | |
14281 | arg2 = static_cast< size_t >(val2); | |
14282 | { | |
14283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14284 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | { | |
14289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14290 | } | |
14291 | return resultobj; | |
14292 | fail: | |
14293 | return NULL; | |
d55e5bfc RD |
14294 | } |
14295 | ||
14296 | ||
554f62e9 RD |
14297 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14298 | PyObject *resultobj = 0; | |
14299 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14300 | size_t result; | |
14301 | void *argp1 = 0 ; | |
14302 | int res1 = 0 ; | |
14303 | PyObject *swig_obj[1] ; | |
14304 | ||
14305 | if (!args) SWIG_fail; | |
14306 | swig_obj[0] = args; | |
14307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14308 | if (!SWIG_IsOK(res1)) { | |
14309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14310 | } | |
14311 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14312 | { | |
14313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14314 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
d55e5bfc RD |
14322 | } |
14323 | ||
14324 | ||
554f62e9 RD |
14325 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14326 | PyObject *resultobj = 0; | |
14327 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14328 | size_t result; | |
14329 | void *argp1 = 0 ; | |
14330 | int res1 = 0 ; | |
14331 | PyObject *swig_obj[1] ; | |
14332 | ||
14333 | if (!args) SWIG_fail; | |
14334 | swig_obj[0] = args; | |
14335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14336 | if (!SWIG_IsOK(res1)) { | |
14337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14338 | } | |
14339 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14340 | { | |
14341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14342 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14343 | wxPyEndAllowThreads(__tstate); | |
14344 | if (PyErr_Occurred()) SWIG_fail; | |
14345 | } | |
14346 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj = 0; | |
14355 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14356 | size_t arg2 ; | |
14357 | bool arg3 = (bool) false ; | |
14358 | size_t result; | |
14359 | void *argp1 = 0 ; | |
14360 | int res1 = 0 ; | |
14361 | size_t val2 ; | |
14362 | int ecode2 = 0 ; | |
14363 | bool val3 ; | |
14364 | int ecode3 = 0 ; | |
14365 | PyObject * obj0 = 0 ; | |
14366 | PyObject * obj1 = 0 ; | |
14367 | PyObject * obj2 = 0 ; | |
14368 | char * kwnames[] = { | |
14369 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14370 | }; | |
14371 | ||
14372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14374 | if (!SWIG_IsOK(res1)) { | |
14375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14376 | } | |
14377 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14378 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14379 | if (!SWIG_IsOK(ecode2)) { | |
14380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14381 | } | |
14382 | arg2 = static_cast< size_t >(val2); | |
14383 | if (obj2) { | |
14384 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14385 | if (!SWIG_IsOK(ecode3)) { | |
14386 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14387 | } | |
14388 | arg3 = static_cast< bool >(val3); | |
14389 | } | |
14390 | { | |
14391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14392 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14397 | return resultobj; | |
14398 | fail: | |
14399 | return NULL; | |
14400 | } | |
14401 | ||
14402 | ||
14403 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14404 | PyObject *resultobj = 0; | |
14405 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14406 | size_t arg2 ; | |
14407 | size_t arg3 ; | |
14408 | int result; | |
14409 | void *argp1 = 0 ; | |
14410 | int res1 = 0 ; | |
14411 | size_t val2 ; | |
14412 | int ecode2 = 0 ; | |
14413 | size_t val3 ; | |
14414 | int ecode3 = 0 ; | |
14415 | PyObject * obj0 = 0 ; | |
14416 | PyObject * obj1 = 0 ; | |
14417 | PyObject * obj2 = 0 ; | |
14418 | char * kwnames[] = { | |
14419 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14420 | }; | |
14421 | ||
14422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14424 | if (!SWIG_IsOK(res1)) { | |
14425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14426 | } | |
14427 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14428 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14429 | if (!SWIG_IsOK(ecode2)) { | |
14430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14431 | } | |
14432 | arg2 = static_cast< size_t >(val2); | |
14433 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14434 | if (!SWIG_IsOK(ecode3)) { | |
14435 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14436 | } | |
14437 | arg3 = static_cast< size_t >(val3); | |
14438 | { | |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14445 | return resultobj; | |
14446 | fail: | |
14447 | return NULL; | |
d55e5bfc RD |
14448 | } |
14449 | ||
14450 | ||
554f62e9 RD |
14451 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14452 | PyObject *obj; | |
14453 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14454 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14455 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14456 | } |
14457 | ||
554f62e9 RD |
14458 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14459 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14460 | } |
14461 | ||
554f62e9 RD |
14462 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14463 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14464 | return 1; | |
d55e5bfc RD |
14465 | } |
14466 | ||
14467 | ||
554f62e9 RD |
14468 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14469 | PyObject *pyobj = 0; | |
14470 | ||
14471 | { | |
d55e5bfc | 14472 | #if wxUSE_UNICODE |
554f62e9 | 14473 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); |
d55e5bfc | 14474 | #else |
554f62e9 | 14475 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); |
d55e5bfc | 14476 | #endif |
554f62e9 RD |
14477 | } |
14478 | return pyobj; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj = 0; | |
14484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14485 | int arg2 = (int) wxID_ANY ; | |
14486 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14487 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14488 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14489 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14490 | long arg5 = (long) 0 ; | |
14491 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14492 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14493 | wxPyVListBox *result = 0 ; | |
14494 | void *argp1 = 0 ; | |
14495 | int res1 = 0 ; | |
14496 | int val2 ; | |
14497 | int ecode2 = 0 ; | |
14498 | wxPoint temp3 ; | |
14499 | wxSize temp4 ; | |
14500 | long val5 ; | |
14501 | int ecode5 = 0 ; | |
14502 | bool temp6 = false ; | |
14503 | PyObject * obj0 = 0 ; | |
14504 | PyObject * obj1 = 0 ; | |
14505 | PyObject * obj2 = 0 ; | |
14506 | PyObject * obj3 = 0 ; | |
14507 | PyObject * obj4 = 0 ; | |
14508 | PyObject * obj5 = 0 ; | |
14509 | char * kwnames[] = { | |
14510 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14511 | }; | |
14512 | ||
14513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14515 | if (!SWIG_IsOK(res1)) { | |
14516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14517 | } | |
14518 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14519 | if (obj1) { | |
14520 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14521 | if (!SWIG_IsOK(ecode2)) { | |
14522 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14523 | } | |
14524 | arg2 = static_cast< int >(val2); | |
14525 | } | |
14526 | if (obj2) { | |
d55e5bfc | 14527 | { |
554f62e9 RD |
14528 | arg3 = &temp3; |
14529 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14530 | } |
554f62e9 RD |
14531 | } |
14532 | if (obj3) { | |
d55e5bfc | 14533 | { |
554f62e9 RD |
14534 | arg4 = &temp4; |
14535 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14536 | } |
554f62e9 RD |
14537 | } |
14538 | if (obj4) { | |
14539 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14540 | if (!SWIG_IsOK(ecode5)) { | |
14541 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14542 | } | |
14543 | arg5 = static_cast< long >(val5); | |
14544 | } | |
14545 | if (obj5) { | |
d55e5bfc | 14546 | { |
554f62e9 RD |
14547 | arg6 = wxString_in_helper(obj5); |
14548 | if (arg6 == NULL) SWIG_fail; | |
14549 | temp6 = true; | |
14550 | } | |
14551 | } | |
14552 | { | |
14553 | if (!wxPyCheckForApp()) SWIG_fail; | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14560 | { | |
14561 | if (temp6) | |
14562 | delete arg6; | |
14563 | } | |
14564 | return resultobj; | |
14565 | fail: | |
14566 | { | |
14567 | if (temp6) | |
14568 | delete arg6; | |
14569 | } | |
14570 | return NULL; | |
d55e5bfc RD |
14571 | } |
14572 | ||
14573 | ||
554f62e9 RD |
14574 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14575 | PyObject *resultobj = 0; | |
14576 | wxPyVListBox *result = 0 ; | |
14577 | ||
14578 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14579 | { | |
14580 | if (!wxPyCheckForApp()) SWIG_fail; | |
14581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14582 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14583 | wxPyEndAllowThreads(__tstate); | |
14584 | if (PyErr_Occurred()) SWIG_fail; | |
14585 | } | |
14586 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14587 | return resultobj; | |
14588 | fail: | |
14589 | return NULL; | |
14590 | } | |
14591 | ||
14592 | ||
14593 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14594 | PyObject *resultobj = 0; | |
14595 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14596 | PyObject *arg2 = (PyObject *) 0 ; | |
14597 | PyObject *arg3 = (PyObject *) 0 ; | |
14598 | void *argp1 = 0 ; | |
14599 | int res1 = 0 ; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | PyObject * obj1 = 0 ; | |
14602 | PyObject * obj2 = 0 ; | |
14603 | char * kwnames[] = { | |
14604 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14605 | }; | |
14606 | ||
14607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14609 | if (!SWIG_IsOK(res1)) { | |
14610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14611 | } | |
14612 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14613 | arg2 = obj1; | |
14614 | arg3 = obj2; | |
14615 | { | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
14621 | resultobj = SWIG_Py_Void(); | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
14628 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj = 0; | |
14630 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14631 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14632 | int arg3 = (int) wxID_ANY ; | |
14633 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14634 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14635 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14636 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14637 | long arg6 = (long) 0 ; | |
14638 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14639 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14640 | bool result; | |
14641 | void *argp1 = 0 ; | |
14642 | int res1 = 0 ; | |
14643 | void *argp2 = 0 ; | |
14644 | int res2 = 0 ; | |
14645 | int val3 ; | |
14646 | int ecode3 = 0 ; | |
14647 | wxPoint temp4 ; | |
14648 | wxSize temp5 ; | |
14649 | long val6 ; | |
14650 | int ecode6 = 0 ; | |
14651 | bool temp7 = false ; | |
14652 | PyObject * obj0 = 0 ; | |
14653 | PyObject * obj1 = 0 ; | |
14654 | PyObject * obj2 = 0 ; | |
14655 | PyObject * obj3 = 0 ; | |
14656 | PyObject * obj4 = 0 ; | |
14657 | PyObject * obj5 = 0 ; | |
14658 | PyObject * obj6 = 0 ; | |
14659 | char * kwnames[] = { | |
14660 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14661 | }; | |
14662 | ||
14663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14665 | if (!SWIG_IsOK(res1)) { | |
14666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14667 | } | |
14668 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14669 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14670 | if (!SWIG_IsOK(res2)) { | |
14671 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14672 | } | |
14673 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14674 | if (obj2) { | |
14675 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14676 | if (!SWIG_IsOK(ecode3)) { | |
14677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14678 | } | |
14679 | arg3 = static_cast< int >(val3); | |
14680 | } | |
14681 | if (obj3) { | |
d55e5bfc | 14682 | { |
554f62e9 RD |
14683 | arg4 = &temp4; |
14684 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14685 | } |
554f62e9 RD |
14686 | } |
14687 | if (obj4) { | |
d55e5bfc | 14688 | { |
554f62e9 RD |
14689 | arg5 = &temp5; |
14690 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14691 | } |
554f62e9 RD |
14692 | } |
14693 | if (obj5) { | |
14694 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14695 | if (!SWIG_IsOK(ecode6)) { | |
14696 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14697 | } | |
14698 | arg6 = static_cast< long >(val6); | |
14699 | } | |
14700 | if (obj6) { | |
d55e5bfc | 14701 | { |
554f62e9 RD |
14702 | arg7 = wxString_in_helper(obj6); |
14703 | if (arg7 == NULL) SWIG_fail; | |
14704 | temp7 = true; | |
d55e5bfc | 14705 | } |
554f62e9 RD |
14706 | } |
14707 | { | |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14709 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14710 | wxPyEndAllowThreads(__tstate); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
14713 | { | |
14714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14715 | } | |
14716 | { | |
14717 | if (temp7) | |
14718 | delete arg7; | |
14719 | } | |
14720 | return resultobj; | |
14721 | fail: | |
14722 | { | |
14723 | if (temp7) | |
14724 | delete arg7; | |
14725 | } | |
14726 | return NULL; | |
d55e5bfc RD |
14727 | } |
14728 | ||
14729 | ||
554f62e9 RD |
14730 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14731 | PyObject *resultobj = 0; | |
14732 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14733 | size_t result; | |
14734 | void *argp1 = 0 ; | |
14735 | int res1 = 0 ; | |
14736 | PyObject *swig_obj[1] ; | |
14737 | ||
14738 | if (!args) SWIG_fail; | |
14739 | swig_obj[0] = args; | |
14740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14741 | if (!SWIG_IsOK(res1)) { | |
14742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14743 | } | |
14744 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14745 | { | |
14746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14747 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14748 | wxPyEndAllowThreads(__tstate); | |
14749 | if (PyErr_Occurred()) SWIG_fail; | |
14750 | } | |
14751 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14752 | return resultobj; | |
14753 | fail: | |
14754 | return NULL; | |
d55e5bfc RD |
14755 | } |
14756 | ||
14757 | ||
554f62e9 RD |
14758 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14759 | PyObject *resultobj = 0; | |
14760 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14761 | bool result; | |
14762 | void *argp1 = 0 ; | |
14763 | int res1 = 0 ; | |
14764 | PyObject *swig_obj[1] ; | |
14765 | ||
14766 | if (!args) SWIG_fail; | |
14767 | swig_obj[0] = args; | |
14768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14769 | if (!SWIG_IsOK(res1)) { | |
14770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14771 | } | |
14772 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14773 | { | |
14774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14775 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | { | |
14780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14781 | } | |
14782 | return resultobj; | |
14783 | fail: | |
14784 | return NULL; | |
d55e5bfc RD |
14785 | } |
14786 | ||
14787 | ||
554f62e9 RD |
14788 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14789 | PyObject *resultobj = 0; | |
14790 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14791 | int result; | |
14792 | void *argp1 = 0 ; | |
14793 | int res1 = 0 ; | |
14794 | PyObject *swig_obj[1] ; | |
14795 | ||
14796 | if (!args) SWIG_fail; | |
14797 | swig_obj[0] = args; | |
14798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14799 | if (!SWIG_IsOK(res1)) { | |
14800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14801 | } | |
14802 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj = 0; | |
14818 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14819 | size_t arg2 ; | |
14820 | bool result; | |
14821 | void *argp1 = 0 ; | |
14822 | int res1 = 0 ; | |
14823 | size_t val2 ; | |
14824 | int ecode2 = 0 ; | |
14825 | PyObject * obj0 = 0 ; | |
14826 | PyObject * obj1 = 0 ; | |
14827 | char * kwnames[] = { | |
14828 | (char *) "self",(char *) "item", NULL | |
14829 | }; | |
14830 | ||
14831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14833 | if (!SWIG_IsOK(res1)) { | |
14834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14835 | } | |
14836 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14837 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14838 | if (!SWIG_IsOK(ecode2)) { | |
14839 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14840 | } | |
14841 | arg2 = static_cast< size_t >(val2); | |
14842 | { | |
14843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14844 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14845 | wxPyEndAllowThreads(__tstate); | |
14846 | if (PyErr_Occurred()) SWIG_fail; | |
14847 | } | |
14848 | { | |
14849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14850 | } | |
14851 | return resultobj; | |
14852 | fail: | |
14853 | return NULL; | |
14854 | } | |
14855 | ||
14856 | ||
14857 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14858 | PyObject *resultobj = 0; | |
14859 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14860 | size_t arg2 ; | |
14861 | bool result; | |
14862 | void *argp1 = 0 ; | |
14863 | int res1 = 0 ; | |
14864 | size_t val2 ; | |
14865 | int ecode2 = 0 ; | |
14866 | PyObject * obj0 = 0 ; | |
14867 | PyObject * obj1 = 0 ; | |
14868 | char * kwnames[] = { | |
14869 | (char *) "self",(char *) "item", NULL | |
14870 | }; | |
14871 | ||
14872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14874 | if (!SWIG_IsOK(res1)) { | |
14875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14876 | } | |
14877 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14878 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14879 | if (!SWIG_IsOK(ecode2)) { | |
14880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14881 | } | |
14882 | arg2 = static_cast< size_t >(val2); | |
14883 | { | |
14884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14885 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | { | |
14890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14891 | } | |
14892 | return resultobj; | |
14893 | fail: | |
14894 | return NULL; | |
d55e5bfc RD |
14895 | } |
14896 | ||
14897 | ||
554f62e9 RD |
14898 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14899 | PyObject *resultobj = 0; | |
14900 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14901 | size_t result; | |
14902 | void *argp1 = 0 ; | |
14903 | int res1 = 0 ; | |
14904 | PyObject *swig_obj[1] ; | |
14905 | ||
14906 | if (!args) SWIG_fail; | |
14907 | swig_obj[0] = args; | |
14908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14909 | if (!SWIG_IsOK(res1)) { | |
14910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14911 | } | |
14912 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14913 | { | |
14914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14915 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
14919 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14920 | return resultobj; | |
14921 | fail: | |
14922 | return NULL; | |
d55e5bfc RD |
14923 | } |
14924 | ||
14925 | ||
554f62e9 RD |
14926 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14927 | PyObject *resultobj = 0; | |
14928 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14929 | PyObject *result = 0 ; | |
14930 | void *argp1 = 0 ; | |
14931 | int res1 = 0 ; | |
14932 | PyObject *swig_obj[1] ; | |
14933 | ||
14934 | if (!args) SWIG_fail; | |
14935 | swig_obj[0] = args; | |
14936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14937 | if (!SWIG_IsOK(res1)) { | |
14938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14939 | } | |
14940 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14943 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14944 | wxPyEndAllowThreads(__tstate); | |
14945 | if (PyErr_Occurred()) SWIG_fail; | |
14946 | } | |
14947 | resultobj = result; | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj = 0; | |
14956 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14957 | unsigned long arg2 ; | |
14958 | PyObject *result = 0 ; | |
14959 | void *argp1 = 0 ; | |
14960 | int res1 = 0 ; | |
14961 | unsigned long val2 ; | |
14962 | int ecode2 = 0 ; | |
14963 | PyObject * obj0 = 0 ; | |
14964 | PyObject * obj1 = 0 ; | |
14965 | char * kwnames[] = { | |
14966 | (char *) "self",(char *) "cookie", NULL | |
14967 | }; | |
14968 | ||
14969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14971 | if (!SWIG_IsOK(res1)) { | |
14972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14973 | } | |
14974 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14975 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14976 | if (!SWIG_IsOK(ecode2)) { | |
14977 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14978 | } | |
14979 | arg2 = static_cast< unsigned long >(val2); | |
14980 | { | |
14981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14982 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14983 | wxPyEndAllowThreads(__tstate); | |
14984 | if (PyErr_Occurred()) SWIG_fail; | |
14985 | } | |
14986 | resultobj = result; | |
14987 | return resultobj; | |
14988 | fail: | |
14989 | return NULL; | |
d55e5bfc RD |
14990 | } |
14991 | ||
14992 | ||
554f62e9 RD |
14993 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14994 | PyObject *resultobj = 0; | |
14995 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14996 | wxPoint result; | |
14997 | void *argp1 = 0 ; | |
14998 | int res1 = 0 ; | |
14999 | PyObject *swig_obj[1] ; | |
15000 | ||
15001 | if (!args) SWIG_fail; | |
15002 | swig_obj[0] = args; | |
15003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15004 | if (!SWIG_IsOK(res1)) { | |
15005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15006 | } | |
15007 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
15015 | return resultobj; | |
15016 | fail: | |
15017 | return NULL; | |
d55e5bfc RD |
15018 | } |
15019 | ||
15020 | ||
554f62e9 RD |
15021 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15022 | PyObject *resultobj = 0; | |
15023 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15024 | wxColour *result = 0 ; | |
15025 | void *argp1 = 0 ; | |
15026 | int res1 = 0 ; | |
15027 | PyObject *swig_obj[1] ; | |
15028 | ||
15029 | if (!args) SWIG_fail; | |
15030 | swig_obj[0] = args; | |
15031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15032 | if (!SWIG_IsOK(res1)) { | |
15033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15034 | } | |
15035 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15036 | { | |
15037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15038 | { |
554f62e9 RD |
15039 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
15040 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 15041 | } |
554f62e9 RD |
15042 | wxPyEndAllowThreads(__tstate); |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
15045 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
15046 | return resultobj; | |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
15052 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15053 | PyObject *resultobj = 0; | |
15054 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15055 | size_t arg2 ; | |
15056 | void *argp1 = 0 ; | |
15057 | int res1 = 0 ; | |
15058 | size_t val2 ; | |
15059 | int ecode2 = 0 ; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | PyObject * obj1 = 0 ; | |
15062 | char * kwnames[] = { | |
15063 | (char *) "self",(char *) "count", NULL | |
15064 | }; | |
15065 | ||
15066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15068 | if (!SWIG_IsOK(res1)) { | |
15069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15070 | } | |
15071 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15072 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15073 | if (!SWIG_IsOK(ecode2)) { | |
15074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15075 | } | |
15076 | arg2 = static_cast< size_t >(val2); | |
15077 | { | |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15079 | (arg1)->SetItemCount(arg2); | |
15080 | wxPyEndAllowThreads(__tstate); | |
15081 | if (PyErr_Occurred()) SWIG_fail; | |
15082 | } | |
15083 | resultobj = SWIG_Py_Void(); | |
15084 | return resultobj; | |
15085 | fail: | |
15086 | return NULL; | |
d55e5bfc RD |
15087 | } |
15088 | ||
15089 | ||
554f62e9 RD |
15090 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15091 | PyObject *resultobj = 0; | |
15092 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15093 | void *argp1 = 0 ; | |
15094 | int res1 = 0 ; | |
15095 | PyObject *swig_obj[1] ; | |
15096 | ||
15097 | if (!args) SWIG_fail; | |
15098 | swig_obj[0] = args; | |
15099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15100 | if (!SWIG_IsOK(res1)) { | |
15101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15102 | } | |
15103 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | (arg1)->Clear(); | |
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | resultobj = SWIG_Py_Void(); | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj = 0; | |
15119 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15120 | int arg2 ; | |
15121 | void *argp1 = 0 ; | |
15122 | int res1 = 0 ; | |
15123 | int val2 ; | |
15124 | int ecode2 = 0 ; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | PyObject * obj1 = 0 ; | |
15127 | char * kwnames[] = { | |
15128 | (char *) "self",(char *) "selection", NULL | |
15129 | }; | |
15130 | ||
15131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
15132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15133 | if (!SWIG_IsOK(res1)) { | |
15134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15135 | } | |
15136 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15138 | if (!SWIG_IsOK(ecode2)) { | |
15139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
15140 | } | |
15141 | arg2 = static_cast< int >(val2); | |
15142 | { | |
15143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15144 | (arg1)->SetSelection(arg2); | |
15145 | wxPyEndAllowThreads(__tstate); | |
15146 | if (PyErr_Occurred()) SWIG_fail; | |
15147 | } | |
15148 | resultobj = SWIG_Py_Void(); | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj = 0; | |
15157 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15158 | size_t arg2 ; | |
15159 | bool arg3 = (bool) true ; | |
15160 | bool result; | |
15161 | void *argp1 = 0 ; | |
15162 | int res1 = 0 ; | |
15163 | size_t val2 ; | |
15164 | int ecode2 = 0 ; | |
15165 | bool val3 ; | |
15166 | int ecode3 = 0 ; | |
15167 | PyObject * obj0 = 0 ; | |
15168 | PyObject * obj1 = 0 ; | |
15169 | PyObject * obj2 = 0 ; | |
15170 | char * kwnames[] = { | |
15171 | (char *) "self",(char *) "item",(char *) "select", NULL | |
15172 | }; | |
15173 | ||
15174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15176 | if (!SWIG_IsOK(res1)) { | |
15177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15178 | } | |
15179 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15180 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15181 | if (!SWIG_IsOK(ecode2)) { | |
15182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
15183 | } | |
15184 | arg2 = static_cast< size_t >(val2); | |
15185 | if (obj2) { | |
15186 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15187 | if (!SWIG_IsOK(ecode3)) { | |
15188 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
15189 | } | |
15190 | arg3 = static_cast< bool >(val3); | |
15191 | } | |
15192 | { | |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | result = (bool)(arg1)->Select(arg2,arg3); | |
15195 | wxPyEndAllowThreads(__tstate); | |
15196 | if (PyErr_Occurred()) SWIG_fail; | |
15197 | } | |
15198 | { | |
15199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15200 | } | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
15207 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15208 | PyObject *resultobj = 0; | |
15209 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15210 | size_t arg2 ; | |
15211 | size_t arg3 ; | |
15212 | bool result; | |
15213 | void *argp1 = 0 ; | |
15214 | int res1 = 0 ; | |
15215 | size_t val2 ; | |
15216 | int ecode2 = 0 ; | |
15217 | size_t val3 ; | |
15218 | int ecode3 = 0 ; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | PyObject * obj1 = 0 ; | |
15221 | PyObject * obj2 = 0 ; | |
15222 | char * kwnames[] = { | |
f460c29d | 15223 | (char *) "self",(char *) "from",(char *) "to", NULL |
554f62e9 RD |
15224 | }; |
15225 | ||
15226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15228 | if (!SWIG_IsOK(res1)) { | |
15229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15230 | } | |
15231 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15232 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15233 | if (!SWIG_IsOK(ecode2)) { | |
15234 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
15235 | } | |
15236 | arg2 = static_cast< size_t >(val2); | |
15237 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
15238 | if (!SWIG_IsOK(ecode3)) { | |
15239 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
15240 | } | |
15241 | arg3 = static_cast< size_t >(val3); | |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
15248 | { | |
15249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15250 | } | |
15251 | return resultobj; | |
15252 | fail: | |
15253 | return NULL; | |
15254 | } | |
15255 | ||
15256 | ||
15257 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15258 | PyObject *resultobj = 0; | |
15259 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15260 | size_t arg2 ; | |
15261 | void *argp1 = 0 ; | |
15262 | int res1 = 0 ; | |
15263 | size_t val2 ; | |
15264 | int ecode2 = 0 ; | |
15265 | PyObject * obj0 = 0 ; | |
15266 | PyObject * obj1 = 0 ; | |
15267 | char * kwnames[] = { | |
15268 | (char *) "self",(char *) "item", NULL | |
15269 | }; | |
15270 | ||
15271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15273 | if (!SWIG_IsOK(res1)) { | |
15274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15275 | } | |
15276 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15277 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15278 | if (!SWIG_IsOK(ecode2)) { | |
15279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
15280 | } | |
15281 | arg2 = static_cast< size_t >(val2); | |
15282 | { | |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | (arg1)->Toggle(arg2); | |
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | resultobj = SWIG_Py_Void(); | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
d55e5bfc RD |
15292 | } |
15293 | ||
15294 | ||
554f62e9 RD |
15295 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15296 | PyObject *resultobj = 0; | |
15297 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15298 | bool result; | |
15299 | void *argp1 = 0 ; | |
15300 | int res1 = 0 ; | |
15301 | PyObject *swig_obj[1] ; | |
15302 | ||
15303 | if (!args) SWIG_fail; | |
15304 | swig_obj[0] = args; | |
15305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15306 | if (!SWIG_IsOK(res1)) { | |
15307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15308 | } | |
15309 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15310 | { | |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | result = (bool)(arg1)->SelectAll(); | |
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15318 | } | |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
d55e5bfc RD |
15322 | } |
15323 | ||
15324 | ||
554f62e9 RD |
15325 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15326 | PyObject *resultobj = 0; | |
15327 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15328 | bool result; | |
15329 | void *argp1 = 0 ; | |
15330 | int res1 = 0 ; | |
15331 | PyObject *swig_obj[1] ; | |
15332 | ||
15333 | if (!args) SWIG_fail; | |
15334 | swig_obj[0] = args; | |
15335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15336 | if (!SWIG_IsOK(res1)) { | |
15337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15338 | } | |
15339 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (bool)(arg1)->DeselectAll(); | |
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15346 | { | |
15347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15348 | } | |
15349 | return resultobj; | |
15350 | fail: | |
15351 | return NULL; | |
15352 | } | |
15353 | ||
15354 | ||
15355 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15356 | PyObject *resultobj = 0; | |
15357 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15358 | wxPoint *arg2 = 0 ; | |
15359 | void *argp1 = 0 ; | |
15360 | int res1 = 0 ; | |
15361 | wxPoint temp2 ; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | PyObject * obj1 = 0 ; | |
15364 | char * kwnames[] = { | |
15365 | (char *) "self",(char *) "pt", NULL | |
15366 | }; | |
15367 | ||
15368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15370 | if (!SWIG_IsOK(res1)) { | |
15371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15372 | } | |
15373 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15374 | { | |
15375 | arg2 = &temp2; | |
15376 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15377 | } | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15381 | wxPyEndAllowThreads(__tstate); | |
15382 | if (PyErr_Occurred()) SWIG_fail; | |
15383 | } | |
15384 | resultobj = SWIG_Py_Void(); | |
15385 | return resultobj; | |
15386 | fail: | |
15387 | return NULL; | |
15388 | } | |
15389 | ||
15390 | ||
15391 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15392 | PyObject *resultobj = 0; | |
15393 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15394 | int arg2 ; | |
15395 | int arg3 ; | |
15396 | void *argp1 = 0 ; | |
15397 | int res1 = 0 ; | |
15398 | int val2 ; | |
15399 | int ecode2 = 0 ; | |
15400 | int val3 ; | |
15401 | int ecode3 = 0 ; | |
15402 | PyObject * obj0 = 0 ; | |
15403 | PyObject * obj1 = 0 ; | |
15404 | PyObject * obj2 = 0 ; | |
15405 | char * kwnames[] = { | |
15406 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15407 | }; | |
15408 | ||
15409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15411 | if (!SWIG_IsOK(res1)) { | |
15412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15413 | } | |
15414 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15416 | if (!SWIG_IsOK(ecode2)) { | |
15417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15418 | } | |
15419 | arg2 = static_cast< int >(val2); | |
15420 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15421 | if (!SWIG_IsOK(ecode3)) { | |
15422 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15423 | } | |
15424 | arg3 = static_cast< int >(val3); | |
15425 | { | |
15426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15427 | (arg1)->SetMargins(arg2,arg3); | |
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
15431 | resultobj = SWIG_Py_Void(); | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
15438 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15439 | PyObject *resultobj = 0; | |
15440 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15441 | wxColour *arg2 = 0 ; | |
15442 | void *argp1 = 0 ; | |
15443 | int res1 = 0 ; | |
15444 | wxColour temp2 ; | |
15445 | PyObject * obj0 = 0 ; | |
15446 | PyObject * obj1 = 0 ; | |
15447 | char * kwnames[] = { | |
15448 | (char *) "self",(char *) "col", NULL | |
15449 | }; | |
15450 | ||
15451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15453 | if (!SWIG_IsOK(res1)) { | |
15454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15455 | } | |
15456 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15457 | { | |
15458 | arg2 = &temp2; | |
15459 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15460 | } | |
15461 | { | |
15462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15463 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
15467 | resultobj = SWIG_Py_Void(); | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
1c71765a RD |
15474 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15475 | PyObject *resultobj = 0; | |
15476 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15477 | wxDC *arg2 = 0 ; | |
15478 | wxRect *arg3 = 0 ; | |
15479 | size_t arg4 ; | |
15480 | void *argp1 = 0 ; | |
15481 | int res1 = 0 ; | |
15482 | void *argp2 = 0 ; | |
15483 | int res2 = 0 ; | |
15484 | wxRect temp3 ; | |
15485 | size_t val4 ; | |
15486 | int ecode4 = 0 ; | |
15487 | PyObject * obj0 = 0 ; | |
15488 | PyObject * obj1 = 0 ; | |
15489 | PyObject * obj2 = 0 ; | |
15490 | PyObject * obj3 = 0 ; | |
15491 | char * kwnames[] = { | |
15492 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15493 | }; | |
15494 | ||
15495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15497 | if (!SWIG_IsOK(res1)) { | |
15498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15499 | } | |
15500 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15501 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15502 | if (!SWIG_IsOK(res2)) { | |
15503 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15504 | } | |
15505 | if (!argp2) { | |
15506 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15507 | } | |
15508 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15509 | { | |
15510 | arg3 = &temp3; | |
15511 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15512 | } | |
15513 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15514 | if (!SWIG_IsOK(ecode4)) { | |
15515 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15516 | } | |
15517 | arg4 = static_cast< size_t >(val4); | |
15518 | { | |
15519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15520 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15521 | wxPyEndAllowThreads(__tstate); | |
15522 | if (PyErr_Occurred()) SWIG_fail; | |
15523 | } | |
15524 | resultobj = SWIG_Py_Void(); | |
15525 | return resultobj; | |
15526 | fail: | |
15527 | return NULL; | |
15528 | } | |
15529 | ||
15530 | ||
15531 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj = 0; | |
15533 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15534 | wxDC *arg2 = 0 ; | |
15535 | wxRect *arg3 = 0 ; | |
15536 | size_t arg4 ; | |
15537 | void *argp1 = 0 ; | |
15538 | int res1 = 0 ; | |
15539 | void *argp2 = 0 ; | |
15540 | int res2 = 0 ; | |
15541 | wxRect temp3 ; | |
15542 | size_t val4 ; | |
15543 | int ecode4 = 0 ; | |
15544 | PyObject * obj0 = 0 ; | |
15545 | PyObject * obj1 = 0 ; | |
15546 | PyObject * obj2 = 0 ; | |
15547 | PyObject * obj3 = 0 ; | |
15548 | char * kwnames[] = { | |
15549 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15550 | }; | |
15551 | ||
15552 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15553 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15554 | if (!SWIG_IsOK(res1)) { | |
15555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15556 | } | |
15557 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15558 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15559 | if (!SWIG_IsOK(res2)) { | |
15560 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15561 | } | |
15562 | if (!argp2) { | |
15563 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15564 | } | |
15565 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15566 | { | |
15567 | arg3 = &temp3; | |
15568 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15569 | } | |
15570 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15571 | if (!SWIG_IsOK(ecode4)) { | |
15572 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15573 | } | |
15574 | arg4 = static_cast< size_t >(val4); | |
15575 | { | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15578 | wxPyEndAllowThreads(__tstate); | |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
15581 | resultobj = SWIG_Py_Void(); | |
15582 | return resultobj; | |
15583 | fail: | |
15584 | return NULL; | |
15585 | } | |
15586 | ||
15587 | ||
554f62e9 RD |
15588 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15589 | PyObject *obj; | |
15590 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15591 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15592 | return SWIG_Py_Void(); | |
15593 | } | |
15594 | ||
15595 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15596 | return SWIG_Python_InitShadowInstance(args); | |
15597 | } | |
15598 | ||
15599 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15600 | PyObject *resultobj = 0; | |
15601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15602 | int arg2 = (int) wxID_ANY ; | |
15603 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15604 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15605 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15606 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15607 | long arg5 = (long) 0 ; | |
15608 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15609 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15610 | wxPyHtmlListBox *result = 0 ; | |
15611 | void *argp1 = 0 ; | |
15612 | int res1 = 0 ; | |
15613 | int val2 ; | |
15614 | int ecode2 = 0 ; | |
15615 | wxPoint temp3 ; | |
15616 | wxSize temp4 ; | |
15617 | long val5 ; | |
15618 | int ecode5 = 0 ; | |
15619 | bool temp6 = false ; | |
15620 | PyObject * obj0 = 0 ; | |
15621 | PyObject * obj1 = 0 ; | |
15622 | PyObject * obj2 = 0 ; | |
15623 | PyObject * obj3 = 0 ; | |
15624 | PyObject * obj4 = 0 ; | |
15625 | PyObject * obj5 = 0 ; | |
15626 | char * kwnames[] = { | |
15627 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15628 | }; | |
15629 | ||
15630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15632 | if (!SWIG_IsOK(res1)) { | |
15633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15634 | } | |
15635 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15636 | if (obj1) { | |
15637 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15638 | if (!SWIG_IsOK(ecode2)) { | |
15639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15640 | } | |
15641 | arg2 = static_cast< int >(val2); | |
15642 | } | |
15643 | if (obj2) { | |
093d3ff1 | 15644 | { |
554f62e9 RD |
15645 | arg3 = &temp3; |
15646 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 15647 | } |
554f62e9 RD |
15648 | } |
15649 | if (obj3) { | |
d55e5bfc | 15650 | { |
554f62e9 RD |
15651 | arg4 = &temp4; |
15652 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15653 | } |
554f62e9 RD |
15654 | } |
15655 | if (obj4) { | |
15656 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15657 | if (!SWIG_IsOK(ecode5)) { | |
15658 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15659 | } | |
15660 | arg5 = static_cast< long >(val5); | |
15661 | } | |
15662 | if (obj5) { | |
d55e5bfc | 15663 | { |
554f62e9 RD |
15664 | arg6 = wxString_in_helper(obj5); |
15665 | if (arg6 == NULL) SWIG_fail; | |
15666 | temp6 = true; | |
15667 | } | |
15668 | } | |
15669 | { | |
15670 | if (!wxPyCheckForApp()) SWIG_fail; | |
15671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15672 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15673 | wxPyEndAllowThreads(__tstate); | |
15674 | if (PyErr_Occurred()) SWIG_fail; | |
15675 | } | |
15676 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15677 | { | |
15678 | if (temp6) | |
15679 | delete arg6; | |
15680 | } | |
15681 | return resultobj; | |
15682 | fail: | |
15683 | { | |
15684 | if (temp6) | |
15685 | delete arg6; | |
15686 | } | |
15687 | return NULL; | |
d55e5bfc RD |
15688 | } |
15689 | ||
15690 | ||
554f62e9 RD |
15691 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15692 | PyObject *resultobj = 0; | |
15693 | wxPyHtmlListBox *result = 0 ; | |
15694 | ||
15695 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15696 | { | |
15697 | if (!wxPyCheckForApp()) SWIG_fail; | |
15698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15699 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15700 | wxPyEndAllowThreads(__tstate); | |
15701 | if (PyErr_Occurred()) SWIG_fail; | |
15702 | } | |
15703 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15704 | return resultobj; | |
15705 | fail: | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
15710 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15711 | PyObject *resultobj = 0; | |
15712 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15713 | PyObject *arg2 = (PyObject *) 0 ; | |
15714 | PyObject *arg3 = (PyObject *) 0 ; | |
15715 | void *argp1 = 0 ; | |
15716 | int res1 = 0 ; | |
15717 | PyObject * obj0 = 0 ; | |
15718 | PyObject * obj1 = 0 ; | |
15719 | PyObject * obj2 = 0 ; | |
15720 | char * kwnames[] = { | |
15721 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15722 | }; | |
15723 | ||
15724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15726 | if (!SWIG_IsOK(res1)) { | |
15727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15728 | } | |
15729 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15730 | arg2 = obj1; | |
15731 | arg3 = obj2; | |
15732 | { | |
15733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15734 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15735 | wxPyEndAllowThreads(__tstate); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
15738 | resultobj = SWIG_Py_Void(); | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | return NULL; | |
15742 | } | |
15743 | ||
15744 | ||
15745 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15746 | PyObject *resultobj = 0; | |
15747 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15748 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15749 | int arg3 = (int) wxID_ANY ; | |
15750 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15751 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15752 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15753 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15754 | long arg6 = (long) 0 ; | |
15755 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15756 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15757 | bool result; | |
15758 | void *argp1 = 0 ; | |
15759 | int res1 = 0 ; | |
15760 | void *argp2 = 0 ; | |
15761 | int res2 = 0 ; | |
15762 | int val3 ; | |
15763 | int ecode3 = 0 ; | |
15764 | wxPoint temp4 ; | |
15765 | wxSize temp5 ; | |
15766 | long val6 ; | |
15767 | int ecode6 = 0 ; | |
15768 | bool temp7 = false ; | |
15769 | PyObject * obj0 = 0 ; | |
15770 | PyObject * obj1 = 0 ; | |
15771 | PyObject * obj2 = 0 ; | |
15772 | PyObject * obj3 = 0 ; | |
15773 | PyObject * obj4 = 0 ; | |
15774 | PyObject * obj5 = 0 ; | |
15775 | PyObject * obj6 = 0 ; | |
15776 | char * kwnames[] = { | |
15777 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15778 | }; | |
15779 | ||
15780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15782 | if (!SWIG_IsOK(res1)) { | |
15783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15784 | } | |
15785 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15786 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15787 | if (!SWIG_IsOK(res2)) { | |
15788 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15789 | } | |
15790 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15791 | if (obj2) { | |
15792 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15793 | if (!SWIG_IsOK(ecode3)) { | |
15794 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15795 | } | |
15796 | arg3 = static_cast< int >(val3); | |
15797 | } | |
15798 | if (obj3) { | |
093d3ff1 | 15799 | { |
554f62e9 RD |
15800 | arg4 = &temp4; |
15801 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15802 | } |
554f62e9 RD |
15803 | } |
15804 | if (obj4) { | |
d55e5bfc | 15805 | { |
554f62e9 RD |
15806 | arg5 = &temp5; |
15807 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15808 | } |
554f62e9 RD |
15809 | } |
15810 | if (obj5) { | |
15811 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15812 | if (!SWIG_IsOK(ecode6)) { | |
15813 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15814 | } | |
15815 | arg6 = static_cast< long >(val6); | |
15816 | } | |
15817 | if (obj6) { | |
093d3ff1 | 15818 | { |
554f62e9 RD |
15819 | arg7 = wxString_in_helper(obj6); |
15820 | if (arg7 == NULL) SWIG_fail; | |
15821 | temp7 = true; | |
093d3ff1 | 15822 | } |
554f62e9 RD |
15823 | } |
15824 | { | |
15825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15826 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | { | |
15831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15832 | } | |
15833 | { | |
15834 | if (temp7) | |
15835 | delete arg7; | |
15836 | } | |
15837 | return resultobj; | |
15838 | fail: | |
15839 | { | |
15840 | if (temp7) | |
15841 | delete arg7; | |
15842 | } | |
15843 | return NULL; | |
15844 | } | |
15845 | ||
15846 | ||
15847 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15848 | PyObject *resultobj = 0; | |
15849 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15850 | size_t arg2 ; | |
15851 | void *argp1 = 0 ; | |
15852 | int res1 = 0 ; | |
15853 | size_t val2 ; | |
15854 | int ecode2 = 0 ; | |
15855 | PyObject * obj0 = 0 ; | |
15856 | PyObject * obj1 = 0 ; | |
15857 | char * kwnames[] = { | |
15858 | (char *) "self",(char *) "count", NULL | |
15859 | }; | |
15860 | ||
15861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15863 | if (!SWIG_IsOK(res1)) { | |
15864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15865 | } | |
15866 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15867 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15868 | if (!SWIG_IsOK(ecode2)) { | |
15869 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15870 | } | |
15871 | arg2 = static_cast< size_t >(val2); | |
15872 | { | |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15874 | (arg1)->SetItemCount(arg2); | |
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | resultobj = SWIG_Py_Void(); | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
d55e5bfc RD |
15882 | } |
15883 | ||
15884 | ||
554f62e9 RD |
15885 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15886 | PyObject *resultobj = 0; | |
15887 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15888 | wxFileSystem *result = 0 ; | |
15889 | void *argp1 = 0 ; | |
15890 | int res1 = 0 ; | |
15891 | PyObject *swig_obj[1] ; | |
15892 | ||
15893 | if (!args) SWIG_fail; | |
15894 | swig_obj[0] = args; | |
15895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15896 | if (!SWIG_IsOK(res1)) { | |
15897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15898 | } | |
15899 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15900 | { | |
15901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15902 | { |
554f62e9 RD |
15903 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15904 | result = (wxFileSystem *) &_result_ref; | |
093d3ff1 | 15905 | } |
554f62e9 RD |
15906 | wxPyEndAllowThreads(__tstate); |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
15909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15910 | return resultobj; | |
15911 | fail: | |
15912 | return NULL; | |
d55e5bfc RD |
15913 | } |
15914 | ||
15915 | ||
e9d6f3a4 RD |
15916 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15917 | PyObject *resultobj = 0; | |
15918 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15919 | size_t arg2 ; | |
15920 | wxHtmlLinkInfo *arg3 = 0 ; | |
15921 | void *argp1 = 0 ; | |
15922 | int res1 = 0 ; | |
15923 | size_t val2 ; | |
15924 | int ecode2 = 0 ; | |
15925 | void *argp3 = 0 ; | |
15926 | int res3 = 0 ; | |
15927 | PyObject * obj0 = 0 ; | |
15928 | PyObject * obj1 = 0 ; | |
15929 | PyObject * obj2 = 0 ; | |
15930 | char * kwnames[] = { | |
15931 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15932 | }; | |
15933 | ||
15934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15936 | if (!SWIG_IsOK(res1)) { | |
15937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15938 | } | |
15939 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15940 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15941 | if (!SWIG_IsOK(ecode2)) { | |
15942 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15943 | } | |
15944 | arg2 = static_cast< size_t >(val2); | |
15945 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15946 | if (!SWIG_IsOK(res3)) { | |
15947 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15948 | } | |
15949 | if (!argp3) { | |
15950 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15951 | } | |
15952 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | resultobj = SWIG_Py_Void(); | |
15960 | return resultobj; | |
15961 | fail: | |
15962 | return NULL; | |
15963 | } | |
15964 | ||
15965 | ||
554f62e9 RD |
15966 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15967 | PyObject *obj; | |
15968 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15969 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15970 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15971 | } |
15972 | ||
554f62e9 RD |
15973 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15974 | return SWIG_Python_InitShadowInstance(args); | |
15975 | } | |
d55e5bfc | 15976 | |
554f62e9 RD |
15977 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15978 | PyObject *resultobj = 0; | |
15979 | wxPyTaskBarIcon *result = 0 ; | |
15980 | ||
15981 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15982 | { | |
15983 | if (!wxPyCheckForApp()) SWIG_fail; | |
15984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15985 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15986 | wxPyEndAllowThreads(__tstate); | |
15987 | if (PyErr_Occurred()) SWIG_fail; | |
15988 | } | |
15989 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
d55e5bfc RD |
15993 | } |
15994 | ||
15995 | ||
554f62e9 RD |
15996 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15997 | PyObject *resultobj = 0; | |
15998 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15999 | void *argp1 = 0 ; | |
16000 | int res1 = 0 ; | |
16001 | PyObject *swig_obj[1] ; | |
16002 | ||
16003 | if (!args) SWIG_fail; | |
16004 | swig_obj[0] = args; | |
16005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
16006 | if (!SWIG_IsOK(res1)) { | |
16007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16008 | } | |
16009 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16010 | { | |
16011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16012 | delete arg1; | |
d55e5bfc | 16013 | |
554f62e9 RD |
16014 | wxPyEndAllowThreads(__tstate); |
16015 | if (PyErr_Occurred()) SWIG_fail; | |
16016 | } | |
16017 | resultobj = SWIG_Py_Void(); | |
16018 | return resultobj; | |
16019 | fail: | |
16020 | return NULL; | |
16021 | } | |
16022 | ||
16023 | ||
16024 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16025 | PyObject *resultobj = 0; | |
16026 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16027 | PyObject *arg2 = (PyObject *) 0 ; | |
16028 | PyObject *arg3 = (PyObject *) 0 ; | |
16029 | int arg4 ; | |
16030 | void *argp1 = 0 ; | |
16031 | int res1 = 0 ; | |
16032 | int val4 ; | |
16033 | int ecode4 = 0 ; | |
16034 | PyObject * obj0 = 0 ; | |
16035 | PyObject * obj1 = 0 ; | |
16036 | PyObject * obj2 = 0 ; | |
16037 | PyObject * obj3 = 0 ; | |
16038 | char * kwnames[] = { | |
16039 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
16040 | }; | |
16041 | ||
16042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16044 | if (!SWIG_IsOK(res1)) { | |
16045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16046 | } | |
16047 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16048 | arg2 = obj1; | |
16049 | arg3 = obj2; | |
16050 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16051 | if (!SWIG_IsOK(ecode4)) { | |
16052 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
16053 | } | |
16054 | arg4 = static_cast< int >(val4); | |
16055 | { | |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16058 | wxPyEndAllowThreads(__tstate); | |
16059 | if (PyErr_Occurred()) SWIG_fail; | |
16060 | } | |
16061 | resultobj = SWIG_Py_Void(); | |
16062 | return resultobj; | |
16063 | fail: | |
16064 | return NULL; | |
d55e5bfc RD |
16065 | } |
16066 | ||
16067 | ||
554f62e9 RD |
16068 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16069 | PyObject *resultobj = 0; | |
16070 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16071 | void *argp1 = 0 ; | |
16072 | int res1 = 0 ; | |
16073 | PyObject *swig_obj[1] ; | |
16074 | ||
16075 | if (!args) SWIG_fail; | |
16076 | swig_obj[0] = args; | |
16077 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16078 | if (!SWIG_IsOK(res1)) { | |
16079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16080 | } | |
16081 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16082 | { | |
16083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16084 | wxPyTaskBarIcon_Destroy(arg1); | |
16085 | wxPyEndAllowThreads(__tstate); | |
16086 | if (PyErr_Occurred()) SWIG_fail; | |
16087 | } | |
16088 | resultobj = SWIG_Py_Void(); | |
16089 | return resultobj; | |
16090 | fail: | |
16091 | return NULL; | |
d55e5bfc RD |
16092 | } |
16093 | ||
16094 | ||
554f62e9 RD |
16095 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16096 | PyObject *resultobj = 0; | |
16097 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16098 | bool result; | |
16099 | void *argp1 = 0 ; | |
16100 | int res1 = 0 ; | |
16101 | PyObject *swig_obj[1] ; | |
16102 | ||
16103 | if (!args) SWIG_fail; | |
16104 | swig_obj[0] = args; | |
16105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16106 | if (!SWIG_IsOK(res1)) { | |
16107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16108 | } | |
16109 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16110 | { | |
16111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16112 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | { | |
16117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16118 | } | |
16119 | return resultobj; | |
16120 | fail: | |
16121 | return NULL; | |
d55e5bfc RD |
16122 | } |
16123 | ||
16124 | ||
554f62e9 RD |
16125 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16126 | PyObject *resultobj = 0; | |
16127 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16128 | bool result; | |
16129 | void *argp1 = 0 ; | |
16130 | int res1 = 0 ; | |
16131 | PyObject *swig_obj[1] ; | |
16132 | ||
16133 | if (!args) SWIG_fail; | |
16134 | swig_obj[0] = args; | |
16135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16136 | if (!SWIG_IsOK(res1)) { | |
16137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16138 | } | |
16139 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16140 | { | |
16141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16142 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
16143 | wxPyEndAllowThreads(__tstate); | |
16144 | if (PyErr_Occurred()) SWIG_fail; | |
16145 | } | |
16146 | { | |
16147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16148 | } | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16156 | PyObject *resultobj = 0; | |
16157 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16158 | wxIcon *arg2 = 0 ; | |
16159 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16160 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16161 | bool result; | |
16162 | void *argp1 = 0 ; | |
16163 | int res1 = 0 ; | |
16164 | void *argp2 = 0 ; | |
16165 | int res2 = 0 ; | |
16166 | bool temp3 = false ; | |
16167 | PyObject * obj0 = 0 ; | |
16168 | PyObject * obj1 = 0 ; | |
16169 | PyObject * obj2 = 0 ; | |
16170 | char * kwnames[] = { | |
16171 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
16172 | }; | |
16173 | ||
16174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16176 | if (!SWIG_IsOK(res1)) { | |
16177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16178 | } | |
16179 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16180 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16181 | if (!SWIG_IsOK(res2)) { | |
16182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16183 | } | |
16184 | if (!argp2) { | |
16185 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16186 | } | |
16187 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16188 | if (obj2) { | |
093d3ff1 | 16189 | { |
554f62e9 RD |
16190 | arg3 = wxString_in_helper(obj2); |
16191 | if (arg3 == NULL) SWIG_fail; | |
16192 | temp3 = true; | |
093d3ff1 | 16193 | } |
554f62e9 RD |
16194 | } |
16195 | { | |
16196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16197 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
16198 | wxPyEndAllowThreads(__tstate); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
16201 | { | |
16202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16203 | } | |
16204 | { | |
16205 | if (temp3) | |
16206 | delete arg3; | |
16207 | } | |
16208 | return resultobj; | |
16209 | fail: | |
16210 | { | |
16211 | if (temp3) | |
16212 | delete arg3; | |
16213 | } | |
16214 | return NULL; | |
d55e5bfc RD |
16215 | } |
16216 | ||
16217 | ||
554f62e9 RD |
16218 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16219 | PyObject *resultobj = 0; | |
16220 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16221 | bool result; | |
16222 | void *argp1 = 0 ; | |
16223 | int res1 = 0 ; | |
16224 | PyObject *swig_obj[1] ; | |
16225 | ||
16226 | if (!args) SWIG_fail; | |
16227 | swig_obj[0] = args; | |
16228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16229 | if (!SWIG_IsOK(res1)) { | |
16230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16231 | } | |
16232 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16233 | { | |
16234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16235 | result = (bool)(arg1)->RemoveIcon(); | |
16236 | wxPyEndAllowThreads(__tstate); | |
16237 | if (PyErr_Occurred()) SWIG_fail; | |
16238 | } | |
16239 | { | |
16240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16241 | } | |
16242 | return resultobj; | |
16243 | fail: | |
16244 | return NULL; | |
16245 | } | |
16246 | ||
16247 | ||
16248 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16249 | PyObject *resultobj = 0; | |
16250 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16251 | wxMenu *arg2 = (wxMenu *) 0 ; | |
16252 | bool result; | |
16253 | void *argp1 = 0 ; | |
16254 | int res1 = 0 ; | |
16255 | void *argp2 = 0 ; | |
16256 | int res2 = 0 ; | |
16257 | PyObject * obj0 = 0 ; | |
16258 | PyObject * obj1 = 0 ; | |
16259 | char * kwnames[] = { | |
16260 | (char *) "self",(char *) "menu", NULL | |
16261 | }; | |
16262 | ||
16263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
16264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16265 | if (!SWIG_IsOK(res1)) { | |
16266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16267 | } | |
16268 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16269 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
16270 | if (!SWIG_IsOK(res2)) { | |
16271 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
16272 | } | |
16273 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
16274 | { | |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16276 | result = (bool)(arg1)->PopupMenu(arg2); | |
16277 | wxPyEndAllowThreads(__tstate); | |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | } | |
16280 | { | |
16281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16282 | } | |
16283 | return resultobj; | |
16284 | fail: | |
16285 | return NULL; | |
d55e5bfc RD |
16286 | } |
16287 | ||
16288 | ||
554f62e9 RD |
16289 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16290 | PyObject *obj; | |
16291 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16292 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
16293 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16294 | } |
16295 | ||
554f62e9 RD |
16296 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16297 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16298 | } |
16299 | ||
554f62e9 RD |
16300 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16301 | PyObject *resultobj = 0; | |
16302 | wxEventType arg1 ; | |
16303 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
16304 | wxTaskBarIconEvent *result = 0 ; | |
16305 | int val1 ; | |
16306 | int ecode1 = 0 ; | |
16307 | void *argp2 = 0 ; | |
16308 | int res2 = 0 ; | |
16309 | PyObject * obj0 = 0 ; | |
16310 | PyObject * obj1 = 0 ; | |
16311 | char * kwnames[] = { | |
16312 | (char *) "evtType",(char *) "tbIcon", NULL | |
16313 | }; | |
16314 | ||
16315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
16316 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16317 | if (!SWIG_IsOK(ecode1)) { | |
16318 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
16319 | } | |
16320 | arg1 = static_cast< wxEventType >(val1); | |
16321 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
16322 | if (!SWIG_IsOK(res2)) { | |
16323 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
16324 | } | |
16325 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
16326 | { | |
16327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16328 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
16329 | wxPyEndAllowThreads(__tstate); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | } | |
16332 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
d55e5bfc RD |
16336 | } |
16337 | ||
16338 | ||
554f62e9 RD |
16339 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16340 | PyObject *obj; | |
16341 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16342 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
16343 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16344 | } |
16345 | ||
554f62e9 RD |
16346 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16347 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16348 | } |
16349 | ||
554f62e9 RD |
16350 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
16351 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
16352 | return 1; | |
d55e5bfc RD |
16353 | } |
16354 | ||
16355 | ||
554f62e9 RD |
16356 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
16357 | PyObject *pyobj = 0; | |
16358 | ||
16359 | { | |
16360 | #if wxUSE_UNICODE | |
16361 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16362 | #else | |
16363 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16364 | #endif | |
16365 | } | |
16366 | return pyobj; | |
d55e5bfc RD |
16367 | } |
16368 | ||
16369 | ||
554f62e9 RD |
16370 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
16371 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
16372 | return 1; | |
d55e5bfc RD |
16373 | } |
16374 | ||
16375 | ||
554f62e9 RD |
16376 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
16377 | PyObject *pyobj = 0; | |
16378 | ||
16379 | { | |
16380 | #if wxUSE_UNICODE | |
16381 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16382 | #else | |
16383 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16384 | #endif | |
16385 | } | |
16386 | return pyobj; | |
d55e5bfc RD |
16387 | } |
16388 | ||
16389 | ||
554f62e9 RD |
16390 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16391 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16392 | return 1; | |
d55e5bfc RD |
16393 | } |
16394 | ||
16395 | ||
554f62e9 RD |
16396 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16397 | PyObject *pyobj = 0; | |
16398 | ||
16399 | { | |
16400 | #if wxUSE_UNICODE | |
16401 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16402 | #else | |
16403 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16404 | #endif | |
16405 | } | |
16406 | return pyobj; | |
d55e5bfc RD |
16407 | } |
16408 | ||
16409 | ||
554f62e9 RD |
16410 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16411 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16412 | return 1; | |
d55e5bfc RD |
16413 | } |
16414 | ||
16415 | ||
554f62e9 RD |
16416 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16417 | PyObject *pyobj = 0; | |
16418 | ||
16419 | { | |
16420 | #if wxUSE_UNICODE | |
16421 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16422 | #else | |
16423 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16424 | #endif | |
16425 | } | |
16426 | return pyobj; | |
d55e5bfc RD |
16427 | } |
16428 | ||
16429 | ||
554f62e9 RD |
16430 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16431 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16432 | return 1; | |
d55e5bfc RD |
16433 | } |
16434 | ||
16435 | ||
554f62e9 RD |
16436 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16437 | PyObject *pyobj = 0; | |
16438 | ||
16439 | { | |
16440 | #if wxUSE_UNICODE | |
16441 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16442 | #else | |
16443 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16444 | #endif | |
16445 | } | |
16446 | return pyobj; | |
d55e5bfc RD |
16447 | } |
16448 | ||
16449 | ||
554f62e9 RD |
16450 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16451 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16452 | return 1; | |
d55e5bfc RD |
16453 | } |
16454 | ||
16455 | ||
554f62e9 RD |
16456 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16457 | PyObject *pyobj = 0; | |
16458 | ||
16459 | { | |
16460 | #if wxUSE_UNICODE | |
16461 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16462 | #else | |
16463 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16464 | #endif | |
16465 | } | |
16466 | return pyobj; | |
d55e5bfc RD |
16467 | } |
16468 | ||
16469 | ||
554f62e9 RD |
16470 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16471 | PyObject *resultobj = 0; | |
16472 | wxColourData *result = 0 ; | |
16473 | ||
16474 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16475 | { | |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | result = (wxColourData *)new wxColourData(); | |
16478 | wxPyEndAllowThreads(__tstate); | |
16479 | if (PyErr_Occurred()) SWIG_fail; | |
16480 | } | |
16481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16482 | return resultobj; | |
16483 | fail: | |
16484 | return NULL; | |
d55e5bfc RD |
16485 | } |
16486 | ||
16487 | ||
554f62e9 RD |
16488 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16489 | PyObject *resultobj = 0; | |
16490 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16491 | void *argp1 = 0 ; | |
16492 | int res1 = 0 ; | |
16493 | PyObject *swig_obj[1] ; | |
16494 | ||
16495 | if (!args) SWIG_fail; | |
16496 | swig_obj[0] = args; | |
16497 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16498 | if (!SWIG_IsOK(res1)) { | |
16499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16500 | } | |
16501 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | delete arg1; | |
d55e5bfc | 16505 | |
554f62e9 RD |
16506 | wxPyEndAllowThreads(__tstate); |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | resultobj = SWIG_Py_Void(); | |
16510 | return resultobj; | |
16511 | fail: | |
16512 | return NULL; | |
d55e5bfc RD |
16513 | } |
16514 | ||
16515 | ||
554f62e9 RD |
16516 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16517 | PyObject *resultobj = 0; | |
16518 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16519 | bool result; | |
16520 | void *argp1 = 0 ; | |
16521 | int res1 = 0 ; | |
16522 | PyObject *swig_obj[1] ; | |
16523 | ||
16524 | if (!args) SWIG_fail; | |
16525 | swig_obj[0] = args; | |
16526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16527 | if (!SWIG_IsOK(res1)) { | |
16528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16529 | } | |
16530 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16531 | { | |
16532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16533 | result = (bool)(arg1)->GetChooseFull(); | |
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | { | |
16538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16539 | } | |
16540 | return resultobj; | |
16541 | fail: | |
16542 | return NULL; | |
d55e5bfc RD |
16543 | } |
16544 | ||
16545 | ||
554f62e9 RD |
16546 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16547 | PyObject *resultobj = 0; | |
16548 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16549 | wxColour result; | |
16550 | void *argp1 = 0 ; | |
16551 | int res1 = 0 ; | |
16552 | PyObject *swig_obj[1] ; | |
16553 | ||
16554 | if (!args) SWIG_fail; | |
16555 | swig_obj[0] = args; | |
16556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16557 | if (!SWIG_IsOK(res1)) { | |
16558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16559 | } | |
16560 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16561 | { | |
16562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16563 | result = (arg1)->GetColour(); | |
16564 | wxPyEndAllowThreads(__tstate); | |
16565 | if (PyErr_Occurred()) SWIG_fail; | |
16566 | } | |
16567 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16568 | return resultobj; | |
16569 | fail: | |
16570 | return NULL; | |
16571 | } | |
16572 | ||
16573 | ||
16574 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16575 | PyObject *resultobj = 0; | |
16576 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16577 | int arg2 ; | |
16578 | wxColour result; | |
16579 | void *argp1 = 0 ; | |
16580 | int res1 = 0 ; | |
16581 | int val2 ; | |
16582 | int ecode2 = 0 ; | |
16583 | PyObject * obj0 = 0 ; | |
16584 | PyObject * obj1 = 0 ; | |
16585 | char * kwnames[] = { | |
16586 | (char *) "self",(char *) "i", NULL | |
16587 | }; | |
16588 | ||
16589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16591 | if (!SWIG_IsOK(res1)) { | |
16592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16593 | } | |
16594 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16596 | if (!SWIG_IsOK(ecode2)) { | |
16597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16598 | } | |
16599 | arg2 = static_cast< int >(val2); | |
16600 | { | |
16601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16602 | result = (arg1)->GetCustomColour(arg2); | |
16603 | wxPyEndAllowThreads(__tstate); | |
16604 | if (PyErr_Occurred()) SWIG_fail; | |
16605 | } | |
16606 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16607 | return resultobj; | |
16608 | fail: | |
16609 | return NULL; | |
16610 | } | |
16611 | ||
16612 | ||
16613 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16614 | PyObject *resultobj = 0; | |
16615 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16616 | int arg2 ; | |
16617 | void *argp1 = 0 ; | |
16618 | int res1 = 0 ; | |
16619 | int val2 ; | |
16620 | int ecode2 = 0 ; | |
16621 | PyObject * obj0 = 0 ; | |
16622 | PyObject * obj1 = 0 ; | |
16623 | char * kwnames[] = { | |
16624 | (char *) "self",(char *) "flag", NULL | |
16625 | }; | |
16626 | ||
16627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16629 | if (!SWIG_IsOK(res1)) { | |
16630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16631 | } | |
16632 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16634 | if (!SWIG_IsOK(ecode2)) { | |
16635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16636 | } | |
16637 | arg2 = static_cast< int >(val2); | |
16638 | { | |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | (arg1)->SetChooseFull(arg2); | |
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
16644 | resultobj = SWIG_Py_Void(); | |
16645 | return resultobj; | |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
16651 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16652 | PyObject *resultobj = 0; | |
16653 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16654 | wxColour *arg2 = 0 ; | |
16655 | void *argp1 = 0 ; | |
16656 | int res1 = 0 ; | |
16657 | wxColour temp2 ; | |
16658 | PyObject * obj0 = 0 ; | |
16659 | PyObject * obj1 = 0 ; | |
16660 | char * kwnames[] = { | |
16661 | (char *) "self",(char *) "colour", NULL | |
16662 | }; | |
16663 | ||
16664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16666 | if (!SWIG_IsOK(res1)) { | |
16667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16668 | } | |
16669 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16670 | { | |
16671 | arg2 = &temp2; | |
16672 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16673 | } | |
16674 | { | |
16675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16676 | (arg1)->SetColour((wxColour const &)*arg2); | |
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
16680 | resultobj = SWIG_Py_Void(); | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16688 | PyObject *resultobj = 0; | |
16689 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16690 | int arg2 ; | |
16691 | wxColour *arg3 = 0 ; | |
16692 | void *argp1 = 0 ; | |
16693 | int res1 = 0 ; | |
16694 | int val2 ; | |
16695 | int ecode2 = 0 ; | |
16696 | wxColour temp3 ; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | PyObject * obj1 = 0 ; | |
16699 | PyObject * obj2 = 0 ; | |
16700 | char * kwnames[] = { | |
16701 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16702 | }; | |
16703 | ||
16704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16706 | if (!SWIG_IsOK(res1)) { | |
16707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16708 | } | |
16709 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16710 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16711 | if (!SWIG_IsOK(ecode2)) { | |
16712 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16713 | } | |
16714 | arg2 = static_cast< int >(val2); | |
16715 | { | |
16716 | arg3 = &temp3; | |
16717 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16718 | } | |
16719 | { | |
16720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16721 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16722 | wxPyEndAllowThreads(__tstate); | |
16723 | if (PyErr_Occurred()) SWIG_fail; | |
16724 | } | |
16725 | resultobj = SWIG_Py_Void(); | |
16726 | return resultobj; | |
16727 | fail: | |
16728 | return NULL; | |
d55e5bfc RD |
16729 | } |
16730 | ||
16731 | ||
554f62e9 RD |
16732 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16733 | PyObject *obj; | |
16734 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16735 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16736 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16737 | } |
16738 | ||
554f62e9 RD |
16739 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16740 | return SWIG_Python_InitShadowInstance(args); | |
16741 | } | |
d55e5bfc | 16742 | |
554f62e9 RD |
16743 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16744 | PyObject *resultobj = 0; | |
16745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16746 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16747 | wxColourDialog *result = 0 ; | |
16748 | void *argp1 = 0 ; | |
16749 | int res1 = 0 ; | |
16750 | void *argp2 = 0 ; | |
16751 | int res2 = 0 ; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | PyObject * obj1 = 0 ; | |
16754 | char * kwnames[] = { | |
16755 | (char *) "parent",(char *) "data", NULL | |
16756 | }; | |
16757 | ||
16758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16760 | if (!SWIG_IsOK(res1)) { | |
16761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16762 | } | |
16763 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16764 | if (obj1) { | |
16765 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16766 | if (!SWIG_IsOK(res2)) { | |
16767 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
d55e5bfc | 16768 | } |
554f62e9 RD |
16769 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16770 | } | |
16771 | { | |
16772 | if (!wxPyCheckForApp()) SWIG_fail; | |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16775 | wxPyEndAllowThreads(__tstate); | |
16776 | if (PyErr_Occurred()) SWIG_fail; | |
16777 | } | |
16778 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16779 | return resultobj; | |
16780 | fail: | |
16781 | return NULL; | |
16782 | } | |
16783 | ||
16784 | ||
16785 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16786 | PyObject *resultobj = 0; | |
16787 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16788 | wxColourData *result = 0 ; | |
16789 | void *argp1 = 0 ; | |
16790 | int res1 = 0 ; | |
16791 | PyObject *swig_obj[1] ; | |
16792 | ||
16793 | if (!args) SWIG_fail; | |
16794 | swig_obj[0] = args; | |
16795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16796 | if (!SWIG_IsOK(res1)) { | |
16797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16798 | } | |
16799 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16800 | { | |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16802 | { | |
16803 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
16804 | result = (wxColourData *) &_result_ref; | |
d55e5bfc | 16805 | } |
554f62e9 RD |
16806 | wxPyEndAllowThreads(__tstate); |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
16809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
16813 | } | |
16814 | ||
16815 | ||
16816 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16817 | PyObject *obj; | |
16818 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16819 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16820 | return SWIG_Py_Void(); | |
16821 | } | |
16822 | ||
16823 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16824 | return SWIG_Python_InitShadowInstance(args); | |
16825 | } | |
16826 | ||
16827 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16828 | PyObject *resultobj = 0; | |
16829 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16830 | wxColour const &arg2_defvalue = wxNullColour ; | |
16831 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16832 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16833 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16834 | wxColour result; | |
16835 | void *argp1 = 0 ; | |
16836 | int res1 = 0 ; | |
16837 | wxColour temp2 ; | |
16838 | bool temp3 = false ; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | PyObject * obj1 = 0 ; | |
16841 | PyObject * obj2 = 0 ; | |
16842 | char * kwnames[] = { | |
16843 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16844 | }; | |
16845 | ||
16846 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16847 | if (obj0) { | |
16848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16849 | if (!SWIG_IsOK(res1)) { | |
16850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 16851 | } |
554f62e9 RD |
16852 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16853 | } | |
16854 | if (obj1) { | |
d55e5bfc | 16855 | { |
554f62e9 RD |
16856 | arg2 = &temp2; |
16857 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 16858 | } |
554f62e9 RD |
16859 | } |
16860 | if (obj2) { | |
d55e5bfc | 16861 | { |
554f62e9 RD |
16862 | arg3 = wxString_in_helper(obj2); |
16863 | if (arg3 == NULL) SWIG_fail; | |
16864 | temp3 = true; | |
d55e5bfc | 16865 | } |
554f62e9 RD |
16866 | } |
16867 | { | |
16868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16869 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16870 | wxPyEndAllowThreads(__tstate); | |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
16872 | } | |
16873 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16874 | { | |
16875 | if (temp3) | |
16876 | delete arg3; | |
16877 | } | |
16878 | return resultobj; | |
16879 | fail: | |
16880 | { | |
16881 | if (temp3) | |
16882 | delete arg3; | |
16883 | } | |
16884 | return NULL; | |
16885 | } | |
16886 | ||
16887 | ||
16888 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16889 | PyObject *resultobj = 0; | |
16890 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16891 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16892 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16893 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16894 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
704eda0c | 16895 | long arg4 = (long) wxDD_DEFAULT_STYLE ; |
554f62e9 RD |
16896 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16897 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16898 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16899 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16900 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16901 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16902 | wxDirDialog *result = 0 ; | |
16903 | void *argp1 = 0 ; | |
16904 | int res1 = 0 ; | |
16905 | bool temp2 = false ; | |
16906 | bool temp3 = false ; | |
16907 | long val4 ; | |
16908 | int ecode4 = 0 ; | |
16909 | wxPoint temp5 ; | |
16910 | wxSize temp6 ; | |
16911 | bool temp7 = false ; | |
16912 | PyObject * obj0 = 0 ; | |
16913 | PyObject * obj1 = 0 ; | |
16914 | PyObject * obj2 = 0 ; | |
16915 | PyObject * obj3 = 0 ; | |
16916 | PyObject * obj4 = 0 ; | |
16917 | PyObject * obj5 = 0 ; | |
16918 | PyObject * obj6 = 0 ; | |
16919 | char * kwnames[] = { | |
16920 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16921 | }; | |
16922 | ||
16923 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16925 | if (!SWIG_IsOK(res1)) { | |
16926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16927 | } | |
16928 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16929 | if (obj1) { | |
d55e5bfc | 16930 | { |
554f62e9 RD |
16931 | arg2 = wxString_in_helper(obj1); |
16932 | if (arg2 == NULL) SWIG_fail; | |
16933 | temp2 = true; | |
d55e5bfc | 16934 | } |
554f62e9 RD |
16935 | } |
16936 | if (obj2) { | |
d55e5bfc | 16937 | { |
554f62e9 RD |
16938 | arg3 = wxString_in_helper(obj2); |
16939 | if (arg3 == NULL) SWIG_fail; | |
16940 | temp3 = true; | |
d55e5bfc | 16941 | } |
554f62e9 RD |
16942 | } |
16943 | if (obj3) { | |
16944 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16945 | if (!SWIG_IsOK(ecode4)) { | |
16946 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16947 | } | |
16948 | arg4 = static_cast< long >(val4); | |
16949 | } | |
16950 | if (obj4) { | |
093d3ff1 | 16951 | { |
554f62e9 RD |
16952 | arg5 = &temp5; |
16953 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 16954 | } |
554f62e9 RD |
16955 | } |
16956 | if (obj5) { | |
d55e5bfc | 16957 | { |
554f62e9 RD |
16958 | arg6 = &temp6; |
16959 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16960 | } |
554f62e9 RD |
16961 | } |
16962 | if (obj6) { | |
d55e5bfc | 16963 | { |
554f62e9 RD |
16964 | arg7 = wxString_in_helper(obj6); |
16965 | if (arg7 == NULL) SWIG_fail; | |
16966 | temp7 = true; | |
093d3ff1 | 16967 | } |
554f62e9 RD |
16968 | } |
16969 | { | |
16970 | if (!wxPyCheckForApp()) SWIG_fail; | |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16972 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16973 | wxPyEndAllowThreads(__tstate); | |
16974 | if (PyErr_Occurred()) SWIG_fail; | |
16975 | } | |
16976 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16977 | { | |
16978 | if (temp2) | |
16979 | delete arg2; | |
16980 | } | |
16981 | { | |
16982 | if (temp3) | |
16983 | delete arg3; | |
16984 | } | |
16985 | { | |
16986 | if (temp7) | |
16987 | delete arg7; | |
16988 | } | |
16989 | return resultobj; | |
16990 | fail: | |
16991 | { | |
16992 | if (temp2) | |
16993 | delete arg2; | |
16994 | } | |
16995 | { | |
16996 | if (temp3) | |
16997 | delete arg3; | |
16998 | } | |
16999 | { | |
17000 | if (temp7) | |
17001 | delete arg7; | |
17002 | } | |
17003 | return NULL; | |
d55e5bfc RD |
17004 | } |
17005 | ||
17006 | ||
554f62e9 RD |
17007 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17008 | PyObject *resultobj = 0; | |
17009 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17010 | wxString result; | |
17011 | void *argp1 = 0 ; | |
17012 | int res1 = 0 ; | |
17013 | PyObject *swig_obj[1] ; | |
17014 | ||
17015 | if (!args) SWIG_fail; | |
17016 | swig_obj[0] = args; | |
17017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17018 | if (!SWIG_IsOK(res1)) { | |
17019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17020 | } | |
17021 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17022 | { | |
17023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17024 | result = (arg1)->GetPath(); | |
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | { | |
17029 | #if wxUSE_UNICODE | |
17030 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17031 | #else | |
17032 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17033 | #endif | |
17034 | } | |
17035 | return resultobj; | |
17036 | fail: | |
17037 | return NULL; | |
d55e5bfc RD |
17038 | } |
17039 | ||
17040 | ||
554f62e9 RD |
17041 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17042 | PyObject *resultobj = 0; | |
17043 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17044 | wxString result; | |
17045 | void *argp1 = 0 ; | |
17046 | int res1 = 0 ; | |
17047 | PyObject *swig_obj[1] ; | |
17048 | ||
17049 | if (!args) SWIG_fail; | |
17050 | swig_obj[0] = args; | |
17051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17052 | if (!SWIG_IsOK(res1)) { | |
17053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17054 | } | |
17055 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17056 | { | |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (arg1)->GetMessage(); | |
17059 | wxPyEndAllowThreads(__tstate); | |
17060 | if (PyErr_Occurred()) SWIG_fail; | |
17061 | } | |
17062 | { | |
17063 | #if wxUSE_UNICODE | |
17064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17065 | #else | |
17066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17067 | #endif | |
17068 | } | |
17069 | return resultobj; | |
17070 | fail: | |
17071 | return NULL; | |
d55e5bfc RD |
17072 | } |
17073 | ||
17074 | ||
554f62e9 RD |
17075 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17076 | PyObject *resultobj = 0; | |
17077 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17078 | wxString *arg2 = 0 ; | |
17079 | void *argp1 = 0 ; | |
17080 | int res1 = 0 ; | |
17081 | bool temp2 = false ; | |
17082 | PyObject * obj0 = 0 ; | |
17083 | PyObject * obj1 = 0 ; | |
17084 | char * kwnames[] = { | |
17085 | (char *) "self",(char *) "message", NULL | |
17086 | }; | |
17087 | ||
17088 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17089 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17090 | if (!SWIG_IsOK(res1)) { | |
17091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17092 | } | |
17093 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17094 | { | |
17095 | arg2 = wxString_in_helper(obj1); | |
17096 | if (arg2 == NULL) SWIG_fail; | |
17097 | temp2 = true; | |
17098 | } | |
17099 | { | |
17100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17101 | (arg1)->SetMessage((wxString const &)*arg2); | |
17102 | wxPyEndAllowThreads(__tstate); | |
17103 | if (PyErr_Occurred()) SWIG_fail; | |
17104 | } | |
17105 | resultobj = SWIG_Py_Void(); | |
17106 | { | |
17107 | if (temp2) | |
17108 | delete arg2; | |
17109 | } | |
17110 | return resultobj; | |
17111 | fail: | |
17112 | { | |
17113 | if (temp2) | |
17114 | delete arg2; | |
17115 | } | |
17116 | return NULL; | |
d55e5bfc RD |
17117 | } |
17118 | ||
17119 | ||
554f62e9 RD |
17120 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17121 | PyObject *resultobj = 0; | |
17122 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17123 | wxString *arg2 = 0 ; | |
17124 | void *argp1 = 0 ; | |
17125 | int res1 = 0 ; | |
17126 | bool temp2 = false ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | char * kwnames[] = { | |
17130 | (char *) "self",(char *) "path", NULL | |
17131 | }; | |
17132 | ||
17133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17134 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17135 | if (!SWIG_IsOK(res1)) { | |
17136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17137 | } | |
17138 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17139 | { | |
17140 | arg2 = wxString_in_helper(obj1); | |
17141 | if (arg2 == NULL) SWIG_fail; | |
17142 | temp2 = true; | |
17143 | } | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | (arg1)->SetPath((wxString const &)*arg2); | |
17147 | wxPyEndAllowThreads(__tstate); | |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
17149 | } | |
17150 | resultobj = SWIG_Py_Void(); | |
17151 | { | |
17152 | if (temp2) | |
17153 | delete arg2; | |
17154 | } | |
17155 | return resultobj; | |
17156 | fail: | |
17157 | { | |
17158 | if (temp2) | |
17159 | delete arg2; | |
17160 | } | |
17161 | return NULL; | |
17162 | } | |
17163 | ||
17164 | ||
17165 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17166 | PyObject *obj; | |
17167 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17168 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
17169 | return SWIG_Py_Void(); | |
17170 | } | |
17171 | ||
17172 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17173 | return SWIG_Python_InitShadowInstance(args); | |
17174 | } | |
17175 | ||
17176 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17177 | PyObject *resultobj = 0; | |
17178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17179 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
17180 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17181 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17182 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17183 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17184 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17185 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
17186 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
704eda0c | 17187 | long arg6 = (long) wxFD_DEFAULT_STYLE ; |
554f62e9 RD |
17188 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
17189 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17190 | wxFileDialog *result = 0 ; | |
17191 | void *argp1 = 0 ; | |
17192 | int res1 = 0 ; | |
17193 | bool temp2 = false ; | |
17194 | bool temp3 = false ; | |
17195 | bool temp4 = false ; | |
17196 | bool temp5 = false ; | |
17197 | long val6 ; | |
17198 | int ecode6 = 0 ; | |
17199 | wxPoint temp7 ; | |
17200 | PyObject * obj0 = 0 ; | |
17201 | PyObject * obj1 = 0 ; | |
17202 | PyObject * obj2 = 0 ; | |
17203 | PyObject * obj3 = 0 ; | |
17204 | PyObject * obj4 = 0 ; | |
17205 | PyObject * obj5 = 0 ; | |
17206 | PyObject * obj6 = 0 ; | |
17207 | char * kwnames[] = { | |
17208 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
17209 | }; | |
17210 | ||
17211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17213 | if (!SWIG_IsOK(res1)) { | |
17214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17215 | } | |
17216 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17217 | if (obj1) { | |
d55e5bfc | 17218 | { |
554f62e9 RD |
17219 | arg2 = wxString_in_helper(obj1); |
17220 | if (arg2 == NULL) SWIG_fail; | |
17221 | temp2 = true; | |
d55e5bfc | 17222 | } |
554f62e9 RD |
17223 | } |
17224 | if (obj2) { | |
d55e5bfc | 17225 | { |
554f62e9 RD |
17226 | arg3 = wxString_in_helper(obj2); |
17227 | if (arg3 == NULL) SWIG_fail; | |
17228 | temp3 = true; | |
d55e5bfc | 17229 | } |
554f62e9 RD |
17230 | } |
17231 | if (obj3) { | |
17232 | { | |
17233 | arg4 = wxString_in_helper(obj3); | |
17234 | if (arg4 == NULL) SWIG_fail; | |
17235 | temp4 = true; | |
d55e5bfc | 17236 | } |
554f62e9 RD |
17237 | } |
17238 | if (obj4) { | |
d55e5bfc | 17239 | { |
554f62e9 RD |
17240 | arg5 = wxString_in_helper(obj4); |
17241 | if (arg5 == NULL) SWIG_fail; | |
17242 | temp5 = true; | |
d55e5bfc | 17243 | } |
554f62e9 RD |
17244 | } |
17245 | if (obj5) { | |
17246 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17247 | if (!SWIG_IsOK(ecode6)) { | |
17248 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
17249 | } | |
17250 | arg6 = static_cast< long >(val6); | |
17251 | } | |
17252 | if (obj6) { | |
d55e5bfc | 17253 | { |
554f62e9 RD |
17254 | arg7 = &temp7; |
17255 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17256 | } |
554f62e9 RD |
17257 | } |
17258 | { | |
17259 | if (!wxPyCheckForApp()) SWIG_fail; | |
17260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17261 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
17266 | { | |
17267 | if (temp2) | |
17268 | delete arg2; | |
17269 | } | |
17270 | { | |
17271 | if (temp3) | |
17272 | delete arg3; | |
17273 | } | |
17274 | { | |
17275 | if (temp4) | |
17276 | delete arg4; | |
17277 | } | |
17278 | { | |
17279 | if (temp5) | |
17280 | delete arg5; | |
17281 | } | |
17282 | return resultobj; | |
17283 | fail: | |
17284 | { | |
17285 | if (temp2) | |
17286 | delete arg2; | |
17287 | } | |
17288 | { | |
17289 | if (temp3) | |
17290 | delete arg3; | |
17291 | } | |
17292 | { | |
17293 | if (temp4) | |
17294 | delete arg4; | |
17295 | } | |
17296 | { | |
17297 | if (temp5) | |
17298 | delete arg5; | |
17299 | } | |
17300 | return NULL; | |
d55e5bfc RD |
17301 | } |
17302 | ||
17303 | ||
554f62e9 RD |
17304 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17305 | PyObject *resultobj = 0; | |
17306 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17307 | wxString *arg2 = 0 ; | |
17308 | void *argp1 = 0 ; | |
17309 | int res1 = 0 ; | |
17310 | bool temp2 = false ; | |
17311 | PyObject * obj0 = 0 ; | |
17312 | PyObject * obj1 = 0 ; | |
17313 | char * kwnames[] = { | |
17314 | (char *) "self",(char *) "message", NULL | |
17315 | }; | |
17316 | ||
17317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17319 | if (!SWIG_IsOK(res1)) { | |
17320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17321 | } | |
17322 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17323 | { | |
17324 | arg2 = wxString_in_helper(obj1); | |
17325 | if (arg2 == NULL) SWIG_fail; | |
17326 | temp2 = true; | |
17327 | } | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | (arg1)->SetMessage((wxString const &)*arg2); | |
17331 | wxPyEndAllowThreads(__tstate); | |
17332 | if (PyErr_Occurred()) SWIG_fail; | |
17333 | } | |
17334 | resultobj = SWIG_Py_Void(); | |
17335 | { | |
17336 | if (temp2) | |
17337 | delete arg2; | |
17338 | } | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | { | |
17342 | if (temp2) | |
17343 | delete arg2; | |
17344 | } | |
17345 | return NULL; | |
d55e5bfc RD |
17346 | } |
17347 | ||
17348 | ||
554f62e9 RD |
17349 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17350 | PyObject *resultobj = 0; | |
17351 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17352 | wxString *arg2 = 0 ; | |
17353 | void *argp1 = 0 ; | |
17354 | int res1 = 0 ; | |
17355 | bool temp2 = false ; | |
17356 | PyObject * obj0 = 0 ; | |
17357 | PyObject * obj1 = 0 ; | |
17358 | char * kwnames[] = { | |
17359 | (char *) "self",(char *) "path", NULL | |
17360 | }; | |
17361 | ||
17362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17364 | if (!SWIG_IsOK(res1)) { | |
17365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17366 | } | |
17367 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17368 | { | |
17369 | arg2 = wxString_in_helper(obj1); | |
17370 | if (arg2 == NULL) SWIG_fail; | |
17371 | temp2 = true; | |
17372 | } | |
17373 | { | |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17375 | (arg1)->SetPath((wxString const &)*arg2); | |
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | resultobj = SWIG_Py_Void(); | |
17380 | { | |
17381 | if (temp2) | |
17382 | delete arg2; | |
17383 | } | |
17384 | return resultobj; | |
17385 | fail: | |
17386 | { | |
17387 | if (temp2) | |
17388 | delete arg2; | |
17389 | } | |
17390 | return NULL; | |
d55e5bfc RD |
17391 | } |
17392 | ||
17393 | ||
554f62e9 RD |
17394 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17395 | PyObject *resultobj = 0; | |
17396 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17397 | wxString *arg2 = 0 ; | |
17398 | void *argp1 = 0 ; | |
17399 | int res1 = 0 ; | |
17400 | bool temp2 = false ; | |
17401 | PyObject * obj0 = 0 ; | |
17402 | PyObject * obj1 = 0 ; | |
17403 | char * kwnames[] = { | |
17404 | (char *) "self",(char *) "dir", NULL | |
17405 | }; | |
17406 | ||
17407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17409 | if (!SWIG_IsOK(res1)) { | |
17410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17411 | } | |
17412 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17413 | { | |
17414 | arg2 = wxString_in_helper(obj1); | |
17415 | if (arg2 == NULL) SWIG_fail; | |
17416 | temp2 = true; | |
17417 | } | |
17418 | { | |
17419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17420 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17421 | wxPyEndAllowThreads(__tstate); | |
17422 | if (PyErr_Occurred()) SWIG_fail; | |
17423 | } | |
17424 | resultobj = SWIG_Py_Void(); | |
17425 | { | |
17426 | if (temp2) | |
17427 | delete arg2; | |
17428 | } | |
17429 | return resultobj; | |
17430 | fail: | |
17431 | { | |
17432 | if (temp2) | |
17433 | delete arg2; | |
17434 | } | |
17435 | return NULL; | |
d55e5bfc RD |
17436 | } |
17437 | ||
17438 | ||
554f62e9 RD |
17439 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17440 | PyObject *resultobj = 0; | |
17441 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17442 | wxString *arg2 = 0 ; | |
17443 | void *argp1 = 0 ; | |
17444 | int res1 = 0 ; | |
17445 | bool temp2 = false ; | |
17446 | PyObject * obj0 = 0 ; | |
17447 | PyObject * obj1 = 0 ; | |
17448 | char * kwnames[] = { | |
17449 | (char *) "self",(char *) "name", NULL | |
17450 | }; | |
17451 | ||
17452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17454 | if (!SWIG_IsOK(res1)) { | |
17455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17456 | } | |
17457 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17458 | { | |
17459 | arg2 = wxString_in_helper(obj1); | |
17460 | if (arg2 == NULL) SWIG_fail; | |
17461 | temp2 = true; | |
17462 | } | |
17463 | { | |
17464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17465 | (arg1)->SetFilename((wxString const &)*arg2); | |
17466 | wxPyEndAllowThreads(__tstate); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | } | |
17469 | resultobj = SWIG_Py_Void(); | |
17470 | { | |
17471 | if (temp2) | |
17472 | delete arg2; | |
17473 | } | |
17474 | return resultobj; | |
17475 | fail: | |
17476 | { | |
17477 | if (temp2) | |
17478 | delete arg2; | |
17479 | } | |
17480 | return NULL; | |
d55e5bfc RD |
17481 | } |
17482 | ||
17483 | ||
554f62e9 RD |
17484 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17485 | PyObject *resultobj = 0; | |
17486 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17487 | wxString *arg2 = 0 ; | |
17488 | void *argp1 = 0 ; | |
17489 | int res1 = 0 ; | |
17490 | bool temp2 = false ; | |
17491 | PyObject * obj0 = 0 ; | |
17492 | PyObject * obj1 = 0 ; | |
17493 | char * kwnames[] = { | |
17494 | (char *) "self",(char *) "wildCard", NULL | |
17495 | }; | |
17496 | ||
17497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17499 | if (!SWIG_IsOK(res1)) { | |
17500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17501 | } | |
17502 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17503 | { | |
17504 | arg2 = wxString_in_helper(obj1); | |
17505 | if (arg2 == NULL) SWIG_fail; | |
17506 | temp2 = true; | |
17507 | } | |
17508 | { | |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17510 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | resultobj = SWIG_Py_Void(); | |
17515 | { | |
17516 | if (temp2) | |
17517 | delete arg2; | |
17518 | } | |
17519 | return resultobj; | |
17520 | fail: | |
17521 | { | |
17522 | if (temp2) | |
17523 | delete arg2; | |
17524 | } | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
554f62e9 RD |
17529 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17530 | PyObject *resultobj = 0; | |
17531 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17532 | int arg2 ; | |
17533 | void *argp1 = 0 ; | |
17534 | int res1 = 0 ; | |
17535 | int val2 ; | |
17536 | int ecode2 = 0 ; | |
17537 | PyObject * obj0 = 0 ; | |
17538 | PyObject * obj1 = 0 ; | |
17539 | char * kwnames[] = { | |
17540 | (char *) "self",(char *) "filterIndex", NULL | |
17541 | }; | |
17542 | ||
17543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17545 | if (!SWIG_IsOK(res1)) { | |
17546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17547 | } | |
17548 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17549 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17550 | if (!SWIG_IsOK(ecode2)) { | |
17551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17552 | } | |
17553 | arg2 = static_cast< int >(val2); | |
17554 | { | |
17555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17556 | (arg1)->SetFilterIndex(arg2); | |
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
17560 | resultobj = SWIG_Py_Void(); | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
d55e5bfc RD |
17564 | } |
17565 | ||
17566 | ||
554f62e9 RD |
17567 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17568 | PyObject *resultobj = 0; | |
17569 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17570 | wxString result; | |
17571 | void *argp1 = 0 ; | |
17572 | int res1 = 0 ; | |
17573 | PyObject *swig_obj[1] ; | |
17574 | ||
17575 | if (!args) SWIG_fail; | |
17576 | swig_obj[0] = args; | |
17577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17578 | if (!SWIG_IsOK(res1)) { | |
17579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17580 | } | |
17581 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17585 | wxPyEndAllowThreads(__tstate); | |
17586 | if (PyErr_Occurred()) SWIG_fail; | |
17587 | } | |
17588 | { | |
17589 | #if wxUSE_UNICODE | |
17590 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17591 | #else | |
17592 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17593 | #endif | |
17594 | } | |
17595 | return resultobj; | |
17596 | fail: | |
17597 | return NULL; | |
d55e5bfc RD |
17598 | } |
17599 | ||
17600 | ||
554f62e9 RD |
17601 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17602 | PyObject *resultobj = 0; | |
17603 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17604 | wxString result; | |
17605 | void *argp1 = 0 ; | |
17606 | int res1 = 0 ; | |
17607 | PyObject *swig_obj[1] ; | |
17608 | ||
17609 | if (!args) SWIG_fail; | |
17610 | swig_obj[0] = args; | |
17611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17612 | if (!SWIG_IsOK(res1)) { | |
17613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17614 | } | |
17615 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17616 | { | |
17617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17618 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | { | |
17623 | #if wxUSE_UNICODE | |
17624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17625 | #else | |
17626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17627 | #endif | |
17628 | } | |
17629 | return resultobj; | |
17630 | fail: | |
17631 | return NULL; | |
d55e5bfc RD |
17632 | } |
17633 | ||
17634 | ||
554f62e9 RD |
17635 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17636 | PyObject *resultobj = 0; | |
17637 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17638 | wxString result; | |
17639 | void *argp1 = 0 ; | |
17640 | int res1 = 0 ; | |
17641 | PyObject *swig_obj[1] ; | |
17642 | ||
17643 | if (!args) SWIG_fail; | |
17644 | swig_obj[0] = args; | |
17645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17646 | if (!SWIG_IsOK(res1)) { | |
17647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17648 | } | |
17649 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17650 | { | |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17653 | wxPyEndAllowThreads(__tstate); | |
17654 | if (PyErr_Occurred()) SWIG_fail; | |
17655 | } | |
17656 | { | |
17657 | #if wxUSE_UNICODE | |
17658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17659 | #else | |
17660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17661 | #endif | |
17662 | } | |
17663 | return resultobj; | |
17664 | fail: | |
17665 | return NULL; | |
d55e5bfc RD |
17666 | } |
17667 | ||
17668 | ||
554f62e9 RD |
17669 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17670 | PyObject *resultobj = 0; | |
17671 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17672 | wxString result; | |
17673 | void *argp1 = 0 ; | |
17674 | int res1 = 0 ; | |
17675 | PyObject *swig_obj[1] ; | |
17676 | ||
17677 | if (!args) SWIG_fail; | |
17678 | swig_obj[0] = args; | |
17679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17680 | if (!SWIG_IsOK(res1)) { | |
17681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17682 | } | |
17683 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17684 | { | |
17685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17686 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17687 | wxPyEndAllowThreads(__tstate); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
17690 | { | |
17691 | #if wxUSE_UNICODE | |
17692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17693 | #else | |
17694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17695 | #endif | |
17696 | } | |
17697 | return resultobj; | |
17698 | fail: | |
17699 | return NULL; | |
d55e5bfc RD |
17700 | } |
17701 | ||
17702 | ||
554f62e9 RD |
17703 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17704 | PyObject *resultobj = 0; | |
17705 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17706 | wxString result; | |
17707 | void *argp1 = 0 ; | |
17708 | int res1 = 0 ; | |
17709 | PyObject *swig_obj[1] ; | |
17710 | ||
17711 | if (!args) SWIG_fail; | |
17712 | swig_obj[0] = args; | |
17713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17714 | if (!SWIG_IsOK(res1)) { | |
17715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17716 | } | |
17717 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17718 | { | |
17719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17720 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
17724 | { | |
17725 | #if wxUSE_UNICODE | |
17726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17727 | #else | |
17728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17729 | #endif | |
17730 | } | |
17731 | return resultobj; | |
17732 | fail: | |
17733 | return NULL; | |
d55e5bfc RD |
17734 | } |
17735 | ||
17736 | ||
554f62e9 RD |
17737 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17738 | PyObject *resultobj = 0; | |
17739 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17740 | int result; | |
17741 | void *argp1 = 0 ; | |
17742 | int res1 = 0 ; | |
17743 | PyObject *swig_obj[1] ; | |
17744 | ||
17745 | if (!args) SWIG_fail; | |
17746 | swig_obj[0] = args; | |
17747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17748 | if (!SWIG_IsOK(res1)) { | |
17749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17750 | } | |
17751 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17752 | { | |
17753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17754 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
d55e5bfc RD |
17762 | } |
17763 | ||
17764 | ||
554f62e9 RD |
17765 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17766 | PyObject *resultobj = 0; | |
17767 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17768 | PyObject *result = 0 ; | |
17769 | void *argp1 = 0 ; | |
17770 | int res1 = 0 ; | |
17771 | PyObject *swig_obj[1] ; | |
17772 | ||
17773 | if (!args) SWIG_fail; | |
17774 | swig_obj[0] = args; | |
17775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17776 | if (!SWIG_IsOK(res1)) { | |
17777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17778 | } | |
17779 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17780 | { | |
17781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17782 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17783 | wxPyEndAllowThreads(__tstate); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | resultobj = result; | |
17787 | return resultobj; | |
17788 | fail: | |
17789 | return NULL; | |
d55e5bfc RD |
17790 | } |
17791 | ||
17792 | ||
554f62e9 RD |
17793 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17794 | PyObject *resultobj = 0; | |
17795 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17796 | PyObject *result = 0 ; | |
17797 | void *argp1 = 0 ; | |
17798 | int res1 = 0 ; | |
17799 | PyObject *swig_obj[1] ; | |
17800 | ||
17801 | if (!args) SWIG_fail; | |
17802 | swig_obj[0] = args; | |
17803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17804 | if (!SWIG_IsOK(res1)) { | |
17805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17806 | } | |
17807 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17808 | { | |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17811 | wxPyEndAllowThreads(__tstate); | |
17812 | if (PyErr_Occurred()) SWIG_fail; | |
17813 | } | |
17814 | resultobj = result; | |
17815 | return resultobj; | |
17816 | fail: | |
17817 | return NULL; | |
17818 | } | |
17819 | ||
17820 | ||
17821 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17822 | PyObject *obj; | |
17823 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17824 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17825 | return SWIG_Py_Void(); | |
17826 | } | |
17827 | ||
17828 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17829 | return SWIG_Python_InitShadowInstance(args); | |
17830 | } | |
17831 | ||
17832 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17833 | PyObject *resultobj = 0; | |
17834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17835 | wxString *arg2 = 0 ; | |
17836 | wxString *arg3 = 0 ; | |
17837 | int arg4 = (int) 0 ; | |
17838 | wxString *arg5 = (wxString *) NULL ; | |
17839 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17840 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17841 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17842 | wxMultiChoiceDialog *result = 0 ; | |
17843 | void *argp1 = 0 ; | |
17844 | int res1 = 0 ; | |
17845 | bool temp2 = false ; | |
17846 | bool temp3 = false ; | |
17847 | long val6 ; | |
17848 | int ecode6 = 0 ; | |
17849 | wxPoint temp7 ; | |
17850 | PyObject * obj0 = 0 ; | |
17851 | PyObject * obj1 = 0 ; | |
17852 | PyObject * obj2 = 0 ; | |
17853 | PyObject * obj3 = 0 ; | |
17854 | PyObject * obj4 = 0 ; | |
17855 | PyObject * obj5 = 0 ; | |
17856 | char * kwnames[] = { | |
17857 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17858 | }; | |
17859 | ||
17860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17862 | if (!SWIG_IsOK(res1)) { | |
17863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17864 | } | |
17865 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17866 | { | |
17867 | arg2 = wxString_in_helper(obj1); | |
17868 | if (arg2 == NULL) SWIG_fail; | |
17869 | temp2 = true; | |
17870 | } | |
17871 | { | |
17872 | arg3 = wxString_in_helper(obj2); | |
17873 | if (arg3 == NULL) SWIG_fail; | |
17874 | temp3 = true; | |
17875 | } | |
17876 | if (obj3) { | |
d55e5bfc | 17877 | { |
554f62e9 RD |
17878 | arg4 = PyList_Size(obj3); |
17879 | arg5 = wxString_LIST_helper(obj3); | |
17880 | if (arg5 == NULL) SWIG_fail; | |
d55e5bfc | 17881 | } |
554f62e9 RD |
17882 | } |
17883 | if (obj4) { | |
17884 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17885 | if (!SWIG_IsOK(ecode6)) { | |
17886 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17887 | } | |
17888 | arg6 = static_cast< long >(val6); | |
17889 | } | |
17890 | if (obj5) { | |
d55e5bfc | 17891 | { |
554f62e9 RD |
17892 | arg7 = &temp7; |
17893 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
d55e5bfc | 17894 | } |
554f62e9 RD |
17895 | } |
17896 | { | |
17897 | if (!wxPyCheckForApp()) SWIG_fail; | |
17898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17899 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17900 | wxPyEndAllowThreads(__tstate); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
17903 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17904 | { | |
17905 | if (temp2) | |
17906 | delete arg2; | |
17907 | } | |
17908 | { | |
17909 | if (temp3) | |
17910 | delete arg3; | |
17911 | } | |
17912 | { | |
17913 | if (arg5) delete [] arg5; | |
17914 | } | |
17915 | return resultobj; | |
17916 | fail: | |
17917 | { | |
17918 | if (temp2) | |
17919 | delete arg2; | |
17920 | } | |
17921 | { | |
17922 | if (temp3) | |
17923 | delete arg3; | |
17924 | } | |
17925 | { | |
17926 | if (arg5) delete [] arg5; | |
17927 | } | |
17928 | return NULL; | |
d55e5bfc RD |
17929 | } |
17930 | ||
17931 | ||
554f62e9 RD |
17932 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17933 | PyObject *resultobj = 0; | |
17934 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17935 | wxArrayInt *arg2 = 0 ; | |
17936 | void *argp1 = 0 ; | |
17937 | int res1 = 0 ; | |
17938 | bool temp2 = false ; | |
17939 | PyObject * obj0 = 0 ; | |
17940 | PyObject * obj1 = 0 ; | |
17941 | char * kwnames[] = { | |
17942 | (char *) "self",(char *) "selections", NULL | |
17943 | }; | |
17944 | ||
17945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17947 | if (!SWIG_IsOK(res1)) { | |
17948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17949 | } | |
17950 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17951 | { | |
17952 | if (! PySequence_Check(obj1)) { | |
17953 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17954 | SWIG_fail; | |
17955 | } | |
17956 | arg2 = new wxArrayInt; | |
17957 | temp2 = true; | |
17958 | int i, len=PySequence_Length(obj1); | |
17959 | for (i=0; i<len; i++) { | |
17960 | PyObject* item = PySequence_GetItem(obj1, i); | |
17961 | PyObject* number = PyNumber_Int(item); | |
17962 | arg2->Add(PyInt_AS_LONG(number)); | |
17963 | Py_DECREF(item); | |
17964 | Py_DECREF(number); | |
093d3ff1 | 17965 | } |
554f62e9 RD |
17966 | } |
17967 | { | |
17968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17969 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17970 | wxPyEndAllowThreads(__tstate); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
17972 | } | |
17973 | resultobj = SWIG_Py_Void(); | |
17974 | { | |
17975 | if (temp2) delete arg2; | |
17976 | } | |
17977 | return resultobj; | |
17978 | fail: | |
17979 | { | |
17980 | if (temp2) delete arg2; | |
17981 | } | |
17982 | return NULL; | |
d55e5bfc RD |
17983 | } |
17984 | ||
17985 | ||
554f62e9 RD |
17986 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17987 | PyObject *resultobj = 0; | |
17988 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17989 | PyObject *result = 0 ; | |
17990 | void *argp1 = 0 ; | |
17991 | int res1 = 0 ; | |
17992 | PyObject *swig_obj[1] ; | |
17993 | ||
17994 | if (!args) SWIG_fail; | |
17995 | swig_obj[0] = args; | |
17996 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17997 | if (!SWIG_IsOK(res1)) { | |
17998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17999 | } | |
18000 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
18001 | { | |
18002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18003 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | resultobj = result; | |
18008 | return resultobj; | |
18009 | fail: | |
18010 | return NULL; | |
18011 | } | |
18012 | ||
18013 | ||
18014 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18015 | PyObject *obj; | |
18016 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18017 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
18018 | return SWIG_Py_Void(); | |
18019 | } | |
18020 | ||
18021 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18022 | return SWIG_Python_InitShadowInstance(args); | |
18023 | } | |
18024 | ||
18025 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18026 | PyObject *resultobj = 0; | |
18027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18028 | wxString *arg2 = 0 ; | |
18029 | wxString *arg3 = 0 ; | |
18030 | int arg4 ; | |
18031 | wxString *arg5 = (wxString *) 0 ; | |
18032 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
18033 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
18034 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
18035 | wxSingleChoiceDialog *result = 0 ; | |
18036 | void *argp1 = 0 ; | |
18037 | int res1 = 0 ; | |
18038 | bool temp2 = false ; | |
18039 | bool temp3 = false ; | |
18040 | long val6 ; | |
18041 | int ecode6 = 0 ; | |
18042 | wxPoint temp7 ; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | PyObject * obj2 = 0 ; | |
18046 | PyObject * obj3 = 0 ; | |
18047 | PyObject * obj4 = 0 ; | |
18048 | PyObject * obj5 = 0 ; | |
18049 | char * kwnames[] = { | |
18050 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
18051 | }; | |
18052 | ||
18053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18055 | if (!SWIG_IsOK(res1)) { | |
18056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18057 | } | |
18058 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18059 | { | |
18060 | arg2 = wxString_in_helper(obj1); | |
18061 | if (arg2 == NULL) SWIG_fail; | |
18062 | temp2 = true; | |
18063 | } | |
18064 | { | |
18065 | arg3 = wxString_in_helper(obj2); | |
18066 | if (arg3 == NULL) SWIG_fail; | |
18067 | temp3 = true; | |
18068 | } | |
18069 | { | |
18070 | arg4 = PyList_Size(obj3); | |
18071 | arg5 = wxString_LIST_helper(obj3); | |
18072 | if (arg5 == NULL) SWIG_fail; | |
18073 | } | |
18074 | if (obj4) { | |
18075 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
18076 | if (!SWIG_IsOK(ecode6)) { | |
18077 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
18078 | } | |
18079 | arg6 = static_cast< long >(val6); | |
18080 | } | |
18081 | if (obj5) { | |
093d3ff1 | 18082 | { |
554f62e9 RD |
18083 | arg7 = &temp7; |
18084 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
093d3ff1 | 18085 | } |
554f62e9 RD |
18086 | } |
18087 | { | |
18088 | if (!wxPyCheckForApp()) SWIG_fail; | |
18089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18090 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
18094 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
18095 | { | |
18096 | if (temp2) | |
18097 | delete arg2; | |
18098 | } | |
18099 | { | |
18100 | if (temp3) | |
18101 | delete arg3; | |
18102 | } | |
18103 | { | |
18104 | if (arg5) delete [] arg5; | |
18105 | } | |
18106 | return resultobj; | |
18107 | fail: | |
18108 | { | |
18109 | if (temp2) | |
18110 | delete arg2; | |
18111 | } | |
18112 | { | |
18113 | if (temp3) | |
18114 | delete arg3; | |
18115 | } | |
18116 | { | |
18117 | if (arg5) delete [] arg5; | |
18118 | } | |
18119 | return NULL; | |
d55e5bfc RD |
18120 | } |
18121 | ||
18122 | ||
554f62e9 RD |
18123 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18124 | PyObject *resultobj = 0; | |
18125 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18126 | int result; | |
18127 | void *argp1 = 0 ; | |
18128 | int res1 = 0 ; | |
18129 | PyObject *swig_obj[1] ; | |
18130 | ||
18131 | if (!args) SWIG_fail; | |
18132 | swig_obj[0] = args; | |
18133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18134 | if (!SWIG_IsOK(res1)) { | |
18135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18136 | } | |
18137 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18138 | { | |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | result = (int)(arg1)->GetSelection(); | |
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18145 | return resultobj; | |
18146 | fail: | |
18147 | return NULL; | |
d55e5bfc RD |
18148 | } |
18149 | ||
18150 | ||
554f62e9 RD |
18151 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18152 | PyObject *resultobj = 0; | |
18153 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18154 | wxString result; | |
18155 | void *argp1 = 0 ; | |
18156 | int res1 = 0 ; | |
18157 | PyObject *swig_obj[1] ; | |
18158 | ||
18159 | if (!args) SWIG_fail; | |
18160 | swig_obj[0] = args; | |
18161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18162 | if (!SWIG_IsOK(res1)) { | |
18163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18164 | } | |
18165 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18166 | { | |
18167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18168 | result = (arg1)->GetStringSelection(); | |
18169 | wxPyEndAllowThreads(__tstate); | |
18170 | if (PyErr_Occurred()) SWIG_fail; | |
18171 | } | |
18172 | { | |
18173 | #if wxUSE_UNICODE | |
18174 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18175 | #else | |
18176 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18177 | #endif | |
18178 | } | |
18179 | return resultobj; | |
18180 | fail: | |
18181 | return NULL; | |
18182 | } | |
18183 | ||
18184 | ||
18185 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18186 | PyObject *resultobj = 0; | |
18187 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18188 | int arg2 ; | |
18189 | void *argp1 = 0 ; | |
18190 | int res1 = 0 ; | |
18191 | int val2 ; | |
18192 | int ecode2 = 0 ; | |
18193 | PyObject * obj0 = 0 ; | |
18194 | PyObject * obj1 = 0 ; | |
18195 | char * kwnames[] = { | |
18196 | (char *) "self",(char *) "sel", NULL | |
18197 | }; | |
18198 | ||
18199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
18200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18201 | if (!SWIG_IsOK(res1)) { | |
18202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18203 | } | |
18204 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18206 | if (!SWIG_IsOK(ecode2)) { | |
18207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18208 | } | |
18209 | arg2 = static_cast< int >(val2); | |
18210 | { | |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | (arg1)->SetSelection(arg2); | |
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
18216 | resultobj = SWIG_Py_Void(); | |
18217 | return resultobj; | |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18224 | PyObject *obj; | |
18225 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18226 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
18227 | return SWIG_Py_Void(); | |
18228 | } | |
18229 | ||
18230 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18231 | return SWIG_Python_InitShadowInstance(args); | |
18232 | } | |
18233 | ||
18234 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18235 | PyObject *resultobj = 0; | |
18236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18237 | wxString *arg2 = 0 ; | |
18238 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
18239 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18240 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18241 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18242 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18243 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18244 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18245 | wxTextEntryDialog *result = 0 ; | |
18246 | void *argp1 = 0 ; | |
18247 | int res1 = 0 ; | |
18248 | bool temp2 = false ; | |
18249 | bool temp3 = false ; | |
18250 | bool temp4 = false ; | |
18251 | long val5 ; | |
18252 | int ecode5 = 0 ; | |
18253 | wxPoint temp6 ; | |
18254 | PyObject * obj0 = 0 ; | |
18255 | PyObject * obj1 = 0 ; | |
18256 | PyObject * obj2 = 0 ; | |
18257 | PyObject * obj3 = 0 ; | |
18258 | PyObject * obj4 = 0 ; | |
18259 | PyObject * obj5 = 0 ; | |
18260 | char * kwnames[] = { | |
18261 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
18262 | }; | |
18263 | ||
18264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18266 | if (!SWIG_IsOK(res1)) { | |
18267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18268 | } | |
18269 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18270 | { | |
18271 | arg2 = wxString_in_helper(obj1); | |
18272 | if (arg2 == NULL) SWIG_fail; | |
18273 | temp2 = true; | |
18274 | } | |
18275 | if (obj2) { | |
093d3ff1 | 18276 | { |
554f62e9 RD |
18277 | arg3 = wxString_in_helper(obj2); |
18278 | if (arg3 == NULL) SWIG_fail; | |
18279 | temp3 = true; | |
093d3ff1 | 18280 | } |
554f62e9 RD |
18281 | } |
18282 | if (obj3) { | |
d55e5bfc | 18283 | { |
554f62e9 RD |
18284 | arg4 = wxString_in_helper(obj3); |
18285 | if (arg4 == NULL) SWIG_fail; | |
18286 | temp4 = true; | |
d55e5bfc | 18287 | } |
554f62e9 RD |
18288 | } |
18289 | if (obj4) { | |
18290 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18291 | if (!SWIG_IsOK(ecode5)) { | |
18292 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18293 | } | |
18294 | arg5 = static_cast< long >(val5); | |
18295 | } | |
18296 | if (obj5) { | |
d55e5bfc | 18297 | { |
554f62e9 RD |
18298 | arg6 = &temp6; |
18299 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 18300 | } |
554f62e9 RD |
18301 | } |
18302 | { | |
18303 | if (!wxPyCheckForApp()) SWIG_fail; | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18310 | { | |
18311 | if (temp2) | |
18312 | delete arg2; | |
18313 | } | |
18314 | { | |
18315 | if (temp3) | |
18316 | delete arg3; | |
18317 | } | |
18318 | { | |
18319 | if (temp4) | |
18320 | delete arg4; | |
18321 | } | |
18322 | return resultobj; | |
18323 | fail: | |
18324 | { | |
18325 | if (temp2) | |
18326 | delete arg2; | |
18327 | } | |
18328 | { | |
18329 | if (temp3) | |
18330 | delete arg3; | |
18331 | } | |
18332 | { | |
18333 | if (temp4) | |
18334 | delete arg4; | |
18335 | } | |
18336 | return NULL; | |
d55e5bfc RD |
18337 | } |
18338 | ||
18339 | ||
554f62e9 RD |
18340 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18341 | PyObject *resultobj = 0; | |
18342 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18343 | wxString result; | |
18344 | void *argp1 = 0 ; | |
18345 | int res1 = 0 ; | |
18346 | PyObject *swig_obj[1] ; | |
18347 | ||
18348 | if (!args) SWIG_fail; | |
18349 | swig_obj[0] = args; | |
18350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18351 | if (!SWIG_IsOK(res1)) { | |
18352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18353 | } | |
18354 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18355 | { | |
18356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18357 | result = (arg1)->GetValue(); | |
18358 | wxPyEndAllowThreads(__tstate); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
18360 | } | |
18361 | { | |
18362 | #if wxUSE_UNICODE | |
18363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18364 | #else | |
18365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18366 | #endif | |
18367 | } | |
18368 | return resultobj; | |
18369 | fail: | |
18370 | return NULL; | |
18371 | } | |
18372 | ||
18373 | ||
18374 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18375 | PyObject *resultobj = 0; | |
18376 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18377 | wxString *arg2 = 0 ; | |
18378 | void *argp1 = 0 ; | |
18379 | int res1 = 0 ; | |
18380 | bool temp2 = false ; | |
18381 | PyObject * obj0 = 0 ; | |
18382 | PyObject * obj1 = 0 ; | |
18383 | char * kwnames[] = { | |
18384 | (char *) "self",(char *) "value", NULL | |
18385 | }; | |
18386 | ||
18387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18389 | if (!SWIG_IsOK(res1)) { | |
18390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18391 | } | |
18392 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18393 | { | |
18394 | arg2 = wxString_in_helper(obj1); | |
18395 | if (arg2 == NULL) SWIG_fail; | |
18396 | temp2 = true; | |
18397 | } | |
18398 | { | |
18399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18400 | (arg1)->SetValue((wxString const &)*arg2); | |
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
18404 | resultobj = SWIG_Py_Void(); | |
18405 | { | |
18406 | if (temp2) | |
18407 | delete arg2; | |
18408 | } | |
18409 | return resultobj; | |
18410 | fail: | |
18411 | { | |
18412 | if (temp2) | |
18413 | delete arg2; | |
18414 | } | |
18415 | return NULL; | |
d55e5bfc RD |
18416 | } |
18417 | ||
18418 | ||
554f62e9 RD |
18419 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18420 | PyObject *obj; | |
18421 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18422 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18423 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18424 | } |
18425 | ||
554f62e9 RD |
18426 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18427 | return SWIG_Python_InitShadowInstance(args); | |
18428 | } | |
d55e5bfc | 18429 | |
554f62e9 RD |
18430 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { |
18431 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18432 | return 1; | |
d55e5bfc RD |
18433 | } |
18434 | ||
18435 | ||
554f62e9 RD |
18436 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18437 | PyObject *pyobj = 0; | |
18438 | ||
18439 | { | |
18440 | #if wxUSE_UNICODE | |
18441 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18442 | #else | |
18443 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18444 | #endif | |
18445 | } | |
18446 | return pyobj; | |
18447 | } | |
18448 | ||
18449 | ||
18450 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18451 | PyObject *resultobj = 0; | |
18452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18453 | wxString *arg2 = 0 ; | |
18454 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18455 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18456 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18457 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18458 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18459 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18460 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18461 | wxPasswordEntryDialog *result = 0 ; | |
18462 | void *argp1 = 0 ; | |
18463 | int res1 = 0 ; | |
18464 | bool temp2 = false ; | |
18465 | bool temp3 = false ; | |
18466 | bool temp4 = false ; | |
18467 | long val5 ; | |
18468 | int ecode5 = 0 ; | |
18469 | wxPoint temp6 ; | |
18470 | PyObject * obj0 = 0 ; | |
18471 | PyObject * obj1 = 0 ; | |
18472 | PyObject * obj2 = 0 ; | |
18473 | PyObject * obj3 = 0 ; | |
18474 | PyObject * obj4 = 0 ; | |
18475 | PyObject * obj5 = 0 ; | |
18476 | char * kwnames[] = { | |
18477 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18478 | }; | |
18479 | ||
18480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18482 | if (!SWIG_IsOK(res1)) { | |
18483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18484 | } | |
18485 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18486 | { | |
18487 | arg2 = wxString_in_helper(obj1); | |
18488 | if (arg2 == NULL) SWIG_fail; | |
18489 | temp2 = true; | |
18490 | } | |
18491 | if (obj2) { | |
d55e5bfc | 18492 | { |
554f62e9 RD |
18493 | arg3 = wxString_in_helper(obj2); |
18494 | if (arg3 == NULL) SWIG_fail; | |
18495 | temp3 = true; | |
d55e5bfc | 18496 | } |
554f62e9 RD |
18497 | } |
18498 | if (obj3) { | |
d55e5bfc | 18499 | { |
554f62e9 RD |
18500 | arg4 = wxString_in_helper(obj3); |
18501 | if (arg4 == NULL) SWIG_fail; | |
18502 | temp4 = true; | |
d55e5bfc | 18503 | } |
554f62e9 RD |
18504 | } |
18505 | if (obj4) { | |
18506 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18507 | if (!SWIG_IsOK(ecode5)) { | |
18508 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18509 | } | |
18510 | arg5 = static_cast< long >(val5); | |
18511 | } | |
18512 | if (obj5) { | |
093d3ff1 | 18513 | { |
554f62e9 RD |
18514 | arg6 = &temp6; |
18515 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18516 | } |
554f62e9 RD |
18517 | } |
18518 | { | |
18519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18520 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18521 | wxPyEndAllowThreads(__tstate); | |
18522 | if (PyErr_Occurred()) SWIG_fail; | |
18523 | } | |
18524 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18525 | { | |
18526 | if (temp2) | |
18527 | delete arg2; | |
18528 | } | |
18529 | { | |
18530 | if (temp3) | |
18531 | delete arg3; | |
18532 | } | |
18533 | { | |
18534 | if (temp4) | |
18535 | delete arg4; | |
18536 | } | |
18537 | return resultobj; | |
18538 | fail: | |
18539 | { | |
18540 | if (temp2) | |
18541 | delete arg2; | |
18542 | } | |
18543 | { | |
18544 | if (temp3) | |
18545 | delete arg3; | |
18546 | } | |
18547 | { | |
18548 | if (temp4) | |
18549 | delete arg4; | |
18550 | } | |
18551 | return NULL; | |
d55e5bfc RD |
18552 | } |
18553 | ||
18554 | ||
554f62e9 RD |
18555 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18556 | PyObject *obj; | |
18557 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18558 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18559 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18560 | } |
18561 | ||
554f62e9 RD |
18562 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18563 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18564 | } |
18565 | ||
27e45892 RD |
18566 | SWIGINTERN PyObject *_wrap_new_NumberEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18567 | PyObject *resultobj = 0; | |
18568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18569 | wxString *arg2 = 0 ; | |
18570 | wxString *arg3 = 0 ; | |
18571 | wxString *arg4 = 0 ; | |
18572 | long arg5 ; | |
18573 | long arg6 ; | |
18574 | long arg7 ; | |
18575 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
18576 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
18577 | wxNumberEntryDialog *result = 0 ; | |
18578 | void *argp1 = 0 ; | |
18579 | int res1 = 0 ; | |
18580 | bool temp2 = false ; | |
18581 | bool temp3 = false ; | |
18582 | bool temp4 = false ; | |
18583 | long val5 ; | |
18584 | int ecode5 = 0 ; | |
18585 | long val6 ; | |
18586 | int ecode6 = 0 ; | |
18587 | long val7 ; | |
18588 | int ecode7 = 0 ; | |
18589 | wxPoint temp8 ; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | PyObject * obj1 = 0 ; | |
18592 | PyObject * obj2 = 0 ; | |
18593 | PyObject * obj3 = 0 ; | |
18594 | PyObject * obj4 = 0 ; | |
18595 | PyObject * obj5 = 0 ; | |
18596 | PyObject * obj6 = 0 ; | |
18597 | PyObject * obj7 = 0 ; | |
18598 | char * kwnames[] = { | |
18599 | (char *) "parent",(char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "pos", NULL | |
18600 | }; | |
18601 | ||
18602 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO|O:new_NumberEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18603 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18604 | if (!SWIG_IsOK(res1)) { | |
18605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumberEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18606 | } | |
18607 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18608 | { | |
18609 | arg2 = wxString_in_helper(obj1); | |
18610 | if (arg2 == NULL) SWIG_fail; | |
18611 | temp2 = true; | |
18612 | } | |
18613 | { | |
18614 | arg3 = wxString_in_helper(obj2); | |
18615 | if (arg3 == NULL) SWIG_fail; | |
18616 | temp3 = true; | |
18617 | } | |
18618 | { | |
18619 | arg4 = wxString_in_helper(obj3); | |
18620 | if (arg4 == NULL) SWIG_fail; | |
18621 | temp4 = true; | |
18622 | } | |
18623 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18624 | if (!SWIG_IsOK(ecode5)) { | |
18625 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumberEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18626 | } | |
18627 | arg5 = static_cast< long >(val5); | |
18628 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18629 | if (!SWIG_IsOK(ecode6)) { | |
18630 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_NumberEntryDialog" "', expected argument " "6"" of type '" "long""'"); | |
18631 | } | |
18632 | arg6 = static_cast< long >(val6); | |
18633 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18634 | if (!SWIG_IsOK(ecode7)) { | |
18635 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_NumberEntryDialog" "', expected argument " "7"" of type '" "long""'"); | |
18636 | } | |
18637 | arg7 = static_cast< long >(val7); | |
18638 | if (obj7) { | |
18639 | { | |
18640 | arg8 = &temp8; | |
18641 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
18642 | } | |
18643 | } | |
18644 | { | |
18645 | if (!wxPyCheckForApp()) SWIG_fail; | |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18647 | result = (wxNumberEntryDialog *)new wxNumberEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
18648 | wxPyEndAllowThreads(__tstate); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNumberEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18652 | { | |
18653 | if (temp2) | |
18654 | delete arg2; | |
18655 | } | |
18656 | { | |
18657 | if (temp3) | |
18658 | delete arg3; | |
18659 | } | |
18660 | { | |
18661 | if (temp4) | |
18662 | delete arg4; | |
18663 | } | |
18664 | return resultobj; | |
18665 | fail: | |
18666 | { | |
18667 | if (temp2) | |
18668 | delete arg2; | |
18669 | } | |
18670 | { | |
18671 | if (temp3) | |
18672 | delete arg3; | |
18673 | } | |
18674 | { | |
18675 | if (temp4) | |
18676 | delete arg4; | |
18677 | } | |
18678 | return NULL; | |
18679 | } | |
18680 | ||
18681 | ||
18682 | SWIGINTERN PyObject *_wrap_NumberEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18683 | PyObject *resultobj = 0; | |
18684 | wxNumberEntryDialog *arg1 = (wxNumberEntryDialog *) 0 ; | |
18685 | long result; | |
18686 | void *argp1 = 0 ; | |
18687 | int res1 = 0 ; | |
18688 | PyObject *swig_obj[1] ; | |
18689 | ||
18690 | if (!args) SWIG_fail; | |
18691 | swig_obj[0] = args; | |
18692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNumberEntryDialog, 0 | 0 ); | |
18693 | if (!SWIG_IsOK(res1)) { | |
18694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxNumberEntryDialog *""'"); | |
18695 | } | |
18696 | arg1 = reinterpret_cast< wxNumberEntryDialog * >(argp1); | |
18697 | { | |
18698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18699 | result = (long)(arg1)->GetValue(); | |
18700 | wxPyEndAllowThreads(__tstate); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
18703 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
18704 | return resultobj; | |
18705 | fail: | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
18710 | SWIGINTERN PyObject *NumberEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18711 | PyObject *obj; | |
18712 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18713 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNumberEntryDialog, SWIG_NewClientData(obj)); | |
18714 | return SWIG_Py_Void(); | |
18715 | } | |
18716 | ||
18717 | SWIGINTERN PyObject *NumberEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18718 | return SWIG_Python_InitShadowInstance(args); | |
18719 | } | |
18720 | ||
554f62e9 RD |
18721 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18722 | PyObject *resultobj = 0; | |
18723 | wxFontData *result = 0 ; | |
18724 | ||
18725 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18726 | { | |
18727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18728 | result = (wxFontData *)new wxFontData(); | |
18729 | wxPyEndAllowThreads(__tstate); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
18731 | } | |
18732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18733 | return resultobj; | |
18734 | fail: | |
18735 | return NULL; | |
d55e5bfc RD |
18736 | } |
18737 | ||
18738 | ||
554f62e9 RD |
18739 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18740 | PyObject *resultobj = 0; | |
18741 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18742 | void *argp1 = 0 ; | |
18743 | int res1 = 0 ; | |
18744 | PyObject *swig_obj[1] ; | |
18745 | ||
18746 | if (!args) SWIG_fail; | |
18747 | swig_obj[0] = args; | |
18748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18749 | if (!SWIG_IsOK(res1)) { | |
18750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18751 | } | |
18752 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18753 | { | |
18754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18755 | delete arg1; | |
d55e5bfc | 18756 | |
554f62e9 RD |
18757 | wxPyEndAllowThreads(__tstate); |
18758 | if (PyErr_Occurred()) SWIG_fail; | |
18759 | } | |
18760 | resultobj = SWIG_Py_Void(); | |
18761 | return resultobj; | |
18762 | fail: | |
18763 | return NULL; | |
18764 | } | |
18765 | ||
18766 | ||
18767 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18768 | PyObject *resultobj = 0; | |
18769 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18770 | bool arg2 ; | |
18771 | void *argp1 = 0 ; | |
18772 | int res1 = 0 ; | |
18773 | bool val2 ; | |
18774 | int ecode2 = 0 ; | |
18775 | PyObject * obj0 = 0 ; | |
18776 | PyObject * obj1 = 0 ; | |
18777 | char * kwnames[] = { | |
18778 | (char *) "self",(char *) "enable", NULL | |
18779 | }; | |
18780 | ||
18781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18783 | if (!SWIG_IsOK(res1)) { | |
18784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18785 | } | |
18786 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18787 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18788 | if (!SWIG_IsOK(ecode2)) { | |
18789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18790 | } | |
18791 | arg2 = static_cast< bool >(val2); | |
18792 | { | |
18793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18794 | (arg1)->EnableEffects(arg2); | |
18795 | wxPyEndAllowThreads(__tstate); | |
18796 | if (PyErr_Occurred()) SWIG_fail; | |
18797 | } | |
18798 | resultobj = SWIG_Py_Void(); | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | return NULL; | |
d55e5bfc RD |
18802 | } |
18803 | ||
18804 | ||
554f62e9 RD |
18805 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18806 | PyObject *resultobj = 0; | |
18807 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18808 | bool result; | |
18809 | void *argp1 = 0 ; | |
18810 | int res1 = 0 ; | |
18811 | PyObject *swig_obj[1] ; | |
18812 | ||
18813 | if (!args) SWIG_fail; | |
18814 | swig_obj[0] = args; | |
18815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18816 | if (!SWIG_IsOK(res1)) { | |
18817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18818 | } | |
18819 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18820 | { | |
18821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18822 | result = (bool)(arg1)->GetAllowSymbols(); | |
18823 | wxPyEndAllowThreads(__tstate); | |
18824 | if (PyErr_Occurred()) SWIG_fail; | |
18825 | } | |
18826 | { | |
18827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18828 | } | |
18829 | return resultobj; | |
18830 | fail: | |
18831 | return NULL; | |
d55e5bfc RD |
18832 | } |
18833 | ||
18834 | ||
554f62e9 RD |
18835 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18836 | PyObject *resultobj = 0; | |
18837 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18838 | wxColour result; | |
18839 | void *argp1 = 0 ; | |
18840 | int res1 = 0 ; | |
18841 | PyObject *swig_obj[1] ; | |
18842 | ||
18843 | if (!args) SWIG_fail; | |
18844 | swig_obj[0] = args; | |
18845 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18846 | if (!SWIG_IsOK(res1)) { | |
18847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18848 | } | |
18849 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18850 | { | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = (arg1)->GetColour(); | |
18853 | wxPyEndAllowThreads(__tstate); | |
18854 | if (PyErr_Occurred()) SWIG_fail; | |
18855 | } | |
18856 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18857 | return resultobj; | |
18858 | fail: | |
18859 | return NULL; | |
70b7a5fe RD |
18860 | } |
18861 | ||
18862 | ||
554f62e9 RD |
18863 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18864 | PyObject *resultobj = 0; | |
18865 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18866 | wxFont result; | |
18867 | void *argp1 = 0 ; | |
18868 | int res1 = 0 ; | |
18869 | PyObject *swig_obj[1] ; | |
18870 | ||
18871 | if (!args) SWIG_fail; | |
18872 | swig_obj[0] = args; | |
18873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18874 | if (!SWIG_IsOK(res1)) { | |
18875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18876 | } | |
18877 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18878 | { | |
18879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18880 | result = (arg1)->GetChosenFont(); | |
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
18884 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18885 | return resultobj; | |
18886 | fail: | |
18887 | return NULL; | |
70b7a5fe RD |
18888 | } |
18889 | ||
18890 | ||
554f62e9 RD |
18891 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18892 | PyObject *resultobj = 0; | |
18893 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18894 | bool result; | |
18895 | void *argp1 = 0 ; | |
18896 | int res1 = 0 ; | |
18897 | PyObject *swig_obj[1] ; | |
18898 | ||
18899 | if (!args) SWIG_fail; | |
18900 | swig_obj[0] = args; | |
18901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18902 | if (!SWIG_IsOK(res1)) { | |
18903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18904 | } | |
18905 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18906 | { | |
18907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18908 | result = (bool)(arg1)->GetEnableEffects(); | |
18909 | wxPyEndAllowThreads(__tstate); | |
18910 | if (PyErr_Occurred()) SWIG_fail; | |
18911 | } | |
18912 | { | |
18913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18914 | } | |
18915 | return resultobj; | |
18916 | fail: | |
18917 | return NULL; | |
d55e5bfc RD |
18918 | } |
18919 | ||
18920 | ||
554f62e9 RD |
18921 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18922 | PyObject *resultobj = 0; | |
18923 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18924 | wxFont result; | |
18925 | void *argp1 = 0 ; | |
18926 | int res1 = 0 ; | |
18927 | PyObject *swig_obj[1] ; | |
18928 | ||
18929 | if (!args) SWIG_fail; | |
18930 | swig_obj[0] = args; | |
18931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18932 | if (!SWIG_IsOK(res1)) { | |
18933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18934 | } | |
18935 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18936 | { | |
18937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18938 | result = (arg1)->GetInitialFont(); | |
18939 | wxPyEndAllowThreads(__tstate); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | } | |
18942 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18943 | return resultobj; | |
18944 | fail: | |
18945 | return NULL; | |
d55e5bfc RD |
18946 | } |
18947 | ||
18948 | ||
554f62e9 RD |
18949 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18950 | PyObject *resultobj = 0; | |
18951 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18952 | bool result; | |
18953 | void *argp1 = 0 ; | |
18954 | int res1 = 0 ; | |
18955 | PyObject *swig_obj[1] ; | |
18956 | ||
18957 | if (!args) SWIG_fail; | |
18958 | swig_obj[0] = args; | |
18959 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18960 | if (!SWIG_IsOK(res1)) { | |
18961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18962 | } | |
18963 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18964 | { | |
18965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18966 | result = (bool)(arg1)->GetShowHelp(); | |
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | { | |
18971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18972 | } | |
18973 | return resultobj; | |
18974 | fail: | |
18975 | return NULL; | |
18976 | } | |
18977 | ||
18978 | ||
18979 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18980 | PyObject *resultobj = 0; | |
18981 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18982 | bool arg2 ; | |
18983 | void *argp1 = 0 ; | |
18984 | int res1 = 0 ; | |
18985 | bool val2 ; | |
18986 | int ecode2 = 0 ; | |
18987 | PyObject * obj0 = 0 ; | |
18988 | PyObject * obj1 = 0 ; | |
18989 | char * kwnames[] = { | |
18990 | (char *) "self",(char *) "allowSymbols", NULL | |
18991 | }; | |
18992 | ||
18993 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18994 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18995 | if (!SWIG_IsOK(res1)) { | |
18996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18997 | } | |
18998 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18999 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19000 | if (!SWIG_IsOK(ecode2)) { | |
19001 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
19002 | } | |
19003 | arg2 = static_cast< bool >(val2); | |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | (arg1)->SetAllowSymbols(arg2); | |
19007 | wxPyEndAllowThreads(__tstate); | |
19008 | if (PyErr_Occurred()) SWIG_fail; | |
19009 | } | |
19010 | resultobj = SWIG_Py_Void(); | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | return NULL; | |
19014 | } | |
19015 | ||
19016 | ||
19017 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19018 | PyObject *resultobj = 0; | |
19019 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19020 | wxFont *arg2 = 0 ; | |
19021 | void *argp1 = 0 ; | |
19022 | int res1 = 0 ; | |
19023 | void *argp2 = 0 ; | |
19024 | int res2 = 0 ; | |
19025 | PyObject * obj0 = 0 ; | |
19026 | PyObject * obj1 = 0 ; | |
19027 | char * kwnames[] = { | |
19028 | (char *) "self",(char *) "font", NULL | |
19029 | }; | |
19030 | ||
19031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
19032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19033 | if (!SWIG_IsOK(res1)) { | |
19034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19035 | } | |
19036 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19037 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19038 | if (!SWIG_IsOK(res2)) { | |
19039 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19040 | } | |
19041 | if (!argp2) { | |
19042 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19043 | } | |
19044 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
19048 | wxPyEndAllowThreads(__tstate); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | } | |
19051 | resultobj = SWIG_Py_Void(); | |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
19058 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19059 | PyObject *resultobj = 0; | |
19060 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19061 | wxColour *arg2 = 0 ; | |
19062 | void *argp1 = 0 ; | |
19063 | int res1 = 0 ; | |
19064 | wxColour temp2 ; | |
19065 | PyObject * obj0 = 0 ; | |
19066 | PyObject * obj1 = 0 ; | |
19067 | char * kwnames[] = { | |
19068 | (char *) "self",(char *) "colour", NULL | |
19069 | }; | |
19070 | ||
19071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
19072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19073 | if (!SWIG_IsOK(res1)) { | |
19074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19075 | } | |
19076 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19077 | { | |
19078 | arg2 = &temp2; | |
19079 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19080 | } | |
19081 | { | |
19082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19083 | (arg1)->SetColour((wxColour const &)*arg2); | |
19084 | wxPyEndAllowThreads(__tstate); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
19086 | } | |
19087 | resultobj = SWIG_Py_Void(); | |
19088 | return resultobj; | |
19089 | fail: | |
19090 | return NULL; | |
19091 | } | |
19092 | ||
19093 | ||
19094 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19095 | PyObject *resultobj = 0; | |
19096 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19097 | wxFont *arg2 = 0 ; | |
19098 | void *argp1 = 0 ; | |
19099 | int res1 = 0 ; | |
19100 | void *argp2 = 0 ; | |
19101 | int res2 = 0 ; | |
19102 | PyObject * obj0 = 0 ; | |
19103 | PyObject * obj1 = 0 ; | |
19104 | char * kwnames[] = { | |
19105 | (char *) "self",(char *) "font", NULL | |
19106 | }; | |
19107 | ||
19108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
19109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19110 | if (!SWIG_IsOK(res1)) { | |
19111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19112 | } | |
19113 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19114 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19115 | if (!SWIG_IsOK(res2)) { | |
19116 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19117 | } | |
19118 | if (!argp2) { | |
19119 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19120 | } | |
19121 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
19122 | { | |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19124 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
19125 | wxPyEndAllowThreads(__tstate); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | resultobj = SWIG_Py_Void(); | |
19129 | return resultobj; | |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj = 0; | |
19137 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19138 | int arg2 ; | |
19139 | int arg3 ; | |
19140 | void *argp1 = 0 ; | |
19141 | int res1 = 0 ; | |
19142 | int val2 ; | |
19143 | int ecode2 = 0 ; | |
19144 | int val3 ; | |
19145 | int ecode3 = 0 ; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | PyObject * obj1 = 0 ; | |
19148 | PyObject * obj2 = 0 ; | |
19149 | char * kwnames[] = { | |
19150 | (char *) "self",(char *) "min",(char *) "max", NULL | |
19151 | }; | |
19152 | ||
19153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19155 | if (!SWIG_IsOK(res1)) { | |
19156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19157 | } | |
19158 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19160 | if (!SWIG_IsOK(ecode2)) { | |
19161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
19162 | } | |
19163 | arg2 = static_cast< int >(val2); | |
19164 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19165 | if (!SWIG_IsOK(ecode3)) { | |
19166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
19167 | } | |
19168 | arg3 = static_cast< int >(val3); | |
19169 | { | |
19170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19171 | (arg1)->SetRange(arg2,arg3); | |
19172 | wxPyEndAllowThreads(__tstate); | |
19173 | if (PyErr_Occurred()) SWIG_fail; | |
19174 | } | |
19175 | resultobj = SWIG_Py_Void(); | |
19176 | return resultobj; | |
19177 | fail: | |
19178 | return NULL; | |
19179 | } | |
19180 | ||
19181 | ||
19182 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19183 | PyObject *resultobj = 0; | |
19184 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19185 | bool arg2 ; | |
19186 | void *argp1 = 0 ; | |
19187 | int res1 = 0 ; | |
19188 | bool val2 ; | |
19189 | int ecode2 = 0 ; | |
19190 | PyObject * obj0 = 0 ; | |
19191 | PyObject * obj1 = 0 ; | |
19192 | char * kwnames[] = { | |
19193 | (char *) "self",(char *) "showHelp", NULL | |
19194 | }; | |
19195 | ||
19196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
19197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19198 | if (!SWIG_IsOK(res1)) { | |
19199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19200 | } | |
19201 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19202 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19203 | if (!SWIG_IsOK(ecode2)) { | |
19204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
19205 | } | |
19206 | arg2 = static_cast< bool >(val2); | |
19207 | { | |
19208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19209 | (arg1)->SetShowHelp(arg2); | |
19210 | wxPyEndAllowThreads(__tstate); | |
19211 | if (PyErr_Occurred()) SWIG_fail; | |
19212 | } | |
19213 | resultobj = SWIG_Py_Void(); | |
19214 | return resultobj; | |
19215 | fail: | |
19216 | return NULL; | |
d55e5bfc RD |
19217 | } |
19218 | ||
19219 | ||
554f62e9 RD |
19220 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19221 | PyObject *obj; | |
19222 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19223 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
19224 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19225 | } |
19226 | ||
554f62e9 RD |
19227 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19228 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
19229 | } |
19230 | ||
554f62e9 RD |
19231 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19232 | PyObject *resultobj = 0; | |
19233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19234 | wxFontData *arg2 = 0 ; | |
19235 | wxFontDialog *result = 0 ; | |
19236 | void *argp1 = 0 ; | |
19237 | int res1 = 0 ; | |
19238 | void *argp2 = 0 ; | |
19239 | int res2 = 0 ; | |
19240 | PyObject * obj0 = 0 ; | |
19241 | PyObject * obj1 = 0 ; | |
19242 | char * kwnames[] = { | |
19243 | (char *) "parent",(char *) "data", NULL | |
19244 | }; | |
19245 | ||
19246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
19247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19248 | if (!SWIG_IsOK(res1)) { | |
19249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19250 | } | |
19251 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19252 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
19253 | if (!SWIG_IsOK(res2)) { | |
19254 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19255 | } | |
19256 | if (!argp2) { | |
19257 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19258 | } | |
19259 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
19260 | { | |
19261 | if (!wxPyCheckForApp()) SWIG_fail; | |
19262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19263 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
19264 | wxPyEndAllowThreads(__tstate); | |
19265 | if (PyErr_Occurred()) SWIG_fail; | |
19266 | } | |
19267 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
19268 | return resultobj; | |
19269 | fail: | |
19270 | return NULL; | |
d55e5bfc RD |
19271 | } |
19272 | ||
19273 | ||
554f62e9 RD |
19274 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19275 | PyObject *resultobj = 0; | |
19276 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
19277 | wxFontData *result = 0 ; | |
19278 | void *argp1 = 0 ; | |
19279 | int res1 = 0 ; | |
19280 | PyObject *swig_obj[1] ; | |
19281 | ||
19282 | if (!args) SWIG_fail; | |
19283 | swig_obj[0] = args; | |
19284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
19285 | if (!SWIG_IsOK(res1)) { | |
19286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
19287 | } | |
19288 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
19289 | { | |
19290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19291 | { |
554f62e9 RD |
19292 | wxFontData &_result_ref = (arg1)->GetFontData(); |
19293 | result = (wxFontData *) &_result_ref; | |
d55e5bfc | 19294 | } |
554f62e9 RD |
19295 | wxPyEndAllowThreads(__tstate); |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
19298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
19305 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19306 | PyObject *obj; | |
19307 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19308 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
19309 | return SWIG_Py_Void(); | |
19310 | } | |
19311 | ||
19312 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19313 | return SWIG_Python_InitShadowInstance(args); | |
19314 | } | |
19315 | ||
19316 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19317 | PyObject *resultobj = 0; | |
19318 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19319 | wxFont const &arg2_defvalue = wxNullFont ; | |
19320 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
19321 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19322 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19323 | wxFont result; | |
19324 | void *argp1 = 0 ; | |
19325 | int res1 = 0 ; | |
19326 | void *argp2 = 0 ; | |
19327 | int res2 = 0 ; | |
19328 | bool temp3 = false ; | |
19329 | PyObject * obj0 = 0 ; | |
19330 | PyObject * obj1 = 0 ; | |
19331 | PyObject * obj2 = 0 ; | |
19332 | char * kwnames[] = { | |
19333 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
19334 | }; | |
19335 | ||
19336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19337 | if (obj0) { | |
19338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19339 | if (!SWIG_IsOK(res1)) { | |
19340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
093d3ff1 | 19341 | } |
554f62e9 RD |
19342 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
19343 | } | |
19344 | if (obj1) { | |
19345 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19346 | if (!SWIG_IsOK(res2)) { | |
19347 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
093d3ff1 | 19348 | } |
554f62e9 RD |
19349 | if (!argp2) { |
19350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 19351 | } |
554f62e9 RD |
19352 | arg2 = reinterpret_cast< wxFont * >(argp2); |
19353 | } | |
19354 | if (obj2) { | |
d55e5bfc | 19355 | { |
554f62e9 RD |
19356 | arg3 = wxString_in_helper(obj2); |
19357 | if (arg3 == NULL) SWIG_fail; | |
19358 | temp3 = true; | |
d55e5bfc | 19359 | } |
554f62e9 RD |
19360 | } |
19361 | { | |
19362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19363 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
19364 | wxPyEndAllowThreads(__tstate); | |
19365 | if (PyErr_Occurred()) SWIG_fail; | |
19366 | } | |
19367 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19368 | { | |
19369 | if (temp3) | |
19370 | delete arg3; | |
19371 | } | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | { | |
19375 | if (temp3) | |
19376 | delete arg3; | |
19377 | } | |
19378 | return NULL; | |
19379 | } | |
19380 | ||
19381 | ||
19382 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19383 | PyObject *resultobj = 0; | |
19384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19385 | wxString *arg2 = 0 ; | |
19386 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
19387 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19388 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
19389 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
19390 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
19391 | wxMessageDialog *result = 0 ; | |
19392 | void *argp1 = 0 ; | |
19393 | int res1 = 0 ; | |
19394 | bool temp2 = false ; | |
19395 | bool temp3 = false ; | |
19396 | long val4 ; | |
19397 | int ecode4 = 0 ; | |
19398 | wxPoint temp5 ; | |
19399 | PyObject * obj0 = 0 ; | |
19400 | PyObject * obj1 = 0 ; | |
19401 | PyObject * obj2 = 0 ; | |
19402 | PyObject * obj3 = 0 ; | |
19403 | PyObject * obj4 = 0 ; | |
19404 | char * kwnames[] = { | |
19405 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
19406 | }; | |
19407 | ||
19408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19410 | if (!SWIG_IsOK(res1)) { | |
19411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19412 | } | |
19413 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19414 | { | |
19415 | arg2 = wxString_in_helper(obj1); | |
19416 | if (arg2 == NULL) SWIG_fail; | |
19417 | temp2 = true; | |
19418 | } | |
19419 | if (obj2) { | |
093d3ff1 | 19420 | { |
554f62e9 RD |
19421 | arg3 = wxString_in_helper(obj2); |
19422 | if (arg3 == NULL) SWIG_fail; | |
19423 | temp3 = true; | |
093d3ff1 | 19424 | } |
554f62e9 RD |
19425 | } |
19426 | if (obj3) { | |
19427 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
19428 | if (!SWIG_IsOK(ecode4)) { | |
19429 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
19430 | } | |
19431 | arg4 = static_cast< long >(val4); | |
19432 | } | |
19433 | if (obj4) { | |
d55e5bfc | 19434 | { |
554f62e9 RD |
19435 | arg5 = &temp5; |
19436 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19437 | } | |
19438 | } | |
19439 | { | |
19440 | if (!wxPyCheckForApp()) SWIG_fail; | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
19447 | { | |
19448 | if (temp2) | |
19449 | delete arg2; | |
19450 | } | |
19451 | { | |
19452 | if (temp3) | |
19453 | delete arg3; | |
19454 | } | |
19455 | return resultobj; | |
19456 | fail: | |
19457 | { | |
19458 | if (temp2) | |
19459 | delete arg2; | |
19460 | } | |
19461 | { | |
19462 | if (temp3) | |
19463 | delete arg3; | |
19464 | } | |
19465 | return NULL; | |
19466 | } | |
19467 | ||
19468 | ||
19469 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19470 | PyObject *obj; | |
19471 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19472 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
19473 | return SWIG_Py_Void(); | |
19474 | } | |
19475 | ||
19476 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19477 | return SWIG_Python_InitShadowInstance(args); | |
19478 | } | |
19479 | ||
19480 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19481 | PyObject *resultobj = 0; | |
19482 | wxString *arg1 = 0 ; | |
19483 | wxString *arg2 = 0 ; | |
19484 | int arg3 = (int) 100 ; | |
19485 | wxWindow *arg4 = (wxWindow *) NULL ; | |
19486 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
19487 | wxProgressDialog *result = 0 ; | |
19488 | bool temp1 = false ; | |
19489 | bool temp2 = false ; | |
19490 | int val3 ; | |
19491 | int ecode3 = 0 ; | |
19492 | void *argp4 = 0 ; | |
19493 | int res4 = 0 ; | |
19494 | int val5 ; | |
19495 | int ecode5 = 0 ; | |
19496 | PyObject * obj0 = 0 ; | |
19497 | PyObject * obj1 = 0 ; | |
19498 | PyObject * obj2 = 0 ; | |
19499 | PyObject * obj3 = 0 ; | |
19500 | PyObject * obj4 = 0 ; | |
19501 | char * kwnames[] = { | |
19502 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
19503 | }; | |
19504 | ||
19505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19506 | { | |
19507 | arg1 = wxString_in_helper(obj0); | |
19508 | if (arg1 == NULL) SWIG_fail; | |
19509 | temp1 = true; | |
19510 | } | |
19511 | { | |
19512 | arg2 = wxString_in_helper(obj1); | |
19513 | if (arg2 == NULL) SWIG_fail; | |
19514 | temp2 = true; | |
19515 | } | |
19516 | if (obj2) { | |
19517 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19518 | if (!SWIG_IsOK(ecode3)) { | |
19519 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
19520 | } | |
19521 | arg3 = static_cast< int >(val3); | |
19522 | } | |
19523 | if (obj3) { | |
19524 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19525 | if (!SWIG_IsOK(res4)) { | |
19526 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d55e5bfc | 19527 | } |
554f62e9 RD |
19528 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
19529 | } | |
19530 | if (obj4) { | |
19531 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19532 | if (!SWIG_IsOK(ecode5)) { | |
19533 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
19534 | } | |
19535 | arg5 = static_cast< int >(val5); | |
19536 | } | |
19537 | { | |
19538 | if (!wxPyCheckForApp()) SWIG_fail; | |
19539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19540 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19541 | wxPyEndAllowThreads(__tstate); | |
19542 | if (PyErr_Occurred()) SWIG_fail; | |
19543 | } | |
19544 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19545 | { | |
19546 | if (temp1) | |
19547 | delete arg1; | |
19548 | } | |
19549 | { | |
19550 | if (temp2) | |
19551 | delete arg2; | |
19552 | } | |
19553 | return resultobj; | |
19554 | fail: | |
19555 | { | |
19556 | if (temp1) | |
19557 | delete arg1; | |
19558 | } | |
19559 | { | |
19560 | if (temp2) | |
19561 | delete arg2; | |
19562 | } | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj = 0; | |
19569 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19570 | int arg2 ; | |
19571 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19572 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
f460c29d | 19573 | bool *arg4 = (bool *) 0 ; |
554f62e9 RD |
19574 | bool result; |
19575 | void *argp1 = 0 ; | |
19576 | int res1 = 0 ; | |
19577 | int val2 ; | |
19578 | int ecode2 = 0 ; | |
19579 | bool temp3 = false ; | |
f460c29d RD |
19580 | bool temp4 ; |
19581 | int res4 = SWIG_TMPOBJ ; | |
554f62e9 RD |
19582 | PyObject * obj0 = 0 ; |
19583 | PyObject * obj1 = 0 ; | |
19584 | PyObject * obj2 = 0 ; | |
19585 | char * kwnames[] = { | |
19586 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19587 | }; | |
19588 | ||
f460c29d | 19589 | arg4 = &temp4; |
554f62e9 RD |
19590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
19591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19592 | if (!SWIG_IsOK(res1)) { | |
19593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19594 | } | |
19595 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19596 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19597 | if (!SWIG_IsOK(ecode2)) { | |
19598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19599 | } | |
19600 | arg2 = static_cast< int >(val2); | |
19601 | if (obj2) { | |
d55e5bfc | 19602 | { |
554f62e9 RD |
19603 | arg3 = wxString_in_helper(obj2); |
19604 | if (arg3 == NULL) SWIG_fail; | |
19605 | temp3 = true; | |
d55e5bfc | 19606 | } |
554f62e9 RD |
19607 | } |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 19610 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3,arg4); |
554f62e9 RD |
19611 | wxPyEndAllowThreads(__tstate); |
19612 | if (PyErr_Occurred()) SWIG_fail; | |
19613 | } | |
19614 | { | |
19615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19616 | } | |
f460c29d RD |
19617 | if (SWIG_IsTmpObj(res4)) { |
19618 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
19619 | } else { | |
19620 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19621 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
19622 | } | |
554f62e9 RD |
19623 | { |
19624 | if (temp3) | |
19625 | delete arg3; | |
19626 | } | |
19627 | return resultobj; | |
19628 | fail: | |
19629 | { | |
19630 | if (temp3) | |
19631 | delete arg3; | |
19632 | } | |
19633 | return NULL; | |
d55e5bfc RD |
19634 | } |
19635 | ||
19636 | ||
554f62e9 RD |
19637 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19638 | PyObject *resultobj = 0; | |
19639 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19640 | void *argp1 = 0 ; | |
19641 | int res1 = 0 ; | |
19642 | PyObject *swig_obj[1] ; | |
19643 | ||
19644 | if (!args) SWIG_fail; | |
19645 | swig_obj[0] = args; | |
19646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19647 | if (!SWIG_IsOK(res1)) { | |
19648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19649 | } | |
19650 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19651 | { | |
19652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19653 | (arg1)->Resume(); | |
19654 | wxPyEndAllowThreads(__tstate); | |
19655 | if (PyErr_Occurred()) SWIG_fail; | |
19656 | } | |
19657 | resultobj = SWIG_Py_Void(); | |
19658 | return resultobj; | |
19659 | fail: | |
19660 | return NULL; | |
d55e5bfc RD |
19661 | } |
19662 | ||
19663 | ||
554f62e9 RD |
19664 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19665 | PyObject *obj; | |
19666 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19667 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19668 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19669 | } |
19670 | ||
554f62e9 RD |
19671 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19672 | return SWIG_Python_InitShadowInstance(args); | |
19673 | } | |
d55e5bfc | 19674 | |
554f62e9 RD |
19675 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19676 | PyObject *resultobj = 0; | |
19677 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19678 | int arg2 = (int) 0 ; | |
19679 | wxFindDialogEvent *result = 0 ; | |
19680 | int val1 ; | |
19681 | int ecode1 = 0 ; | |
19682 | int val2 ; | |
19683 | int ecode2 = 0 ; | |
19684 | PyObject * obj0 = 0 ; | |
19685 | PyObject * obj1 = 0 ; | |
19686 | char * kwnames[] = { | |
19687 | (char *) "commandType",(char *) "id", NULL | |
19688 | }; | |
19689 | ||
19690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19691 | if (obj0) { | |
19692 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19693 | if (!SWIG_IsOK(ecode1)) { | |
19694 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19695 | } | |
19696 | arg1 = static_cast< wxEventType >(val1); | |
19697 | } | |
19698 | if (obj1) { | |
19699 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19700 | if (!SWIG_IsOK(ecode2)) { | |
19701 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19702 | } | |
19703 | arg2 = static_cast< int >(val2); | |
19704 | } | |
19705 | { | |
19706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19707 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19708 | wxPyEndAllowThreads(__tstate); | |
19709 | if (PyErr_Occurred()) SWIG_fail; | |
19710 | } | |
19711 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19712 | return resultobj; | |
19713 | fail: | |
19714 | return NULL; | |
d55e5bfc RD |
19715 | } |
19716 | ||
19717 | ||
554f62e9 RD |
19718 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19719 | PyObject *resultobj = 0; | |
19720 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19721 | int result; | |
19722 | void *argp1 = 0 ; | |
19723 | int res1 = 0 ; | |
19724 | PyObject *swig_obj[1] ; | |
19725 | ||
19726 | if (!args) SWIG_fail; | |
19727 | swig_obj[0] = args; | |
19728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19729 | if (!SWIG_IsOK(res1)) { | |
19730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19731 | } | |
19732 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19733 | { | |
19734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19735 | result = (int)(arg1)->GetFlags(); | |
19736 | wxPyEndAllowThreads(__tstate); | |
19737 | if (PyErr_Occurred()) SWIG_fail; | |
19738 | } | |
19739 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19740 | return resultobj; | |
19741 | fail: | |
19742 | return NULL; | |
d55e5bfc RD |
19743 | } |
19744 | ||
19745 | ||
554f62e9 RD |
19746 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19747 | PyObject *resultobj = 0; | |
19748 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19749 | wxString *result = 0 ; | |
19750 | void *argp1 = 0 ; | |
19751 | int res1 = 0 ; | |
19752 | PyObject *swig_obj[1] ; | |
19753 | ||
19754 | if (!args) SWIG_fail; | |
19755 | swig_obj[0] = args; | |
19756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19757 | if (!SWIG_IsOK(res1)) { | |
19758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19759 | } | |
19760 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19763 | { |
554f62e9 RD |
19764 | wxString const &_result_ref = (arg1)->GetFindString(); |
19765 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19766 | } |
554f62e9 RD |
19767 | wxPyEndAllowThreads(__tstate); |
19768 | if (PyErr_Occurred()) SWIG_fail; | |
19769 | } | |
19770 | { | |
19771 | #if wxUSE_UNICODE | |
19772 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19773 | #else | |
19774 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19775 | #endif | |
19776 | } | |
19777 | return resultobj; | |
19778 | fail: | |
19779 | return NULL; | |
d55e5bfc RD |
19780 | } |
19781 | ||
19782 | ||
554f62e9 RD |
19783 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19784 | PyObject *resultobj = 0; | |
19785 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19786 | wxString *result = 0 ; | |
19787 | void *argp1 = 0 ; | |
19788 | int res1 = 0 ; | |
19789 | PyObject *swig_obj[1] ; | |
19790 | ||
19791 | if (!args) SWIG_fail; | |
19792 | swig_obj[0] = args; | |
19793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19794 | if (!SWIG_IsOK(res1)) { | |
19795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19796 | } | |
19797 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19798 | { | |
19799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19800 | { |
554f62e9 RD |
19801 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19802 | result = (wxString *) &_result_ref; | |
093d3ff1 | 19803 | } |
554f62e9 RD |
19804 | wxPyEndAllowThreads(__tstate); |
19805 | if (PyErr_Occurred()) SWIG_fail; | |
19806 | } | |
19807 | { | |
19808 | #if wxUSE_UNICODE | |
19809 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19810 | #else | |
19811 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19812 | #endif | |
19813 | } | |
19814 | return resultobj; | |
19815 | fail: | |
19816 | return NULL; | |
d55e5bfc RD |
19817 | } |
19818 | ||
19819 | ||
554f62e9 RD |
19820 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19821 | PyObject *resultobj = 0; | |
19822 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19823 | wxFindReplaceDialog *result = 0 ; | |
19824 | void *argp1 = 0 ; | |
19825 | int res1 = 0 ; | |
19826 | PyObject *swig_obj[1] ; | |
19827 | ||
19828 | if (!args) SWIG_fail; | |
19829 | swig_obj[0] = args; | |
19830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19831 | if (!SWIG_IsOK(res1)) { | |
19832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19833 | } | |
19834 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19835 | { | |
19836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19837 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
19841 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19842 | return resultobj; | |
19843 | fail: | |
19844 | return NULL; | |
19845 | } | |
19846 | ||
19847 | ||
19848 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19849 | PyObject *resultobj = 0; | |
19850 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19851 | int arg2 ; | |
19852 | void *argp1 = 0 ; | |
19853 | int res1 = 0 ; | |
19854 | int val2 ; | |
19855 | int ecode2 = 0 ; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | PyObject * obj1 = 0 ; | |
19858 | char * kwnames[] = { | |
19859 | (char *) "self",(char *) "flags", NULL | |
19860 | }; | |
19861 | ||
19862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19864 | if (!SWIG_IsOK(res1)) { | |
19865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19866 | } | |
19867 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19869 | if (!SWIG_IsOK(ecode2)) { | |
19870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19871 | } | |
19872 | arg2 = static_cast< int >(val2); | |
19873 | { | |
19874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19875 | (arg1)->SetFlags(arg2); | |
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | resultobj = SWIG_Py_Void(); | |
19880 | return resultobj; | |
19881 | fail: | |
19882 | return NULL; | |
19883 | } | |
19884 | ||
19885 | ||
19886 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19887 | PyObject *resultobj = 0; | |
19888 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19889 | wxString *arg2 = 0 ; | |
19890 | void *argp1 = 0 ; | |
19891 | int res1 = 0 ; | |
19892 | bool temp2 = false ; | |
19893 | PyObject * obj0 = 0 ; | |
19894 | PyObject * obj1 = 0 ; | |
19895 | char * kwnames[] = { | |
19896 | (char *) "self",(char *) "str", NULL | |
19897 | }; | |
19898 | ||
19899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19901 | if (!SWIG_IsOK(res1)) { | |
19902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19903 | } | |
19904 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19905 | { | |
19906 | arg2 = wxString_in_helper(obj1); | |
19907 | if (arg2 == NULL) SWIG_fail; | |
19908 | temp2 = true; | |
19909 | } | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | (arg1)->SetFindString((wxString const &)*arg2); | |
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | resultobj = SWIG_Py_Void(); | |
19917 | { | |
19918 | if (temp2) | |
19919 | delete arg2; | |
19920 | } | |
19921 | return resultobj; | |
19922 | fail: | |
19923 | { | |
19924 | if (temp2) | |
19925 | delete arg2; | |
19926 | } | |
19927 | return NULL; | |
d55e5bfc RD |
19928 | } |
19929 | ||
19930 | ||
554f62e9 RD |
19931 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19932 | PyObject *resultobj = 0; | |
19933 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19934 | wxString *arg2 = 0 ; | |
19935 | void *argp1 = 0 ; | |
19936 | int res1 = 0 ; | |
19937 | bool temp2 = false ; | |
19938 | PyObject * obj0 = 0 ; | |
19939 | PyObject * obj1 = 0 ; | |
19940 | char * kwnames[] = { | |
19941 | (char *) "self",(char *) "str", NULL | |
19942 | }; | |
19943 | ||
19944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19946 | if (!SWIG_IsOK(res1)) { | |
19947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19948 | } | |
19949 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19950 | { | |
19951 | arg2 = wxString_in_helper(obj1); | |
19952 | if (arg2 == NULL) SWIG_fail; | |
19953 | temp2 = true; | |
19954 | } | |
19955 | { | |
19956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19957 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19958 | wxPyEndAllowThreads(__tstate); | |
19959 | if (PyErr_Occurred()) SWIG_fail; | |
19960 | } | |
19961 | resultobj = SWIG_Py_Void(); | |
19962 | { | |
19963 | if (temp2) | |
19964 | delete arg2; | |
19965 | } | |
19966 | return resultobj; | |
19967 | fail: | |
19968 | { | |
19969 | if (temp2) | |
19970 | delete arg2; | |
19971 | } | |
19972 | return NULL; | |
d55e5bfc RD |
19973 | } |
19974 | ||
19975 | ||
554f62e9 RD |
19976 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19977 | PyObject *obj; | |
19978 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19979 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19980 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19981 | } |
19982 | ||
554f62e9 RD |
19983 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19984 | return SWIG_Python_InitShadowInstance(args); | |
19985 | } | |
d55e5bfc | 19986 | |
554f62e9 RD |
19987 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19988 | PyObject *resultobj = 0; | |
19989 | int arg1 = (int) 0 ; | |
19990 | wxFindReplaceData *result = 0 ; | |
19991 | int val1 ; | |
19992 | int ecode1 = 0 ; | |
19993 | PyObject * obj0 = 0 ; | |
19994 | char * kwnames[] = { | |
19995 | (char *) "flags", NULL | |
19996 | }; | |
19997 | ||
19998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
19999 | if (obj0) { | |
20000 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20001 | if (!SWIG_IsOK(ecode1)) { | |
20002 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
20003 | } | |
20004 | arg1 = static_cast< int >(val1); | |
20005 | } | |
20006 | { | |
20007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20008 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
20012 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
20013 | return resultobj; | |
20014 | fail: | |
20015 | return NULL; | |
d55e5bfc RD |
20016 | } |
20017 | ||
20018 | ||
554f62e9 RD |
20019 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20020 | PyObject *resultobj = 0; | |
20021 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20022 | void *argp1 = 0 ; | |
20023 | int res1 = 0 ; | |
20024 | PyObject *swig_obj[1] ; | |
20025 | ||
20026 | if (!args) SWIG_fail; | |
20027 | swig_obj[0] = args; | |
20028 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
20029 | if (!SWIG_IsOK(res1)) { | |
20030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20031 | } | |
20032 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20033 | { | |
20034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20035 | delete arg1; | |
d55e5bfc | 20036 | |
554f62e9 RD |
20037 | wxPyEndAllowThreads(__tstate); |
20038 | if (PyErr_Occurred()) SWIG_fail; | |
20039 | } | |
20040 | resultobj = SWIG_Py_Void(); | |
20041 | return resultobj; | |
20042 | fail: | |
20043 | return NULL; | |
d55e5bfc RD |
20044 | } |
20045 | ||
20046 | ||
554f62e9 RD |
20047 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20048 | PyObject *resultobj = 0; | |
20049 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20050 | wxString *result = 0 ; | |
20051 | void *argp1 = 0 ; | |
20052 | int res1 = 0 ; | |
20053 | PyObject *swig_obj[1] ; | |
20054 | ||
20055 | if (!args) SWIG_fail; | |
20056 | swig_obj[0] = args; | |
20057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20058 | if (!SWIG_IsOK(res1)) { | |
20059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20060 | } | |
20061 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20062 | { | |
20063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 20064 | { |
554f62e9 RD |
20065 | wxString const &_result_ref = (arg1)->GetFindString(); |
20066 | result = (wxString *) &_result_ref; | |
d55e5bfc | 20067 | } |
554f62e9 RD |
20068 | wxPyEndAllowThreads(__tstate); |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | { | |
20072 | #if wxUSE_UNICODE | |
20073 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20074 | #else | |
20075 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20076 | #endif | |
20077 | } | |
20078 | return resultobj; | |
20079 | fail: | |
20080 | return NULL; | |
d55e5bfc RD |
20081 | } |
20082 | ||
20083 | ||
554f62e9 RD |
20084 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20085 | PyObject *resultobj = 0; | |
20086 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20087 | wxString *result = 0 ; | |
20088 | void *argp1 = 0 ; | |
20089 | int res1 = 0 ; | |
20090 | PyObject *swig_obj[1] ; | |
20091 | ||
20092 | if (!args) SWIG_fail; | |
20093 | swig_obj[0] = args; | |
20094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20095 | if (!SWIG_IsOK(res1)) { | |
20096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20097 | } | |
20098 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20099 | { | |
20100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 20101 | { |
554f62e9 RD |
20102 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
20103 | result = (wxString *) &_result_ref; | |
d55e5bfc | 20104 | } |
554f62e9 RD |
20105 | wxPyEndAllowThreads(__tstate); |
20106 | if (PyErr_Occurred()) SWIG_fail; | |
20107 | } | |
20108 | { | |
20109 | #if wxUSE_UNICODE | |
20110 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20111 | #else | |
20112 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20113 | #endif | |
20114 | } | |
20115 | return resultobj; | |
20116 | fail: | |
20117 | return NULL; | |
d55e5bfc RD |
20118 | } |
20119 | ||
20120 | ||
554f62e9 RD |
20121 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20122 | PyObject *resultobj = 0; | |
20123 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20124 | int result; | |
20125 | void *argp1 = 0 ; | |
20126 | int res1 = 0 ; | |
20127 | PyObject *swig_obj[1] ; | |
20128 | ||
20129 | if (!args) SWIG_fail; | |
20130 | swig_obj[0] = args; | |
20131 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20132 | if (!SWIG_IsOK(res1)) { | |
20133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20134 | } | |
20135 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20136 | { | |
20137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20138 | result = (int)(arg1)->GetFlags(); | |
20139 | wxPyEndAllowThreads(__tstate); | |
20140 | if (PyErr_Occurred()) SWIG_fail; | |
20141 | } | |
20142 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20143 | return resultobj; | |
20144 | fail: | |
20145 | return NULL; | |
20146 | } | |
20147 | ||
20148 | ||
20149 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20150 | PyObject *resultobj = 0; | |
20151 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20152 | int arg2 ; | |
20153 | void *argp1 = 0 ; | |
20154 | int res1 = 0 ; | |
20155 | int val2 ; | |
20156 | int ecode2 = 0 ; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | PyObject * obj1 = 0 ; | |
20159 | char * kwnames[] = { | |
20160 | (char *) "self",(char *) "flags", NULL | |
20161 | }; | |
20162 | ||
20163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
20164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20165 | if (!SWIG_IsOK(res1)) { | |
20166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20167 | } | |
20168 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20169 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20170 | if (!SWIG_IsOK(ecode2)) { | |
20171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
20172 | } | |
20173 | arg2 = static_cast< int >(val2); | |
20174 | { | |
20175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20176 | (arg1)->SetFlags(arg2); | |
20177 | wxPyEndAllowThreads(__tstate); | |
20178 | if (PyErr_Occurred()) SWIG_fail; | |
20179 | } | |
20180 | resultobj = SWIG_Py_Void(); | |
20181 | return resultobj; | |
20182 | fail: | |
20183 | return NULL; | |
20184 | } | |
20185 | ||
20186 | ||
20187 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20188 | PyObject *resultobj = 0; | |
20189 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20190 | wxString *arg2 = 0 ; | |
20191 | void *argp1 = 0 ; | |
20192 | int res1 = 0 ; | |
20193 | bool temp2 = false ; | |
20194 | PyObject * obj0 = 0 ; | |
20195 | PyObject * obj1 = 0 ; | |
20196 | char * kwnames[] = { | |
20197 | (char *) "self",(char *) "str", NULL | |
20198 | }; | |
20199 | ||
20200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20202 | if (!SWIG_IsOK(res1)) { | |
20203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20204 | } | |
20205 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20206 | { | |
20207 | arg2 = wxString_in_helper(obj1); | |
20208 | if (arg2 == NULL) SWIG_fail; | |
20209 | temp2 = true; | |
20210 | } | |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20213 | (arg1)->SetFindString((wxString const &)*arg2); | |
20214 | wxPyEndAllowThreads(__tstate); | |
20215 | if (PyErr_Occurred()) SWIG_fail; | |
20216 | } | |
20217 | resultobj = SWIG_Py_Void(); | |
20218 | { | |
20219 | if (temp2) | |
20220 | delete arg2; | |
20221 | } | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | { | |
20225 | if (temp2) | |
20226 | delete arg2; | |
20227 | } | |
20228 | return NULL; | |
d55e5bfc RD |
20229 | } |
20230 | ||
20231 | ||
554f62e9 RD |
20232 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20233 | PyObject *resultobj = 0; | |
20234 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20235 | wxString *arg2 = 0 ; | |
20236 | void *argp1 = 0 ; | |
20237 | int res1 = 0 ; | |
20238 | bool temp2 = false ; | |
20239 | PyObject * obj0 = 0 ; | |
20240 | PyObject * obj1 = 0 ; | |
20241 | char * kwnames[] = { | |
20242 | (char *) "self",(char *) "str", NULL | |
20243 | }; | |
20244 | ||
20245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20247 | if (!SWIG_IsOK(res1)) { | |
20248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20249 | } | |
20250 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20251 | { | |
20252 | arg2 = wxString_in_helper(obj1); | |
20253 | if (arg2 == NULL) SWIG_fail; | |
20254 | temp2 = true; | |
20255 | } | |
20256 | { | |
20257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20258 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
20259 | wxPyEndAllowThreads(__tstate); | |
20260 | if (PyErr_Occurred()) SWIG_fail; | |
20261 | } | |
20262 | resultobj = SWIG_Py_Void(); | |
20263 | { | |
20264 | if (temp2) | |
20265 | delete arg2; | |
20266 | } | |
20267 | return resultobj; | |
20268 | fail: | |
20269 | { | |
20270 | if (temp2) | |
20271 | delete arg2; | |
20272 | } | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
20277 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20278 | PyObject *obj; | |
20279 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20280 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
20281 | return SWIG_Py_Void(); | |
20282 | } | |
20283 | ||
20284 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20285 | return SWIG_Python_InitShadowInstance(args); | |
20286 | } | |
20287 | ||
20288 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20289 | PyObject *resultobj = 0; | |
20290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20291 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20292 | wxString *arg3 = 0 ; | |
20293 | int arg4 = (int) 0 ; | |
20294 | wxFindReplaceDialog *result = 0 ; | |
20295 | void *argp1 = 0 ; | |
20296 | int res1 = 0 ; | |
20297 | void *argp2 = 0 ; | |
20298 | int res2 = 0 ; | |
20299 | bool temp3 = false ; | |
20300 | int val4 ; | |
20301 | int ecode4 = 0 ; | |
20302 | PyObject * obj0 = 0 ; | |
20303 | PyObject * obj1 = 0 ; | |
20304 | PyObject * obj2 = 0 ; | |
20305 | PyObject * obj3 = 0 ; | |
20306 | char * kwnames[] = { | |
20307 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20308 | }; | |
20309 | ||
20310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20312 | if (!SWIG_IsOK(res1)) { | |
20313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20314 | } | |
20315 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20316 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20317 | if (!SWIG_IsOK(res2)) { | |
20318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20319 | } | |
20320 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20321 | { | |
20322 | arg3 = wxString_in_helper(obj2); | |
20323 | if (arg3 == NULL) SWIG_fail; | |
20324 | temp3 = true; | |
20325 | } | |
20326 | if (obj3) { | |
20327 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20328 | if (!SWIG_IsOK(ecode4)) { | |
20329 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
20330 | } | |
20331 | arg4 = static_cast< int >(val4); | |
20332 | } | |
20333 | { | |
20334 | if (!wxPyCheckForApp()) SWIG_fail; | |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20336 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
20337 | wxPyEndAllowThreads(__tstate); | |
20338 | if (PyErr_Occurred()) SWIG_fail; | |
20339 | } | |
20340 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
20341 | { | |
20342 | if (temp3) | |
20343 | delete arg3; | |
20344 | } | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | { | |
20348 | if (temp3) | |
20349 | delete arg3; | |
20350 | } | |
20351 | return NULL; | |
d55e5bfc RD |
20352 | } |
20353 | ||
20354 | ||
554f62e9 RD |
20355 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20356 | PyObject *resultobj = 0; | |
20357 | wxFindReplaceDialog *result = 0 ; | |
20358 | ||
20359 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
20360 | { | |
20361 | if (!wxPyCheckForApp()) SWIG_fail; | |
20362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20363 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
20374 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20375 | PyObject *resultobj = 0; | |
20376 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20377 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20378 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
20379 | wxString *arg4 = 0 ; | |
20380 | int arg5 = (int) 0 ; | |
20381 | bool result; | |
20382 | void *argp1 = 0 ; | |
20383 | int res1 = 0 ; | |
20384 | void *argp2 = 0 ; | |
20385 | int res2 = 0 ; | |
20386 | void *argp3 = 0 ; | |
20387 | int res3 = 0 ; | |
20388 | bool temp4 = false ; | |
20389 | int val5 ; | |
20390 | int ecode5 = 0 ; | |
20391 | PyObject * obj0 = 0 ; | |
20392 | PyObject * obj1 = 0 ; | |
20393 | PyObject * obj2 = 0 ; | |
20394 | PyObject * obj3 = 0 ; | |
20395 | PyObject * obj4 = 0 ; | |
20396 | char * kwnames[] = { | |
20397 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20398 | }; | |
20399 | ||
20400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20402 | if (!SWIG_IsOK(res1)) { | |
20403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20404 | } | |
20405 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20406 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20407 | if (!SWIG_IsOK(res2)) { | |
20408 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20409 | } | |
20410 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20411 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20412 | if (!SWIG_IsOK(res3)) { | |
20413 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
20414 | } | |
20415 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
20416 | { | |
20417 | arg4 = wxString_in_helper(obj3); | |
20418 | if (arg4 == NULL) SWIG_fail; | |
20419 | temp4 = true; | |
20420 | } | |
20421 | if (obj4) { | |
20422 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20423 | if (!SWIG_IsOK(ecode5)) { | |
20424 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
20425 | } | |
20426 | arg5 = static_cast< int >(val5); | |
20427 | } | |
20428 | { | |
20429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20430 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
20431 | wxPyEndAllowThreads(__tstate); | |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
20433 | } | |
20434 | { | |
20435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20436 | } | |
20437 | { | |
20438 | if (temp4) | |
20439 | delete arg4; | |
20440 | } | |
20441 | return resultobj; | |
20442 | fail: | |
20443 | { | |
20444 | if (temp4) | |
20445 | delete arg4; | |
20446 | } | |
20447 | return NULL; | |
d55e5bfc RD |
20448 | } |
20449 | ||
20450 | ||
554f62e9 RD |
20451 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20452 | PyObject *resultobj = 0; | |
20453 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20454 | wxFindReplaceData *result = 0 ; | |
20455 | void *argp1 = 0 ; | |
20456 | int res1 = 0 ; | |
20457 | PyObject *swig_obj[1] ; | |
20458 | ||
20459 | if (!args) SWIG_fail; | |
20460 | swig_obj[0] = args; | |
20461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20462 | if (!SWIG_IsOK(res1)) { | |
20463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20464 | } | |
20465 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
20479 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20480 | PyObject *resultobj = 0; | |
20481 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20482 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20483 | void *argp1 = 0 ; | |
20484 | int res1 = 0 ; | |
20485 | void *argp2 = 0 ; | |
20486 | int res2 = 0 ; | |
20487 | PyObject * obj0 = 0 ; | |
20488 | PyObject * obj1 = 0 ; | |
20489 | char * kwnames[] = { | |
20490 | (char *) "self",(char *) "data", NULL | |
20491 | }; | |
20492 | ||
20493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
20494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20495 | if (!SWIG_IsOK(res1)) { | |
20496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20497 | } | |
20498 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20499 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20500 | if (!SWIG_IsOK(res2)) { | |
20501 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20502 | } | |
20503 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20504 | { | |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | (arg1)->SetData(arg2); | |
20507 | wxPyEndAllowThreads(__tstate); | |
20508 | if (PyErr_Occurred()) SWIG_fail; | |
20509 | } | |
20510 | resultobj = SWIG_Py_Void(); | |
20511 | return resultobj; | |
20512 | fail: | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
20517 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20518 | PyObject *obj; | |
20519 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20520 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
20521 | return SWIG_Py_Void(); | |
20522 | } | |
20523 | ||
20524 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20525 | return SWIG_Python_InitShadowInstance(args); | |
20526 | } | |
20527 | ||
20528 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20529 | PyObject *resultobj = 0; | |
20530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20531 | int arg2 = (int) (int)-1 ; | |
20532 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20533 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20534 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20535 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20536 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20537 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20538 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20539 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20540 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20541 | wxMDIParentFrame *result = 0 ; | |
20542 | void *argp1 = 0 ; | |
20543 | int res1 = 0 ; | |
20544 | int val2 ; | |
20545 | int ecode2 = 0 ; | |
20546 | bool temp3 = false ; | |
20547 | wxPoint temp4 ; | |
20548 | wxSize temp5 ; | |
20549 | long val6 ; | |
20550 | int ecode6 = 0 ; | |
20551 | bool temp7 = false ; | |
20552 | PyObject * obj0 = 0 ; | |
20553 | PyObject * obj1 = 0 ; | |
20554 | PyObject * obj2 = 0 ; | |
20555 | PyObject * obj3 = 0 ; | |
20556 | PyObject * obj4 = 0 ; | |
20557 | PyObject * obj5 = 0 ; | |
20558 | PyObject * obj6 = 0 ; | |
20559 | char * kwnames[] = { | |
20560 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20561 | }; | |
20562 | ||
20563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20565 | if (!SWIG_IsOK(res1)) { | |
20566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20567 | } | |
20568 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20569 | if (obj1) { | |
20570 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20571 | if (!SWIG_IsOK(ecode2)) { | |
20572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20573 | } | |
20574 | arg2 = static_cast< int >(val2); | |
20575 | } | |
20576 | if (obj2) { | |
d55e5bfc | 20577 | { |
554f62e9 RD |
20578 | arg3 = wxString_in_helper(obj2); |
20579 | if (arg3 == NULL) SWIG_fail; | |
20580 | temp3 = true; | |
d55e5bfc | 20581 | } |
554f62e9 RD |
20582 | } |
20583 | if (obj3) { | |
d55e5bfc | 20584 | { |
554f62e9 RD |
20585 | arg4 = &temp4; |
20586 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20587 | } |
554f62e9 RD |
20588 | } |
20589 | if (obj4) { | |
d55e5bfc | 20590 | { |
554f62e9 RD |
20591 | arg5 = &temp5; |
20592 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20593 | } | |
20594 | } | |
20595 | if (obj5) { | |
20596 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20597 | if (!SWIG_IsOK(ecode6)) { | |
20598 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20599 | } | |
20600 | arg6 = static_cast< long >(val6); | |
20601 | } | |
20602 | if (obj6) { | |
d55e5bfc | 20603 | { |
554f62e9 RD |
20604 | arg7 = wxString_in_helper(obj6); |
20605 | if (arg7 == NULL) SWIG_fail; | |
20606 | temp7 = true; | |
20607 | } | |
20608 | } | |
20609 | { | |
20610 | if (!wxPyCheckForApp()) SWIG_fail; | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20613 | wxPyEndAllowThreads(__tstate); | |
20614 | if (PyErr_Occurred()) SWIG_fail; | |
20615 | } | |
20616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20617 | { | |
20618 | if (temp3) | |
20619 | delete arg3; | |
20620 | } | |
20621 | { | |
20622 | if (temp7) | |
20623 | delete arg7; | |
20624 | } | |
20625 | return resultobj; | |
20626 | fail: | |
20627 | { | |
20628 | if (temp3) | |
20629 | delete arg3; | |
20630 | } | |
20631 | { | |
20632 | if (temp7) | |
20633 | delete arg7; | |
20634 | } | |
20635 | return NULL; | |
d55e5bfc RD |
20636 | } |
20637 | ||
20638 | ||
554f62e9 RD |
20639 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20640 | PyObject *resultobj = 0; | |
20641 | wxMDIParentFrame *result = 0 ; | |
20642 | ||
20643 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20644 | { | |
20645 | if (!wxPyCheckForApp()) SWIG_fail; | |
20646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20647 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20648 | wxPyEndAllowThreads(__tstate); | |
20649 | if (PyErr_Occurred()) SWIG_fail; | |
20650 | } | |
20651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20652 | return resultobj; | |
20653 | fail: | |
20654 | return NULL; | |
20655 | } | |
20656 | ||
20657 | ||
20658 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20659 | PyObject *resultobj = 0; | |
20660 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20661 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20662 | int arg3 = (int) (int)-1 ; | |
20663 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20664 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20665 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20666 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20667 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20668 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20669 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20670 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20671 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20672 | bool result; | |
20673 | void *argp1 = 0 ; | |
20674 | int res1 = 0 ; | |
20675 | void *argp2 = 0 ; | |
20676 | int res2 = 0 ; | |
20677 | int val3 ; | |
20678 | int ecode3 = 0 ; | |
20679 | bool temp4 = false ; | |
20680 | wxPoint temp5 ; | |
20681 | wxSize temp6 ; | |
20682 | long val7 ; | |
20683 | int ecode7 = 0 ; | |
20684 | bool temp8 = false ; | |
20685 | PyObject * obj0 = 0 ; | |
20686 | PyObject * obj1 = 0 ; | |
20687 | PyObject * obj2 = 0 ; | |
20688 | PyObject * obj3 = 0 ; | |
20689 | PyObject * obj4 = 0 ; | |
20690 | PyObject * obj5 = 0 ; | |
20691 | PyObject * obj6 = 0 ; | |
20692 | PyObject * obj7 = 0 ; | |
20693 | char * kwnames[] = { | |
20694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20695 | }; | |
20696 | ||
20697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20699 | if (!SWIG_IsOK(res1)) { | |
20700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20701 | } | |
20702 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20703 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20704 | if (!SWIG_IsOK(res2)) { | |
20705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20706 | } | |
20707 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20708 | if (obj2) { | |
20709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20710 | if (!SWIG_IsOK(ecode3)) { | |
20711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20712 | } | |
20713 | arg3 = static_cast< int >(val3); | |
20714 | } | |
20715 | if (obj3) { | |
d55e5bfc | 20716 | { |
554f62e9 RD |
20717 | arg4 = wxString_in_helper(obj3); |
20718 | if (arg4 == NULL) SWIG_fail; | |
20719 | temp4 = true; | |
d55e5bfc | 20720 | } |
554f62e9 RD |
20721 | } |
20722 | if (obj4) { | |
d55e5bfc | 20723 | { |
554f62e9 RD |
20724 | arg5 = &temp5; |
20725 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20726 | } |
554f62e9 RD |
20727 | } |
20728 | if (obj5) { | |
d55e5bfc | 20729 | { |
554f62e9 RD |
20730 | arg6 = &temp6; |
20731 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 20732 | } |
554f62e9 RD |
20733 | } |
20734 | if (obj6) { | |
20735 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20736 | if (!SWIG_IsOK(ecode7)) { | |
20737 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20738 | } | |
20739 | arg7 = static_cast< long >(val7); | |
20740 | } | |
20741 | if (obj7) { | |
d55e5bfc | 20742 | { |
554f62e9 RD |
20743 | arg8 = wxString_in_helper(obj7); |
20744 | if (arg8 == NULL) SWIG_fail; | |
20745 | temp8 = true; | |
d55e5bfc | 20746 | } |
554f62e9 RD |
20747 | } |
20748 | { | |
20749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20750 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20751 | wxPyEndAllowThreads(__tstate); | |
20752 | if (PyErr_Occurred()) SWIG_fail; | |
20753 | } | |
20754 | { | |
20755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20756 | } | |
20757 | { | |
20758 | if (temp4) | |
20759 | delete arg4; | |
20760 | } | |
20761 | { | |
20762 | if (temp8) | |
20763 | delete arg8; | |
20764 | } | |
20765 | return resultobj; | |
20766 | fail: | |
20767 | { | |
20768 | if (temp4) | |
20769 | delete arg4; | |
20770 | } | |
20771 | { | |
20772 | if (temp8) | |
20773 | delete arg8; | |
20774 | } | |
20775 | return NULL; | |
d55e5bfc RD |
20776 | } |
20777 | ||
20778 | ||
554f62e9 RD |
20779 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20780 | PyObject *resultobj = 0; | |
20781 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20782 | void *argp1 = 0 ; | |
20783 | int res1 = 0 ; | |
20784 | PyObject *swig_obj[1] ; | |
20785 | ||
20786 | if (!args) SWIG_fail; | |
20787 | swig_obj[0] = args; | |
20788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20789 | if (!SWIG_IsOK(res1)) { | |
20790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20791 | } | |
20792 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20793 | { | |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | (arg1)->ActivateNext(); | |
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
20799 | resultobj = SWIG_Py_Void(); | |
20800 | return resultobj; | |
20801 | fail: | |
20802 | return NULL; | |
d55e5bfc RD |
20803 | } |
20804 | ||
20805 | ||
554f62e9 RD |
20806 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20807 | PyObject *resultobj = 0; | |
20808 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20809 | void *argp1 = 0 ; | |
20810 | int res1 = 0 ; | |
20811 | PyObject *swig_obj[1] ; | |
20812 | ||
20813 | if (!args) SWIG_fail; | |
20814 | swig_obj[0] = args; | |
20815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20816 | if (!SWIG_IsOK(res1)) { | |
20817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20818 | } | |
20819 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20820 | { | |
20821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20822 | (arg1)->ActivatePrevious(); | |
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | resultobj = SWIG_Py_Void(); | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | return NULL; | |
d55e5bfc RD |
20830 | } |
20831 | ||
20832 | ||
554f62e9 RD |
20833 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20834 | PyObject *resultobj = 0; | |
20835 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20836 | void *argp1 = 0 ; | |
20837 | int res1 = 0 ; | |
20838 | PyObject *swig_obj[1] ; | |
20839 | ||
20840 | if (!args) SWIG_fail; | |
20841 | swig_obj[0] = args; | |
20842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20843 | if (!SWIG_IsOK(res1)) { | |
20844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20845 | } | |
20846 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20847 | { | |
20848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20849 | (arg1)->ArrangeIcons(); | |
20850 | wxPyEndAllowThreads(__tstate); | |
20851 | if (PyErr_Occurred()) SWIG_fail; | |
20852 | } | |
20853 | resultobj = SWIG_Py_Void(); | |
20854 | return resultobj; | |
20855 | fail: | |
20856 | return NULL; | |
7e08d4ef RD |
20857 | } |
20858 | ||
20859 | ||
554f62e9 RD |
20860 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20861 | PyObject *resultobj = 0; | |
20862 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20863 | void *argp1 = 0 ; | |
20864 | int res1 = 0 ; | |
20865 | PyObject *swig_obj[1] ; | |
20866 | ||
20867 | if (!args) SWIG_fail; | |
20868 | swig_obj[0] = args; | |
20869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20870 | if (!SWIG_IsOK(res1)) { | |
20871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20872 | } | |
20873 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20874 | { | |
20875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20876 | (arg1)->Cascade(); | |
20877 | wxPyEndAllowThreads(__tstate); | |
20878 | if (PyErr_Occurred()) SWIG_fail; | |
20879 | } | |
20880 | resultobj = SWIG_Py_Void(); | |
20881 | return resultobj; | |
20882 | fail: | |
20883 | return NULL; | |
d55e5bfc RD |
20884 | } |
20885 | ||
20886 | ||
554f62e9 RD |
20887 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20888 | PyObject *resultobj = 0; | |
20889 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20890 | wxMDIChildFrame *result = 0 ; | |
20891 | void *argp1 = 0 ; | |
20892 | int res1 = 0 ; | |
20893 | PyObject *swig_obj[1] ; | |
20894 | ||
20895 | if (!args) SWIG_fail; | |
20896 | swig_obj[0] = args; | |
20897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20898 | if (!SWIG_IsOK(res1)) { | |
20899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20900 | } | |
20901 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20902 | { | |
20903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20904 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20905 | wxPyEndAllowThreads(__tstate); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
20908 | { | |
20909 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20910 | } | |
20911 | return resultobj; | |
20912 | fail: | |
20913 | return NULL; | |
d55e5bfc RD |
20914 | } |
20915 | ||
20916 | ||
554f62e9 RD |
20917 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20918 | PyObject *resultobj = 0; | |
20919 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20920 | wxMDIClientWindow *result = 0 ; | |
20921 | void *argp1 = 0 ; | |
20922 | int res1 = 0 ; | |
20923 | PyObject *swig_obj[1] ; | |
20924 | ||
20925 | if (!args) SWIG_fail; | |
20926 | swig_obj[0] = args; | |
20927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20928 | if (!SWIG_IsOK(res1)) { | |
20929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20930 | } | |
20931 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20932 | { | |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
20938 | { | |
20939 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20940 | } | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | return NULL; | |
d55e5bfc RD |
20944 | } |
20945 | ||
20946 | ||
554f62e9 RD |
20947 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20948 | PyObject *resultobj = 0; | |
20949 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20950 | wxWindow *result = 0 ; | |
20951 | void *argp1 = 0 ; | |
20952 | int res1 = 0 ; | |
20953 | PyObject *swig_obj[1] ; | |
20954 | ||
20955 | if (!args) SWIG_fail; | |
20956 | swig_obj[0] = args; | |
20957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20958 | if (!SWIG_IsOK(res1)) { | |
20959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetToolBar" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20960 | } | |
20961 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20962 | { | |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | result = (wxWindow *)(arg1)->GetToolBar(); | |
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | { | |
20969 | resultobj = wxPyMake_wxObject(result, 0); | |
20970 | } | |
20971 | return resultobj; | |
20972 | fail: | |
20973 | return NULL; | |
d55e5bfc RD |
20974 | } |
20975 | ||
20976 | ||
554f62e9 RD |
20977 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20978 | PyObject *resultobj = 0; | |
20979 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20980 | wxMenu *result = 0 ; | |
20981 | void *argp1 = 0 ; | |
20982 | int res1 = 0 ; | |
20983 | PyObject *swig_obj[1] ; | |
20984 | ||
20985 | if (!args) SWIG_fail; | |
20986 | swig_obj[0] = args; | |
20987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20988 | if (!SWIG_IsOK(res1)) { | |
20989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetWindowMenu" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20990 | } | |
20991 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
20995 | wxPyEndAllowThreads(__tstate); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | } | |
20998 | { | |
20999 | resultobj = wxPyMake_wxObject(result, 0); | |
21000 | } | |
21001 | return resultobj; | |
21002 | fail: | |
21003 | return NULL; | |
21004 | } | |
21005 | ||
21006 | ||
21007 | SWIGINTERN PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21008 | PyObject *resultobj = 0; | |
21009 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21010 | wxMenu *arg2 = (wxMenu *) 0 ; | |
21011 | void *argp1 = 0 ; | |
21012 | int res1 = 0 ; | |
21013 | void *argp2 = 0 ; | |
21014 | int res2 = 0 ; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | PyObject * obj1 = 0 ; | |
21017 | char * kwnames[] = { | |
21018 | (char *) "self",(char *) "menu", NULL | |
21019 | }; | |
21020 | ||
21021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
21022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21023 | if (!SWIG_IsOK(res1)) { | |
21024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_SetWindowMenu" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21025 | } | |
21026 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21027 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
21028 | if (!SWIG_IsOK(res2)) { | |
21029 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_SetWindowMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
21030 | } | |
21031 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
21032 | { | |
21033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21034 | (arg1)->SetWindowMenu(arg2); | |
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | resultobj = SWIG_Py_Void(); | |
21039 | return resultobj; | |
21040 | fail: | |
21041 | return NULL; | |
21042 | } | |
21043 | ||
21044 | ||
21045 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21046 | PyObject *resultobj = 0; | |
21047 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21048 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
21049 | void *argp1 = 0 ; | |
21050 | int res1 = 0 ; | |
21051 | int val2 ; | |
21052 | int ecode2 = 0 ; | |
21053 | PyObject * obj0 = 0 ; | |
21054 | PyObject * obj1 = 0 ; | |
21055 | char * kwnames[] = { | |
21056 | (char *) "self",(char *) "orient", NULL | |
21057 | }; | |
21058 | ||
21059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
21060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21061 | if (!SWIG_IsOK(res1)) { | |
21062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21063 | } | |
21064 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21065 | if (obj1) { | |
21066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21067 | if (!SWIG_IsOK(ecode2)) { | |
21068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
21069 | } | |
21070 | arg2 = static_cast< wxOrientation >(val2); | |
21071 | } | |
21072 | { | |
21073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21074 | (arg1)->Tile(arg2); | |
21075 | wxPyEndAllowThreads(__tstate); | |
21076 | if (PyErr_Occurred()) SWIG_fail; | |
21077 | } | |
21078 | resultobj = SWIG_Py_Void(); | |
21079 | return resultobj; | |
21080 | fail: | |
21081 | return NULL; | |
21082 | } | |
21083 | ||
21084 | ||
21085 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21086 | PyObject *obj; | |
21087 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21088 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
21089 | return SWIG_Py_Void(); | |
21090 | } | |
21091 | ||
21092 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21093 | return SWIG_Python_InitShadowInstance(args); | |
21094 | } | |
21095 | ||
21096 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21097 | PyObject *resultobj = 0; | |
21098 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21099 | int arg2 = (int) (int)-1 ; | |
21100 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
21101 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21102 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21103 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21104 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21105 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21106 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
21107 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
21108 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21109 | wxMDIChildFrame *result = 0 ; | |
21110 | void *argp1 = 0 ; | |
21111 | int res1 = 0 ; | |
21112 | int val2 ; | |
21113 | int ecode2 = 0 ; | |
21114 | bool temp3 = false ; | |
21115 | wxPoint temp4 ; | |
21116 | wxSize temp5 ; | |
21117 | long val6 ; | |
21118 | int ecode6 = 0 ; | |
21119 | bool temp7 = false ; | |
21120 | PyObject * obj0 = 0 ; | |
21121 | PyObject * obj1 = 0 ; | |
21122 | PyObject * obj2 = 0 ; | |
21123 | PyObject * obj3 = 0 ; | |
21124 | PyObject * obj4 = 0 ; | |
21125 | PyObject * obj5 = 0 ; | |
21126 | PyObject * obj6 = 0 ; | |
21127 | char * kwnames[] = { | |
21128 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21129 | }; | |
21130 | ||
21131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21133 | if (!SWIG_IsOK(res1)) { | |
21134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21135 | } | |
21136 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21137 | if (obj1) { | |
21138 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21139 | if (!SWIG_IsOK(ecode2)) { | |
21140 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
21141 | } | |
21142 | arg2 = static_cast< int >(val2); | |
21143 | } | |
21144 | if (obj2) { | |
d55e5bfc | 21145 | { |
554f62e9 RD |
21146 | arg3 = wxString_in_helper(obj2); |
21147 | if (arg3 == NULL) SWIG_fail; | |
21148 | temp3 = true; | |
d55e5bfc | 21149 | } |
554f62e9 RD |
21150 | } |
21151 | if (obj3) { | |
d55e5bfc | 21152 | { |
554f62e9 RD |
21153 | arg4 = &temp4; |
21154 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21155 | } |
554f62e9 RD |
21156 | } |
21157 | if (obj4) { | |
d55e5bfc | 21158 | { |
554f62e9 RD |
21159 | arg5 = &temp5; |
21160 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21161 | } |
554f62e9 RD |
21162 | } |
21163 | if (obj5) { | |
21164 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21165 | if (!SWIG_IsOK(ecode6)) { | |
21166 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
21167 | } | |
21168 | arg6 = static_cast< long >(val6); | |
21169 | } | |
21170 | if (obj6) { | |
d55e5bfc | 21171 | { |
554f62e9 RD |
21172 | arg7 = wxString_in_helper(obj6); |
21173 | if (arg7 == NULL) SWIG_fail; | |
21174 | temp7 = true; | |
d55e5bfc | 21175 | } |
554f62e9 RD |
21176 | } |
21177 | { | |
21178 | if (!wxPyCheckForApp()) SWIG_fail; | |
21179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21180 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21181 | wxPyEndAllowThreads(__tstate); | |
21182 | if (PyErr_Occurred()) SWIG_fail; | |
21183 | } | |
21184 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
21185 | { | |
21186 | if (temp3) | |
21187 | delete arg3; | |
21188 | } | |
21189 | { | |
21190 | if (temp7) | |
21191 | delete arg7; | |
21192 | } | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | { | |
21196 | if (temp3) | |
21197 | delete arg3; | |
21198 | } | |
21199 | { | |
21200 | if (temp7) | |
21201 | delete arg7; | |
21202 | } | |
21203 | return NULL; | |
d55e5bfc RD |
21204 | } |
21205 | ||
21206 | ||
554f62e9 RD |
21207 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21208 | PyObject *resultobj = 0; | |
21209 | wxMDIChildFrame *result = 0 ; | |
21210 | ||
21211 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
21212 | { | |
21213 | if (!wxPyCheckForApp()) SWIG_fail; | |
21214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21215 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
21220 | return resultobj; | |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21227 | PyObject *resultobj = 0; | |
21228 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21229 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21230 | int arg3 = (int) (int)-1 ; | |
21231 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21232 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21233 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
21234 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
21235 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
21236 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
21237 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
21238 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
21239 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21240 | bool result; | |
21241 | void *argp1 = 0 ; | |
21242 | int res1 = 0 ; | |
21243 | void *argp2 = 0 ; | |
21244 | int res2 = 0 ; | |
21245 | int val3 ; | |
21246 | int ecode3 = 0 ; | |
21247 | bool temp4 = false ; | |
21248 | wxPoint temp5 ; | |
21249 | wxSize temp6 ; | |
21250 | long val7 ; | |
21251 | int ecode7 = 0 ; | |
21252 | bool temp8 = false ; | |
21253 | PyObject * obj0 = 0 ; | |
21254 | PyObject * obj1 = 0 ; | |
21255 | PyObject * obj2 = 0 ; | |
21256 | PyObject * obj3 = 0 ; | |
21257 | PyObject * obj4 = 0 ; | |
21258 | PyObject * obj5 = 0 ; | |
21259 | PyObject * obj6 = 0 ; | |
21260 | PyObject * obj7 = 0 ; | |
21261 | char * kwnames[] = { | |
21262 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21263 | }; | |
21264 | ||
21265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
21266 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21267 | if (!SWIG_IsOK(res1)) { | |
21268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21269 | } | |
21270 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21271 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21272 | if (!SWIG_IsOK(res2)) { | |
21273 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21274 | } | |
21275 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21276 | if (obj2) { | |
21277 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21278 | if (!SWIG_IsOK(ecode3)) { | |
21279 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
21280 | } | |
21281 | arg3 = static_cast< int >(val3); | |
21282 | } | |
21283 | if (obj3) { | |
d55e5bfc | 21284 | { |
554f62e9 RD |
21285 | arg4 = wxString_in_helper(obj3); |
21286 | if (arg4 == NULL) SWIG_fail; | |
21287 | temp4 = true; | |
d55e5bfc | 21288 | } |
554f62e9 RD |
21289 | } |
21290 | if (obj4) { | |
d55e5bfc | 21291 | { |
554f62e9 RD |
21292 | arg5 = &temp5; |
21293 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 21294 | } |
554f62e9 RD |
21295 | } |
21296 | if (obj5) { | |
093d3ff1 | 21297 | { |
554f62e9 RD |
21298 | arg6 = &temp6; |
21299 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 21300 | } |
554f62e9 RD |
21301 | } |
21302 | if (obj6) { | |
21303 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
21304 | if (!SWIG_IsOK(ecode7)) { | |
21305 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
21306 | } | |
21307 | arg7 = static_cast< long >(val7); | |
21308 | } | |
21309 | if (obj7) { | |
d55e5bfc | 21310 | { |
554f62e9 RD |
21311 | arg8 = wxString_in_helper(obj7); |
21312 | if (arg8 == NULL) SWIG_fail; | |
21313 | temp8 = true; | |
d55e5bfc | 21314 | } |
554f62e9 RD |
21315 | } |
21316 | { | |
21317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21318 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21319 | wxPyEndAllowThreads(__tstate); | |
21320 | if (PyErr_Occurred()) SWIG_fail; | |
21321 | } | |
21322 | { | |
21323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21324 | } | |
21325 | { | |
21326 | if (temp4) | |
21327 | delete arg4; | |
21328 | } | |
21329 | { | |
21330 | if (temp8) | |
21331 | delete arg8; | |
21332 | } | |
21333 | return resultobj; | |
21334 | fail: | |
21335 | { | |
21336 | if (temp4) | |
21337 | delete arg4; | |
21338 | } | |
21339 | { | |
21340 | if (temp8) | |
21341 | delete arg8; | |
21342 | } | |
21343 | return NULL; | |
d55e5bfc RD |
21344 | } |
21345 | ||
21346 | ||
554f62e9 RD |
21347 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21348 | PyObject *resultobj = 0; | |
21349 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21350 | void *argp1 = 0 ; | |
21351 | int res1 = 0 ; | |
21352 | PyObject *swig_obj[1] ; | |
21353 | ||
21354 | if (!args) SWIG_fail; | |
21355 | swig_obj[0] = args; | |
21356 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21357 | if (!SWIG_IsOK(res1)) { | |
21358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21359 | } | |
21360 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21361 | { | |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21363 | (arg1)->Activate(); | |
21364 | wxPyEndAllowThreads(__tstate); | |
21365 | if (PyErr_Occurred()) SWIG_fail; | |
21366 | } | |
21367 | resultobj = SWIG_Py_Void(); | |
21368 | return resultobj; | |
21369 | fail: | |
21370 | return NULL; | |
d55e5bfc RD |
21371 | } |
21372 | ||
21373 | ||
554f62e9 RD |
21374 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21375 | PyObject *obj; | |
21376 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21377 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
21378 | return SWIG_Py_Void(); | |
d55e5bfc RD |
21379 | } |
21380 | ||
554f62e9 RD |
21381 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21382 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
21383 | } |
21384 | ||
554f62e9 RD |
21385 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21386 | PyObject *resultobj = 0; | |
21387 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21388 | long arg2 = (long) 0 ; | |
21389 | wxMDIClientWindow *result = 0 ; | |
21390 | void *argp1 = 0 ; | |
21391 | int res1 = 0 ; | |
21392 | long val2 ; | |
21393 | int ecode2 = 0 ; | |
21394 | PyObject * obj0 = 0 ; | |
21395 | PyObject * obj1 = 0 ; | |
21396 | char * kwnames[] = { | |
21397 | (char *) "parent",(char *) "style", NULL | |
21398 | }; | |
21399 | ||
21400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
21401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21402 | if (!SWIG_IsOK(res1)) { | |
21403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21404 | } | |
21405 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21406 | if (obj1) { | |
21407 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
21408 | if (!SWIG_IsOK(ecode2)) { | |
21409 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
21410 | } | |
21411 | arg2 = static_cast< long >(val2); | |
21412 | } | |
21413 | { | |
21414 | if (!wxPyCheckForApp()) SWIG_fail; | |
21415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21416 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
21417 | wxPyEndAllowThreads(__tstate); | |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
21419 | } | |
21420 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
21421 | return resultobj; | |
21422 | fail: | |
21423 | return NULL; | |
d55e5bfc RD |
21424 | } |
21425 | ||
21426 | ||
554f62e9 RD |
21427 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21428 | PyObject *resultobj = 0; | |
21429 | wxMDIClientWindow *result = 0 ; | |
21430 | ||
21431 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
21432 | { | |
21433 | if (!wxPyCheckForApp()) SWIG_fail; | |
21434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21435 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
21436 | wxPyEndAllowThreads(__tstate); | |
21437 | if (PyErr_Occurred()) SWIG_fail; | |
21438 | } | |
21439 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | return NULL; | |
21443 | } | |
21444 | ||
21445 | ||
21446 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21447 | PyObject *resultobj = 0; | |
21448 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
21449 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21450 | long arg3 = (long) 0 ; | |
21451 | bool result; | |
21452 | void *argp1 = 0 ; | |
21453 | int res1 = 0 ; | |
21454 | void *argp2 = 0 ; | |
21455 | int res2 = 0 ; | |
21456 | long val3 ; | |
21457 | int ecode3 = 0 ; | |
21458 | PyObject * obj0 = 0 ; | |
21459 | PyObject * obj1 = 0 ; | |
21460 | PyObject * obj2 = 0 ; | |
21461 | char * kwnames[] = { | |
21462 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
21463 | }; | |
21464 | ||
21465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
21467 | if (!SWIG_IsOK(res1)) { | |
21468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
21469 | } | |
21470 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
21471 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21472 | if (!SWIG_IsOK(res2)) { | |
21473 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21474 | } | |
21475 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21476 | if (obj2) { | |
21477 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
21478 | if (!SWIG_IsOK(ecode3)) { | |
21479 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
21480 | } | |
21481 | arg3 = static_cast< long >(val3); | |
21482 | } | |
21483 | { | |
21484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21485 | result = (bool)(arg1)->Create(arg2,arg3); | |
21486 | wxPyEndAllowThreads(__tstate); | |
21487 | if (PyErr_Occurred()) SWIG_fail; | |
21488 | } | |
21489 | { | |
21490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21491 | } | |
21492 | return resultobj; | |
21493 | fail: | |
21494 | return NULL; | |
21495 | } | |
21496 | ||
21497 | ||
21498 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21499 | PyObject *obj; | |
21500 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21501 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
21502 | return SWIG_Py_Void(); | |
21503 | } | |
21504 | ||
21505 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21506 | return SWIG_Python_InitShadowInstance(args); | |
21507 | } | |
21508 | ||
21509 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21510 | PyObject *resultobj = 0; | |
21511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21512 | int arg2 = (int) (int)-1 ; | |
21513 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21514 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21515 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21516 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21517 | long arg5 = (long) 0 ; | |
21518 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21519 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21520 | wxPyWindow *result = 0 ; | |
21521 | void *argp1 = 0 ; | |
21522 | int res1 = 0 ; | |
21523 | int val2 ; | |
21524 | int ecode2 = 0 ; | |
21525 | wxPoint temp3 ; | |
21526 | wxSize temp4 ; | |
21527 | long val5 ; | |
21528 | int ecode5 = 0 ; | |
21529 | bool temp6 = false ; | |
21530 | PyObject * obj0 = 0 ; | |
21531 | PyObject * obj1 = 0 ; | |
21532 | PyObject * obj2 = 0 ; | |
21533 | PyObject * obj3 = 0 ; | |
21534 | PyObject * obj4 = 0 ; | |
21535 | PyObject * obj5 = 0 ; | |
21536 | char * kwnames[] = { | |
21537 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21538 | }; | |
21539 | ||
21540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21542 | if (!SWIG_IsOK(res1)) { | |
21543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21544 | } | |
21545 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21546 | if (obj1) { | |
21547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21548 | if (!SWIG_IsOK(ecode2)) { | |
21549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
21550 | } | |
21551 | arg2 = static_cast< int >(val2); | |
21552 | } | |
21553 | if (obj2) { | |
d55e5bfc | 21554 | { |
554f62e9 RD |
21555 | arg3 = &temp3; |
21556 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 21557 | } |
554f62e9 RD |
21558 | } |
21559 | if (obj3) { | |
d55e5bfc | 21560 | { |
554f62e9 RD |
21561 | arg4 = &temp4; |
21562 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21563 | } |
554f62e9 RD |
21564 | } |
21565 | if (obj4) { | |
21566 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21567 | if (!SWIG_IsOK(ecode5)) { | |
21568 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
21569 | } | |
21570 | arg5 = static_cast< long >(val5); | |
21571 | } | |
21572 | if (obj5) { | |
d55e5bfc | 21573 | { |
554f62e9 RD |
21574 | arg6 = wxString_in_helper(obj5); |
21575 | if (arg6 == NULL) SWIG_fail; | |
21576 | temp6 = true; | |
d55e5bfc | 21577 | } |
554f62e9 RD |
21578 | } |
21579 | { | |
21580 | if (!wxPyCheckForApp()) SWIG_fail; | |
21581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21582 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21583 | wxPyEndAllowThreads(__tstate); | |
21584 | if (PyErr_Occurred()) SWIG_fail; | |
21585 | } | |
21586 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
21587 | { | |
21588 | if (temp6) | |
21589 | delete arg6; | |
21590 | } | |
21591 | return resultobj; | |
21592 | fail: | |
21593 | { | |
21594 | if (temp6) | |
21595 | delete arg6; | |
21596 | } | |
21597 | return NULL; | |
d55e5bfc RD |
21598 | } |
21599 | ||
21600 | ||
554f62e9 RD |
21601 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21602 | PyObject *resultobj = 0; | |
21603 | wxPyWindow *result = 0 ; | |
21604 | ||
21605 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
21606 | { | |
21607 | if (!wxPyCheckForApp()) SWIG_fail; | |
21608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21609 | result = (wxPyWindow *)new wxPyWindow(); | |
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
21613 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21614 | return resultobj; | |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
21620 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21621 | PyObject *resultobj = 0; | |
21622 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21623 | PyObject *arg2 = (PyObject *) 0 ; | |
21624 | PyObject *arg3 = (PyObject *) 0 ; | |
21625 | void *argp1 = 0 ; | |
21626 | int res1 = 0 ; | |
21627 | PyObject * obj0 = 0 ; | |
21628 | PyObject * obj1 = 0 ; | |
21629 | PyObject * obj2 = 0 ; | |
21630 | char * kwnames[] = { | |
21631 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21632 | }; | |
21633 | ||
21634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21636 | if (!SWIG_IsOK(res1)) { | |
21637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21638 | } | |
21639 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21640 | arg2 = obj1; | |
21641 | arg3 = obj2; | |
21642 | { | |
21643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21644 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21645 | wxPyEndAllowThreads(__tstate); | |
21646 | if (PyErr_Occurred()) SWIG_fail; | |
21647 | } | |
21648 | resultobj = SWIG_Py_Void(); | |
21649 | return resultobj; | |
21650 | fail: | |
21651 | return NULL; | |
21652 | } | |
21653 | ||
21654 | ||
21655 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21656 | PyObject *resultobj = 0; | |
21657 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21658 | wxSize *arg2 = 0 ; | |
21659 | void *argp1 = 0 ; | |
21660 | int res1 = 0 ; | |
21661 | wxSize temp2 ; | |
21662 | PyObject * obj0 = 0 ; | |
21663 | PyObject * obj1 = 0 ; | |
21664 | char * kwnames[] = { | |
21665 | (char *) "self",(char *) "size", NULL | |
21666 | }; | |
21667 | ||
21668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21670 | if (!SWIG_IsOK(res1)) { | |
21671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21672 | } | |
21673 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21674 | { | |
21675 | arg2 = &temp2; | |
21676 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21677 | } | |
21678 | { | |
21679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21680 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21681 | wxPyEndAllowThreads(__tstate); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | } | |
21684 | resultobj = SWIG_Py_Void(); | |
21685 | return resultobj; | |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
21691 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21692 | PyObject *resultobj = 0; | |
21693 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21694 | wxDC *arg2 = (wxDC *) 0 ; | |
21695 | bool result; | |
21696 | void *argp1 = 0 ; | |
21697 | int res1 = 0 ; | |
21698 | void *argp2 = 0 ; | |
21699 | int res2 = 0 ; | |
21700 | PyObject * obj0 = 0 ; | |
21701 | PyObject * obj1 = 0 ; | |
21702 | char * kwnames[] = { | |
21703 | (char *) "self",(char *) "dc", NULL | |
21704 | }; | |
21705 | ||
21706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21708 | if (!SWIG_IsOK(res1)) { | |
21709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21710 | } | |
21711 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21712 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21713 | if (!SWIG_IsOK(res2)) { | |
21714 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21715 | } | |
21716 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21717 | { | |
21718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21719 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
21723 | { | |
21724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21725 | } | |
21726 | return resultobj; | |
21727 | fail: | |
21728 | return NULL; | |
21729 | } | |
21730 | ||
21731 | ||
21732 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21733 | PyObject *resultobj = 0; | |
21734 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21735 | int arg2 ; | |
21736 | int arg3 ; | |
21737 | int arg4 ; | |
21738 | int arg5 ; | |
21739 | void *argp1 = 0 ; | |
21740 | int res1 = 0 ; | |
21741 | int val2 ; | |
21742 | int ecode2 = 0 ; | |
21743 | int val3 ; | |
21744 | int ecode3 = 0 ; | |
21745 | int val4 ; | |
21746 | int ecode4 = 0 ; | |
21747 | int val5 ; | |
21748 | int ecode5 = 0 ; | |
21749 | PyObject * obj0 = 0 ; | |
21750 | PyObject * obj1 = 0 ; | |
21751 | PyObject * obj2 = 0 ; | |
21752 | PyObject * obj3 = 0 ; | |
21753 | PyObject * obj4 = 0 ; | |
21754 | char * kwnames[] = { | |
21755 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21756 | }; | |
21757 | ||
21758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21760 | if (!SWIG_IsOK(res1)) { | |
21761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21762 | } | |
21763 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21764 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21765 | if (!SWIG_IsOK(ecode2)) { | |
21766 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21767 | } | |
21768 | arg2 = static_cast< int >(val2); | |
21769 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21770 | if (!SWIG_IsOK(ecode3)) { | |
21771 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21772 | } | |
21773 | arg3 = static_cast< int >(val3); | |
21774 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21775 | if (!SWIG_IsOK(ecode4)) { | |
21776 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21777 | } | |
21778 | arg4 = static_cast< int >(val4); | |
21779 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21780 | if (!SWIG_IsOK(ecode5)) { | |
21781 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21782 | } | |
21783 | arg5 = static_cast< int >(val5); | |
21784 | { | |
21785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21786 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21787 | wxPyEndAllowThreads(__tstate); | |
21788 | if (PyErr_Occurred()) SWIG_fail; | |
21789 | } | |
21790 | resultobj = SWIG_Py_Void(); | |
21791 | return resultobj; | |
21792 | fail: | |
21793 | return NULL; | |
21794 | } | |
21795 | ||
21796 | ||
21797 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21798 | PyObject *resultobj = 0; | |
21799 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21800 | int arg2 ; | |
21801 | int arg3 ; | |
21802 | int arg4 ; | |
21803 | int arg5 ; | |
21804 | int arg6 = (int) wxSIZE_AUTO ; | |
21805 | void *argp1 = 0 ; | |
21806 | int res1 = 0 ; | |
21807 | int val2 ; | |
21808 | int ecode2 = 0 ; | |
21809 | int val3 ; | |
21810 | int ecode3 = 0 ; | |
21811 | int val4 ; | |
21812 | int ecode4 = 0 ; | |
21813 | int val5 ; | |
21814 | int ecode5 = 0 ; | |
21815 | int val6 ; | |
21816 | int ecode6 = 0 ; | |
21817 | PyObject * obj0 = 0 ; | |
21818 | PyObject * obj1 = 0 ; | |
21819 | PyObject * obj2 = 0 ; | |
21820 | PyObject * obj3 = 0 ; | |
21821 | PyObject * obj4 = 0 ; | |
21822 | PyObject * obj5 = 0 ; | |
21823 | char * kwnames[] = { | |
21824 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21825 | }; | |
21826 | ||
21827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21829 | if (!SWIG_IsOK(res1)) { | |
21830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21831 | } | |
21832 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21833 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21834 | if (!SWIG_IsOK(ecode2)) { | |
21835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21836 | } | |
21837 | arg2 = static_cast< int >(val2); | |
21838 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21839 | if (!SWIG_IsOK(ecode3)) { | |
21840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21841 | } | |
21842 | arg3 = static_cast< int >(val3); | |
21843 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21844 | if (!SWIG_IsOK(ecode4)) { | |
21845 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21846 | } | |
21847 | arg4 = static_cast< int >(val4); | |
21848 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21849 | if (!SWIG_IsOK(ecode5)) { | |
21850 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21851 | } | |
21852 | arg5 = static_cast< int >(val5); | |
21853 | if (obj5) { | |
21854 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21855 | if (!SWIG_IsOK(ecode6)) { | |
21856 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21857 | } | |
21858 | arg6 = static_cast< int >(val6); | |
21859 | } | |
21860 | { | |
21861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21862 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
21866 | resultobj = SWIG_Py_Void(); | |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj = 0; | |
21875 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21876 | int arg2 ; | |
21877 | int arg3 ; | |
21878 | void *argp1 = 0 ; | |
21879 | int res1 = 0 ; | |
21880 | int val2 ; | |
21881 | int ecode2 = 0 ; | |
21882 | int val3 ; | |
21883 | int ecode3 = 0 ; | |
21884 | PyObject * obj0 = 0 ; | |
21885 | PyObject * obj1 = 0 ; | |
21886 | PyObject * obj2 = 0 ; | |
21887 | char * kwnames[] = { | |
21888 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21889 | }; | |
21890 | ||
21891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21893 | if (!SWIG_IsOK(res1)) { | |
21894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21895 | } | |
21896 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21897 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21898 | if (!SWIG_IsOK(ecode2)) { | |
21899 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21900 | } | |
21901 | arg2 = static_cast< int >(val2); | |
21902 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21903 | if (!SWIG_IsOK(ecode3)) { | |
21904 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21905 | } | |
21906 | arg3 = static_cast< int >(val3); | |
21907 | { | |
21908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21909 | (arg1)->DoSetClientSize(arg2,arg3); | |
21910 | wxPyEndAllowThreads(__tstate); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
21913 | resultobj = SWIG_Py_Void(); | |
21914 | return resultobj; | |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
21920 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21921 | PyObject *resultobj = 0; | |
21922 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21923 | int arg2 ; | |
21924 | int arg3 ; | |
21925 | void *argp1 = 0 ; | |
21926 | int res1 = 0 ; | |
21927 | int val2 ; | |
21928 | int ecode2 = 0 ; | |
21929 | int val3 ; | |
21930 | int ecode3 = 0 ; | |
21931 | PyObject * obj0 = 0 ; | |
21932 | PyObject * obj1 = 0 ; | |
21933 | PyObject * obj2 = 0 ; | |
21934 | char * kwnames[] = { | |
21935 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21936 | }; | |
21937 | ||
21938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21940 | if (!SWIG_IsOK(res1)) { | |
21941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21942 | } | |
21943 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21944 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21945 | if (!SWIG_IsOK(ecode2)) { | |
21946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21947 | } | |
21948 | arg2 = static_cast< int >(val2); | |
21949 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21950 | if (!SWIG_IsOK(ecode3)) { | |
21951 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21952 | } | |
21953 | arg3 = static_cast< int >(val3); | |
21954 | { | |
21955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21956 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21957 | wxPyEndAllowThreads(__tstate); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | } | |
21960 | resultobj = SWIG_Py_Void(); | |
21961 | return resultobj; | |
21962 | fail: | |
21963 | return NULL; | |
21964 | } | |
21965 | ||
21966 | ||
21967 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21968 | PyObject *resultobj = 0; | |
21969 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21970 | int *arg2 = (int *) 0 ; | |
21971 | int *arg3 = (int *) 0 ; | |
21972 | void *argp1 = 0 ; | |
21973 | int res1 = 0 ; | |
21974 | int temp2 ; | |
21975 | int res2 = SWIG_TMPOBJ ; | |
21976 | int temp3 ; | |
21977 | int res3 = SWIG_TMPOBJ ; | |
21978 | PyObject *swig_obj[1] ; | |
21979 | ||
21980 | arg2 = &temp2; | |
21981 | arg3 = &temp3; | |
21982 | if (!args) SWIG_fail; | |
21983 | swig_obj[0] = args; | |
21984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21985 | if (!SWIG_IsOK(res1)) { | |
21986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21987 | } | |
21988 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21992 | wxPyEndAllowThreads(__tstate); | |
21993 | if (PyErr_Occurred()) SWIG_fail; | |
21994 | } | |
21995 | resultobj = SWIG_Py_Void(); | |
21996 | if (SWIG_IsTmpObj(res2)) { | |
21997 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21998 | } else { | |
21999 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22000 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22001 | } | |
22002 | if (SWIG_IsTmpObj(res3)) { | |
22003 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22004 | } else { | |
22005 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22006 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22007 | } | |
22008 | return resultobj; | |
22009 | fail: | |
22010 | return NULL; | |
22011 | } | |
22012 | ||
22013 | ||
22014 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22015 | PyObject *resultobj = 0; | |
22016 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22017 | int *arg2 = (int *) 0 ; | |
22018 | int *arg3 = (int *) 0 ; | |
22019 | void *argp1 = 0 ; | |
22020 | int res1 = 0 ; | |
22021 | int temp2 ; | |
22022 | int res2 = SWIG_TMPOBJ ; | |
22023 | int temp3 ; | |
22024 | int res3 = SWIG_TMPOBJ ; | |
22025 | PyObject *swig_obj[1] ; | |
22026 | ||
22027 | arg2 = &temp2; | |
22028 | arg3 = &temp3; | |
22029 | if (!args) SWIG_fail; | |
22030 | swig_obj[0] = args; | |
22031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22032 | if (!SWIG_IsOK(res1)) { | |
22033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22034 | } | |
22035 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
22039 | wxPyEndAllowThreads(__tstate); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
22042 | resultobj = SWIG_Py_Void(); | |
22043 | if (SWIG_IsTmpObj(res2)) { | |
22044 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22045 | } else { | |
22046 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22047 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22048 | } | |
22049 | if (SWIG_IsTmpObj(res3)) { | |
22050 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22051 | } else { | |
22052 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22053 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22054 | } | |
22055 | return resultobj; | |
22056 | fail: | |
22057 | return NULL; | |
22058 | } | |
22059 | ||
22060 | ||
22061 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22062 | PyObject *resultobj = 0; | |
22063 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22064 | int *arg2 = (int *) 0 ; | |
22065 | int *arg3 = (int *) 0 ; | |
22066 | void *argp1 = 0 ; | |
22067 | int res1 = 0 ; | |
22068 | int temp2 ; | |
22069 | int res2 = SWIG_TMPOBJ ; | |
22070 | int temp3 ; | |
22071 | int res3 = SWIG_TMPOBJ ; | |
22072 | PyObject *swig_obj[1] ; | |
22073 | ||
22074 | arg2 = &temp2; | |
22075 | arg3 = &temp3; | |
22076 | if (!args) SWIG_fail; | |
22077 | swig_obj[0] = args; | |
22078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22079 | if (!SWIG_IsOK(res1)) { | |
22080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22081 | } | |
22082 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
22086 | wxPyEndAllowThreads(__tstate); | |
22087 | if (PyErr_Occurred()) SWIG_fail; | |
22088 | } | |
22089 | resultobj = SWIG_Py_Void(); | |
22090 | if (SWIG_IsTmpObj(res2)) { | |
22091 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22092 | } else { | |
22093 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22094 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22095 | } | |
22096 | if (SWIG_IsTmpObj(res3)) { | |
22097 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22098 | } else { | |
22099 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22100 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22101 | } | |
22102 | return resultobj; | |
22103 | fail: | |
22104 | return NULL; | |
22105 | } | |
d55e5bfc | 22106 | |
554f62e9 RD |
22107 | |
22108 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22109 | PyObject *resultobj = 0; | |
22110 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22111 | wxSize result; | |
22112 | void *argp1 = 0 ; | |
22113 | int res1 = 0 ; | |
22114 | PyObject *swig_obj[1] ; | |
22115 | ||
22116 | if (!args) SWIG_fail; | |
22117 | swig_obj[0] = args; | |
22118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22119 | if (!SWIG_IsOK(res1)) { | |
22120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22121 | } | |
22122 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22123 | { | |
22124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22125 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
22126 | wxPyEndAllowThreads(__tstate); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
22129 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22130 | return resultobj; | |
22131 | fail: | |
22132 | return NULL; | |
d55e5bfc RD |
22133 | } |
22134 | ||
22135 | ||
554f62e9 RD |
22136 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22137 | PyObject *resultobj = 0; | |
22138 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22139 | wxSize result; | |
22140 | void *argp1 = 0 ; | |
22141 | int res1 = 0 ; | |
22142 | PyObject *swig_obj[1] ; | |
22143 | ||
22144 | if (!args) SWIG_fail; | |
22145 | swig_obj[0] = args; | |
22146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22147 | if (!SWIG_IsOK(res1)) { | |
22148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22149 | } | |
22150 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22151 | { | |
22152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22153 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
22154 | wxPyEndAllowThreads(__tstate); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
22157 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22158 | return resultobj; | |
22159 | fail: | |
22160 | return NULL; | |
d55e5bfc RD |
22161 | } |
22162 | ||
22163 | ||
554f62e9 RD |
22164 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22165 | PyObject *resultobj = 0; | |
22166 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22167 | SwigValueWrapper<wxVisualAttributes > result; | |
22168 | void *argp1 = 0 ; | |
22169 | int res1 = 0 ; | |
22170 | PyObject *swig_obj[1] ; | |
22171 | ||
22172 | if (!args) SWIG_fail; | |
22173 | swig_obj[0] = args; | |
22174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22175 | if (!SWIG_IsOK(res1)) { | |
22176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22177 | } | |
22178 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22179 | { | |
22180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22181 | result = (arg1)->GetDefaultAttributes(); | |
22182 | wxPyEndAllowThreads(__tstate); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
22185 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
d55e5bfc RD |
22189 | } |
22190 | ||
22191 | ||
554f62e9 RD |
22192 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22193 | PyObject *resultobj = 0; | |
22194 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22195 | void *argp1 = 0 ; | |
22196 | int res1 = 0 ; | |
22197 | PyObject *swig_obj[1] ; | |
22198 | ||
22199 | if (!args) SWIG_fail; | |
22200 | swig_obj[0] = args; | |
22201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22202 | if (!SWIG_IsOK(res1)) { | |
22203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22204 | } | |
22205 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22206 | { | |
22207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22208 | (arg1)->OnInternalIdle(); | |
22209 | wxPyEndAllowThreads(__tstate); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
22212 | resultobj = SWIG_Py_Void(); | |
22213 | return resultobj; | |
22214 | fail: | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
22219 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22220 | PyObject *obj; | |
22221 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22222 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
22223 | return SWIG_Py_Void(); | |
22224 | } | |
22225 | ||
22226 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22227 | return SWIG_Python_InitShadowInstance(args); | |
22228 | } | |
22229 | ||
22230 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22231 | PyObject *resultobj = 0; | |
22232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22233 | int arg2 = (int) (int)-1 ; | |
22234 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22235 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22236 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22237 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22238 | long arg5 = (long) 0 ; | |
22239 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22240 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22241 | wxPyPanel *result = 0 ; | |
22242 | void *argp1 = 0 ; | |
22243 | int res1 = 0 ; | |
22244 | int val2 ; | |
22245 | int ecode2 = 0 ; | |
22246 | wxPoint temp3 ; | |
22247 | wxSize temp4 ; | |
22248 | long val5 ; | |
22249 | int ecode5 = 0 ; | |
22250 | bool temp6 = false ; | |
22251 | PyObject * obj0 = 0 ; | |
22252 | PyObject * obj1 = 0 ; | |
22253 | PyObject * obj2 = 0 ; | |
22254 | PyObject * obj3 = 0 ; | |
22255 | PyObject * obj4 = 0 ; | |
22256 | PyObject * obj5 = 0 ; | |
22257 | char * kwnames[] = { | |
22258 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22259 | }; | |
22260 | ||
22261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22263 | if (!SWIG_IsOK(res1)) { | |
22264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22265 | } | |
22266 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22267 | if (obj1) { | |
22268 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22269 | if (!SWIG_IsOK(ecode2)) { | |
22270 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
22271 | } | |
22272 | arg2 = static_cast< int >(val2); | |
22273 | } | |
22274 | if (obj2) { | |
093d3ff1 | 22275 | { |
554f62e9 RD |
22276 | arg3 = &temp3; |
22277 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 22278 | } |
554f62e9 RD |
22279 | } |
22280 | if (obj3) { | |
d55e5bfc | 22281 | { |
554f62e9 RD |
22282 | arg4 = &temp4; |
22283 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 22284 | } |
554f62e9 RD |
22285 | } |
22286 | if (obj4) { | |
22287 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22288 | if (!SWIG_IsOK(ecode5)) { | |
22289 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
22290 | } | |
22291 | arg5 = static_cast< long >(val5); | |
22292 | } | |
22293 | if (obj5) { | |
d55e5bfc | 22294 | { |
554f62e9 RD |
22295 | arg6 = wxString_in_helper(obj5); |
22296 | if (arg6 == NULL) SWIG_fail; | |
22297 | temp6 = true; | |
d55e5bfc | 22298 | } |
554f62e9 RD |
22299 | } |
22300 | { | |
22301 | if (!wxPyCheckForApp()) SWIG_fail; | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
22308 | { | |
22309 | if (temp6) | |
22310 | delete arg6; | |
22311 | } | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | { | |
22315 | if (temp6) | |
22316 | delete arg6; | |
22317 | } | |
22318 | return NULL; | |
d55e5bfc RD |
22319 | } |
22320 | ||
22321 | ||
554f62e9 RD |
22322 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22323 | PyObject *resultobj = 0; | |
22324 | wxPyPanel *result = 0 ; | |
22325 | ||
22326 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
22327 | { | |
22328 | if (!wxPyCheckForApp()) SWIG_fail; | |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | result = (wxPyPanel *)new wxPyPanel(); | |
22331 | wxPyEndAllowThreads(__tstate); | |
22332 | if (PyErr_Occurred()) SWIG_fail; | |
22333 | } | |
22334 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
22335 | return resultobj; | |
22336 | fail: | |
22337 | return NULL; | |
22338 | } | |
22339 | ||
22340 | ||
22341 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22342 | PyObject *resultobj = 0; | |
22343 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22344 | PyObject *arg2 = (PyObject *) 0 ; | |
22345 | PyObject *arg3 = (PyObject *) 0 ; | |
22346 | void *argp1 = 0 ; | |
22347 | int res1 = 0 ; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | PyObject * obj1 = 0 ; | |
22350 | PyObject * obj2 = 0 ; | |
22351 | char * kwnames[] = { | |
22352 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22353 | }; | |
22354 | ||
22355 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22357 | if (!SWIG_IsOK(res1)) { | |
22358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22359 | } | |
22360 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22361 | arg2 = obj1; | |
22362 | arg3 = obj2; | |
22363 | { | |
22364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22365 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22366 | wxPyEndAllowThreads(__tstate); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | resultobj = SWIG_Py_Void(); | |
22370 | return resultobj; | |
22371 | fail: | |
22372 | return NULL; | |
22373 | } | |
22374 | ||
22375 | ||
22376 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22377 | PyObject *resultobj = 0; | |
22378 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22379 | wxSize *arg2 = 0 ; | |
22380 | void *argp1 = 0 ; | |
22381 | int res1 = 0 ; | |
22382 | wxSize temp2 ; | |
22383 | PyObject * obj0 = 0 ; | |
22384 | PyObject * obj1 = 0 ; | |
22385 | char * kwnames[] = { | |
22386 | (char *) "self",(char *) "size", NULL | |
22387 | }; | |
22388 | ||
22389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22391 | if (!SWIG_IsOK(res1)) { | |
22392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22393 | } | |
22394 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22395 | { | |
22396 | arg2 = &temp2; | |
22397 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22398 | } | |
22399 | { | |
22400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22401 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22402 | wxPyEndAllowThreads(__tstate); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
22405 | resultobj = SWIG_Py_Void(); | |
22406 | return resultobj; | |
22407 | fail: | |
22408 | return NULL; | |
22409 | } | |
22410 | ||
22411 | ||
22412 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22413 | PyObject *resultobj = 0; | |
22414 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22415 | wxDC *arg2 = (wxDC *) 0 ; | |
22416 | bool result; | |
22417 | void *argp1 = 0 ; | |
22418 | int res1 = 0 ; | |
22419 | void *argp2 = 0 ; | |
22420 | int res2 = 0 ; | |
22421 | PyObject * obj0 = 0 ; | |
22422 | PyObject * obj1 = 0 ; | |
22423 | char * kwnames[] = { | |
22424 | (char *) "self",(char *) "dc", NULL | |
22425 | }; | |
22426 | ||
22427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22429 | if (!SWIG_IsOK(res1)) { | |
22430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22431 | } | |
22432 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22433 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22434 | if (!SWIG_IsOK(res2)) { | |
22435 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22436 | } | |
22437 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22438 | { | |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
22444 | { | |
22445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22446 | } | |
22447 | return resultobj; | |
22448 | fail: | |
22449 | return NULL; | |
22450 | } | |
22451 | ||
22452 | ||
22453 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22454 | PyObject *resultobj = 0; | |
22455 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22456 | int arg2 ; | |
22457 | int arg3 ; | |
22458 | int arg4 ; | |
22459 | int arg5 ; | |
22460 | void *argp1 = 0 ; | |
22461 | int res1 = 0 ; | |
22462 | int val2 ; | |
22463 | int ecode2 = 0 ; | |
22464 | int val3 ; | |
22465 | int ecode3 = 0 ; | |
22466 | int val4 ; | |
22467 | int ecode4 = 0 ; | |
22468 | int val5 ; | |
22469 | int ecode5 = 0 ; | |
22470 | PyObject * obj0 = 0 ; | |
22471 | PyObject * obj1 = 0 ; | |
22472 | PyObject * obj2 = 0 ; | |
22473 | PyObject * obj3 = 0 ; | |
22474 | PyObject * obj4 = 0 ; | |
22475 | char * kwnames[] = { | |
22476 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22477 | }; | |
22478 | ||
22479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22481 | if (!SWIG_IsOK(res1)) { | |
22482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22483 | } | |
22484 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22485 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22486 | if (!SWIG_IsOK(ecode2)) { | |
22487 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22488 | } | |
22489 | arg2 = static_cast< int >(val2); | |
22490 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22491 | if (!SWIG_IsOK(ecode3)) { | |
22492 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22493 | } | |
22494 | arg3 = static_cast< int >(val3); | |
22495 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22496 | if (!SWIG_IsOK(ecode4)) { | |
22497 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22498 | } | |
22499 | arg4 = static_cast< int >(val4); | |
22500 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22501 | if (!SWIG_IsOK(ecode5)) { | |
22502 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22503 | } | |
22504 | arg5 = static_cast< int >(val5); | |
22505 | { | |
22506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22507 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22508 | wxPyEndAllowThreads(__tstate); | |
22509 | if (PyErr_Occurred()) SWIG_fail; | |
22510 | } | |
22511 | resultobj = SWIG_Py_Void(); | |
22512 | return resultobj; | |
22513 | fail: | |
22514 | return NULL; | |
22515 | } | |
22516 | ||
22517 | ||
22518 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22519 | PyObject *resultobj = 0; | |
22520 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22521 | int arg2 ; | |
22522 | int arg3 ; | |
22523 | int arg4 ; | |
22524 | int arg5 ; | |
22525 | int arg6 = (int) wxSIZE_AUTO ; | |
22526 | void *argp1 = 0 ; | |
22527 | int res1 = 0 ; | |
22528 | int val2 ; | |
22529 | int ecode2 = 0 ; | |
22530 | int val3 ; | |
22531 | int ecode3 = 0 ; | |
22532 | int val4 ; | |
22533 | int ecode4 = 0 ; | |
22534 | int val5 ; | |
22535 | int ecode5 = 0 ; | |
22536 | int val6 ; | |
22537 | int ecode6 = 0 ; | |
22538 | PyObject * obj0 = 0 ; | |
22539 | PyObject * obj1 = 0 ; | |
22540 | PyObject * obj2 = 0 ; | |
22541 | PyObject * obj3 = 0 ; | |
22542 | PyObject * obj4 = 0 ; | |
22543 | PyObject * obj5 = 0 ; | |
22544 | char * kwnames[] = { | |
22545 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22546 | }; | |
22547 | ||
22548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22550 | if (!SWIG_IsOK(res1)) { | |
22551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22552 | } | |
22553 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22554 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22555 | if (!SWIG_IsOK(ecode2)) { | |
22556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22557 | } | |
22558 | arg2 = static_cast< int >(val2); | |
22559 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22560 | if (!SWIG_IsOK(ecode3)) { | |
22561 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22562 | } | |
22563 | arg3 = static_cast< int >(val3); | |
22564 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22565 | if (!SWIG_IsOK(ecode4)) { | |
22566 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22567 | } | |
22568 | arg4 = static_cast< int >(val4); | |
22569 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22570 | if (!SWIG_IsOK(ecode5)) { | |
22571 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22572 | } | |
22573 | arg5 = static_cast< int >(val5); | |
22574 | if (obj5) { | |
22575 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22576 | if (!SWIG_IsOK(ecode6)) { | |
22577 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22578 | } | |
22579 | arg6 = static_cast< int >(val6); | |
22580 | } | |
22581 | { | |
22582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22583 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | resultobj = SWIG_Py_Void(); | |
22588 | return resultobj; | |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
22594 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22595 | PyObject *resultobj = 0; | |
22596 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22597 | int arg2 ; | |
22598 | int arg3 ; | |
22599 | void *argp1 = 0 ; | |
22600 | int res1 = 0 ; | |
22601 | int val2 ; | |
22602 | int ecode2 = 0 ; | |
22603 | int val3 ; | |
22604 | int ecode3 = 0 ; | |
22605 | PyObject * obj0 = 0 ; | |
22606 | PyObject * obj1 = 0 ; | |
22607 | PyObject * obj2 = 0 ; | |
22608 | char * kwnames[] = { | |
22609 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22610 | }; | |
22611 | ||
22612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22614 | if (!SWIG_IsOK(res1)) { | |
22615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22616 | } | |
22617 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22618 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22619 | if (!SWIG_IsOK(ecode2)) { | |
22620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22621 | } | |
22622 | arg2 = static_cast< int >(val2); | |
22623 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22624 | if (!SWIG_IsOK(ecode3)) { | |
22625 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22626 | } | |
22627 | arg3 = static_cast< int >(val3); | |
22628 | { | |
22629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22630 | (arg1)->DoSetClientSize(arg2,arg3); | |
22631 | wxPyEndAllowThreads(__tstate); | |
22632 | if (PyErr_Occurred()) SWIG_fail; | |
22633 | } | |
22634 | resultobj = SWIG_Py_Void(); | |
22635 | return resultobj; | |
22636 | fail: | |
22637 | return NULL; | |
22638 | } | |
22639 | ||
22640 | ||
22641 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22642 | PyObject *resultobj = 0; | |
22643 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22644 | int arg2 ; | |
22645 | int arg3 ; | |
22646 | void *argp1 = 0 ; | |
22647 | int res1 = 0 ; | |
22648 | int val2 ; | |
22649 | int ecode2 = 0 ; | |
22650 | int val3 ; | |
22651 | int ecode3 = 0 ; | |
22652 | PyObject * obj0 = 0 ; | |
22653 | PyObject * obj1 = 0 ; | |
22654 | PyObject * obj2 = 0 ; | |
22655 | char * kwnames[] = { | |
22656 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22657 | }; | |
22658 | ||
22659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22661 | if (!SWIG_IsOK(res1)) { | |
22662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22663 | } | |
22664 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22665 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22666 | if (!SWIG_IsOK(ecode2)) { | |
22667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22668 | } | |
22669 | arg2 = static_cast< int >(val2); | |
22670 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22671 | if (!SWIG_IsOK(ecode3)) { | |
22672 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22673 | } | |
22674 | arg3 = static_cast< int >(val3); | |
22675 | { | |
22676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22677 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22678 | wxPyEndAllowThreads(__tstate); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | } | |
22681 | resultobj = SWIG_Py_Void(); | |
22682 | return resultobj; | |
22683 | fail: | |
22684 | return NULL; | |
22685 | } | |
22686 | ||
22687 | ||
22688 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22689 | PyObject *resultobj = 0; | |
22690 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22691 | int *arg2 = (int *) 0 ; | |
22692 | int *arg3 = (int *) 0 ; | |
22693 | void *argp1 = 0 ; | |
22694 | int res1 = 0 ; | |
22695 | int temp2 ; | |
22696 | int res2 = SWIG_TMPOBJ ; | |
22697 | int temp3 ; | |
22698 | int res3 = SWIG_TMPOBJ ; | |
22699 | PyObject *swig_obj[1] ; | |
22700 | ||
22701 | arg2 = &temp2; | |
22702 | arg3 = &temp3; | |
22703 | if (!args) SWIG_fail; | |
22704 | swig_obj[0] = args; | |
22705 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22706 | if (!SWIG_IsOK(res1)) { | |
22707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22708 | } | |
22709 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22710 | { | |
22711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22712 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22713 | wxPyEndAllowThreads(__tstate); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | resultobj = SWIG_Py_Void(); | |
22717 | if (SWIG_IsTmpObj(res2)) { | |
22718 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22719 | } else { | |
22720 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22721 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22722 | } | |
22723 | if (SWIG_IsTmpObj(res3)) { | |
22724 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22725 | } else { | |
22726 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22727 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22728 | } | |
22729 | return resultobj; | |
22730 | fail: | |
22731 | return NULL; | |
22732 | } | |
22733 | ||
22734 | ||
22735 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22736 | PyObject *resultobj = 0; | |
22737 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22738 | int *arg2 = (int *) 0 ; | |
22739 | int *arg3 = (int *) 0 ; | |
22740 | void *argp1 = 0 ; | |
22741 | int res1 = 0 ; | |
22742 | int temp2 ; | |
22743 | int res2 = SWIG_TMPOBJ ; | |
22744 | int temp3 ; | |
22745 | int res3 = SWIG_TMPOBJ ; | |
22746 | PyObject *swig_obj[1] ; | |
22747 | ||
22748 | arg2 = &temp2; | |
22749 | arg3 = &temp3; | |
22750 | if (!args) SWIG_fail; | |
22751 | swig_obj[0] = args; | |
22752 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22753 | if (!SWIG_IsOK(res1)) { | |
22754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22755 | } | |
22756 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22757 | { | |
22758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22759 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22760 | wxPyEndAllowThreads(__tstate); | |
22761 | if (PyErr_Occurred()) SWIG_fail; | |
22762 | } | |
22763 | resultobj = SWIG_Py_Void(); | |
22764 | if (SWIG_IsTmpObj(res2)) { | |
22765 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22766 | } else { | |
22767 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22768 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22769 | } | |
22770 | if (SWIG_IsTmpObj(res3)) { | |
22771 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22772 | } else { | |
22773 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22774 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22775 | } | |
22776 | return resultobj; | |
22777 | fail: | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
22782 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22783 | PyObject *resultobj = 0; | |
22784 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22785 | int *arg2 = (int *) 0 ; | |
22786 | int *arg3 = (int *) 0 ; | |
22787 | void *argp1 = 0 ; | |
22788 | int res1 = 0 ; | |
22789 | int temp2 ; | |
22790 | int res2 = SWIG_TMPOBJ ; | |
22791 | int temp3 ; | |
22792 | int res3 = SWIG_TMPOBJ ; | |
22793 | PyObject *swig_obj[1] ; | |
22794 | ||
22795 | arg2 = &temp2; | |
22796 | arg3 = &temp3; | |
22797 | if (!args) SWIG_fail; | |
22798 | swig_obj[0] = args; | |
22799 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22800 | if (!SWIG_IsOK(res1)) { | |
22801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22802 | } | |
22803 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22804 | { | |
22805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22806 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22807 | wxPyEndAllowThreads(__tstate); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | } | |
22810 | resultobj = SWIG_Py_Void(); | |
22811 | if (SWIG_IsTmpObj(res2)) { | |
22812 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22813 | } else { | |
22814 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22815 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22816 | } | |
22817 | if (SWIG_IsTmpObj(res3)) { | |
22818 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22819 | } else { | |
22820 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22821 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22822 | } | |
22823 | return resultobj; | |
22824 | fail: | |
22825 | return NULL; | |
d55e5bfc RD |
22826 | } |
22827 | ||
22828 | ||
554f62e9 RD |
22829 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22830 | PyObject *resultobj = 0; | |
22831 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22832 | wxSize result; | |
22833 | void *argp1 = 0 ; | |
22834 | int res1 = 0 ; | |
22835 | PyObject *swig_obj[1] ; | |
22836 | ||
22837 | if (!args) SWIG_fail; | |
22838 | swig_obj[0] = args; | |
22839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22840 | if (!SWIG_IsOK(res1)) { | |
22841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22842 | } | |
22843 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22844 | { | |
22845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22846 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22847 | wxPyEndAllowThreads(__tstate); | |
22848 | if (PyErr_Occurred()) SWIG_fail; | |
22849 | } | |
22850 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
d55e5bfc RD |
22854 | } |
22855 | ||
22856 | ||
554f62e9 RD |
22857 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22858 | PyObject *resultobj = 0; | |
22859 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22860 | wxSize result; | |
22861 | void *argp1 = 0 ; | |
22862 | int res1 = 0 ; | |
22863 | PyObject *swig_obj[1] ; | |
22864 | ||
22865 | if (!args) SWIG_fail; | |
22866 | swig_obj[0] = args; | |
22867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22868 | if (!SWIG_IsOK(res1)) { | |
22869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22870 | } | |
22871 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22872 | { | |
22873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22874 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
d55e5bfc RD |
22882 | } |
22883 | ||
22884 | ||
554f62e9 RD |
22885 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22886 | PyObject *resultobj = 0; | |
22887 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22888 | SwigValueWrapper<wxVisualAttributes > result; | |
22889 | void *argp1 = 0 ; | |
22890 | int res1 = 0 ; | |
22891 | PyObject *swig_obj[1] ; | |
22892 | ||
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_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22898 | } | |
22899 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22900 | { | |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22902 | result = (arg1)->GetDefaultAttributes(); | |
22903 | wxPyEndAllowThreads(__tstate); | |
22904 | if (PyErr_Occurred()) SWIG_fail; | |
22905 | } | |
22906 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22907 | return resultobj; | |
22908 | fail: | |
22909 | return NULL; | |
d55e5bfc RD |
22910 | } |
22911 | ||
22912 | ||
554f62e9 RD |
22913 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22914 | PyObject *resultobj = 0; | |
22915 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22916 | void *argp1 = 0 ; | |
22917 | int res1 = 0 ; | |
22918 | PyObject *swig_obj[1] ; | |
22919 | ||
22920 | if (!args) SWIG_fail; | |
22921 | swig_obj[0] = args; | |
22922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22923 | if (!SWIG_IsOK(res1)) { | |
22924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22925 | } | |
22926 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22927 | { | |
22928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22929 | (arg1)->OnInternalIdle(); | |
22930 | wxPyEndAllowThreads(__tstate); | |
22931 | if (PyErr_Occurred()) SWIG_fail; | |
22932 | } | |
22933 | resultobj = SWIG_Py_Void(); | |
22934 | return resultobj; | |
22935 | fail: | |
22936 | return NULL; | |
22937 | } | |
22938 | ||
22939 | ||
22940 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22941 | PyObject *obj; | |
22942 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22943 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22944 | return SWIG_Py_Void(); | |
22945 | } | |
22946 | ||
22947 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22948 | return SWIG_Python_InitShadowInstance(args); | |
22949 | } | |
22950 | ||
22951 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22952 | PyObject *resultobj = 0; | |
22953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22954 | int arg2 = (int) (int)-1 ; | |
22955 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22956 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22957 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22958 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22959 | long arg5 = (long) 0 ; | |
22960 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22961 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22962 | wxPyScrolledWindow *result = 0 ; | |
22963 | void *argp1 = 0 ; | |
22964 | int res1 = 0 ; | |
22965 | int val2 ; | |
22966 | int ecode2 = 0 ; | |
22967 | wxPoint temp3 ; | |
22968 | wxSize temp4 ; | |
22969 | long val5 ; | |
22970 | int ecode5 = 0 ; | |
22971 | bool temp6 = false ; | |
22972 | PyObject * obj0 = 0 ; | |
22973 | PyObject * obj1 = 0 ; | |
22974 | PyObject * obj2 = 0 ; | |
22975 | PyObject * obj3 = 0 ; | |
22976 | PyObject * obj4 = 0 ; | |
22977 | PyObject * obj5 = 0 ; | |
22978 | char * kwnames[] = { | |
22979 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22980 | }; | |
22981 | ||
22982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22984 | if (!SWIG_IsOK(res1)) { | |
22985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22986 | } | |
22987 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22988 | if (obj1) { | |
22989 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22990 | if (!SWIG_IsOK(ecode2)) { | |
22991 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22992 | } | |
22993 | arg2 = static_cast< int >(val2); | |
22994 | } | |
22995 | if (obj2) { | |
d55e5bfc | 22996 | { |
554f62e9 RD |
22997 | arg3 = &temp3; |
22998 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7449af73 | 22999 | } |
554f62e9 RD |
23000 | } |
23001 | if (obj3) { | |
7449af73 | 23002 | { |
554f62e9 RD |
23003 | arg4 = &temp4; |
23004 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7449af73 | 23005 | } |
554f62e9 RD |
23006 | } |
23007 | if (obj4) { | |
23008 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
23009 | if (!SWIG_IsOK(ecode5)) { | |
23010 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
23011 | } | |
23012 | arg5 = static_cast< long >(val5); | |
23013 | } | |
23014 | if (obj5) { | |
7449af73 | 23015 | { |
554f62e9 RD |
23016 | arg6 = wxString_in_helper(obj5); |
23017 | if (arg6 == NULL) SWIG_fail; | |
23018 | temp6 = true; | |
7449af73 | 23019 | } |
554f62e9 RD |
23020 | } |
23021 | { | |
23022 | if (!wxPyCheckForApp()) SWIG_fail; | |
23023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23024 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
23025 | wxPyEndAllowThreads(__tstate); | |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
23027 | } | |
23028 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
23029 | { | |
23030 | if (temp6) | |
23031 | delete arg6; | |
23032 | } | |
23033 | return resultobj; | |
23034 | fail: | |
23035 | { | |
23036 | if (temp6) | |
23037 | delete arg6; | |
23038 | } | |
23039 | return NULL; | |
7449af73 RD |
23040 | } |
23041 | ||
23042 | ||
554f62e9 RD |
23043 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23044 | PyObject *resultobj = 0; | |
23045 | wxPyScrolledWindow *result = 0 ; | |
23046 | ||
23047 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
23048 | { | |
23049 | if (!wxPyCheckForApp()) SWIG_fail; | |
23050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23051 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23063 | PyObject *resultobj = 0; | |
23064 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23065 | PyObject *arg2 = (PyObject *) 0 ; | |
23066 | PyObject *arg3 = (PyObject *) 0 ; | |
23067 | void *argp1 = 0 ; | |
23068 | int res1 = 0 ; | |
23069 | PyObject * obj0 = 0 ; | |
23070 | PyObject * obj1 = 0 ; | |
23071 | PyObject * obj2 = 0 ; | |
23072 | char * kwnames[] = { | |
23073 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23074 | }; | |
23075 | ||
23076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23078 | if (!SWIG_IsOK(res1)) { | |
23079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23080 | } | |
23081 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23082 | arg2 = obj1; | |
23083 | arg3 = obj2; | |
23084 | { | |
23085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23086 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23087 | wxPyEndAllowThreads(__tstate); | |
23088 | if (PyErr_Occurred()) SWIG_fail; | |
23089 | } | |
23090 | resultobj = SWIG_Py_Void(); | |
23091 | return resultobj; | |
23092 | fail: | |
23093 | return NULL; | |
23094 | } | |
23095 | ||
23096 | ||
23097 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23098 | PyObject *resultobj = 0; | |
23099 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23100 | wxSize *arg2 = 0 ; | |
23101 | void *argp1 = 0 ; | |
23102 | int res1 = 0 ; | |
23103 | wxSize temp2 ; | |
23104 | PyObject * obj0 = 0 ; | |
23105 | PyObject * obj1 = 0 ; | |
23106 | char * kwnames[] = { | |
23107 | (char *) "self",(char *) "size", NULL | |
23108 | }; | |
23109 | ||
23110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
23111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23112 | if (!SWIG_IsOK(res1)) { | |
23113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23114 | } | |
23115 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23116 | { | |
23117 | arg2 = &temp2; | |
23118 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23119 | } | |
23120 | { | |
23121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23122 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
23123 | wxPyEndAllowThreads(__tstate); | |
23124 | if (PyErr_Occurred()) SWIG_fail; | |
23125 | } | |
23126 | resultobj = SWIG_Py_Void(); | |
23127 | return resultobj; | |
23128 | fail: | |
23129 | return NULL; | |
23130 | } | |
23131 | ||
23132 | ||
23133 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23134 | PyObject *resultobj = 0; | |
23135 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23136 | wxDC *arg2 = (wxDC *) 0 ; | |
23137 | bool result; | |
23138 | void *argp1 = 0 ; | |
23139 | int res1 = 0 ; | |
23140 | void *argp2 = 0 ; | |
23141 | int res2 = 0 ; | |
23142 | PyObject * obj0 = 0 ; | |
23143 | PyObject * obj1 = 0 ; | |
23144 | char * kwnames[] = { | |
23145 | (char *) "self",(char *) "dc", NULL | |
23146 | }; | |
23147 | ||
23148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
23149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23150 | if (!SWIG_IsOK(res1)) { | |
23151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23152 | } | |
23153 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23154 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23155 | if (!SWIG_IsOK(res2)) { | |
23156 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
23157 | } | |
23158 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
23165 | { | |
23166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23167 | } | |
23168 | return resultobj; | |
23169 | fail: | |
23170 | return NULL; | |
23171 | } | |
23172 | ||
23173 | ||
23174 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23175 | PyObject *resultobj = 0; | |
23176 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23177 | int arg2 ; | |
23178 | int arg3 ; | |
23179 | int arg4 ; | |
23180 | int arg5 ; | |
23181 | void *argp1 = 0 ; | |
23182 | int res1 = 0 ; | |
23183 | int val2 ; | |
23184 | int ecode2 = 0 ; | |
23185 | int val3 ; | |
23186 | int ecode3 = 0 ; | |
23187 | int val4 ; | |
23188 | int ecode4 = 0 ; | |
23189 | int val5 ; | |
23190 | int ecode5 = 0 ; | |
23191 | PyObject * obj0 = 0 ; | |
23192 | PyObject * obj1 = 0 ; | |
23193 | PyObject * obj2 = 0 ; | |
23194 | PyObject * obj3 = 0 ; | |
23195 | PyObject * obj4 = 0 ; | |
23196 | char * kwnames[] = { | |
23197 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
23198 | }; | |
23199 | ||
23200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23202 | if (!SWIG_IsOK(res1)) { | |
23203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23204 | } | |
23205 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23206 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23207 | if (!SWIG_IsOK(ecode2)) { | |
23208 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
23209 | } | |
23210 | arg2 = static_cast< int >(val2); | |
23211 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23212 | if (!SWIG_IsOK(ecode3)) { | |
23213 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
23214 | } | |
23215 | arg3 = static_cast< int >(val3); | |
23216 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23217 | if (!SWIG_IsOK(ecode4)) { | |
23218 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
23219 | } | |
23220 | arg4 = static_cast< int >(val4); | |
23221 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23222 | if (!SWIG_IsOK(ecode5)) { | |
23223 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
23224 | } | |
23225 | arg5 = static_cast< int >(val5); | |
23226 | { | |
23227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23228 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
23229 | wxPyEndAllowThreads(__tstate); | |
23230 | if (PyErr_Occurred()) SWIG_fail; | |
23231 | } | |
23232 | resultobj = SWIG_Py_Void(); | |
23233 | return resultobj; | |
23234 | fail: | |
23235 | return NULL; | |
23236 | } | |
23237 | ||
23238 | ||
23239 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23240 | PyObject *resultobj = 0; | |
23241 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23242 | int arg2 ; | |
23243 | int arg3 ; | |
23244 | int arg4 ; | |
23245 | int arg5 ; | |
23246 | int arg6 = (int) wxSIZE_AUTO ; | |
23247 | void *argp1 = 0 ; | |
23248 | int res1 = 0 ; | |
23249 | int val2 ; | |
23250 | int ecode2 = 0 ; | |
23251 | int val3 ; | |
23252 | int ecode3 = 0 ; | |
23253 | int val4 ; | |
23254 | int ecode4 = 0 ; | |
23255 | int val5 ; | |
23256 | int ecode5 = 0 ; | |
23257 | int val6 ; | |
23258 | int ecode6 = 0 ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | PyObject * obj1 = 0 ; | |
23261 | PyObject * obj2 = 0 ; | |
23262 | PyObject * obj3 = 0 ; | |
23263 | PyObject * obj4 = 0 ; | |
23264 | PyObject * obj5 = 0 ; | |
23265 | char * kwnames[] = { | |
23266 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23267 | }; | |
23268 | ||
23269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23271 | if (!SWIG_IsOK(res1)) { | |
23272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23273 | } | |
23274 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23275 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23276 | if (!SWIG_IsOK(ecode2)) { | |
23277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
23278 | } | |
23279 | arg2 = static_cast< int >(val2); | |
23280 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23281 | if (!SWIG_IsOK(ecode3)) { | |
23282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
23283 | } | |
23284 | arg3 = static_cast< int >(val3); | |
23285 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23286 | if (!SWIG_IsOK(ecode4)) { | |
23287 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
23288 | } | |
23289 | arg4 = static_cast< int >(val4); | |
23290 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23291 | if (!SWIG_IsOK(ecode5)) { | |
23292 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
23293 | } | |
23294 | arg5 = static_cast< int >(val5); | |
23295 | if (obj5) { | |
23296 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23297 | if (!SWIG_IsOK(ecode6)) { | |
23298 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
23299 | } | |
23300 | arg6 = static_cast< int >(val6); | |
23301 | } | |
23302 | { | |
23303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23304 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
23305 | wxPyEndAllowThreads(__tstate); | |
23306 | if (PyErr_Occurred()) SWIG_fail; | |
23307 | } | |
23308 | resultobj = SWIG_Py_Void(); | |
23309 | return resultobj; | |
23310 | fail: | |
23311 | return NULL; | |
23312 | } | |
23313 | ||
23314 | ||
23315 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23316 | PyObject *resultobj = 0; | |
23317 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23318 | int arg2 ; | |
23319 | int arg3 ; | |
23320 | void *argp1 = 0 ; | |
23321 | int res1 = 0 ; | |
23322 | int val2 ; | |
23323 | int ecode2 = 0 ; | |
23324 | int val3 ; | |
23325 | int ecode3 = 0 ; | |
23326 | PyObject * obj0 = 0 ; | |
23327 | PyObject * obj1 = 0 ; | |
23328 | PyObject * obj2 = 0 ; | |
23329 | char * kwnames[] = { | |
23330 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23331 | }; | |
23332 | ||
23333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23335 | if (!SWIG_IsOK(res1)) { | |
23336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23337 | } | |
23338 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23339 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23340 | if (!SWIG_IsOK(ecode2)) { | |
23341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
23342 | } | |
23343 | arg2 = static_cast< int >(val2); | |
23344 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23345 | if (!SWIG_IsOK(ecode3)) { | |
23346 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
23347 | } | |
23348 | arg3 = static_cast< int >(val3); | |
23349 | { | |
23350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23351 | (arg1)->DoSetClientSize(arg2,arg3); | |
23352 | wxPyEndAllowThreads(__tstate); | |
23353 | if (PyErr_Occurred()) SWIG_fail; | |
23354 | } | |
23355 | resultobj = SWIG_Py_Void(); | |
23356 | return resultobj; | |
23357 | fail: | |
23358 | return NULL; | |
23359 | } | |
23360 | ||
23361 | ||
23362 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23363 | PyObject *resultobj = 0; | |
23364 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23365 | int arg2 ; | |
23366 | int arg3 ; | |
23367 | void *argp1 = 0 ; | |
23368 | int res1 = 0 ; | |
23369 | int val2 ; | |
23370 | int ecode2 = 0 ; | |
23371 | int val3 ; | |
23372 | int ecode3 = 0 ; | |
23373 | PyObject * obj0 = 0 ; | |
23374 | PyObject * obj1 = 0 ; | |
23375 | PyObject * obj2 = 0 ; | |
23376 | char * kwnames[] = { | |
23377 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23378 | }; | |
23379 | ||
23380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23382 | if (!SWIG_IsOK(res1)) { | |
23383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23384 | } | |
23385 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23386 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23387 | if (!SWIG_IsOK(ecode2)) { | |
23388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
23389 | } | |
23390 | arg2 = static_cast< int >(val2); | |
23391 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23392 | if (!SWIG_IsOK(ecode3)) { | |
23393 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
23394 | } | |
23395 | arg3 = static_cast< int >(val3); | |
23396 | { | |
23397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23398 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
23399 | wxPyEndAllowThreads(__tstate); | |
23400 | if (PyErr_Occurred()) SWIG_fail; | |
23401 | } | |
23402 | resultobj = SWIG_Py_Void(); | |
23403 | return resultobj; | |
23404 | fail: | |
23405 | return NULL; | |
23406 | } | |
23407 | ||
23408 | ||
23409 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23410 | PyObject *resultobj = 0; | |
23411 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23412 | int *arg2 = (int *) 0 ; | |
23413 | int *arg3 = (int *) 0 ; | |
23414 | void *argp1 = 0 ; | |
23415 | int res1 = 0 ; | |
23416 | int temp2 ; | |
23417 | int res2 = SWIG_TMPOBJ ; | |
23418 | int temp3 ; | |
23419 | int res3 = SWIG_TMPOBJ ; | |
23420 | PyObject *swig_obj[1] ; | |
23421 | ||
23422 | arg2 = &temp2; | |
23423 | arg3 = &temp3; | |
23424 | if (!args) SWIG_fail; | |
23425 | swig_obj[0] = args; | |
23426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23427 | if (!SWIG_IsOK(res1)) { | |
23428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23429 | } | |
23430 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23431 | { | |
23432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23433 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
23434 | wxPyEndAllowThreads(__tstate); | |
23435 | if (PyErr_Occurred()) SWIG_fail; | |
23436 | } | |
23437 | resultobj = SWIG_Py_Void(); | |
23438 | if (SWIG_IsTmpObj(res2)) { | |
23439 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23440 | } else { | |
23441 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23442 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23443 | } | |
23444 | if (SWIG_IsTmpObj(res3)) { | |
23445 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23446 | } else { | |
23447 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23448 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23449 | } | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23457 | PyObject *resultobj = 0; | |
23458 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23459 | int *arg2 = (int *) 0 ; | |
23460 | int *arg3 = (int *) 0 ; | |
23461 | void *argp1 = 0 ; | |
23462 | int res1 = 0 ; | |
23463 | int temp2 ; | |
23464 | int res2 = SWIG_TMPOBJ ; | |
23465 | int temp3 ; | |
23466 | int res3 = SWIG_TMPOBJ ; | |
23467 | PyObject *swig_obj[1] ; | |
23468 | ||
23469 | arg2 = &temp2; | |
23470 | arg3 = &temp3; | |
23471 | if (!args) SWIG_fail; | |
23472 | swig_obj[0] = args; | |
23473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23474 | if (!SWIG_IsOK(res1)) { | |
23475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23476 | } | |
23477 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23478 | { | |
23479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23480 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
23481 | wxPyEndAllowThreads(__tstate); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
23483 | } | |
23484 | resultobj = SWIG_Py_Void(); | |
23485 | if (SWIG_IsTmpObj(res2)) { | |
23486 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23487 | } else { | |
23488 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23489 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23490 | } | |
23491 | if (SWIG_IsTmpObj(res3)) { | |
23492 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23493 | } else { | |
23494 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23495 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23496 | } | |
23497 | return resultobj; | |
23498 | fail: | |
23499 | return NULL; | |
23500 | } | |
23501 | ||
23502 | ||
23503 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23504 | PyObject *resultobj = 0; | |
23505 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23506 | int *arg2 = (int *) 0 ; | |
23507 | int *arg3 = (int *) 0 ; | |
23508 | void *argp1 = 0 ; | |
23509 | int res1 = 0 ; | |
23510 | int temp2 ; | |
23511 | int res2 = SWIG_TMPOBJ ; | |
23512 | int temp3 ; | |
23513 | int res3 = SWIG_TMPOBJ ; | |
23514 | PyObject *swig_obj[1] ; | |
23515 | ||
23516 | arg2 = &temp2; | |
23517 | arg3 = &temp3; | |
23518 | if (!args) SWIG_fail; | |
23519 | swig_obj[0] = args; | |
23520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23521 | if (!SWIG_IsOK(res1)) { | |
23522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23523 | } | |
23524 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
23528 | wxPyEndAllowThreads(__tstate); | |
23529 | if (PyErr_Occurred()) SWIG_fail; | |
23530 | } | |
23531 | resultobj = SWIG_Py_Void(); | |
23532 | if (SWIG_IsTmpObj(res2)) { | |
23533 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23534 | } else { | |
23535 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23536 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23537 | } | |
23538 | if (SWIG_IsTmpObj(res3)) { | |
23539 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23540 | } else { | |
23541 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23542 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23543 | } | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | return NULL; | |
d55e5bfc RD |
23547 | } |
23548 | ||
23549 | ||
554f62e9 RD |
23550 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23551 | PyObject *resultobj = 0; | |
23552 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23553 | wxSize result; | |
23554 | void *argp1 = 0 ; | |
23555 | int res1 = 0 ; | |
23556 | PyObject *swig_obj[1] ; | |
23557 | ||
23558 | if (!args) SWIG_fail; | |
23559 | swig_obj[0] = args; | |
23560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23561 | if (!SWIG_IsOK(res1)) { | |
23562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23563 | } | |
23564 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23565 | { | |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
23571 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | return NULL; | |
d55e5bfc RD |
23575 | } |
23576 | ||
23577 | ||
554f62e9 RD |
23578 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23579 | PyObject *resultobj = 0; | |
23580 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23581 | wxSize result; | |
23582 | void *argp1 = 0 ; | |
23583 | int res1 = 0 ; | |
23584 | PyObject *swig_obj[1] ; | |
23585 | ||
23586 | if (!args) SWIG_fail; | |
23587 | swig_obj[0] = args; | |
23588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23589 | if (!SWIG_IsOK(res1)) { | |
23590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23591 | } | |
23592 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23593 | { | |
23594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23595 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
23596 | wxPyEndAllowThreads(__tstate); | |
23597 | if (PyErr_Occurred()) SWIG_fail; | |
23598 | } | |
23599 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23600 | return resultobj; | |
23601 | fail: | |
23602 | return NULL; | |
d55e5bfc RD |
23603 | } |
23604 | ||
23605 | ||
554f62e9 RD |
23606 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23607 | PyObject *resultobj = 0; | |
23608 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23609 | SwigValueWrapper<wxVisualAttributes > result; | |
23610 | void *argp1 = 0 ; | |
23611 | int res1 = 0 ; | |
23612 | PyObject *swig_obj[1] ; | |
23613 | ||
23614 | if (!args) SWIG_fail; | |
23615 | swig_obj[0] = args; | |
23616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23617 | if (!SWIG_IsOK(res1)) { | |
23618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23619 | } | |
23620 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23621 | { | |
23622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23623 | result = (arg1)->GetDefaultAttributes(); | |
23624 | wxPyEndAllowThreads(__tstate); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
23626 | } | |
23627 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23628 | return resultobj; | |
23629 | fail: | |
23630 | return NULL; | |
d55e5bfc RD |
23631 | } |
23632 | ||
23633 | ||
554f62e9 RD |
23634 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23635 | PyObject *resultobj = 0; | |
23636 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23637 | void *argp1 = 0 ; | |
23638 | int res1 = 0 ; | |
23639 | PyObject *swig_obj[1] ; | |
23640 | ||
23641 | if (!args) SWIG_fail; | |
23642 | swig_obj[0] = args; | |
23643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23644 | if (!SWIG_IsOK(res1)) { | |
23645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23646 | } | |
23647 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23648 | { | |
23649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23650 | (arg1)->OnInternalIdle(); | |
23651 | wxPyEndAllowThreads(__tstate); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | } | |
23654 | resultobj = SWIG_Py_Void(); | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
d55e5bfc RD |
23658 | } |
23659 | ||
23660 | ||
554f62e9 RD |
23661 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23662 | PyObject *obj; | |
23663 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23664 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23665 | return SWIG_Py_Void(); | |
d55e5bfc RD |
23666 | } |
23667 | ||
554f62e9 RD |
23668 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23669 | return SWIG_Python_InitShadowInstance(args); | |
23670 | } | |
d55e5bfc | 23671 | |
554f62e9 RD |
23672 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23673 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23674 | return 1; | |
d55e5bfc RD |
23675 | } |
23676 | ||
23677 | ||
554f62e9 RD |
23678 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23679 | PyObject *pyobj = 0; | |
23680 | ||
23681 | { | |
23682 | #if wxUSE_UNICODE | |
23683 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23684 | #else | |
23685 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23686 | #endif | |
23687 | } | |
23688 | return pyobj; | |
d55e5bfc RD |
23689 | } |
23690 | ||
23691 | ||
554f62e9 RD |
23692 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23693 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23694 | return 1; | |
d55e5bfc RD |
23695 | } |
23696 | ||
23697 | ||
554f62e9 RD |
23698 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { |
23699 | PyObject *pyobj = 0; | |
23700 | ||
23701 | { | |
23702 | #if wxUSE_UNICODE | |
23703 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23704 | #else | |
23705 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23706 | #endif | |
23707 | } | |
23708 | return pyobj; | |
d55e5bfc RD |
23709 | } |
23710 | ||
23711 | ||
554f62e9 RD |
23712 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23713 | PyObject *resultobj = 0; | |
23714 | wxPrintData *result = 0 ; | |
23715 | ||
23716 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23717 | { | |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23719 | result = (wxPrintData *)new wxPrintData(); | |
23720 | wxPyEndAllowThreads(__tstate); | |
23721 | if (PyErr_Occurred()) SWIG_fail; | |
23722 | } | |
23723 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23724 | return resultobj; | |
23725 | fail: | |
23726 | return NULL; | |
d55e5bfc RD |
23727 | } |
23728 | ||
23729 | ||
554f62e9 RD |
23730 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23731 | PyObject *resultobj = 0; | |
23732 | wxPrintData *arg1 = 0 ; | |
23733 | wxPrintData *result = 0 ; | |
23734 | void *argp1 = 0 ; | |
23735 | int res1 = 0 ; | |
23736 | ||
23737 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23739 | if (!SWIG_IsOK(res1)) { | |
23740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23741 | } | |
23742 | if (!argp1) { | |
23743 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23744 | } | |
23745 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23749 | wxPyEndAllowThreads(__tstate); | |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
23751 | } | |
23752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23753 | return resultobj; | |
23754 | fail: | |
23755 | return NULL; | |
d55e5bfc RD |
23756 | } |
23757 | ||
23758 | ||
554f62e9 RD |
23759 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23760 | int argc; | |
23761 | PyObject *argv[2]; | |
23762 | ||
23763 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23764 | --argc; | |
23765 | if (argc == 0) { | |
23766 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23767 | } | |
23768 | if (argc == 1) { | |
23769 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23770 | } | |
23771 | ||
23772 | fail: | |
23773 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23774 | return NULL; | |
d55e5bfc RD |
23775 | } |
23776 | ||
23777 | ||
554f62e9 RD |
23778 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23779 | PyObject *resultobj = 0; | |
23780 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23781 | void *argp1 = 0 ; | |
23782 | int res1 = 0 ; | |
23783 | PyObject *swig_obj[1] ; | |
23784 | ||
23785 | if (!args) SWIG_fail; | |
23786 | swig_obj[0] = args; | |
23787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23788 | if (!SWIG_IsOK(res1)) { | |
23789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23790 | } | |
23791 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23792 | { | |
23793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23794 | delete arg1; | |
d55e5bfc | 23795 | |
554f62e9 RD |
23796 | wxPyEndAllowThreads(__tstate); |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | } | |
23799 | resultobj = SWIG_Py_Void(); | |
23800 | return resultobj; | |
23801 | fail: | |
23802 | return NULL; | |
d55e5bfc RD |
23803 | } |
23804 | ||
23805 | ||
554f62e9 RD |
23806 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23807 | PyObject *resultobj = 0; | |
23808 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23809 | int result; | |
23810 | void *argp1 = 0 ; | |
23811 | int res1 = 0 ; | |
23812 | PyObject *swig_obj[1] ; | |
23813 | ||
23814 | if (!args) SWIG_fail; | |
23815 | swig_obj[0] = args; | |
23816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23817 | if (!SWIG_IsOK(res1)) { | |
23818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23819 | } | |
23820 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23821 | { | |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = (int)(arg1)->GetNoCopies(); | |
23824 | wxPyEndAllowThreads(__tstate); | |
23825 | if (PyErr_Occurred()) SWIG_fail; | |
23826 | } | |
23827 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23828 | return resultobj; | |
23829 | fail: | |
23830 | return NULL; | |
d55e5bfc RD |
23831 | } |
23832 | ||
23833 | ||
554f62e9 RD |
23834 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23835 | PyObject *resultobj = 0; | |
23836 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23837 | bool result; | |
23838 | void *argp1 = 0 ; | |
23839 | int res1 = 0 ; | |
23840 | PyObject *swig_obj[1] ; | |
23841 | ||
23842 | if (!args) SWIG_fail; | |
23843 | swig_obj[0] = args; | |
23844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23845 | if (!SWIG_IsOK(res1)) { | |
23846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23847 | } | |
23848 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | result = (bool)(arg1)->GetCollate(); | |
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | { | |
23856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | return NULL; | |
d55e5bfc RD |
23861 | } |
23862 | ||
23863 | ||
554f62e9 RD |
23864 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23865 | PyObject *resultobj = 0; | |
23866 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23867 | int result; | |
23868 | void *argp1 = 0 ; | |
23869 | int res1 = 0 ; | |
23870 | PyObject *swig_obj[1] ; | |
23871 | ||
23872 | if (!args) SWIG_fail; | |
23873 | swig_obj[0] = args; | |
23874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23875 | if (!SWIG_IsOK(res1)) { | |
23876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23877 | } | |
23878 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | result = (int)(arg1)->GetOrientation(); | |
23882 | wxPyEndAllowThreads(__tstate); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
23884 | } | |
23885 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23886 | return resultobj; | |
23887 | fail: | |
23888 | return NULL; | |
d55e5bfc RD |
23889 | } |
23890 | ||
23891 | ||
554f62e9 RD |
23892 | SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23893 | PyObject *resultobj = 0; | |
23894 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23895 | bool result; | |
23896 | void *argp1 = 0 ; | |
23897 | int res1 = 0 ; | |
23898 | PyObject *swig_obj[1] ; | |
23899 | ||
23900 | if (!args) SWIG_fail; | |
23901 | swig_obj[0] = args; | |
23902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23903 | if (!SWIG_IsOK(res1)) { | |
23904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_Ok" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23905 | } | |
23906 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23907 | { | |
23908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23909 | result = (bool)(arg1)->Ok(); | |
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | { | |
23914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23915 | } | |
23916 | return resultobj; | |
23917 | fail: | |
23918 | return NULL; | |
d55e5bfc RD |
23919 | } |
23920 | ||
23921 | ||
554f62e9 RD |
23922 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23923 | PyObject *resultobj = 0; | |
23924 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23925 | wxString *result = 0 ; | |
23926 | void *argp1 = 0 ; | |
23927 | int res1 = 0 ; | |
23928 | PyObject *swig_obj[1] ; | |
23929 | ||
23930 | if (!args) SWIG_fail; | |
23931 | swig_obj[0] = args; | |
23932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23933 | if (!SWIG_IsOK(res1)) { | |
23934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23935 | } | |
23936 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23937 | { | |
23938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23939 | { |
554f62e9 RD |
23940 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23941 | result = (wxString *) &_result_ref; | |
d55e5bfc | 23942 | } |
554f62e9 RD |
23943 | wxPyEndAllowThreads(__tstate); |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | { | |
d55e5bfc | 23947 | #if wxUSE_UNICODE |
554f62e9 | 23948 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d55e5bfc | 23949 | #else |
554f62e9 | 23950 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d55e5bfc | 23951 | #endif |
554f62e9 RD |
23952 | } |
23953 | return resultobj; | |
23954 | fail: | |
23955 | return NULL; | |
d55e5bfc RD |
23956 | } |
23957 | ||
23958 | ||
554f62e9 RD |
23959 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23960 | PyObject *resultobj = 0; | |
23961 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23962 | bool result; | |
23963 | void *argp1 = 0 ; | |
23964 | int res1 = 0 ; | |
23965 | PyObject *swig_obj[1] ; | |
23966 | ||
23967 | if (!args) SWIG_fail; | |
23968 | swig_obj[0] = args; | |
23969 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23970 | if (!SWIG_IsOK(res1)) { | |
23971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23972 | } | |
23973 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (bool)(arg1)->GetColour(); | |
23977 | wxPyEndAllowThreads(__tstate); | |
23978 | if (PyErr_Occurred()) SWIG_fail; | |
23979 | } | |
23980 | { | |
23981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23982 | } | |
23983 | return resultobj; | |
23984 | fail: | |
23985 | return NULL; | |
d55e5bfc RD |
23986 | } |
23987 | ||
23988 | ||
554f62e9 RD |
23989 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23990 | PyObject *resultobj = 0; | |
23991 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23992 | wxDuplexMode result; | |
23993 | void *argp1 = 0 ; | |
23994 | int res1 = 0 ; | |
23995 | PyObject *swig_obj[1] ; | |
23996 | ||
23997 | if (!args) SWIG_fail; | |
23998 | swig_obj[0] = args; | |
23999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24000 | if (!SWIG_IsOK(res1)) { | |
24001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24002 | } | |
24003 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24004 | { | |
24005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24006 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
24007 | wxPyEndAllowThreads(__tstate); | |
24008 | if (PyErr_Occurred()) SWIG_fail; | |
24009 | } | |
24010 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24011 | return resultobj; | |
24012 | fail: | |
24013 | return NULL; | |
d55e5bfc RD |
24014 | } |
24015 | ||
24016 | ||
554f62e9 RD |
24017 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24018 | PyObject *resultobj = 0; | |
24019 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24020 | wxPaperSize result; | |
24021 | void *argp1 = 0 ; | |
24022 | int res1 = 0 ; | |
24023 | PyObject *swig_obj[1] ; | |
24024 | ||
24025 | if (!args) SWIG_fail; | |
24026 | swig_obj[0] = args; | |
24027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24028 | if (!SWIG_IsOK(res1)) { | |
24029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24030 | } | |
24031 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24032 | { | |
24033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24034 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
24035 | wxPyEndAllowThreads(__tstate); | |
24036 | if (PyErr_Occurred()) SWIG_fail; | |
24037 | } | |
24038 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24039 | return resultobj; | |
24040 | fail: | |
24041 | return NULL; | |
d55e5bfc RD |
24042 | } |
24043 | ||
24044 | ||
554f62e9 RD |
24045 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24046 | PyObject *resultobj = 0; | |
24047 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24048 | wxSize *result = 0 ; | |
24049 | void *argp1 = 0 ; | |
24050 | int res1 = 0 ; | |
24051 | PyObject *swig_obj[1] ; | |
24052 | ||
24053 | if (!args) SWIG_fail; | |
24054 | swig_obj[0] = args; | |
24055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24056 | if (!SWIG_IsOK(res1)) { | |
24057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24058 | } | |
24059 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 24062 | { |
554f62e9 RD |
24063 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
24064 | result = (wxSize *) &_result_ref; | |
d55e5bfc | 24065 | } |
554f62e9 RD |
24066 | wxPyEndAllowThreads(__tstate); |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
24069 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
d55e5bfc RD |
24073 | } |
24074 | ||
24075 | ||
554f62e9 RD |
24076 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24077 | PyObject *resultobj = 0; | |
24078 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24079 | int 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)) { | |
24088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24089 | } | |
24090 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | result = (int)(arg1)->GetQuality(); | |
24094 | wxPyEndAllowThreads(__tstate); | |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
24096 | } | |
24097 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24098 | return resultobj; | |
24099 | fail: | |
24100 | return NULL; | |
d55e5bfc RD |
24101 | } |
24102 | ||
24103 | ||
554f62e9 RD |
24104 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24105 | PyObject *resultobj = 0; | |
24106 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24107 | wxPrintBin result; | |
24108 | void *argp1 = 0 ; | |
24109 | int res1 = 0 ; | |
24110 | PyObject *swig_obj[1] ; | |
24111 | ||
24112 | if (!args) SWIG_fail; | |
24113 | swig_obj[0] = args; | |
24114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24115 | if (!SWIG_IsOK(res1)) { | |
24116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24117 | } | |
24118 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24119 | { | |
24120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24121 | result = (wxPrintBin)(arg1)->GetBin(); | |
24122 | wxPyEndAllowThreads(__tstate); | |
24123 | if (PyErr_Occurred()) SWIG_fail; | |
24124 | } | |
24125 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24126 | return resultobj; | |
24127 | fail: | |
24128 | return NULL; | |
d55e5bfc RD |
24129 | } |
24130 | ||
24131 | ||
554f62e9 RD |
24132 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24133 | PyObject *resultobj = 0; | |
24134 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24135 | wxPrintMode result; | |
24136 | void *argp1 = 0 ; | |
24137 | int res1 = 0 ; | |
24138 | PyObject *swig_obj[1] ; | |
24139 | ||
24140 | if (!args) SWIG_fail; | |
24141 | swig_obj[0] = args; | |
24142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24143 | if (!SWIG_IsOK(res1)) { | |
24144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24145 | } | |
24146 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24147 | { | |
24148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24149 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
24150 | wxPyEndAllowThreads(__tstate); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
24152 | } | |
24153 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24154 | return resultobj; | |
24155 | fail: | |
24156 | return NULL; | |
24157 | } | |
24158 | ||
24159 | ||
24160 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24161 | PyObject *resultobj = 0; | |
24162 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24163 | int arg2 ; | |
24164 | void *argp1 = 0 ; | |
24165 | int res1 = 0 ; | |
24166 | int val2 ; | |
24167 | int ecode2 = 0 ; | |
24168 | PyObject * obj0 = 0 ; | |
24169 | PyObject * obj1 = 0 ; | |
24170 | char * kwnames[] = { | |
24171 | (char *) "self",(char *) "v", NULL | |
24172 | }; | |
24173 | ||
24174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
24175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24176 | if (!SWIG_IsOK(res1)) { | |
24177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24178 | } | |
24179 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24180 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24181 | if (!SWIG_IsOK(ecode2)) { | |
24182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
24183 | } | |
24184 | arg2 = static_cast< int >(val2); | |
24185 | { | |
24186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24187 | (arg1)->SetNoCopies(arg2); | |
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | resultobj = SWIG_Py_Void(); | |
24192 | return resultobj; | |
24193 | fail: | |
24194 | return NULL; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj = 0; | |
24200 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24201 | bool arg2 ; | |
24202 | void *argp1 = 0 ; | |
24203 | int res1 = 0 ; | |
24204 | bool val2 ; | |
24205 | int ecode2 = 0 ; | |
24206 | PyObject * obj0 = 0 ; | |
24207 | PyObject * obj1 = 0 ; | |
24208 | char * kwnames[] = { | |
24209 | (char *) "self",(char *) "flag", NULL | |
24210 | }; | |
24211 | ||
24212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
24213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24214 | if (!SWIG_IsOK(res1)) { | |
24215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24216 | } | |
24217 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24218 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24219 | if (!SWIG_IsOK(ecode2)) { | |
24220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
24221 | } | |
24222 | arg2 = static_cast< bool >(val2); | |
24223 | { | |
24224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24225 | (arg1)->SetCollate(arg2); | |
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
24228 | } | |
24229 | resultobj = SWIG_Py_Void(); | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj = 0; | |
24238 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24239 | int arg2 ; | |
24240 | void *argp1 = 0 ; | |
24241 | int res1 = 0 ; | |
24242 | int val2 ; | |
24243 | int ecode2 = 0 ; | |
24244 | PyObject * obj0 = 0 ; | |
24245 | PyObject * obj1 = 0 ; | |
24246 | char * kwnames[] = { | |
24247 | (char *) "self",(char *) "orient", NULL | |
24248 | }; | |
24249 | ||
24250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24252 | if (!SWIG_IsOK(res1)) { | |
24253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24254 | } | |
24255 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24256 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24257 | if (!SWIG_IsOK(ecode2)) { | |
24258 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
24259 | } | |
24260 | arg2 = static_cast< int >(val2); | |
24261 | { | |
24262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24263 | (arg1)->SetOrientation(arg2); | |
24264 | wxPyEndAllowThreads(__tstate); | |
24265 | if (PyErr_Occurred()) SWIG_fail; | |
24266 | } | |
24267 | resultobj = SWIG_Py_Void(); | |
24268 | return resultobj; | |
24269 | fail: | |
24270 | return NULL; | |
24271 | } | |
24272 | ||
24273 | ||
24274 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24275 | PyObject *resultobj = 0; | |
24276 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24277 | wxString *arg2 = 0 ; | |
24278 | void *argp1 = 0 ; | |
24279 | int res1 = 0 ; | |
24280 | bool temp2 = false ; | |
24281 | PyObject * obj0 = 0 ; | |
24282 | PyObject * obj1 = 0 ; | |
24283 | char * kwnames[] = { | |
24284 | (char *) "self",(char *) "name", NULL | |
24285 | }; | |
24286 | ||
24287 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
24288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24289 | if (!SWIG_IsOK(res1)) { | |
24290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24291 | } | |
24292 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24293 | { | |
24294 | arg2 = wxString_in_helper(obj1); | |
24295 | if (arg2 == NULL) SWIG_fail; | |
24296 | temp2 = true; | |
24297 | } | |
24298 | { | |
24299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24300 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | resultobj = SWIG_Py_Void(); | |
24305 | { | |
24306 | if (temp2) | |
24307 | delete arg2; | |
24308 | } | |
24309 | return resultobj; | |
24310 | fail: | |
24311 | { | |
24312 | if (temp2) | |
24313 | delete arg2; | |
24314 | } | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
24319 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24320 | PyObject *resultobj = 0; | |
24321 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24322 | bool arg2 ; | |
24323 | void *argp1 = 0 ; | |
24324 | int res1 = 0 ; | |
24325 | bool val2 ; | |
24326 | int ecode2 = 0 ; | |
24327 | PyObject * obj0 = 0 ; | |
24328 | PyObject * obj1 = 0 ; | |
24329 | char * kwnames[] = { | |
24330 | (char *) "self",(char *) "colour", NULL | |
24331 | }; | |
24332 | ||
24333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24335 | if (!SWIG_IsOK(res1)) { | |
24336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24337 | } | |
24338 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24339 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24340 | if (!SWIG_IsOK(ecode2)) { | |
24341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
24342 | } | |
24343 | arg2 = static_cast< bool >(val2); | |
24344 | { | |
24345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24346 | (arg1)->SetColour(arg2); | |
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | resultobj = SWIG_Py_Void(); | |
24351 | return resultobj; | |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24358 | PyObject *resultobj = 0; | |
24359 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24360 | wxDuplexMode arg2 ; | |
24361 | void *argp1 = 0 ; | |
24362 | int res1 = 0 ; | |
24363 | int val2 ; | |
24364 | int ecode2 = 0 ; | |
24365 | PyObject * obj0 = 0 ; | |
24366 | PyObject * obj1 = 0 ; | |
24367 | char * kwnames[] = { | |
24368 | (char *) "self",(char *) "duplex", NULL | |
24369 | }; | |
24370 | ||
24371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
24372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24373 | if (!SWIG_IsOK(res1)) { | |
24374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24375 | } | |
24376 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24378 | if (!SWIG_IsOK(ecode2)) { | |
24379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
24380 | } | |
24381 | arg2 = static_cast< wxDuplexMode >(val2); | |
24382 | { | |
24383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24384 | (arg1)->SetDuplex(arg2); | |
24385 | wxPyEndAllowThreads(__tstate); | |
24386 | if (PyErr_Occurred()) SWIG_fail; | |
24387 | } | |
24388 | resultobj = SWIG_Py_Void(); | |
24389 | return resultobj; | |
24390 | fail: | |
24391 | return NULL; | |
24392 | } | |
24393 | ||
24394 | ||
24395 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24396 | PyObject *resultobj = 0; | |
24397 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24398 | wxPaperSize arg2 ; | |
24399 | void *argp1 = 0 ; | |
24400 | int res1 = 0 ; | |
24401 | int val2 ; | |
24402 | int ecode2 = 0 ; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | PyObject * obj1 = 0 ; | |
24405 | char * kwnames[] = { | |
24406 | (char *) "self",(char *) "sizeId", NULL | |
24407 | }; | |
24408 | ||
24409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
24410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24411 | if (!SWIG_IsOK(res1)) { | |
24412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24413 | } | |
24414 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24416 | if (!SWIG_IsOK(ecode2)) { | |
24417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
24418 | } | |
24419 | arg2 = static_cast< wxPaperSize >(val2); | |
24420 | { | |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | (arg1)->SetPaperId(arg2); | |
24423 | wxPyEndAllowThreads(__tstate); | |
24424 | if (PyErr_Occurred()) SWIG_fail; | |
24425 | } | |
24426 | resultobj = SWIG_Py_Void(); | |
24427 | return resultobj; | |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24434 | PyObject *resultobj = 0; | |
24435 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24436 | wxSize *arg2 = 0 ; | |
24437 | void *argp1 = 0 ; | |
24438 | int res1 = 0 ; | |
24439 | wxSize temp2 ; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | PyObject * obj1 = 0 ; | |
24442 | char * kwnames[] = { | |
24443 | (char *) "self",(char *) "sz", NULL | |
24444 | }; | |
24445 | ||
24446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24448 | if (!SWIG_IsOK(res1)) { | |
24449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24450 | } | |
24451 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24452 | { | |
24453 | arg2 = &temp2; | |
24454 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24455 | } | |
24456 | { | |
24457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24458 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
24459 | wxPyEndAllowThreads(__tstate); | |
24460 | if (PyErr_Occurred()) SWIG_fail; | |
24461 | } | |
24462 | resultobj = SWIG_Py_Void(); | |
24463 | return resultobj; | |
24464 | fail: | |
24465 | return NULL; | |
24466 | } | |
24467 | ||
24468 | ||
24469 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24470 | PyObject *resultobj = 0; | |
24471 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24472 | int arg2 ; | |
24473 | void *argp1 = 0 ; | |
24474 | int res1 = 0 ; | |
24475 | int val2 ; | |
24476 | int ecode2 = 0 ; | |
24477 | PyObject * obj0 = 0 ; | |
24478 | PyObject * obj1 = 0 ; | |
24479 | char * kwnames[] = { | |
24480 | (char *) "self",(char *) "quality", NULL | |
24481 | }; | |
24482 | ||
24483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
24484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24485 | if (!SWIG_IsOK(res1)) { | |
24486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24487 | } | |
24488 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24489 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24490 | if (!SWIG_IsOK(ecode2)) { | |
24491 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
24492 | } | |
24493 | arg2 = static_cast< int >(val2); | |
24494 | { | |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | (arg1)->SetQuality(arg2); | |
24497 | wxPyEndAllowThreads(__tstate); | |
24498 | if (PyErr_Occurred()) SWIG_fail; | |
24499 | } | |
24500 | resultobj = SWIG_Py_Void(); | |
24501 | return resultobj; | |
24502 | fail: | |
24503 | return NULL; | |
24504 | } | |
24505 | ||
24506 | ||
24507 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24508 | PyObject *resultobj = 0; | |
24509 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24510 | wxPrintBin arg2 ; | |
24511 | void *argp1 = 0 ; | |
24512 | int res1 = 0 ; | |
24513 | int val2 ; | |
24514 | int ecode2 = 0 ; | |
24515 | PyObject * obj0 = 0 ; | |
24516 | PyObject * obj1 = 0 ; | |
24517 | char * kwnames[] = { | |
24518 | (char *) "self",(char *) "bin", NULL | |
24519 | }; | |
24520 | ||
24521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24523 | if (!SWIG_IsOK(res1)) { | |
24524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24525 | } | |
24526 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24527 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24528 | if (!SWIG_IsOK(ecode2)) { | |
24529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
24530 | } | |
24531 | arg2 = static_cast< wxPrintBin >(val2); | |
24532 | { | |
24533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24534 | (arg1)->SetBin(arg2); | |
24535 | wxPyEndAllowThreads(__tstate); | |
24536 | if (PyErr_Occurred()) SWIG_fail; | |
24537 | } | |
24538 | resultobj = SWIG_Py_Void(); | |
24539 | return resultobj; | |
24540 | fail: | |
24541 | return NULL; | |
24542 | } | |
24543 | ||
24544 | ||
24545 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24546 | PyObject *resultobj = 0; | |
24547 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24548 | wxPrintMode arg2 ; | |
24549 | void *argp1 = 0 ; | |
24550 | int res1 = 0 ; | |
24551 | int val2 ; | |
24552 | int ecode2 = 0 ; | |
24553 | PyObject * obj0 = 0 ; | |
24554 | PyObject * obj1 = 0 ; | |
24555 | char * kwnames[] = { | |
24556 | (char *) "self",(char *) "printMode", NULL | |
24557 | }; | |
24558 | ||
24559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
24560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24561 | if (!SWIG_IsOK(res1)) { | |
24562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24563 | } | |
24564 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24565 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24566 | if (!SWIG_IsOK(ecode2)) { | |
24567 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
24568 | } | |
24569 | arg2 = static_cast< wxPrintMode >(val2); | |
24570 | { | |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | (arg1)->SetPrintMode(arg2); | |
24573 | wxPyEndAllowThreads(__tstate); | |
24574 | if (PyErr_Occurred()) SWIG_fail; | |
24575 | } | |
24576 | resultobj = SWIG_Py_Void(); | |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
d55e5bfc RD |
24580 | } |
24581 | ||
24582 | ||
554f62e9 RD |
24583 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24584 | PyObject *resultobj = 0; | |
24585 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24586 | wxString result; | |
24587 | void *argp1 = 0 ; | |
24588 | int res1 = 0 ; | |
24589 | PyObject *swig_obj[1] ; | |
24590 | ||
24591 | if (!args) SWIG_fail; | |
24592 | swig_obj[0] = args; | |
24593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24594 | if (!SWIG_IsOK(res1)) { | |
24595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24596 | } | |
24597 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
24601 | wxPyEndAllowThreads(__tstate); | |
24602 | if (PyErr_Occurred()) SWIG_fail; | |
24603 | } | |
24604 | { | |
d55e5bfc | 24605 | #if wxUSE_UNICODE |
554f62e9 | 24606 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 24607 | #else |
554f62e9 | 24608 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 24609 | #endif |
554f62e9 RD |
24610 | } |
24611 | return resultobj; | |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
24617 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24618 | PyObject *resultobj = 0; | |
24619 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24620 | wxString *arg2 = 0 ; | |
24621 | void *argp1 = 0 ; | |
24622 | int res1 = 0 ; | |
24623 | bool temp2 = false ; | |
24624 | PyObject * obj0 = 0 ; | |
24625 | PyObject * obj1 = 0 ; | |
24626 | char * kwnames[] = { | |
24627 | (char *) "self",(char *) "filename", NULL | |
24628 | }; | |
24629 | ||
24630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24632 | if (!SWIG_IsOK(res1)) { | |
24633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24634 | } | |
24635 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24636 | { | |
24637 | arg2 = wxString_in_helper(obj1); | |
24638 | if (arg2 == NULL) SWIG_fail; | |
24639 | temp2 = true; | |
24640 | } | |
24641 | { | |
24642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24643 | (arg1)->SetFilename((wxString const &)*arg2); | |
24644 | wxPyEndAllowThreads(__tstate); | |
24645 | if (PyErr_Occurred()) SWIG_fail; | |
24646 | } | |
24647 | resultobj = SWIG_Py_Void(); | |
24648 | { | |
24649 | if (temp2) | |
24650 | delete arg2; | |
24651 | } | |
24652 | return resultobj; | |
24653 | fail: | |
24654 | { | |
24655 | if (temp2) | |
24656 | delete arg2; | |
24657 | } | |
24658 | return NULL; | |
d55e5bfc RD |
24659 | } |
24660 | ||
24661 | ||
554f62e9 RD |
24662 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24663 | PyObject *resultobj = 0; | |
24664 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24665 | PyObject *result = 0 ; | |
24666 | void *argp1 = 0 ; | |
24667 | int res1 = 0 ; | |
24668 | PyObject *swig_obj[1] ; | |
24669 | ||
24670 | if (!args) SWIG_fail; | |
24671 | swig_obj[0] = args; | |
24672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24673 | if (!SWIG_IsOK(res1)) { | |
24674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24675 | } | |
24676 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24677 | { | |
24678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24679 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24680 | wxPyEndAllowThreads(__tstate); | |
24681 | if (PyErr_Occurred()) SWIG_fail; | |
24682 | } | |
24683 | resultobj = result; | |
24684 | return resultobj; | |
24685 | fail: | |
24686 | return NULL; | |
24687 | } | |
24688 | ||
24689 | ||
24690 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24691 | PyObject *resultobj = 0; | |
24692 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24693 | PyObject *arg2 = (PyObject *) 0 ; | |
24694 | void *argp1 = 0 ; | |
24695 | int res1 = 0 ; | |
24696 | PyObject * obj0 = 0 ; | |
24697 | PyObject * obj1 = 0 ; | |
24698 | char * kwnames[] = { | |
24699 | (char *) "self",(char *) "data", NULL | |
24700 | }; | |
24701 | ||
24702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24704 | if (!SWIG_IsOK(res1)) { | |
24705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24706 | } | |
24707 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24708 | arg2 = obj1; | |
24709 | { | |
24710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24711 | wxPrintData_SetPrivData(arg1,arg2); | |
24712 | wxPyEndAllowThreads(__tstate); | |
24713 | if (PyErr_Occurred()) SWIG_fail; | |
24714 | } | |
24715 | resultobj = SWIG_Py_Void(); | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | return NULL; | |
d55e5bfc RD |
24719 | } |
24720 | ||
24721 | ||
554f62e9 RD |
24722 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24723 | PyObject *obj; | |
24724 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24725 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24726 | return SWIG_Py_Void(); | |
c1cb24a4 RD |
24727 | } |
24728 | ||
554f62e9 RD |
24729 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24730 | return SWIG_Python_InitShadowInstance(args); | |
c1cb24a4 RD |
24731 | } |
24732 | ||
554f62e9 RD |
24733 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24734 | PyObject *resultobj = 0; | |
24735 | wxPageSetupDialogData *result = 0 ; | |
24736 | ||
24737 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24738 | { | |
24739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24740 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24741 | wxPyEndAllowThreads(__tstate); | |
24742 | if (PyErr_Occurred()) SWIG_fail; | |
24743 | } | |
24744 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24745 | return resultobj; | |
24746 | fail: | |
24747 | return NULL; | |
d55e5bfc RD |
24748 | } |
24749 | ||
24750 | ||
554f62e9 RD |
24751 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24752 | PyObject *resultobj = 0; | |
24753 | wxPageSetupDialogData *arg1 = 0 ; | |
24754 | wxPageSetupDialogData *result = 0 ; | |
24755 | void *argp1 = 0 ; | |
24756 | int res1 = 0 ; | |
24757 | ||
24758 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24760 | if (!SWIG_IsOK(res1)) { | |
24761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24762 | } | |
24763 | if (!argp1) { | |
24764 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24765 | } | |
24766 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24767 | { | |
24768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24769 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24770 | wxPyEndAllowThreads(__tstate); | |
24771 | if (PyErr_Occurred()) SWIG_fail; | |
24772 | } | |
24773 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
d55e5bfc RD |
24777 | } |
24778 | ||
24779 | ||
554f62e9 RD |
24780 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24781 | PyObject *resultobj = 0; | |
24782 | wxPrintData *arg1 = 0 ; | |
24783 | wxPageSetupDialogData *result = 0 ; | |
24784 | void *argp1 = 0 ; | |
24785 | int res1 = 0 ; | |
24786 | ||
24787 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24788 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24789 | if (!SWIG_IsOK(res1)) { | |
24790 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24791 | } | |
24792 | if (!argp1) { | |
24793 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24794 | } | |
24795 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24796 | { | |
24797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24798 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24799 | wxPyEndAllowThreads(__tstate); | |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
24801 | } | |
24802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24803 | return resultobj; | |
24804 | fail: | |
24805 | return NULL; | |
d55e5bfc RD |
24806 | } |
24807 | ||
24808 | ||
554f62e9 RD |
24809 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24810 | int argc; | |
24811 | PyObject *argv[2]; | |
24812 | ||
24813 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24814 | --argc; | |
24815 | if (argc == 0) { | |
24816 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24817 | } | |
24818 | if (argc == 1) { | |
24819 | int _v = 0; | |
d55e5bfc | 24820 | { |
554f62e9 RD |
24821 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24822 | _v = SWIG_CheckState(res); | |
d55e5bfc | 24823 | } |
554f62e9 RD |
24824 | if (!_v) goto check_2; |
24825 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24826 | } | |
24827 | check_2: | |
24828 | ||
24829 | if (argc == 1) { | |
24830 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24831 | } | |
24832 | ||
24833 | fail: | |
24834 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24835 | return NULL; | |
d55e5bfc RD |
24836 | } |
24837 | ||
24838 | ||
554f62e9 RD |
24839 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24840 | PyObject *resultobj = 0; | |
24841 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24842 | void *argp1 = 0 ; | |
24843 | int res1 = 0 ; | |
24844 | PyObject *swig_obj[1] ; | |
24845 | ||
24846 | if (!args) SWIG_fail; | |
24847 | swig_obj[0] = args; | |
24848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24849 | if (!SWIG_IsOK(res1)) { | |
24850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24851 | } | |
24852 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | delete arg1; | |
d55e5bfc | 24856 | |
554f62e9 RD |
24857 | wxPyEndAllowThreads(__tstate); |
24858 | if (PyErr_Occurred()) SWIG_fail; | |
24859 | } | |
24860 | resultobj = SWIG_Py_Void(); | |
24861 | return resultobj; | |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
24867 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24868 | PyObject *resultobj = 0; | |
24869 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24870 | bool arg2 ; | |
24871 | void *argp1 = 0 ; | |
24872 | int res1 = 0 ; | |
24873 | bool val2 ; | |
24874 | int ecode2 = 0 ; | |
24875 | PyObject * obj0 = 0 ; | |
24876 | PyObject * obj1 = 0 ; | |
24877 | char * kwnames[] = { | |
24878 | (char *) "self",(char *) "flag", NULL | |
24879 | }; | |
24880 | ||
24881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24883 | if (!SWIG_IsOK(res1)) { | |
24884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24885 | } | |
24886 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24887 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24888 | if (!SWIG_IsOK(ecode2)) { | |
24889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24890 | } | |
24891 | arg2 = static_cast< bool >(val2); | |
24892 | { | |
24893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24894 | (arg1)->EnableHelp(arg2); | |
24895 | wxPyEndAllowThreads(__tstate); | |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
24898 | resultobj = SWIG_Py_Void(); | |
24899 | return resultobj; | |
24900 | fail: | |
24901 | return NULL; | |
24902 | } | |
24903 | ||
24904 | ||
24905 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24906 | PyObject *resultobj = 0; | |
24907 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24908 | bool arg2 ; | |
24909 | void *argp1 = 0 ; | |
24910 | int res1 = 0 ; | |
24911 | bool val2 ; | |
24912 | int ecode2 = 0 ; | |
24913 | PyObject * obj0 = 0 ; | |
24914 | PyObject * obj1 = 0 ; | |
24915 | char * kwnames[] = { | |
24916 | (char *) "self",(char *) "flag", NULL | |
24917 | }; | |
24918 | ||
24919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24921 | if (!SWIG_IsOK(res1)) { | |
24922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24923 | } | |
24924 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24925 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24926 | if (!SWIG_IsOK(ecode2)) { | |
24927 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24928 | } | |
24929 | arg2 = static_cast< bool >(val2); | |
24930 | { | |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | (arg1)->EnableMargins(arg2); | |
24933 | wxPyEndAllowThreads(__tstate); | |
24934 | if (PyErr_Occurred()) SWIG_fail; | |
24935 | } | |
24936 | resultobj = SWIG_Py_Void(); | |
24937 | return resultobj; | |
24938 | fail: | |
24939 | return NULL; | |
24940 | } | |
24941 | ||
24942 | ||
24943 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24944 | PyObject *resultobj = 0; | |
24945 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24946 | bool arg2 ; | |
24947 | void *argp1 = 0 ; | |
24948 | int res1 = 0 ; | |
24949 | bool val2 ; | |
24950 | int ecode2 = 0 ; | |
24951 | PyObject * obj0 = 0 ; | |
24952 | PyObject * obj1 = 0 ; | |
24953 | char * kwnames[] = { | |
24954 | (char *) "self",(char *) "flag", NULL | |
24955 | }; | |
24956 | ||
24957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24959 | if (!SWIG_IsOK(res1)) { | |
24960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24961 | } | |
24962 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24963 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24964 | if (!SWIG_IsOK(ecode2)) { | |
24965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24966 | } | |
24967 | arg2 = static_cast< bool >(val2); | |
24968 | { | |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24970 | (arg1)->EnableOrientation(arg2); | |
24971 | wxPyEndAllowThreads(__tstate); | |
24972 | if (PyErr_Occurred()) SWIG_fail; | |
24973 | } | |
24974 | resultobj = SWIG_Py_Void(); | |
24975 | return resultobj; | |
24976 | fail: | |
24977 | return NULL; | |
24978 | } | |
24979 | ||
24980 | ||
24981 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24982 | PyObject *resultobj = 0; | |
24983 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24984 | bool arg2 ; | |
24985 | void *argp1 = 0 ; | |
24986 | int res1 = 0 ; | |
24987 | bool val2 ; | |
24988 | int ecode2 = 0 ; | |
24989 | PyObject * obj0 = 0 ; | |
24990 | PyObject * obj1 = 0 ; | |
24991 | char * kwnames[] = { | |
24992 | (char *) "self",(char *) "flag", NULL | |
24993 | }; | |
24994 | ||
24995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24997 | if (!SWIG_IsOK(res1)) { | |
24998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24999 | } | |
25000 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25001 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25002 | if (!SWIG_IsOK(ecode2)) { | |
25003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
25004 | } | |
25005 | arg2 = static_cast< bool >(val2); | |
25006 | { | |
25007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25008 | (arg1)->EnablePaper(arg2); | |
25009 | wxPyEndAllowThreads(__tstate); | |
25010 | if (PyErr_Occurred()) SWIG_fail; | |
25011 | } | |
25012 | resultobj = SWIG_Py_Void(); | |
25013 | return resultobj; | |
25014 | fail: | |
25015 | return NULL; | |
25016 | } | |
25017 | ||
25018 | ||
25019 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25020 | PyObject *resultobj = 0; | |
25021 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25022 | bool arg2 ; | |
25023 | void *argp1 = 0 ; | |
25024 | int res1 = 0 ; | |
25025 | bool val2 ; | |
25026 | int ecode2 = 0 ; | |
25027 | PyObject * obj0 = 0 ; | |
25028 | PyObject * obj1 = 0 ; | |
25029 | char * kwnames[] = { | |
25030 | (char *) "self",(char *) "flag", NULL | |
25031 | }; | |
25032 | ||
25033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
25034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25035 | if (!SWIG_IsOK(res1)) { | |
25036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25037 | } | |
25038 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25039 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25040 | if (!SWIG_IsOK(ecode2)) { | |
25041 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
25042 | } | |
25043 | arg2 = static_cast< bool >(val2); | |
25044 | { | |
25045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25046 | (arg1)->EnablePrinter(arg2); | |
25047 | wxPyEndAllowThreads(__tstate); | |
25048 | if (PyErr_Occurred()) SWIG_fail; | |
25049 | } | |
25050 | resultobj = SWIG_Py_Void(); | |
25051 | return resultobj; | |
25052 | fail: | |
25053 | return NULL; | |
d55e5bfc RD |
25054 | } |
25055 | ||
25056 | ||
554f62e9 RD |
25057 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25058 | PyObject *resultobj = 0; | |
25059 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25060 | bool result; | |
25061 | void *argp1 = 0 ; | |
25062 | int res1 = 0 ; | |
25063 | PyObject *swig_obj[1] ; | |
25064 | ||
25065 | if (!args) SWIG_fail; | |
25066 | swig_obj[0] = args; | |
25067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25068 | if (!SWIG_IsOK(res1)) { | |
25069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25070 | } | |
25071 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25072 | { | |
25073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25074 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
25075 | wxPyEndAllowThreads(__tstate); | |
25076 | if (PyErr_Occurred()) SWIG_fail; | |
25077 | } | |
25078 | { | |
25079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25080 | } | |
25081 | return resultobj; | |
25082 | fail: | |
25083 | return NULL; | |
d55e5bfc RD |
25084 | } |
25085 | ||
25086 | ||
554f62e9 RD |
25087 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25088 | PyObject *resultobj = 0; | |
25089 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25090 | bool result; | |
25091 | void *argp1 = 0 ; | |
25092 | int res1 = 0 ; | |
25093 | PyObject *swig_obj[1] ; | |
25094 | ||
25095 | if (!args) SWIG_fail; | |
25096 | swig_obj[0] = args; | |
25097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25098 | if (!SWIG_IsOK(res1)) { | |
25099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25100 | } | |
25101 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25102 | { | |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25104 | result = (bool)(arg1)->GetEnableMargins(); | |
25105 | wxPyEndAllowThreads(__tstate); | |
25106 | if (PyErr_Occurred()) SWIG_fail; | |
25107 | } | |
25108 | { | |
25109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25110 | } | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
d55e5bfc RD |
25114 | } |
25115 | ||
25116 | ||
554f62e9 RD |
25117 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25118 | PyObject *resultobj = 0; | |
25119 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25120 | bool result; | |
25121 | void *argp1 = 0 ; | |
25122 | int res1 = 0 ; | |
25123 | PyObject *swig_obj[1] ; | |
25124 | ||
25125 | if (!args) SWIG_fail; | |
25126 | swig_obj[0] = args; | |
25127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25128 | if (!SWIG_IsOK(res1)) { | |
25129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25130 | } | |
25131 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25132 | { | |
25133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25134 | result = (bool)(arg1)->GetEnableOrientation(); | |
25135 | wxPyEndAllowThreads(__tstate); | |
25136 | if (PyErr_Occurred()) SWIG_fail; | |
25137 | } | |
25138 | { | |
25139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25140 | } | |
25141 | return resultobj; | |
25142 | fail: | |
25143 | return NULL; | |
d55e5bfc RD |
25144 | } |
25145 | ||
25146 | ||
554f62e9 RD |
25147 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25148 | PyObject *resultobj = 0; | |
25149 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25150 | bool result; | |
25151 | void *argp1 = 0 ; | |
25152 | int res1 = 0 ; | |
25153 | PyObject *swig_obj[1] ; | |
25154 | ||
25155 | if (!args) SWIG_fail; | |
25156 | swig_obj[0] = args; | |
25157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25158 | if (!SWIG_IsOK(res1)) { | |
25159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25160 | } | |
25161 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25162 | { | |
25163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25164 | result = (bool)(arg1)->GetEnablePaper(); | |
25165 | wxPyEndAllowThreads(__tstate); | |
25166 | if (PyErr_Occurred()) SWIG_fail; | |
25167 | } | |
25168 | { | |
25169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25170 | } | |
25171 | return resultobj; | |
25172 | fail: | |
25173 | return NULL; | |
d55e5bfc RD |
25174 | } |
25175 | ||
25176 | ||
554f62e9 RD |
25177 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25178 | PyObject *resultobj = 0; | |
25179 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25180 | bool result; | |
25181 | void *argp1 = 0 ; | |
25182 | int res1 = 0 ; | |
25183 | PyObject *swig_obj[1] ; | |
25184 | ||
25185 | if (!args) SWIG_fail; | |
25186 | swig_obj[0] = args; | |
25187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25188 | if (!SWIG_IsOK(res1)) { | |
25189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25190 | } | |
25191 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25192 | { | |
25193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25194 | result = (bool)(arg1)->GetEnablePrinter(); | |
25195 | wxPyEndAllowThreads(__tstate); | |
25196 | if (PyErr_Occurred()) SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25200 | } | |
25201 | return resultobj; | |
25202 | fail: | |
25203 | return NULL; | |
d55e5bfc RD |
25204 | } |
25205 | ||
25206 | ||
554f62e9 RD |
25207 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25208 | PyObject *resultobj = 0; | |
25209 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25210 | bool result; | |
25211 | void *argp1 = 0 ; | |
25212 | int res1 = 0 ; | |
25213 | PyObject *swig_obj[1] ; | |
25214 | ||
25215 | if (!args) SWIG_fail; | |
25216 | swig_obj[0] = args; | |
25217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25218 | if (!SWIG_IsOK(res1)) { | |
25219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25220 | } | |
25221 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25222 | { | |
25223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25224 | result = (bool)(arg1)->GetEnableHelp(); | |
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
25228 | { | |
25229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25230 | } | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | return NULL; | |
d55e5bfc RD |
25234 | } |
25235 | ||
25236 | ||
554f62e9 RD |
25237 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25238 | PyObject *resultobj = 0; | |
25239 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25240 | bool result; | |
25241 | void *argp1 = 0 ; | |
25242 | int res1 = 0 ; | |
25243 | PyObject *swig_obj[1] ; | |
25244 | ||
25245 | if (!args) SWIG_fail; | |
25246 | swig_obj[0] = args; | |
25247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25248 | if (!SWIG_IsOK(res1)) { | |
25249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25250 | } | |
25251 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25252 | { | |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | result = (bool)(arg1)->GetDefaultInfo(); | |
25255 | wxPyEndAllowThreads(__tstate); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
25257 | } | |
25258 | { | |
25259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25260 | } | |
25261 | return resultobj; | |
25262 | fail: | |
25263 | return NULL; | |
d55e5bfc RD |
25264 | } |
25265 | ||
25266 | ||
554f62e9 RD |
25267 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25268 | PyObject *resultobj = 0; | |
25269 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25270 | wxPoint result; | |
25271 | void *argp1 = 0 ; | |
25272 | int res1 = 0 ; | |
25273 | PyObject *swig_obj[1] ; | |
25274 | ||
25275 | if (!args) SWIG_fail; | |
25276 | swig_obj[0] = args; | |
25277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25278 | if (!SWIG_IsOK(res1)) { | |
25279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25280 | } | |
25281 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | result = (arg1)->GetMarginTopLeft(); | |
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
d55e5bfc RD |
25292 | } |
25293 | ||
25294 | ||
554f62e9 RD |
25295 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25296 | PyObject *resultobj = 0; | |
25297 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25298 | wxPoint result; | |
25299 | void *argp1 = 0 ; | |
25300 | int res1 = 0 ; | |
25301 | PyObject *swig_obj[1] ; | |
25302 | ||
25303 | if (!args) SWIG_fail; | |
25304 | swig_obj[0] = args; | |
25305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25306 | if (!SWIG_IsOK(res1)) { | |
25307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25308 | } | |
25309 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25310 | { | |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | result = (arg1)->GetMarginBottomRight(); | |
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25317 | return resultobj; | |
25318 | fail: | |
25319 | return NULL; | |
d55e5bfc RD |
25320 | } |
25321 | ||
25322 | ||
554f62e9 RD |
25323 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25324 | PyObject *resultobj = 0; | |
25325 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25326 | wxPoint result; | |
25327 | void *argp1 = 0 ; | |
25328 | int res1 = 0 ; | |
25329 | PyObject *swig_obj[1] ; | |
25330 | ||
25331 | if (!args) SWIG_fail; | |
25332 | swig_obj[0] = args; | |
25333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25334 | if (!SWIG_IsOK(res1)) { | |
25335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25336 | } | |
25337 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25338 | { | |
25339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25340 | result = (arg1)->GetMinMarginTopLeft(); | |
25341 | wxPyEndAllowThreads(__tstate); | |
25342 | if (PyErr_Occurred()) SWIG_fail; | |
25343 | } | |
25344 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25345 | return resultobj; | |
25346 | fail: | |
25347 | return NULL; | |
d55e5bfc RD |
25348 | } |
25349 | ||
25350 | ||
554f62e9 RD |
25351 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25352 | PyObject *resultobj = 0; | |
25353 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25354 | wxPoint result; | |
25355 | void *argp1 = 0 ; | |
25356 | int res1 = 0 ; | |
25357 | PyObject *swig_obj[1] ; | |
25358 | ||
25359 | if (!args) SWIG_fail; | |
25360 | swig_obj[0] = args; | |
25361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25362 | if (!SWIG_IsOK(res1)) { | |
25363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25364 | } | |
25365 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25366 | { | |
25367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25368 | result = (arg1)->GetMinMarginBottomRight(); | |
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
25372 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25373 | return resultobj; | |
25374 | fail: | |
25375 | return NULL; | |
d55e5bfc RD |
25376 | } |
25377 | ||
25378 | ||
554f62e9 RD |
25379 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25380 | PyObject *resultobj = 0; | |
25381 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25382 | wxPaperSize result; | |
25383 | void *argp1 = 0 ; | |
25384 | int res1 = 0 ; | |
25385 | PyObject *swig_obj[1] ; | |
25386 | ||
25387 | if (!args) SWIG_fail; | |
25388 | swig_obj[0] = args; | |
25389 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25390 | if (!SWIG_IsOK(res1)) { | |
25391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25392 | } | |
25393 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25394 | { | |
25395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25396 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
25397 | wxPyEndAllowThreads(__tstate); | |
25398 | if (PyErr_Occurred()) SWIG_fail; | |
25399 | } | |
25400 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25401 | return resultobj; | |
25402 | fail: | |
25403 | return NULL; | |
d55e5bfc RD |
25404 | } |
25405 | ||
25406 | ||
554f62e9 RD |
25407 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25408 | PyObject *resultobj = 0; | |
25409 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25410 | wxSize result; | |
25411 | void *argp1 = 0 ; | |
25412 | int res1 = 0 ; | |
25413 | PyObject *swig_obj[1] ; | |
25414 | ||
25415 | if (!args) SWIG_fail; | |
25416 | swig_obj[0] = args; | |
25417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25418 | if (!SWIG_IsOK(res1)) { | |
25419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25420 | } | |
25421 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25422 | { | |
25423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25424 | result = (arg1)->GetPaperSize(); | |
25425 | wxPyEndAllowThreads(__tstate); | |
25426 | if (PyErr_Occurred()) SWIG_fail; | |
25427 | } | |
25428 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25429 | return resultobj; | |
25430 | fail: | |
25431 | return NULL; | |
7449af73 RD |
25432 | } |
25433 | ||
25434 | ||
554f62e9 RD |
25435 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25436 | PyObject *resultobj = 0; | |
25437 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25438 | wxPrintData *result = 0 ; | |
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_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25448 | } | |
25449 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25450 | { | |
25451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25452 | { |
554f62e9 RD |
25453 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25454 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 25455 | } |
554f62e9 RD |
25456 | wxPyEndAllowThreads(__tstate); |
25457 | if (PyErr_Occurred()) SWIG_fail; | |
25458 | } | |
25459 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25460 | return resultobj; | |
25461 | fail: | |
25462 | return NULL; | |
d55e5bfc RD |
25463 | } |
25464 | ||
25465 | ||
554f62e9 RD |
25466 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25467 | PyObject *resultobj = 0; | |
25468 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25469 | bool result; | |
25470 | void *argp1 = 0 ; | |
25471 | int res1 = 0 ; | |
25472 | PyObject *swig_obj[1] ; | |
25473 | ||
25474 | if (!args) SWIG_fail; | |
25475 | swig_obj[0] = args; | |
25476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25477 | if (!SWIG_IsOK(res1)) { | |
25478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_Ok" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25479 | } | |
25480 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25481 | { | |
25482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25483 | result = (bool)(arg1)->Ok(); | |
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
25487 | { | |
25488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25489 | } | |
25490 | return resultobj; | |
25491 | fail: | |
25492 | return NULL; | |
25493 | } | |
25494 | ||
25495 | ||
25496 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25497 | PyObject *resultobj = 0; | |
25498 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25499 | bool arg2 ; | |
25500 | void *argp1 = 0 ; | |
25501 | int res1 = 0 ; | |
25502 | bool val2 ; | |
25503 | int ecode2 = 0 ; | |
25504 | PyObject * obj0 = 0 ; | |
25505 | PyObject * obj1 = 0 ; | |
25506 | char * kwnames[] = { | |
25507 | (char *) "self",(char *) "flag", NULL | |
25508 | }; | |
25509 | ||
25510 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
25511 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25512 | if (!SWIG_IsOK(res1)) { | |
25513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25514 | } | |
25515 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25516 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25517 | if (!SWIG_IsOK(ecode2)) { | |
25518 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
25519 | } | |
25520 | arg2 = static_cast< bool >(val2); | |
25521 | { | |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | (arg1)->SetDefaultInfo(arg2); | |
25524 | wxPyEndAllowThreads(__tstate); | |
25525 | if (PyErr_Occurred()) SWIG_fail; | |
25526 | } | |
25527 | resultobj = SWIG_Py_Void(); | |
25528 | return resultobj; | |
25529 | fail: | |
25530 | return NULL; | |
25531 | } | |
25532 | ||
25533 | ||
25534 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25535 | PyObject *resultobj = 0; | |
25536 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25537 | bool arg2 ; | |
25538 | void *argp1 = 0 ; | |
25539 | int res1 = 0 ; | |
25540 | bool val2 ; | |
25541 | int ecode2 = 0 ; | |
25542 | PyObject * obj0 = 0 ; | |
25543 | PyObject * obj1 = 0 ; | |
25544 | char * kwnames[] = { | |
25545 | (char *) "self",(char *) "flag", NULL | |
25546 | }; | |
25547 | ||
25548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25550 | if (!SWIG_IsOK(res1)) { | |
25551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25552 | } | |
25553 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25554 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25555 | if (!SWIG_IsOK(ecode2)) { | |
25556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25557 | } | |
25558 | arg2 = static_cast< bool >(val2); | |
25559 | { | |
25560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25561 | (arg1)->SetDefaultMinMargins(arg2); | |
25562 | wxPyEndAllowThreads(__tstate); | |
25563 | if (PyErr_Occurred()) SWIG_fail; | |
25564 | } | |
25565 | resultobj = SWIG_Py_Void(); | |
25566 | return resultobj; | |
25567 | fail: | |
25568 | return NULL; | |
25569 | } | |
25570 | ||
25571 | ||
25572 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25573 | PyObject *resultobj = 0; | |
25574 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25575 | wxPoint *arg2 = 0 ; | |
25576 | void *argp1 = 0 ; | |
25577 | int res1 = 0 ; | |
25578 | wxPoint temp2 ; | |
25579 | PyObject * obj0 = 0 ; | |
25580 | PyObject * obj1 = 0 ; | |
25581 | char * kwnames[] = { | |
25582 | (char *) "self",(char *) "pt", NULL | |
25583 | }; | |
25584 | ||
25585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25587 | if (!SWIG_IsOK(res1)) { | |
25588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25589 | } | |
25590 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25591 | { | |
25592 | arg2 = &temp2; | |
25593 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25594 | } | |
25595 | { | |
25596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25597 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
25598 | wxPyEndAllowThreads(__tstate); | |
25599 | if (PyErr_Occurred()) SWIG_fail; | |
25600 | } | |
25601 | resultobj = SWIG_Py_Void(); | |
25602 | return resultobj; | |
25603 | fail: | |
25604 | return NULL; | |
25605 | } | |
25606 | ||
25607 | ||
25608 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25609 | PyObject *resultobj = 0; | |
25610 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25611 | wxPoint *arg2 = 0 ; | |
25612 | void *argp1 = 0 ; | |
25613 | int res1 = 0 ; | |
25614 | wxPoint temp2 ; | |
25615 | PyObject * obj0 = 0 ; | |
25616 | PyObject * obj1 = 0 ; | |
25617 | char * kwnames[] = { | |
25618 | (char *) "self",(char *) "pt", NULL | |
25619 | }; | |
25620 | ||
25621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25623 | if (!SWIG_IsOK(res1)) { | |
25624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25625 | } | |
25626 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25627 | { | |
25628 | arg2 = &temp2; | |
25629 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25630 | } | |
25631 | { | |
25632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25633 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
25637 | resultobj = SWIG_Py_Void(); | |
25638 | return resultobj; | |
25639 | fail: | |
25640 | return NULL; | |
25641 | } | |
25642 | ||
25643 | ||
25644 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25645 | PyObject *resultobj = 0; | |
25646 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25647 | wxPoint *arg2 = 0 ; | |
25648 | void *argp1 = 0 ; | |
25649 | int res1 = 0 ; | |
25650 | wxPoint temp2 ; | |
25651 | PyObject * obj0 = 0 ; | |
25652 | PyObject * obj1 = 0 ; | |
25653 | char * kwnames[] = { | |
25654 | (char *) "self",(char *) "pt", NULL | |
25655 | }; | |
25656 | ||
25657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25659 | if (!SWIG_IsOK(res1)) { | |
25660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25661 | } | |
25662 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25663 | { | |
25664 | arg2 = &temp2; | |
25665 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25666 | } | |
25667 | { | |
25668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25669 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25670 | wxPyEndAllowThreads(__tstate); | |
25671 | if (PyErr_Occurred()) SWIG_fail; | |
25672 | } | |
25673 | resultobj = SWIG_Py_Void(); | |
25674 | return resultobj; | |
25675 | fail: | |
25676 | return NULL; | |
25677 | } | |
25678 | ||
25679 | ||
25680 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25681 | PyObject *resultobj = 0; | |
25682 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25683 | wxPoint *arg2 = 0 ; | |
25684 | void *argp1 = 0 ; | |
25685 | int res1 = 0 ; | |
25686 | wxPoint temp2 ; | |
25687 | PyObject * obj0 = 0 ; | |
25688 | PyObject * obj1 = 0 ; | |
25689 | char * kwnames[] = { | |
25690 | (char *) "self",(char *) "pt", NULL | |
25691 | }; | |
25692 | ||
25693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25695 | if (!SWIG_IsOK(res1)) { | |
25696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25697 | } | |
25698 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25699 | { | |
25700 | arg2 = &temp2; | |
25701 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25702 | } | |
25703 | { | |
25704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25705 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25706 | wxPyEndAllowThreads(__tstate); | |
25707 | if (PyErr_Occurred()) SWIG_fail; | |
25708 | } | |
25709 | resultobj = SWIG_Py_Void(); | |
25710 | return resultobj; | |
25711 | fail: | |
25712 | return NULL; | |
25713 | } | |
25714 | ||
25715 | ||
25716 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25717 | PyObject *resultobj = 0; | |
25718 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25719 | wxPaperSize arg2 ; | |
25720 | void *argp1 = 0 ; | |
25721 | int res1 = 0 ; | |
25722 | int val2 ; | |
25723 | int ecode2 = 0 ; | |
25724 | PyObject * obj0 = 0 ; | |
25725 | PyObject * obj1 = 0 ; | |
25726 | char * kwnames[] = { | |
25727 | (char *) "self",(char *) "id", NULL | |
25728 | }; | |
25729 | ||
25730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25732 | if (!SWIG_IsOK(res1)) { | |
25733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25734 | } | |
25735 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25736 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25737 | if (!SWIG_IsOK(ecode2)) { | |
25738 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25739 | } | |
25740 | arg2 = static_cast< wxPaperSize >(val2); | |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | (arg1)->SetPaperId(arg2); | |
25744 | wxPyEndAllowThreads(__tstate); | |
25745 | if (PyErr_Occurred()) SWIG_fail; | |
25746 | } | |
25747 | resultobj = SWIG_Py_Void(); | |
25748 | return resultobj; | |
25749 | fail: | |
25750 | return NULL; | |
25751 | } | |
25752 | ||
25753 | ||
25754 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25755 | PyObject *resultobj = 0; | |
25756 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25757 | wxSize *arg2 = 0 ; | |
25758 | void *argp1 = 0 ; | |
25759 | int res1 = 0 ; | |
25760 | wxSize temp2 ; | |
25761 | PyObject * obj0 = 0 ; | |
25762 | PyObject * obj1 = 0 ; | |
25763 | char * kwnames[] = { | |
25764 | (char *) "self",(char *) "size", NULL | |
25765 | }; | |
25766 | ||
25767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25769 | if (!SWIG_IsOK(res1)) { | |
25770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25771 | } | |
25772 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25773 | { | |
25774 | arg2 = &temp2; | |
25775 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25776 | } | |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25779 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25780 | wxPyEndAllowThreads(__tstate); | |
25781 | if (PyErr_Occurred()) SWIG_fail; | |
25782 | } | |
25783 | resultobj = SWIG_Py_Void(); | |
25784 | return resultobj; | |
25785 | fail: | |
25786 | return NULL; | |
25787 | } | |
25788 | ||
25789 | ||
25790 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25791 | PyObject *resultobj = 0; | |
25792 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25793 | wxPrintData *arg2 = 0 ; | |
25794 | void *argp1 = 0 ; | |
25795 | int res1 = 0 ; | |
25796 | void *argp2 = 0 ; | |
25797 | int res2 = 0 ; | |
25798 | PyObject * obj0 = 0 ; | |
25799 | PyObject * obj1 = 0 ; | |
25800 | char * kwnames[] = { | |
25801 | (char *) "self",(char *) "printData", NULL | |
25802 | }; | |
25803 | ||
25804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25806 | if (!SWIG_IsOK(res1)) { | |
25807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25808 | } | |
25809 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25810 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25811 | if (!SWIG_IsOK(res2)) { | |
25812 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25813 | } | |
25814 | if (!argp2) { | |
25815 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25816 | } | |
25817 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25818 | { | |
25819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25820 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25821 | wxPyEndAllowThreads(__tstate); | |
25822 | if (PyErr_Occurred()) SWIG_fail; | |
25823 | } | |
25824 | resultobj = SWIG_Py_Void(); | |
25825 | return resultobj; | |
25826 | fail: | |
25827 | return NULL; | |
d55e5bfc RD |
25828 | } |
25829 | ||
25830 | ||
554f62e9 RD |
25831 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25832 | PyObject *resultobj = 0; | |
25833 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25834 | void *argp1 = 0 ; | |
25835 | int res1 = 0 ; | |
25836 | PyObject *swig_obj[1] ; | |
25837 | ||
25838 | if (!args) SWIG_fail; | |
25839 | swig_obj[0] = args; | |
25840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25841 | if (!SWIG_IsOK(res1)) { | |
25842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25843 | } | |
25844 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25845 | { | |
25846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25847 | (arg1)->CalculateIdFromPaperSize(); | |
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | resultobj = SWIG_Py_Void(); | |
25852 | return resultobj; | |
25853 | fail: | |
25854 | return NULL; | |
d55e5bfc RD |
25855 | } |
25856 | ||
25857 | ||
554f62e9 RD |
25858 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25859 | PyObject *resultobj = 0; | |
25860 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25861 | void *argp1 = 0 ; | |
25862 | int res1 = 0 ; | |
25863 | PyObject *swig_obj[1] ; | |
25864 | ||
25865 | if (!args) SWIG_fail; | |
25866 | swig_obj[0] = args; | |
25867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25868 | if (!SWIG_IsOK(res1)) { | |
25869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25870 | } | |
25871 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25872 | { | |
25873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25874 | (arg1)->CalculatePaperSizeFromId(); | |
25875 | wxPyEndAllowThreads(__tstate); | |
25876 | if (PyErr_Occurred()) SWIG_fail; | |
25877 | } | |
25878 | resultobj = SWIG_Py_Void(); | |
25879 | return resultobj; | |
25880 | fail: | |
25881 | return NULL; | |
d55e5bfc RD |
25882 | } |
25883 | ||
25884 | ||
554f62e9 RD |
25885 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25886 | PyObject *obj; | |
25887 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25888 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25889 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25890 | } |
25891 | ||
554f62e9 RD |
25892 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25893 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25894 | } |
25895 | ||
554f62e9 RD |
25896 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25897 | PyObject *resultobj = 0; | |
25898 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25899 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25900 | wxPageSetupDialog *result = 0 ; | |
25901 | void *argp1 = 0 ; | |
25902 | int res1 = 0 ; | |
25903 | void *argp2 = 0 ; | |
25904 | int res2 = 0 ; | |
25905 | PyObject * obj0 = 0 ; | |
25906 | PyObject * obj1 = 0 ; | |
25907 | char * kwnames[] = { | |
25908 | (char *) "parent",(char *) "data", NULL | |
25909 | }; | |
25910 | ||
25911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25913 | if (!SWIG_IsOK(res1)) { | |
25914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25915 | } | |
25916 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25917 | if (obj1) { | |
25918 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25919 | if (!SWIG_IsOK(res2)) { | |
25920 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
d55e5bfc | 25921 | } |
554f62e9 RD |
25922 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25923 | } | |
25924 | { | |
25925 | if (!wxPyCheckForApp()) SWIG_fail; | |
25926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25927 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25928 | wxPyEndAllowThreads(__tstate); | |
25929 | if (PyErr_Occurred()) SWIG_fail; | |
25930 | } | |
25931 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25932 | return resultobj; | |
25933 | fail: | |
25934 | return NULL; | |
d55e5bfc RD |
25935 | } |
25936 | ||
25937 | ||
f05326ba RD |
25938 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25939 | PyObject *resultobj = 0; | |
25940 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25941 | void *argp1 = 0 ; | |
25942 | int res1 = 0 ; | |
25943 | PyObject *swig_obj[1] ; | |
25944 | ||
25945 | if (!args) SWIG_fail; | |
25946 | swig_obj[0] = args; | |
25947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_DISOWN | 0 ); | |
25948 | if (!SWIG_IsOK(res1)) { | |
25949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialog" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25950 | } | |
25951 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25952 | { | |
25953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25954 | delete arg1; | |
25955 | ||
25956 | wxPyEndAllowThreads(__tstate); | |
25957 | if (PyErr_Occurred()) SWIG_fail; | |
25958 | } | |
25959 | resultobj = SWIG_Py_Void(); | |
25960 | return resultobj; | |
25961 | fail: | |
25962 | return NULL; | |
25963 | } | |
25964 | ||
25965 | ||
554f62e9 RD |
25966 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25967 | PyObject *resultobj = 0; | |
25968 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25969 | wxPageSetupDialogData *result = 0 ; | |
25970 | void *argp1 = 0 ; | |
25971 | int res1 = 0 ; | |
25972 | PyObject *swig_obj[1] ; | |
25973 | ||
25974 | if (!args) SWIG_fail; | |
25975 | swig_obj[0] = args; | |
25976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25977 | if (!SWIG_IsOK(res1)) { | |
25978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25979 | } | |
25980 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25981 | { | |
25982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25983 | { |
554f62e9 RD |
25984 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25985 | result = (wxPageSetupDialogData *) &_result_ref; | |
d55e5bfc | 25986 | } |
554f62e9 RD |
25987 | wxPyEndAllowThreads(__tstate); |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
25989 | } | |
25990 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | return NULL; | |
d55e5bfc RD |
25994 | } |
25995 | ||
25996 | ||
554f62e9 RD |
25997 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25998 | PyObject *resultobj = 0; | |
25999 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26000 | wxPageSetupDialogData *result = 0 ; | |
26001 | void *argp1 = 0 ; | |
26002 | int res1 = 0 ; | |
26003 | PyObject *swig_obj[1] ; | |
26004 | ||
26005 | if (!args) SWIG_fail; | |
26006 | swig_obj[0] = args; | |
26007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26008 | if (!SWIG_IsOK(res1)) { | |
26009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26010 | } | |
26011 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26012 | { | |
26013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 26014 | { |
554f62e9 RD |
26015 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
26016 | result = (wxPageSetupDialogData *) &_result_ref; | |
093d3ff1 | 26017 | } |
554f62e9 RD |
26018 | wxPyEndAllowThreads(__tstate); |
26019 | if (PyErr_Occurred()) SWIG_fail; | |
26020 | } | |
26021 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26022 | return resultobj; | |
26023 | fail: | |
26024 | return NULL; | |
d55e5bfc RD |
26025 | } |
26026 | ||
26027 | ||
554f62e9 RD |
26028 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26029 | PyObject *resultobj = 0; | |
26030 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26031 | int result; | |
26032 | void *argp1 = 0 ; | |
26033 | int res1 = 0 ; | |
26034 | PyObject *swig_obj[1] ; | |
26035 | ||
26036 | if (!args) SWIG_fail; | |
26037 | swig_obj[0] = args; | |
26038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26039 | if (!SWIG_IsOK(res1)) { | |
26040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26041 | } | |
26042 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26043 | { | |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | result = (int)(arg1)->ShowModal(); | |
26046 | wxPyEndAllowThreads(__tstate); | |
26047 | if (PyErr_Occurred()) SWIG_fail; | |
26048 | } | |
26049 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26050 | return resultobj; | |
26051 | fail: | |
26052 | return NULL; | |
d55e5bfc RD |
26053 | } |
26054 | ||
26055 | ||
554f62e9 RD |
26056 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26057 | PyObject *obj; | |
26058 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26059 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
26060 | return SWIG_Py_Void(); | |
d55e5bfc RD |
26061 | } |
26062 | ||
554f62e9 RD |
26063 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26064 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc | 26065 | } |
554f62e9 RD |
26066 | |
26067 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
26068 | PyObject *resultobj = 0; | |
26069 | wxPrintDialogData *result = 0 ; | |
26070 | ||
26071 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
26072 | { | |
26073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26074 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
26075 | wxPyEndAllowThreads(__tstate); | |
26076 | if (PyErr_Occurred()) SWIG_fail; | |
26077 | } | |
26078 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26079 | return resultobj; | |
26080 | fail: | |
26081 | return NULL; | |
d55e5bfc RD |
26082 | } |
26083 | ||
26084 | ||
554f62e9 RD |
26085 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26086 | PyObject *resultobj = 0; | |
26087 | wxPrintData *arg1 = 0 ; | |
26088 | wxPrintDialogData *result = 0 ; | |
26089 | void *argp1 = 0 ; | |
26090 | int res1 = 0 ; | |
26091 | ||
26092 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26094 | if (!SWIG_IsOK(res1)) { | |
26095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26096 | } | |
26097 | if (!argp1) { | |
26098 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26099 | } | |
26100 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26101 | { | |
26102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26103 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
26104 | wxPyEndAllowThreads(__tstate); | |
26105 | if (PyErr_Occurred()) SWIG_fail; | |
26106 | } | |
26107 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26108 | return resultobj; | |
26109 | fail: | |
26110 | return NULL; | |
d55e5bfc RD |
26111 | } |
26112 | ||
26113 | ||
554f62e9 RD |
26114 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26115 | PyObject *resultobj = 0; | |
26116 | wxPrintDialogData *arg1 = 0 ; | |
26117 | wxPrintDialogData *result = 0 ; | |
26118 | void *argp1 = 0 ; | |
26119 | int res1 = 0 ; | |
26120 | ||
26121 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
26123 | if (!SWIG_IsOK(res1)) { | |
26124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26125 | } | |
26126 | if (!argp1) { | |
26127 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26128 | } | |
26129 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26130 | { | |
26131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26132 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
26136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26137 | return resultobj; | |
26138 | fail: | |
26139 | return NULL; | |
d55e5bfc RD |
26140 | } |
26141 | ||
26142 | ||
554f62e9 RD |
26143 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
26144 | int argc; | |
26145 | PyObject *argv[2]; | |
26146 | ||
26147 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
26148 | --argc; | |
26149 | if (argc == 0) { | |
26150 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
26151 | } | |
26152 | if (argc == 1) { | |
26153 | int _v = 0; | |
d55e5bfc | 26154 | { |
554f62e9 RD |
26155 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
26156 | _v = SWIG_CheckState(res); | |
d55e5bfc | 26157 | } |
554f62e9 RD |
26158 | if (!_v) goto check_2; |
26159 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
26160 | } | |
26161 | check_2: | |
26162 | ||
26163 | if (argc == 1) { | |
26164 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
26165 | } | |
26166 | ||
26167 | fail: | |
26168 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
26169 | return NULL; | |
d55e5bfc RD |
26170 | } |
26171 | ||
26172 | ||
554f62e9 RD |
26173 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26174 | PyObject *resultobj = 0; | |
26175 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26176 | void *argp1 = 0 ; | |
26177 | int res1 = 0 ; | |
26178 | PyObject *swig_obj[1] ; | |
26179 | ||
26180 | if (!args) SWIG_fail; | |
26181 | swig_obj[0] = args; | |
26182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
26183 | if (!SWIG_IsOK(res1)) { | |
26184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26185 | } | |
26186 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26187 | { | |
26188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26189 | delete arg1; | |
d55e5bfc | 26190 | |
554f62e9 RD |
26191 | wxPyEndAllowThreads(__tstate); |
26192 | if (PyErr_Occurred()) SWIG_fail; | |
26193 | } | |
26194 | resultobj = SWIG_Py_Void(); | |
26195 | return resultobj; | |
26196 | fail: | |
26197 | return NULL; | |
d55e5bfc RD |
26198 | } |
26199 | ||
26200 | ||
554f62e9 RD |
26201 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26202 | PyObject *resultobj = 0; | |
26203 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26204 | int result; | |
26205 | void *argp1 = 0 ; | |
26206 | int res1 = 0 ; | |
26207 | PyObject *swig_obj[1] ; | |
26208 | ||
26209 | if (!args) SWIG_fail; | |
26210 | swig_obj[0] = args; | |
26211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26212 | if (!SWIG_IsOK(res1)) { | |
26213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26214 | } | |
26215 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26216 | { | |
26217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26218 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
26219 | wxPyEndAllowThreads(__tstate); | |
26220 | if (PyErr_Occurred()) SWIG_fail; | |
26221 | } | |
26222 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26223 | return resultobj; | |
26224 | fail: | |
26225 | return NULL; | |
d55e5bfc RD |
26226 | } |
26227 | ||
26228 | ||
554f62e9 RD |
26229 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26230 | PyObject *resultobj = 0; | |
26231 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26232 | int result; | |
26233 | void *argp1 = 0 ; | |
26234 | int res1 = 0 ; | |
26235 | PyObject *swig_obj[1] ; | |
26236 | ||
26237 | if (!args) SWIG_fail; | |
26238 | swig_obj[0] = args; | |
26239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26240 | if (!SWIG_IsOK(res1)) { | |
26241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26242 | } | |
26243 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26244 | { | |
26245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26246 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
26247 | wxPyEndAllowThreads(__tstate); | |
26248 | if (PyErr_Occurred()) SWIG_fail; | |
26249 | } | |
26250 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26251 | return resultobj; | |
26252 | fail: | |
26253 | return NULL; | |
d55e5bfc RD |
26254 | } |
26255 | ||
26256 | ||
554f62e9 RD |
26257 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26258 | PyObject *resultobj = 0; | |
26259 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26260 | int result; | |
26261 | void *argp1 = 0 ; | |
26262 | int res1 = 0 ; | |
26263 | PyObject *swig_obj[1] ; | |
26264 | ||
26265 | if (!args) SWIG_fail; | |
26266 | swig_obj[0] = args; | |
26267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26268 | if (!SWIG_IsOK(res1)) { | |
26269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26270 | } | |
26271 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26272 | { | |
26273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26274 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
26275 | wxPyEndAllowThreads(__tstate); | |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
26277 | } | |
26278 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26279 | return resultobj; | |
26280 | fail: | |
26281 | return NULL; | |
d55e5bfc RD |
26282 | } |
26283 | ||
26284 | ||
554f62e9 RD |
26285 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26286 | PyObject *resultobj = 0; | |
26287 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26288 | int result; | |
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_wxPrintDialogData, 0 | 0 ); | |
26296 | if (!SWIG_IsOK(res1)) { | |
26297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26298 | } | |
26299 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26300 | { | |
26301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26302 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
26303 | wxPyEndAllowThreads(__tstate); | |
26304 | if (PyErr_Occurred()) SWIG_fail; | |
26305 | } | |
26306 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26307 | return resultobj; | |
26308 | fail: | |
26309 | return NULL; | |
d55e5bfc RD |
26310 | } |
26311 | ||
26312 | ||
554f62e9 RD |
26313 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26314 | PyObject *resultobj = 0; | |
26315 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26316 | int result; | |
26317 | void *argp1 = 0 ; | |
26318 | int res1 = 0 ; | |
26319 | PyObject *swig_obj[1] ; | |
26320 | ||
26321 | if (!args) SWIG_fail; | |
26322 | swig_obj[0] = args; | |
26323 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26324 | if (!SWIG_IsOK(res1)) { | |
26325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26326 | } | |
26327 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26328 | { | |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
26331 | wxPyEndAllowThreads(__tstate); | |
26332 | if (PyErr_Occurred()) SWIG_fail; | |
26333 | } | |
26334 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26335 | return resultobj; | |
26336 | fail: | |
26337 | return NULL; | |
d55e5bfc RD |
26338 | } |
26339 | ||
26340 | ||
554f62e9 RD |
26341 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26342 | PyObject *resultobj = 0; | |
26343 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26344 | bool result; | |
26345 | void *argp1 = 0 ; | |
26346 | int res1 = 0 ; | |
26347 | PyObject *swig_obj[1] ; | |
26348 | ||
26349 | if (!args) SWIG_fail; | |
26350 | swig_obj[0] = args; | |
26351 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26352 | if (!SWIG_IsOK(res1)) { | |
26353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26354 | } | |
26355 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26356 | { | |
26357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26358 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
26359 | wxPyEndAllowThreads(__tstate); | |
26360 | if (PyErr_Occurred()) SWIG_fail; | |
26361 | } | |
26362 | { | |
26363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26364 | } | |
26365 | return resultobj; | |
26366 | fail: | |
26367 | return NULL; | |
d55e5bfc RD |
26368 | } |
26369 | ||
26370 | ||
554f62e9 RD |
26371 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26372 | PyObject *resultobj = 0; | |
26373 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26374 | bool result; | |
26375 | void *argp1 = 0 ; | |
26376 | int res1 = 0 ; | |
26377 | PyObject *swig_obj[1] ; | |
26378 | ||
26379 | if (!args) SWIG_fail; | |
26380 | swig_obj[0] = args; | |
26381 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26382 | if (!SWIG_IsOK(res1)) { | |
26383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26384 | } | |
26385 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26386 | { | |
26387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26388 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
26389 | wxPyEndAllowThreads(__tstate); | |
26390 | if (PyErr_Occurred()) SWIG_fail; | |
26391 | } | |
26392 | { | |
26393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26394 | } | |
26395 | return resultobj; | |
26396 | fail: | |
26397 | return NULL; | |
d55e5bfc RD |
26398 | } |
26399 | ||
26400 | ||
554f62e9 RD |
26401 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26402 | PyObject *resultobj = 0; | |
26403 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26404 | bool result; | |
26405 | void *argp1 = 0 ; | |
26406 | int res1 = 0 ; | |
26407 | PyObject *swig_obj[1] ; | |
26408 | ||
26409 | if (!args) SWIG_fail; | |
26410 | swig_obj[0] = args; | |
26411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26412 | if (!SWIG_IsOK(res1)) { | |
26413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26414 | } | |
26415 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26416 | { | |
26417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26418 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
26419 | wxPyEndAllowThreads(__tstate); | |
26420 | if (PyErr_Occurred()) SWIG_fail; | |
26421 | } | |
26422 | { | |
26423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26424 | } | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
d55e5bfc RD |
26428 | } |
26429 | ||
26430 | ||
554f62e9 RD |
26431 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26432 | PyObject *resultobj = 0; | |
26433 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26434 | bool result; | |
26435 | void *argp1 = 0 ; | |
26436 | int res1 = 0 ; | |
26437 | PyObject *swig_obj[1] ; | |
26438 | ||
26439 | if (!args) SWIG_fail; | |
26440 | swig_obj[0] = args; | |
26441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26442 | if (!SWIG_IsOK(res1)) { | |
26443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26444 | } | |
26445 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26446 | { | |
26447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26448 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26454 | } | |
26455 | return resultobj; | |
26456 | fail: | |
26457 | return NULL; | |
26458 | } | |
26459 | ||
26460 | ||
26461 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26462 | PyObject *resultobj = 0; | |
26463 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26464 | int arg2 ; | |
26465 | void *argp1 = 0 ; | |
26466 | int res1 = 0 ; | |
26467 | int val2 ; | |
26468 | int ecode2 = 0 ; | |
26469 | PyObject * obj0 = 0 ; | |
26470 | PyObject * obj1 = 0 ; | |
26471 | char * kwnames[] = { | |
26472 | (char *) "self",(char *) "v", NULL | |
26473 | }; | |
26474 | ||
26475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26477 | if (!SWIG_IsOK(res1)) { | |
26478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26479 | } | |
26480 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26481 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26482 | if (!SWIG_IsOK(ecode2)) { | |
26483 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
26484 | } | |
26485 | arg2 = static_cast< int >(val2); | |
26486 | { | |
26487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26488 | (arg1)->SetFromPage(arg2); | |
26489 | wxPyEndAllowThreads(__tstate); | |
26490 | if (PyErr_Occurred()) SWIG_fail; | |
26491 | } | |
26492 | resultobj = SWIG_Py_Void(); | |
26493 | return resultobj; | |
26494 | fail: | |
26495 | return NULL; | |
26496 | } | |
26497 | ||
26498 | ||
26499 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26500 | PyObject *resultobj = 0; | |
26501 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26502 | int arg2 ; | |
26503 | void *argp1 = 0 ; | |
26504 | int res1 = 0 ; | |
26505 | int val2 ; | |
26506 | int ecode2 = 0 ; | |
26507 | PyObject * obj0 = 0 ; | |
26508 | PyObject * obj1 = 0 ; | |
26509 | char * kwnames[] = { | |
26510 | (char *) "self",(char *) "v", NULL | |
26511 | }; | |
26512 | ||
26513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26515 | if (!SWIG_IsOK(res1)) { | |
26516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26517 | } | |
26518 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26520 | if (!SWIG_IsOK(ecode2)) { | |
26521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
26522 | } | |
26523 | arg2 = static_cast< int >(val2); | |
26524 | { | |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | (arg1)->SetToPage(arg2); | |
26527 | wxPyEndAllowThreads(__tstate); | |
26528 | if (PyErr_Occurred()) SWIG_fail; | |
26529 | } | |
26530 | resultobj = SWIG_Py_Void(); | |
26531 | return resultobj; | |
26532 | fail: | |
26533 | return NULL; | |
26534 | } | |
26535 | ||
26536 | ||
26537 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26538 | PyObject *resultobj = 0; | |
26539 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26540 | int arg2 ; | |
26541 | void *argp1 = 0 ; | |
26542 | int res1 = 0 ; | |
26543 | int val2 ; | |
26544 | int ecode2 = 0 ; | |
26545 | PyObject * obj0 = 0 ; | |
26546 | PyObject * obj1 = 0 ; | |
26547 | char * kwnames[] = { | |
26548 | (char *) "self",(char *) "v", NULL | |
26549 | }; | |
26550 | ||
26551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26553 | if (!SWIG_IsOK(res1)) { | |
26554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26555 | } | |
26556 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26557 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26558 | if (!SWIG_IsOK(ecode2)) { | |
26559 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
26560 | } | |
26561 | arg2 = static_cast< int >(val2); | |
26562 | { | |
26563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26564 | (arg1)->SetMinPage(arg2); | |
26565 | wxPyEndAllowThreads(__tstate); | |
26566 | if (PyErr_Occurred()) SWIG_fail; | |
26567 | } | |
26568 | resultobj = SWIG_Py_Void(); | |
26569 | return resultobj; | |
26570 | fail: | |
26571 | return NULL; | |
26572 | } | |
26573 | ||
26574 | ||
26575 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26576 | PyObject *resultobj = 0; | |
26577 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26578 | int arg2 ; | |
26579 | void *argp1 = 0 ; | |
26580 | int res1 = 0 ; | |
26581 | int val2 ; | |
26582 | int ecode2 = 0 ; | |
26583 | PyObject * obj0 = 0 ; | |
26584 | PyObject * obj1 = 0 ; | |
26585 | char * kwnames[] = { | |
26586 | (char *) "self",(char *) "v", NULL | |
26587 | }; | |
26588 | ||
26589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26591 | if (!SWIG_IsOK(res1)) { | |
26592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26593 | } | |
26594 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26596 | if (!SWIG_IsOK(ecode2)) { | |
26597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
26598 | } | |
26599 | arg2 = static_cast< int >(val2); | |
26600 | { | |
26601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26602 | (arg1)->SetMaxPage(arg2); | |
26603 | wxPyEndAllowThreads(__tstate); | |
26604 | if (PyErr_Occurred()) SWIG_fail; | |
26605 | } | |
26606 | resultobj = SWIG_Py_Void(); | |
26607 | return resultobj; | |
26608 | fail: | |
26609 | return NULL; | |
26610 | } | |
26611 | ||
26612 | ||
26613 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26614 | PyObject *resultobj = 0; | |
26615 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26616 | int arg2 ; | |
26617 | void *argp1 = 0 ; | |
26618 | int res1 = 0 ; | |
26619 | int val2 ; | |
26620 | int ecode2 = 0 ; | |
26621 | PyObject * obj0 = 0 ; | |
26622 | PyObject * obj1 = 0 ; | |
26623 | char * kwnames[] = { | |
26624 | (char *) "self",(char *) "v", NULL | |
26625 | }; | |
26626 | ||
26627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26629 | if (!SWIG_IsOK(res1)) { | |
26630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26631 | } | |
26632 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26634 | if (!SWIG_IsOK(ecode2)) { | |
26635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26636 | } | |
26637 | arg2 = static_cast< int >(val2); | |
26638 | { | |
26639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26640 | (arg1)->SetNoCopies(arg2); | |
26641 | wxPyEndAllowThreads(__tstate); | |
26642 | if (PyErr_Occurred()) SWIG_fail; | |
26643 | } | |
26644 | resultobj = SWIG_Py_Void(); | |
26645 | return resultobj; | |
26646 | fail: | |
26647 | return NULL; | |
26648 | } | |
26649 | ||
26650 | ||
26651 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26652 | PyObject *resultobj = 0; | |
26653 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26654 | bool arg2 ; | |
26655 | void *argp1 = 0 ; | |
26656 | int res1 = 0 ; | |
26657 | bool val2 ; | |
26658 | int ecode2 = 0 ; | |
26659 | PyObject * obj0 = 0 ; | |
26660 | PyObject * obj1 = 0 ; | |
26661 | char * kwnames[] = { | |
26662 | (char *) "self",(char *) "flag", NULL | |
26663 | }; | |
26664 | ||
26665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26667 | if (!SWIG_IsOK(res1)) { | |
26668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26669 | } | |
26670 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26671 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26672 | if (!SWIG_IsOK(ecode2)) { | |
26673 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26674 | } | |
26675 | arg2 = static_cast< bool >(val2); | |
26676 | { | |
26677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26678 | (arg1)->SetAllPages(arg2); | |
26679 | wxPyEndAllowThreads(__tstate); | |
26680 | if (PyErr_Occurred()) SWIG_fail; | |
26681 | } | |
26682 | resultobj = SWIG_Py_Void(); | |
26683 | return resultobj; | |
26684 | fail: | |
26685 | return NULL; | |
26686 | } | |
26687 | ||
26688 | ||
26689 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26690 | PyObject *resultobj = 0; | |
26691 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26692 | bool arg2 ; | |
26693 | void *argp1 = 0 ; | |
26694 | int res1 = 0 ; | |
26695 | bool val2 ; | |
26696 | int ecode2 = 0 ; | |
26697 | PyObject * obj0 = 0 ; | |
26698 | PyObject * obj1 = 0 ; | |
26699 | char * kwnames[] = { | |
26700 | (char *) "self",(char *) "flag", NULL | |
26701 | }; | |
26702 | ||
26703 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26705 | if (!SWIG_IsOK(res1)) { | |
26706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26707 | } | |
26708 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26709 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26710 | if (!SWIG_IsOK(ecode2)) { | |
26711 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26712 | } | |
26713 | arg2 = static_cast< bool >(val2); | |
26714 | { | |
26715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26716 | (arg1)->SetSelection(arg2); | |
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
26720 | resultobj = SWIG_Py_Void(); | |
26721 | return resultobj; | |
26722 | fail: | |
26723 | return NULL; | |
26724 | } | |
26725 | ||
26726 | ||
26727 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26728 | PyObject *resultobj = 0; | |
26729 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26730 | bool arg2 ; | |
26731 | void *argp1 = 0 ; | |
26732 | int res1 = 0 ; | |
26733 | bool val2 ; | |
26734 | int ecode2 = 0 ; | |
26735 | PyObject * obj0 = 0 ; | |
26736 | PyObject * obj1 = 0 ; | |
26737 | char * kwnames[] = { | |
26738 | (char *) "self",(char *) "flag", NULL | |
26739 | }; | |
26740 | ||
26741 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26743 | if (!SWIG_IsOK(res1)) { | |
26744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26745 | } | |
26746 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26747 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26748 | if (!SWIG_IsOK(ecode2)) { | |
26749 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26750 | } | |
26751 | arg2 = static_cast< bool >(val2); | |
26752 | { | |
26753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26754 | (arg1)->SetCollate(arg2); | |
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | resultobj = SWIG_Py_Void(); | |
26759 | return resultobj; | |
26760 | fail: | |
26761 | return NULL; | |
26762 | } | |
26763 | ||
26764 | ||
26765 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26766 | PyObject *resultobj = 0; | |
26767 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26768 | bool arg2 ; | |
26769 | void *argp1 = 0 ; | |
26770 | int res1 = 0 ; | |
26771 | bool val2 ; | |
26772 | int ecode2 = 0 ; | |
26773 | PyObject * obj0 = 0 ; | |
26774 | PyObject * obj1 = 0 ; | |
26775 | char * kwnames[] = { | |
26776 | (char *) "self",(char *) "flag", NULL | |
26777 | }; | |
26778 | ||
26779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26780 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26781 | if (!SWIG_IsOK(res1)) { | |
26782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26783 | } | |
26784 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26785 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26786 | if (!SWIG_IsOK(ecode2)) { | |
26787 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26788 | } | |
26789 | arg2 = static_cast< bool >(val2); | |
26790 | { | |
26791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26792 | (arg1)->SetPrintToFile(arg2); | |
26793 | wxPyEndAllowThreads(__tstate); | |
26794 | if (PyErr_Occurred()) SWIG_fail; | |
26795 | } | |
26796 | resultobj = SWIG_Py_Void(); | |
26797 | return resultobj; | |
26798 | fail: | |
26799 | return NULL; | |
26800 | } | |
26801 | ||
26802 | ||
26803 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26804 | PyObject *resultobj = 0; | |
26805 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26806 | bool arg2 ; | |
26807 | void *argp1 = 0 ; | |
26808 | int res1 = 0 ; | |
26809 | bool val2 ; | |
26810 | int ecode2 = 0 ; | |
26811 | PyObject * obj0 = 0 ; | |
26812 | PyObject * obj1 = 0 ; | |
26813 | char * kwnames[] = { | |
26814 | (char *) "self",(char *) "flag", NULL | |
26815 | }; | |
26816 | ||
26817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26819 | if (!SWIG_IsOK(res1)) { | |
26820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26821 | } | |
26822 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26823 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26824 | if (!SWIG_IsOK(ecode2)) { | |
26825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26826 | } | |
26827 | arg2 = static_cast< bool >(val2); | |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | (arg1)->EnablePrintToFile(arg2); | |
26831 | wxPyEndAllowThreads(__tstate); | |
26832 | if (PyErr_Occurred()) SWIG_fail; | |
26833 | } | |
26834 | resultobj = SWIG_Py_Void(); | |
26835 | return resultobj; | |
26836 | fail: | |
26837 | return NULL; | |
26838 | } | |
26839 | ||
26840 | ||
26841 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26842 | PyObject *resultobj = 0; | |
26843 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26844 | bool arg2 ; | |
26845 | void *argp1 = 0 ; | |
26846 | int res1 = 0 ; | |
26847 | bool val2 ; | |
26848 | int ecode2 = 0 ; | |
26849 | PyObject * obj0 = 0 ; | |
26850 | PyObject * obj1 = 0 ; | |
26851 | char * kwnames[] = { | |
26852 | (char *) "self",(char *) "flag", NULL | |
26853 | }; | |
26854 | ||
26855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26857 | if (!SWIG_IsOK(res1)) { | |
26858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26859 | } | |
26860 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26861 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26862 | if (!SWIG_IsOK(ecode2)) { | |
26863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26864 | } | |
26865 | arg2 = static_cast< bool >(val2); | |
26866 | { | |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | (arg1)->EnableSelection(arg2); | |
26869 | wxPyEndAllowThreads(__tstate); | |
26870 | if (PyErr_Occurred()) SWIG_fail; | |
26871 | } | |
26872 | resultobj = SWIG_Py_Void(); | |
26873 | return resultobj; | |
26874 | fail: | |
26875 | return NULL; | |
26876 | } | |
26877 | ||
26878 | ||
26879 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26880 | PyObject *resultobj = 0; | |
26881 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26882 | bool arg2 ; | |
26883 | void *argp1 = 0 ; | |
26884 | int res1 = 0 ; | |
26885 | bool val2 ; | |
26886 | int ecode2 = 0 ; | |
26887 | PyObject * obj0 = 0 ; | |
26888 | PyObject * obj1 = 0 ; | |
26889 | char * kwnames[] = { | |
26890 | (char *) "self",(char *) "flag", NULL | |
26891 | }; | |
26892 | ||
26893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26895 | if (!SWIG_IsOK(res1)) { | |
26896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26897 | } | |
26898 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26899 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26900 | if (!SWIG_IsOK(ecode2)) { | |
26901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26902 | } | |
26903 | arg2 = static_cast< bool >(val2); | |
26904 | { | |
26905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26906 | (arg1)->EnablePageNumbers(arg2); | |
26907 | wxPyEndAllowThreads(__tstate); | |
26908 | if (PyErr_Occurred()) SWIG_fail; | |
26909 | } | |
26910 | resultobj = SWIG_Py_Void(); | |
26911 | return resultobj; | |
26912 | fail: | |
26913 | return NULL; | |
26914 | } | |
26915 | ||
26916 | ||
26917 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26918 | PyObject *resultobj = 0; | |
26919 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26920 | bool arg2 ; | |
26921 | void *argp1 = 0 ; | |
26922 | int res1 = 0 ; | |
26923 | bool val2 ; | |
26924 | int ecode2 = 0 ; | |
26925 | PyObject * obj0 = 0 ; | |
26926 | PyObject * obj1 = 0 ; | |
26927 | char * kwnames[] = { | |
26928 | (char *) "self",(char *) "flag", NULL | |
26929 | }; | |
26930 | ||
26931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26933 | if (!SWIG_IsOK(res1)) { | |
26934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26935 | } | |
26936 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26937 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26938 | if (!SWIG_IsOK(ecode2)) { | |
26939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26940 | } | |
26941 | arg2 = static_cast< bool >(val2); | |
26942 | { | |
26943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26944 | (arg1)->EnableHelp(arg2); | |
26945 | wxPyEndAllowThreads(__tstate); | |
26946 | if (PyErr_Occurred()) SWIG_fail; | |
26947 | } | |
26948 | resultobj = SWIG_Py_Void(); | |
26949 | return resultobj; | |
26950 | fail: | |
26951 | return NULL; | |
d55e5bfc RD |
26952 | } |
26953 | ||
26954 | ||
554f62e9 RD |
26955 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26956 | PyObject *resultobj = 0; | |
26957 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26958 | bool result; | |
26959 | void *argp1 = 0 ; | |
26960 | int res1 = 0 ; | |
26961 | PyObject *swig_obj[1] ; | |
26962 | ||
26963 | if (!args) SWIG_fail; | |
26964 | swig_obj[0] = args; | |
26965 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26966 | if (!SWIG_IsOK(res1)) { | |
26967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26968 | } | |
26969 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26970 | { | |
26971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26972 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26973 | wxPyEndAllowThreads(__tstate); | |
26974 | if (PyErr_Occurred()) SWIG_fail; | |
26975 | } | |
26976 | { | |
26977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26978 | } | |
26979 | return resultobj; | |
26980 | fail: | |
26981 | return NULL; | |
d55e5bfc RD |
26982 | } |
26983 | ||
26984 | ||
554f62e9 RD |
26985 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26986 | PyObject *resultobj = 0; | |
26987 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26988 | bool result; | |
26989 | void *argp1 = 0 ; | |
26990 | int res1 = 0 ; | |
26991 | PyObject *swig_obj[1] ; | |
26992 | ||
26993 | if (!args) SWIG_fail; | |
26994 | swig_obj[0] = args; | |
26995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26996 | if (!SWIG_IsOK(res1)) { | |
26997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26998 | } | |
26999 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27000 | { | |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
27006 | { | |
27007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27008 | } | |
27009 | return resultobj; | |
27010 | fail: | |
27011 | return NULL; | |
d55e5bfc RD |
27012 | } |
27013 | ||
27014 | ||
554f62e9 RD |
27015 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27016 | PyObject *resultobj = 0; | |
27017 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27018 | bool result; | |
27019 | void *argp1 = 0 ; | |
27020 | int res1 = 0 ; | |
27021 | PyObject *swig_obj[1] ; | |
27022 | ||
27023 | if (!args) SWIG_fail; | |
27024 | swig_obj[0] = args; | |
27025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27026 | if (!SWIG_IsOK(res1)) { | |
27027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27028 | } | |
27029 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27030 | { | |
27031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27032 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
27033 | wxPyEndAllowThreads(__tstate); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | } | |
27036 | { | |
27037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27038 | } | |
27039 | return resultobj; | |
27040 | fail: | |
27041 | return NULL; | |
d55e5bfc RD |
27042 | } |
27043 | ||
27044 | ||
554f62e9 RD |
27045 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27046 | PyObject *resultobj = 0; | |
27047 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27048 | bool result; | |
27049 | void *argp1 = 0 ; | |
27050 | int res1 = 0 ; | |
27051 | PyObject *swig_obj[1] ; | |
27052 | ||
27053 | if (!args) SWIG_fail; | |
27054 | swig_obj[0] = args; | |
27055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27056 | if (!SWIG_IsOK(res1)) { | |
27057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27058 | } | |
27059 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27060 | { | |
27061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27062 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
27063 | wxPyEndAllowThreads(__tstate); | |
27064 | if (PyErr_Occurred()) SWIG_fail; | |
27065 | } | |
27066 | { | |
27067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27068 | } | |
27069 | return resultobj; | |
27070 | fail: | |
27071 | return NULL; | |
d55e5bfc RD |
27072 | } |
27073 | ||
27074 | ||
554f62e9 RD |
27075 | SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27076 | PyObject *resultobj = 0; | |
27077 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27078 | bool result; | |
27079 | void *argp1 = 0 ; | |
27080 | int res1 = 0 ; | |
27081 | PyObject *swig_obj[1] ; | |
27082 | ||
27083 | if (!args) SWIG_fail; | |
27084 | swig_obj[0] = args; | |
27085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27086 | if (!SWIG_IsOK(res1)) { | |
27087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_Ok" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27088 | } | |
27089 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27090 | { | |
27091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27092 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
27093 | wxPyEndAllowThreads(__tstate); | |
27094 | if (PyErr_Occurred()) SWIG_fail; | |
27095 | } | |
27096 | { | |
27097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27098 | } | |
27099 | return resultobj; | |
27100 | fail: | |
27101 | return NULL; | |
d55e5bfc RD |
27102 | } |
27103 | ||
27104 | ||
554f62e9 RD |
27105 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27106 | PyObject *resultobj = 0; | |
27107 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27108 | wxPrintData *result = 0 ; | |
27109 | void *argp1 = 0 ; | |
27110 | int res1 = 0 ; | |
27111 | PyObject *swig_obj[1] ; | |
27112 | ||
27113 | if (!args) SWIG_fail; | |
27114 | swig_obj[0] = args; | |
27115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27116 | if (!SWIG_IsOK(res1)) { | |
27117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27118 | } | |
27119 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27120 | { | |
27121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27122 | { |
554f62e9 RD |
27123 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27124 | result = (wxPrintData *) &_result_ref; | |
27125 | } | |
27126 | wxPyEndAllowThreads(__tstate); | |
27127 | if (PyErr_Occurred()) SWIG_fail; | |
27128 | } | |
27129 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27130 | return resultobj; | |
27131 | fail: | |
27132 | return NULL; | |
27133 | } | |
27134 | ||
27135 | ||
27136 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27137 | PyObject *resultobj = 0; | |
27138 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27139 | wxPrintData *arg2 = 0 ; | |
27140 | void *argp1 = 0 ; | |
27141 | int res1 = 0 ; | |
27142 | void *argp2 = 0 ; | |
27143 | int res2 = 0 ; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | PyObject * obj1 = 0 ; | |
27146 | char * kwnames[] = { | |
27147 | (char *) "self",(char *) "printData", NULL | |
27148 | }; | |
27149 | ||
27150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
27151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27152 | if (!SWIG_IsOK(res1)) { | |
27153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27154 | } | |
27155 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27156 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
27157 | if (!SWIG_IsOK(res2)) { | |
27158 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27159 | } | |
27160 | if (!argp2) { | |
27161 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27162 | } | |
27163 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
27164 | { | |
27165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27166 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
27167 | wxPyEndAllowThreads(__tstate); | |
27168 | if (PyErr_Occurred()) SWIG_fail; | |
27169 | } | |
27170 | resultobj = SWIG_Py_Void(); | |
27171 | return resultobj; | |
27172 | fail: | |
27173 | return NULL; | |
d55e5bfc RD |
27174 | } |
27175 | ||
27176 | ||
554f62e9 RD |
27177 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27178 | PyObject *obj; | |
27179 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27180 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
27181 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27182 | } |
27183 | ||
554f62e9 RD |
27184 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27185 | return SWIG_Python_InitShadowInstance(args); | |
27186 | } | |
d55e5bfc | 27187 | |
554f62e9 RD |
27188 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27189 | PyObject *resultobj = 0; | |
27190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27191 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
27192 | wxPrintDialog *result = 0 ; | |
27193 | void *argp1 = 0 ; | |
27194 | int res1 = 0 ; | |
27195 | void *argp2 = 0 ; | |
27196 | int res2 = 0 ; | |
27197 | PyObject * obj0 = 0 ; | |
27198 | PyObject * obj1 = 0 ; | |
27199 | char * kwnames[] = { | |
27200 | (char *) "parent",(char *) "data", NULL | |
27201 | }; | |
27202 | ||
27203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27205 | if (!SWIG_IsOK(res1)) { | |
27206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27207 | } | |
27208 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27209 | if (obj1) { | |
27210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27211 | if (!SWIG_IsOK(res2)) { | |
27212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 27213 | } |
554f62e9 RD |
27214 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
27215 | } | |
27216 | { | |
27217 | if (!wxPyCheckForApp()) SWIG_fail; | |
27218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27219 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
27220 | wxPyEndAllowThreads(__tstate); | |
27221 | if (PyErr_Occurred()) SWIG_fail; | |
27222 | } | |
27223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
27224 | return resultobj; | |
27225 | fail: | |
27226 | return NULL; | |
d55e5bfc RD |
27227 | } |
27228 | ||
27229 | ||
f05326ba RD |
27230 | SWIGINTERN PyObject *_wrap_delete_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27231 | PyObject *resultobj = 0; | |
27232 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27233 | void *argp1 = 0 ; | |
27234 | int res1 = 0 ; | |
27235 | PyObject *swig_obj[1] ; | |
27236 | ||
27237 | if (!args) SWIG_fail; | |
27238 | swig_obj[0] = args; | |
27239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_DISOWN | 0 ); | |
27240 | if (!SWIG_IsOK(res1)) { | |
27241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialog" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27242 | } | |
27243 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27244 | { | |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | delete arg1; | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
27251 | resultobj = SWIG_Py_Void(); | |
27252 | return resultobj; | |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
554f62e9 RD |
27258 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27259 | PyObject *resultobj = 0; | |
27260 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27261 | int result; | |
27262 | void *argp1 = 0 ; | |
27263 | int res1 = 0 ; | |
27264 | PyObject *swig_obj[1] ; | |
27265 | ||
27266 | if (!args) SWIG_fail; | |
27267 | swig_obj[0] = args; | |
27268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27269 | if (!SWIG_IsOK(res1)) { | |
27270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27271 | } | |
27272 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27273 | { | |
27274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27275 | result = (int)(arg1)->ShowModal(); | |
27276 | wxPyEndAllowThreads(__tstate); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | } | |
27279 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | return NULL; | |
d55e5bfc RD |
27283 | } |
27284 | ||
27285 | ||
554f62e9 RD |
27286 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27287 | PyObject *resultobj = 0; | |
27288 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27289 | wxPrintDialogData *result = 0 ; | |
27290 | void *argp1 = 0 ; | |
27291 | int res1 = 0 ; | |
27292 | PyObject *swig_obj[1] ; | |
27293 | ||
27294 | if (!args) SWIG_fail; | |
27295 | swig_obj[0] = args; | |
27296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27297 | if (!SWIG_IsOK(res1)) { | |
27298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27299 | } | |
27300 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27301 | { | |
27302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27303 | { |
554f62e9 RD |
27304 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
27305 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 27306 | } |
554f62e9 RD |
27307 | wxPyEndAllowThreads(__tstate); |
27308 | if (PyErr_Occurred()) SWIG_fail; | |
27309 | } | |
27310 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27311 | return resultobj; | |
27312 | fail: | |
27313 | return NULL; | |
27314 | } | |
27315 | ||
27316 | ||
27317 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27318 | PyObject *resultobj = 0; | |
27319 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27320 | wxPrintData *result = 0 ; | |
27321 | void *argp1 = 0 ; | |
27322 | int res1 = 0 ; | |
27323 | PyObject *swig_obj[1] ; | |
27324 | ||
27325 | if (!args) SWIG_fail; | |
27326 | swig_obj[0] = args; | |
27327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27328 | if (!SWIG_IsOK(res1)) { | |
27329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27330 | } | |
27331 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27332 | { | |
27333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27334 | { |
554f62e9 RD |
27335 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27336 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 27337 | } |
554f62e9 RD |
27338 | wxPyEndAllowThreads(__tstate); |
27339 | if (PyErr_Occurred()) SWIG_fail; | |
27340 | } | |
27341 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27342 | return resultobj; | |
27343 | fail: | |
27344 | return NULL; | |
d55e5bfc RD |
27345 | } |
27346 | ||
27347 | ||
554f62e9 RD |
27348 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27349 | PyObject *resultobj = 0; | |
27350 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27351 | wxDC *result = 0 ; | |
27352 | void *argp1 = 0 ; | |
27353 | int res1 = 0 ; | |
27354 | PyObject *swig_obj[1] ; | |
27355 | ||
27356 | if (!args) SWIG_fail; | |
27357 | swig_obj[0] = args; | |
27358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27359 | if (!SWIG_IsOK(res1)) { | |
27360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27361 | } | |
27362 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27363 | { | |
27364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27365 | result = (wxDC *)(arg1)->GetPrintDC(); | |
27366 | wxPyEndAllowThreads(__tstate); | |
27367 | if (PyErr_Occurred()) SWIG_fail; | |
27368 | } | |
27369 | { | |
27370 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
27371 | } | |
27372 | return resultobj; | |
27373 | fail: | |
27374 | return NULL; | |
d55e5bfc RD |
27375 | } |
27376 | ||
27377 | ||
554f62e9 RD |
27378 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27379 | PyObject *obj; | |
27380 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27381 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
27382 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27383 | } |
27384 | ||
554f62e9 RD |
27385 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27386 | return SWIG_Python_InitShadowInstance(args); | |
27387 | } | |
d55e5bfc | 27388 | |
554f62e9 RD |
27389 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27390 | PyObject *resultobj = 0; | |
27391 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
27392 | wxPrinter *result = 0 ; | |
27393 | void *argp1 = 0 ; | |
27394 | int res1 = 0 ; | |
27395 | PyObject * obj0 = 0 ; | |
27396 | char * kwnames[] = { | |
27397 | (char *) "data", NULL | |
27398 | }; | |
27399 | ||
27400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
27401 | if (obj0) { | |
27402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27403 | if (!SWIG_IsOK(res1)) { | |
27404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
396fb509 | 27405 | } |
554f62e9 RD |
27406 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
27407 | } | |
27408 | { | |
27409 | if (!wxPyCheckForApp()) SWIG_fail; | |
27410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27411 | result = (wxPrinter *)new wxPrinter(arg1); | |
27412 | wxPyEndAllowThreads(__tstate); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
27415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
27416 | return resultobj; | |
27417 | fail: | |
27418 | return NULL; | |
d55e5bfc RD |
27419 | } |
27420 | ||
27421 | ||
554f62e9 RD |
27422 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27423 | PyObject *resultobj = 0; | |
27424 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27425 | void *argp1 = 0 ; | |
27426 | int res1 = 0 ; | |
27427 | PyObject *swig_obj[1] ; | |
27428 | ||
27429 | if (!args) SWIG_fail; | |
27430 | swig_obj[0] = args; | |
27431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
27432 | if (!SWIG_IsOK(res1)) { | |
27433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27434 | } | |
27435 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27436 | { | |
27437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27438 | delete arg1; | |
d55e5bfc | 27439 | |
554f62e9 RD |
27440 | wxPyEndAllowThreads(__tstate); |
27441 | if (PyErr_Occurred()) SWIG_fail; | |
27442 | } | |
27443 | resultobj = SWIG_Py_Void(); | |
27444 | return resultobj; | |
27445 | fail: | |
27446 | return NULL; | |
27447 | } | |
27448 | ||
27449 | ||
27450 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27451 | PyObject *resultobj = 0; | |
27452 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27453 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27454 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27455 | wxWindow *result = 0 ; | |
27456 | void *argp1 = 0 ; | |
27457 | int res1 = 0 ; | |
27458 | void *argp2 = 0 ; | |
27459 | int res2 = 0 ; | |
27460 | void *argp3 = 0 ; | |
27461 | int res3 = 0 ; | |
27462 | PyObject * obj0 = 0 ; | |
27463 | PyObject * obj1 = 0 ; | |
27464 | PyObject * obj2 = 0 ; | |
27465 | char * kwnames[] = { | |
27466 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
27467 | }; | |
27468 | ||
27469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27471 | if (!SWIG_IsOK(res1)) { | |
27472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27473 | } | |
27474 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27475 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27476 | if (!SWIG_IsOK(res2)) { | |
27477 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27478 | } | |
27479 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27480 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27481 | if (!SWIG_IsOK(res3)) { | |
27482 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27483 | } | |
27484 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27485 | { | |
27486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27487 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
27488 | wxPyEndAllowThreads(__tstate); | |
27489 | if (PyErr_Occurred()) SWIG_fail; | |
27490 | } | |
27491 | { | |
27492 | resultobj = wxPyMake_wxObject(result, 0); | |
27493 | } | |
27494 | return resultobj; | |
27495 | fail: | |
27496 | return NULL; | |
27497 | } | |
27498 | ||
27499 | ||
27500 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27501 | PyObject *resultobj = 0; | |
27502 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27503 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27504 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27505 | wxString *arg4 = 0 ; | |
27506 | void *argp1 = 0 ; | |
27507 | int res1 = 0 ; | |
27508 | void *argp2 = 0 ; | |
27509 | int res2 = 0 ; | |
27510 | void *argp3 = 0 ; | |
27511 | int res3 = 0 ; | |
27512 | bool temp4 = false ; | |
27513 | PyObject * obj0 = 0 ; | |
27514 | PyObject * obj1 = 0 ; | |
27515 | PyObject * obj2 = 0 ; | |
27516 | PyObject * obj3 = 0 ; | |
27517 | char * kwnames[] = { | |
27518 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
27519 | }; | |
27520 | ||
27521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27523 | if (!SWIG_IsOK(res1)) { | |
27524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27525 | } | |
27526 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27527 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27528 | if (!SWIG_IsOK(res2)) { | |
27529 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27530 | } | |
27531 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27532 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27533 | if (!SWIG_IsOK(res3)) { | |
27534 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27535 | } | |
27536 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27537 | { | |
27538 | arg4 = wxString_in_helper(obj3); | |
27539 | if (arg4 == NULL) SWIG_fail; | |
27540 | temp4 = true; | |
27541 | } | |
27542 | { | |
27543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27544 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
27545 | wxPyEndAllowThreads(__tstate); | |
27546 | if (PyErr_Occurred()) SWIG_fail; | |
27547 | } | |
27548 | resultobj = SWIG_Py_Void(); | |
27549 | { | |
27550 | if (temp4) | |
27551 | delete arg4; | |
27552 | } | |
27553 | return resultobj; | |
27554 | fail: | |
27555 | { | |
27556 | if (temp4) | |
27557 | delete arg4; | |
27558 | } | |
27559 | return NULL; | |
27560 | } | |
27561 | ||
27562 | ||
27563 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27564 | PyObject *resultobj = 0; | |
27565 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27566 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27567 | bool result; | |
27568 | void *argp1 = 0 ; | |
27569 | int res1 = 0 ; | |
27570 | void *argp2 = 0 ; | |
27571 | int res2 = 0 ; | |
27572 | PyObject * obj0 = 0 ; | |
27573 | PyObject * obj1 = 0 ; | |
27574 | char * kwnames[] = { | |
27575 | (char *) "self",(char *) "parent", NULL | |
27576 | }; | |
27577 | ||
27578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
27579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27580 | if (!SWIG_IsOK(res1)) { | |
27581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27582 | } | |
27583 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27584 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27585 | if (!SWIG_IsOK(res2)) { | |
27586 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27587 | } | |
27588 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27589 | { | |
27590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27591 | result = (bool)(arg1)->Setup(arg2); | |
27592 | wxPyEndAllowThreads(__tstate); | |
27593 | if (PyErr_Occurred()) SWIG_fail; | |
27594 | } | |
27595 | { | |
27596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27597 | } | |
27598 | return resultobj; | |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
27604 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27605 | PyObject *resultobj = 0; | |
27606 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27607 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27608 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27609 | bool arg4 = (bool) true ; | |
27610 | bool result; | |
27611 | void *argp1 = 0 ; | |
27612 | int res1 = 0 ; | |
27613 | void *argp2 = 0 ; | |
27614 | int res2 = 0 ; | |
27615 | void *argp3 = 0 ; | |
27616 | int res3 = 0 ; | |
27617 | bool val4 ; | |
27618 | int ecode4 = 0 ; | |
27619 | PyObject * obj0 = 0 ; | |
27620 | PyObject * obj1 = 0 ; | |
27621 | PyObject * obj2 = 0 ; | |
27622 | PyObject * obj3 = 0 ; | |
27623 | char * kwnames[] = { | |
27624 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27625 | }; | |
27626 | ||
27627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27629 | if (!SWIG_IsOK(res1)) { | |
27630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27631 | } | |
27632 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27633 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27634 | if (!SWIG_IsOK(res2)) { | |
27635 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27636 | } | |
27637 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27638 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27639 | if (!SWIG_IsOK(res3)) { | |
27640 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27641 | } | |
27642 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27643 | if (obj3) { | |
27644 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27645 | if (!SWIG_IsOK(ecode4)) { | |
27646 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27647 | } | |
27648 | arg4 = static_cast< bool >(val4); | |
27649 | } | |
27650 | { | |
27651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27652 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27653 | wxPyEndAllowThreads(__tstate); | |
27654 | if (PyErr_Occurred()) SWIG_fail; | |
27655 | } | |
27656 | { | |
27657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27658 | } | |
27659 | return resultobj; | |
27660 | fail: | |
27661 | return NULL; | |
27662 | } | |
27663 | ||
27664 | ||
27665 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27666 | PyObject *resultobj = 0; | |
27667 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27668 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27669 | wxDC *result = 0 ; | |
27670 | void *argp1 = 0 ; | |
27671 | int res1 = 0 ; | |
27672 | void *argp2 = 0 ; | |
27673 | int res2 = 0 ; | |
27674 | PyObject * obj0 = 0 ; | |
27675 | PyObject * obj1 = 0 ; | |
27676 | char * kwnames[] = { | |
27677 | (char *) "self",(char *) "parent", NULL | |
27678 | }; | |
27679 | ||
27680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27682 | if (!SWIG_IsOK(res1)) { | |
27683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27684 | } | |
27685 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27686 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27687 | if (!SWIG_IsOK(res2)) { | |
27688 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27689 | } | |
27690 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27691 | { | |
27692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27693 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27694 | wxPyEndAllowThreads(__tstate); | |
27695 | if (PyErr_Occurred()) SWIG_fail; | |
27696 | } | |
27697 | { | |
27698 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27699 | } | |
27700 | return resultobj; | |
27701 | fail: | |
27702 | return NULL; | |
d55e5bfc RD |
27703 | } |
27704 | ||
27705 | ||
554f62e9 RD |
27706 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27707 | PyObject *resultobj = 0; | |
27708 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27709 | wxPrintDialogData *result = 0 ; | |
27710 | void *argp1 = 0 ; | |
27711 | int res1 = 0 ; | |
27712 | PyObject *swig_obj[1] ; | |
27713 | ||
27714 | if (!args) SWIG_fail; | |
27715 | swig_obj[0] = args; | |
27716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27717 | if (!SWIG_IsOK(res1)) { | |
27718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27719 | } | |
27720 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27721 | { | |
27722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27723 | { |
554f62e9 RD |
27724 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27725 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 27726 | } |
554f62e9 RD |
27727 | wxPyEndAllowThreads(__tstate); |
27728 | if (PyErr_Occurred()) SWIG_fail; | |
27729 | } | |
27730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
d55e5bfc RD |
27734 | } |
27735 | ||
27736 | ||
554f62e9 RD |
27737 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27738 | PyObject *resultobj = 0; | |
27739 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27740 | bool result; | |
27741 | void *argp1 = 0 ; | |
27742 | int res1 = 0 ; | |
27743 | PyObject *swig_obj[1] ; | |
27744 | ||
27745 | if (!args) SWIG_fail; | |
27746 | swig_obj[0] = args; | |
27747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27748 | if (!SWIG_IsOK(res1)) { | |
27749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27750 | } | |
27751 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27752 | { | |
27753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27754 | result = (bool)(arg1)->GetAbort(); | |
27755 | wxPyEndAllowThreads(__tstate); | |
27756 | if (PyErr_Occurred()) SWIG_fail; | |
27757 | } | |
27758 | { | |
27759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27760 | } | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
d55e5bfc RD |
27764 | } |
27765 | ||
27766 | ||
554f62e9 RD |
27767 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27768 | PyObject *resultobj = 0; | |
27769 | wxPrinterError result; | |
27770 | ||
27771 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27772 | { | |
27773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27774 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27775 | wxPyEndAllowThreads(__tstate); | |
27776 | if (PyErr_Occurred()) SWIG_fail; | |
27777 | } | |
27778 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27779 | return resultobj; | |
27780 | fail: | |
27781 | return NULL; | |
d55e5bfc RD |
27782 | } |
27783 | ||
27784 | ||
554f62e9 RD |
27785 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27786 | PyObject *obj; | |
27787 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27788 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27789 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27790 | } |
27791 | ||
554f62e9 RD |
27792 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27793 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
27794 | } |
27795 | ||
554f62e9 RD |
27796 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27797 | PyObject *resultobj = 0; | |
27798 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27799 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27800 | wxPyPrintout *result = 0 ; | |
27801 | bool temp1 = false ; | |
27802 | PyObject * obj0 = 0 ; | |
27803 | char * kwnames[] = { | |
27804 | (char *) "title", NULL | |
27805 | }; | |
27806 | ||
27807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27808 | if (obj0) { | |
d55e5bfc | 27809 | { |
554f62e9 RD |
27810 | arg1 = wxString_in_helper(obj0); |
27811 | if (arg1 == NULL) SWIG_fail; | |
27812 | temp1 = true; | |
27813 | } | |
27814 | } | |
27815 | { | |
27816 | if (!wxPyCheckForApp()) SWIG_fail; | |
27817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27818 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27819 | wxPyEndAllowThreads(__tstate); | |
27820 | if (PyErr_Occurred()) SWIG_fail; | |
27821 | } | |
27822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27823 | { | |
27824 | if (temp1) | |
27825 | delete arg1; | |
27826 | } | |
27827 | return resultobj; | |
27828 | fail: | |
27829 | { | |
27830 | if (temp1) | |
27831 | delete arg1; | |
27832 | } | |
27833 | return NULL; | |
d55e5bfc RD |
27834 | } |
27835 | ||
27836 | ||
554f62e9 RD |
27837 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27838 | PyObject *resultobj = 0; | |
27839 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27840 | void *argp1 = 0 ; | |
27841 | int res1 = 0 ; | |
27842 | PyObject *swig_obj[1] ; | |
27843 | ||
27844 | if (!args) SWIG_fail; | |
27845 | swig_obj[0] = args; | |
27846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27847 | if (!SWIG_IsOK(res1)) { | |
27848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27849 | } | |
27850 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27851 | { | |
27852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27853 | delete arg1; | |
d55e5bfc | 27854 | |
554f62e9 RD |
27855 | wxPyEndAllowThreads(__tstate); |
27856 | if (PyErr_Occurred()) SWIG_fail; | |
27857 | } | |
27858 | resultobj = SWIG_Py_Void(); | |
27859 | return resultobj; | |
27860 | fail: | |
27861 | return NULL; | |
27862 | } | |
27863 | ||
27864 | ||
27865 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27866 | PyObject *resultobj = 0; | |
27867 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27868 | PyObject *arg2 = (PyObject *) 0 ; | |
27869 | PyObject *arg3 = (PyObject *) 0 ; | |
27870 | void *argp1 = 0 ; | |
27871 | int res1 = 0 ; | |
27872 | PyObject * obj0 = 0 ; | |
27873 | PyObject * obj1 = 0 ; | |
27874 | PyObject * obj2 = 0 ; | |
27875 | char * kwnames[] = { | |
27876 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27877 | }; | |
27878 | ||
27879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27881 | if (!SWIG_IsOK(res1)) { | |
27882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27883 | } | |
27884 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27885 | arg2 = obj1; | |
27886 | arg3 = obj2; | |
27887 | { | |
27888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27889 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27890 | wxPyEndAllowThreads(__tstate); | |
27891 | if (PyErr_Occurred()) SWIG_fail; | |
27892 | } | |
27893 | resultobj = SWIG_Py_Void(); | |
27894 | return resultobj; | |
27895 | fail: | |
27896 | return NULL; | |
d55e5bfc RD |
27897 | } |
27898 | ||
27899 | ||
554f62e9 RD |
27900 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27901 | PyObject *resultobj = 0; | |
27902 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27903 | wxString result; | |
27904 | void *argp1 = 0 ; | |
27905 | int res1 = 0 ; | |
27906 | PyObject *swig_obj[1] ; | |
27907 | ||
27908 | if (!args) SWIG_fail; | |
27909 | swig_obj[0] = args; | |
27910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27911 | if (!SWIG_IsOK(res1)) { | |
27912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27913 | } | |
27914 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27915 | { | |
27916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27917 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27918 | wxPyEndAllowThreads(__tstate); | |
27919 | if (PyErr_Occurred()) SWIG_fail; | |
27920 | } | |
27921 | { | |
27922 | #if wxUSE_UNICODE | |
27923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27924 | #else | |
27925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27926 | #endif | |
27927 | } | |
27928 | return resultobj; | |
27929 | fail: | |
27930 | return NULL; | |
d55e5bfc RD |
27931 | } |
27932 | ||
27933 | ||
554f62e9 RD |
27934 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27935 | PyObject *resultobj = 0; | |
27936 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27937 | wxDC *result = 0 ; | |
27938 | void *argp1 = 0 ; | |
27939 | int res1 = 0 ; | |
27940 | PyObject *swig_obj[1] ; | |
27941 | ||
27942 | if (!args) SWIG_fail; | |
27943 | swig_obj[0] = args; | |
27944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27945 | if (!SWIG_IsOK(res1)) { | |
27946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27947 | } | |
27948 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27949 | { | |
27950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27951 | result = (wxDC *)(arg1)->GetDC(); | |
27952 | wxPyEndAllowThreads(__tstate); | |
27953 | if (PyErr_Occurred()) SWIG_fail; | |
27954 | } | |
27955 | { | |
27956 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27957 | } | |
27958 | return resultobj; | |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj = 0; | |
27966 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27967 | wxDC *arg2 = (wxDC *) 0 ; | |
27968 | void *argp1 = 0 ; | |
27969 | int res1 = 0 ; | |
27970 | void *argp2 = 0 ; | |
27971 | int res2 = 0 ; | |
27972 | PyObject * obj0 = 0 ; | |
27973 | PyObject * obj1 = 0 ; | |
27974 | char * kwnames[] = { | |
27975 | (char *) "self",(char *) "dc", NULL | |
27976 | }; | |
27977 | ||
27978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27980 | if (!SWIG_IsOK(res1)) { | |
27981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27982 | } | |
27983 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27984 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27985 | if (!SWIG_IsOK(res2)) { | |
27986 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27987 | } | |
27988 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27989 | { | |
27990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27991 | (arg1)->SetDC(arg2); | |
27992 | wxPyEndAllowThreads(__tstate); | |
27993 | if (PyErr_Occurred()) SWIG_fail; | |
27994 | } | |
27995 | resultobj = SWIG_Py_Void(); | |
27996 | return resultobj; | |
27997 | fail: | |
27998 | return NULL; | |
27999 | } | |
28000 | ||
28001 | ||
28002 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28003 | PyObject *resultobj = 0; | |
28004 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28005 | int arg2 ; | |
28006 | int arg3 ; | |
28007 | void *argp1 = 0 ; | |
28008 | int res1 = 0 ; | |
28009 | int val2 ; | |
28010 | int ecode2 = 0 ; | |
28011 | int val3 ; | |
28012 | int ecode3 = 0 ; | |
28013 | PyObject * obj0 = 0 ; | |
28014 | PyObject * obj1 = 0 ; | |
28015 | PyObject * obj2 = 0 ; | |
28016 | char * kwnames[] = { | |
28017 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28018 | }; | |
28019 | ||
28020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28022 | if (!SWIG_IsOK(res1)) { | |
28023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28024 | } | |
28025 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28027 | if (!SWIG_IsOK(ecode2)) { | |
28028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
28029 | } | |
28030 | arg2 = static_cast< int >(val2); | |
28031 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28032 | if (!SWIG_IsOK(ecode3)) { | |
28033 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
28034 | } | |
28035 | arg3 = static_cast< int >(val3); | |
28036 | { | |
28037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28038 | (arg1)->SetPageSizePixels(arg2,arg3); | |
28039 | wxPyEndAllowThreads(__tstate); | |
28040 | if (PyErr_Occurred()) SWIG_fail; | |
28041 | } | |
28042 | resultobj = SWIG_Py_Void(); | |
28043 | return resultobj; | |
28044 | fail: | |
28045 | return NULL; | |
28046 | } | |
28047 | ||
28048 | ||
28049 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28050 | PyObject *resultobj = 0; | |
28051 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28052 | int *arg2 = (int *) 0 ; | |
28053 | int *arg3 = (int *) 0 ; | |
28054 | void *argp1 = 0 ; | |
28055 | int res1 = 0 ; | |
28056 | int temp2 ; | |
28057 | int res2 = SWIG_TMPOBJ ; | |
28058 | int temp3 ; | |
28059 | int res3 = SWIG_TMPOBJ ; | |
28060 | PyObject *swig_obj[1] ; | |
28061 | ||
28062 | arg2 = &temp2; | |
28063 | arg3 = &temp3; | |
28064 | if (!args) SWIG_fail; | |
28065 | swig_obj[0] = args; | |
28066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28067 | if (!SWIG_IsOK(res1)) { | |
28068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28069 | } | |
28070 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28071 | { | |
28072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28073 | (arg1)->GetPageSizePixels(arg2,arg3); | |
28074 | wxPyEndAllowThreads(__tstate); | |
28075 | if (PyErr_Occurred()) SWIG_fail; | |
28076 | } | |
28077 | resultobj = SWIG_Py_Void(); | |
28078 | if (SWIG_IsTmpObj(res2)) { | |
28079 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28080 | } else { | |
28081 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28082 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28083 | } | |
28084 | if (SWIG_IsTmpObj(res3)) { | |
28085 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28086 | } else { | |
28087 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28088 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28089 | } | |
28090 | return resultobj; | |
28091 | fail: | |
28092 | return NULL; | |
28093 | } | |
28094 | ||
28095 | ||
28096 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28097 | PyObject *resultobj = 0; | |
28098 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28099 | int arg2 ; | |
28100 | int arg3 ; | |
28101 | void *argp1 = 0 ; | |
28102 | int res1 = 0 ; | |
28103 | int val2 ; | |
28104 | int ecode2 = 0 ; | |
28105 | int val3 ; | |
28106 | int ecode3 = 0 ; | |
28107 | PyObject * obj0 = 0 ; | |
28108 | PyObject * obj1 = 0 ; | |
28109 | PyObject * obj2 = 0 ; | |
28110 | char * kwnames[] = { | |
28111 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28112 | }; | |
28113 | ||
28114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28116 | if (!SWIG_IsOK(res1)) { | |
28117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28118 | } | |
28119 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28121 | if (!SWIG_IsOK(ecode2)) { | |
28122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
28123 | } | |
28124 | arg2 = static_cast< int >(val2); | |
28125 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28126 | if (!SWIG_IsOK(ecode3)) { | |
28127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
28128 | } | |
28129 | arg3 = static_cast< int >(val3); | |
28130 | { | |
28131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28132 | (arg1)->SetPageSizeMM(arg2,arg3); | |
28133 | wxPyEndAllowThreads(__tstate); | |
28134 | if (PyErr_Occurred()) SWIG_fail; | |
28135 | } | |
28136 | resultobj = SWIG_Py_Void(); | |
28137 | return resultobj; | |
28138 | fail: | |
28139 | return NULL; | |
28140 | } | |
28141 | ||
28142 | ||
28143 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28144 | PyObject *resultobj = 0; | |
28145 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28146 | int *arg2 = (int *) 0 ; | |
28147 | int *arg3 = (int *) 0 ; | |
28148 | void *argp1 = 0 ; | |
28149 | int res1 = 0 ; | |
28150 | int temp2 ; | |
28151 | int res2 = SWIG_TMPOBJ ; | |
28152 | int temp3 ; | |
28153 | int res3 = SWIG_TMPOBJ ; | |
28154 | PyObject *swig_obj[1] ; | |
28155 | ||
28156 | arg2 = &temp2; | |
28157 | arg3 = &temp3; | |
28158 | if (!args) SWIG_fail; | |
28159 | swig_obj[0] = args; | |
28160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28161 | if (!SWIG_IsOK(res1)) { | |
28162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28163 | } | |
28164 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28165 | { | |
28166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28167 | (arg1)->GetPageSizeMM(arg2,arg3); | |
28168 | wxPyEndAllowThreads(__tstate); | |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
28170 | } | |
28171 | resultobj = SWIG_Py_Void(); | |
28172 | if (SWIG_IsTmpObj(res2)) { | |
28173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28174 | } else { | |
28175 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28177 | } | |
28178 | if (SWIG_IsTmpObj(res3)) { | |
28179 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28180 | } else { | |
28181 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28182 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28183 | } | |
28184 | return resultobj; | |
28185 | fail: | |
28186 | return NULL; | |
28187 | } | |
28188 | ||
28189 | ||
28190 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28191 | PyObject *resultobj = 0; | |
28192 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28193 | int arg2 ; | |
28194 | int arg3 ; | |
28195 | void *argp1 = 0 ; | |
28196 | int res1 = 0 ; | |
28197 | int val2 ; | |
28198 | int ecode2 = 0 ; | |
28199 | int val3 ; | |
28200 | int ecode3 = 0 ; | |
28201 | PyObject * obj0 = 0 ; | |
28202 | PyObject * obj1 = 0 ; | |
28203 | PyObject * obj2 = 0 ; | |
28204 | char * kwnames[] = { | |
28205 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28206 | }; | |
28207 | ||
28208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28210 | if (!SWIG_IsOK(res1)) { | |
28211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28212 | } | |
28213 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28214 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28215 | if (!SWIG_IsOK(ecode2)) { | |
28216 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
28217 | } | |
28218 | arg2 = static_cast< int >(val2); | |
28219 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28220 | if (!SWIG_IsOK(ecode3)) { | |
28221 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
28222 | } | |
28223 | arg3 = static_cast< int >(val3); | |
28224 | { | |
28225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28226 | (arg1)->SetPPIScreen(arg2,arg3); | |
28227 | wxPyEndAllowThreads(__tstate); | |
28228 | if (PyErr_Occurred()) SWIG_fail; | |
28229 | } | |
28230 | resultobj = SWIG_Py_Void(); | |
28231 | return resultobj; | |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
28237 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28238 | PyObject *resultobj = 0; | |
28239 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28240 | int *arg2 = (int *) 0 ; | |
28241 | int *arg3 = (int *) 0 ; | |
28242 | void *argp1 = 0 ; | |
28243 | int res1 = 0 ; | |
28244 | int temp2 ; | |
28245 | int res2 = SWIG_TMPOBJ ; | |
28246 | int temp3 ; | |
28247 | int res3 = SWIG_TMPOBJ ; | |
28248 | PyObject *swig_obj[1] ; | |
28249 | ||
28250 | arg2 = &temp2; | |
28251 | arg3 = &temp3; | |
28252 | if (!args) SWIG_fail; | |
28253 | swig_obj[0] = args; | |
28254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28255 | if (!SWIG_IsOK(res1)) { | |
28256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28257 | } | |
28258 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28259 | { | |
28260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28261 | (arg1)->GetPPIScreen(arg2,arg3); | |
28262 | wxPyEndAllowThreads(__tstate); | |
28263 | if (PyErr_Occurred()) SWIG_fail; | |
28264 | } | |
28265 | resultobj = SWIG_Py_Void(); | |
28266 | if (SWIG_IsTmpObj(res2)) { | |
28267 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28268 | } else { | |
28269 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28270 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28271 | } | |
28272 | if (SWIG_IsTmpObj(res3)) { | |
28273 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28274 | } else { | |
28275 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28276 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28277 | } | |
28278 | return resultobj; | |
28279 | fail: | |
28280 | return NULL; | |
28281 | } | |
28282 | ||
28283 | ||
28284 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28285 | PyObject *resultobj = 0; | |
28286 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28287 | int arg2 ; | |
28288 | int arg3 ; | |
28289 | void *argp1 = 0 ; | |
28290 | int res1 = 0 ; | |
28291 | int val2 ; | |
28292 | int ecode2 = 0 ; | |
28293 | int val3 ; | |
28294 | int ecode3 = 0 ; | |
28295 | PyObject * obj0 = 0 ; | |
28296 | PyObject * obj1 = 0 ; | |
28297 | PyObject * obj2 = 0 ; | |
28298 | char * kwnames[] = { | |
28299 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28300 | }; | |
28301 | ||
28302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28304 | if (!SWIG_IsOK(res1)) { | |
28305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28306 | } | |
28307 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28308 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28309 | if (!SWIG_IsOK(ecode2)) { | |
28310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
28311 | } | |
28312 | arg2 = static_cast< int >(val2); | |
28313 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28314 | if (!SWIG_IsOK(ecode3)) { | |
28315 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
28316 | } | |
28317 | arg3 = static_cast< int >(val3); | |
28318 | { | |
28319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28320 | (arg1)->SetPPIPrinter(arg2,arg3); | |
28321 | wxPyEndAllowThreads(__tstate); | |
28322 | if (PyErr_Occurred()) SWIG_fail; | |
28323 | } | |
28324 | resultobj = SWIG_Py_Void(); | |
28325 | return resultobj; | |
28326 | fail: | |
28327 | return NULL; | |
28328 | } | |
28329 | ||
28330 | ||
28331 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28332 | PyObject *resultobj = 0; | |
28333 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28334 | int *arg2 = (int *) 0 ; | |
28335 | int *arg3 = (int *) 0 ; | |
28336 | void *argp1 = 0 ; | |
28337 | int res1 = 0 ; | |
28338 | int temp2 ; | |
28339 | int res2 = SWIG_TMPOBJ ; | |
28340 | int temp3 ; | |
28341 | int res3 = SWIG_TMPOBJ ; | |
28342 | PyObject *swig_obj[1] ; | |
28343 | ||
28344 | arg2 = &temp2; | |
28345 | arg3 = &temp3; | |
28346 | if (!args) SWIG_fail; | |
28347 | swig_obj[0] = args; | |
28348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28349 | if (!SWIG_IsOK(res1)) { | |
28350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28351 | } | |
28352 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28353 | { | |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | (arg1)->GetPPIPrinter(arg2,arg3); | |
28356 | wxPyEndAllowThreads(__tstate); | |
28357 | if (PyErr_Occurred()) SWIG_fail; | |
28358 | } | |
28359 | resultobj = SWIG_Py_Void(); | |
28360 | if (SWIG_IsTmpObj(res2)) { | |
28361 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28362 | } else { | |
28363 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28364 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28365 | } | |
28366 | if (SWIG_IsTmpObj(res3)) { | |
28367 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28368 | } else { | |
28369 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28370 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28371 | } | |
28372 | return resultobj; | |
28373 | fail: | |
28374 | return NULL; | |
d55e5bfc RD |
28375 | } |
28376 | ||
28377 | ||
554f62e9 RD |
28378 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28379 | PyObject *resultobj = 0; | |
28380 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28381 | bool result; | |
28382 | void *argp1 = 0 ; | |
28383 | int res1 = 0 ; | |
28384 | PyObject *swig_obj[1] ; | |
28385 | ||
28386 | if (!args) SWIG_fail; | |
28387 | swig_obj[0] = args; | |
28388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28389 | if (!SWIG_IsOK(res1)) { | |
28390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28391 | } | |
28392 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28393 | { | |
28394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28395 | result = (bool)(arg1)->IsPreview(); | |
28396 | wxPyEndAllowThreads(__tstate); | |
28397 | if (PyErr_Occurred()) SWIG_fail; | |
28398 | } | |
28399 | { | |
28400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28401 | } | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | return NULL; | |
28405 | } | |
28406 | ||
28407 | ||
28408 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28409 | PyObject *resultobj = 0; | |
28410 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28411 | bool arg2 ; | |
28412 | void *argp1 = 0 ; | |
28413 | int res1 = 0 ; | |
28414 | bool val2 ; | |
28415 | int ecode2 = 0 ; | |
28416 | PyObject * obj0 = 0 ; | |
28417 | PyObject * obj1 = 0 ; | |
28418 | char * kwnames[] = { | |
28419 | (char *) "self",(char *) "p", NULL | |
28420 | }; | |
28421 | ||
28422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
28423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28424 | if (!SWIG_IsOK(res1)) { | |
28425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28426 | } | |
28427 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28428 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28429 | if (!SWIG_IsOK(ecode2)) { | |
28430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
28431 | } | |
28432 | arg2 = static_cast< bool >(val2); | |
28433 | { | |
28434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28435 | (arg1)->SetIsPreview(arg2); | |
28436 | wxPyEndAllowThreads(__tstate); | |
28437 | if (PyErr_Occurred()) SWIG_fail; | |
28438 | } | |
28439 | resultobj = SWIG_Py_Void(); | |
28440 | return resultobj; | |
28441 | fail: | |
28442 | return NULL; | |
28443 | } | |
28444 | ||
28445 | ||
28446 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28447 | PyObject *resultobj = 0; | |
28448 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28449 | int arg2 ; | |
28450 | int arg3 ; | |
28451 | bool result; | |
28452 | void *argp1 = 0 ; | |
28453 | int res1 = 0 ; | |
28454 | int val2 ; | |
28455 | int ecode2 = 0 ; | |
28456 | int val3 ; | |
28457 | int ecode3 = 0 ; | |
28458 | PyObject * obj0 = 0 ; | |
28459 | PyObject * obj1 = 0 ; | |
28460 | PyObject * obj2 = 0 ; | |
28461 | char * kwnames[] = { | |
28462 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
28463 | }; | |
28464 | ||
28465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28467 | if (!SWIG_IsOK(res1)) { | |
28468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28469 | } | |
28470 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28471 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28472 | if (!SWIG_IsOK(ecode2)) { | |
28473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
28474 | } | |
28475 | arg2 = static_cast< int >(val2); | |
28476 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28477 | if (!SWIG_IsOK(ecode3)) { | |
28478 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
28479 | } | |
28480 | arg3 = static_cast< int >(val3); | |
28481 | { | |
28482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28483 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
28484 | wxPyEndAllowThreads(__tstate); | |
28485 | if (PyErr_Occurred()) SWIG_fail; | |
28486 | } | |
28487 | { | |
28488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28489 | } | |
28490 | return resultobj; | |
28491 | fail: | |
28492 | return NULL; | |
d55e5bfc RD |
28493 | } |
28494 | ||
28495 | ||
554f62e9 RD |
28496 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28497 | PyObject *resultobj = 0; | |
28498 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28499 | void *argp1 = 0 ; | |
28500 | int res1 = 0 ; | |
28501 | PyObject *swig_obj[1] ; | |
28502 | ||
28503 | if (!args) SWIG_fail; | |
28504 | swig_obj[0] = args; | |
28505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28506 | if (!SWIG_IsOK(res1)) { | |
28507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28508 | } | |
28509 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28510 | { | |
28511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28512 | (arg1)->OnEndDocument(); | |
28513 | wxPyEndAllowThreads(__tstate); | |
28514 | if (PyErr_Occurred()) SWIG_fail; | |
28515 | } | |
28516 | resultobj = SWIG_Py_Void(); | |
28517 | return resultobj; | |
28518 | fail: | |
28519 | return NULL; | |
caef1a4d RD |
28520 | } |
28521 | ||
28522 | ||
554f62e9 RD |
28523 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28524 | PyObject *resultobj = 0; | |
28525 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28526 | void *argp1 = 0 ; | |
28527 | int res1 = 0 ; | |
28528 | PyObject *swig_obj[1] ; | |
28529 | ||
28530 | if (!args) SWIG_fail; | |
28531 | swig_obj[0] = args; | |
28532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28533 | if (!SWIG_IsOK(res1)) { | |
28534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28535 | } | |
28536 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28537 | { | |
28538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28539 | (arg1)->OnBeginPrinting(); | |
28540 | wxPyEndAllowThreads(__tstate); | |
28541 | if (PyErr_Occurred()) SWIG_fail; | |
28542 | } | |
28543 | resultobj = SWIG_Py_Void(); | |
28544 | return resultobj; | |
28545 | fail: | |
28546 | return NULL; | |
60d5fcc1 RD |
28547 | } |
28548 | ||
28549 | ||
554f62e9 RD |
28550 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28551 | PyObject *resultobj = 0; | |
28552 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28553 | void *argp1 = 0 ; | |
28554 | int res1 = 0 ; | |
28555 | PyObject *swig_obj[1] ; | |
28556 | ||
28557 | if (!args) SWIG_fail; | |
28558 | swig_obj[0] = args; | |
28559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28560 | if (!SWIG_IsOK(res1)) { | |
28561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28562 | } | |
28563 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28564 | { | |
28565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28566 | (arg1)->OnEndPrinting(); | |
28567 | wxPyEndAllowThreads(__tstate); | |
28568 | if (PyErr_Occurred()) SWIG_fail; | |
28569 | } | |
28570 | resultobj = SWIG_Py_Void(); | |
28571 | return resultobj; | |
28572 | fail: | |
28573 | return NULL; | |
d55e5bfc RD |
28574 | } |
28575 | ||
28576 | ||
554f62e9 RD |
28577 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28578 | PyObject *resultobj = 0; | |
28579 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28580 | void *argp1 = 0 ; | |
28581 | int res1 = 0 ; | |
28582 | PyObject *swig_obj[1] ; | |
28583 | ||
28584 | if (!args) SWIG_fail; | |
28585 | swig_obj[0] = args; | |
28586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28587 | if (!SWIG_IsOK(res1)) { | |
28588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28589 | } | |
28590 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28591 | { | |
28592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28593 | (arg1)->OnPreparePrinting(); | |
28594 | wxPyEndAllowThreads(__tstate); | |
28595 | if (PyErr_Occurred()) SWIG_fail; | |
28596 | } | |
28597 | resultobj = SWIG_Py_Void(); | |
28598 | return resultobj; | |
28599 | fail: | |
28600 | return NULL; | |
28601 | } | |
28602 | ||
28603 | ||
28604 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28605 | PyObject *resultobj = 0; | |
28606 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28607 | int arg2 ; | |
28608 | bool result; | |
28609 | void *argp1 = 0 ; | |
28610 | int res1 = 0 ; | |
28611 | int val2 ; | |
28612 | int ecode2 = 0 ; | |
28613 | PyObject * obj0 = 0 ; | |
28614 | PyObject * obj1 = 0 ; | |
28615 | char * kwnames[] = { | |
28616 | (char *) "self",(char *) "page", NULL | |
28617 | }; | |
28618 | ||
28619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28620 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28621 | if (!SWIG_IsOK(res1)) { | |
28622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28623 | } | |
28624 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28625 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28626 | if (!SWIG_IsOK(ecode2)) { | |
28627 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
28628 | } | |
28629 | arg2 = static_cast< int >(val2); | |
28630 | { | |
28631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28632 | result = (bool)(arg1)->HasPage(arg2); | |
28633 | wxPyEndAllowThreads(__tstate); | |
28634 | if (PyErr_Occurred()) SWIG_fail; | |
28635 | } | |
28636 | { | |
28637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28638 | } | |
28639 | return resultobj; | |
28640 | fail: | |
28641 | return NULL; | |
28642 | } | |
28643 | ||
28644 | ||
28645 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28646 | PyObject *resultobj = 0; | |
28647 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28648 | int *arg2 = (int *) 0 ; | |
28649 | int *arg3 = (int *) 0 ; | |
28650 | int *arg4 = (int *) 0 ; | |
28651 | int *arg5 = (int *) 0 ; | |
28652 | void *argp1 = 0 ; | |
28653 | int res1 = 0 ; | |
28654 | int temp2 ; | |
28655 | int res2 = SWIG_TMPOBJ ; | |
28656 | int temp3 ; | |
28657 | int res3 = SWIG_TMPOBJ ; | |
28658 | int temp4 ; | |
28659 | int res4 = SWIG_TMPOBJ ; | |
28660 | int temp5 ; | |
28661 | int res5 = SWIG_TMPOBJ ; | |
28662 | PyObject *swig_obj[1] ; | |
28663 | ||
28664 | arg2 = &temp2; | |
28665 | arg3 = &temp3; | |
28666 | arg4 = &temp4; | |
28667 | arg5 = &temp5; | |
28668 | if (!args) SWIG_fail; | |
28669 | swig_obj[0] = args; | |
28670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28671 | if (!SWIG_IsOK(res1)) { | |
28672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28673 | } | |
28674 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28675 | { | |
28676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28677 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
28678 | wxPyEndAllowThreads(__tstate); | |
28679 | if (PyErr_Occurred()) SWIG_fail; | |
28680 | } | |
28681 | resultobj = SWIG_Py_Void(); | |
28682 | if (SWIG_IsTmpObj(res2)) { | |
28683 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28684 | } else { | |
28685 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28686 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28687 | } | |
28688 | if (SWIG_IsTmpObj(res3)) { | |
28689 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28690 | } else { | |
28691 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28692 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28693 | } | |
28694 | if (SWIG_IsTmpObj(res4)) { | |
28695 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28696 | } else { | |
28697 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28698 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28699 | } | |
28700 | if (SWIG_IsTmpObj(res5)) { | |
28701 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
28702 | } else { | |
28703 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28704 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
28705 | } | |
28706 | return resultobj; | |
28707 | fail: | |
28708 | return NULL; | |
28709 | } | |
28710 | ||
28711 | ||
28712 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28713 | PyObject *obj; | |
28714 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28715 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
28716 | return SWIG_Py_Void(); | |
28717 | } | |
28718 | ||
28719 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28720 | return SWIG_Python_InitShadowInstance(args); | |
28721 | } | |
28722 | ||
28723 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28724 | PyObject *resultobj = 0; | |
28725 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28726 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28727 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28728 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28729 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28730 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28731 | long arg5 = (long) 0 ; | |
28732 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
28733 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
28734 | wxPreviewCanvas *result = 0 ; | |
28735 | void *argp1 = 0 ; | |
28736 | int res1 = 0 ; | |
28737 | void *argp2 = 0 ; | |
28738 | int res2 = 0 ; | |
28739 | wxPoint temp3 ; | |
28740 | wxSize temp4 ; | |
28741 | long val5 ; | |
28742 | int ecode5 = 0 ; | |
28743 | bool temp6 = false ; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | PyObject * obj1 = 0 ; | |
28746 | PyObject * obj2 = 0 ; | |
28747 | PyObject * obj3 = 0 ; | |
28748 | PyObject * obj4 = 0 ; | |
28749 | PyObject * obj5 = 0 ; | |
28750 | char * kwnames[] = { | |
28751 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28752 | }; | |
28753 | ||
28754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28756 | if (!SWIG_IsOK(res1)) { | |
28757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28758 | } | |
28759 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28760 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28761 | if (!SWIG_IsOK(res2)) { | |
28762 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28763 | } | |
28764 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28765 | if (obj2) { | |
093d3ff1 | 28766 | { |
554f62e9 RD |
28767 | arg3 = &temp3; |
28768 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 28769 | } |
554f62e9 RD |
28770 | } |
28771 | if (obj3) { | |
093d3ff1 | 28772 | { |
554f62e9 RD |
28773 | arg4 = &temp4; |
28774 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 28775 | } |
554f62e9 RD |
28776 | } |
28777 | if (obj4) { | |
28778 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28779 | if (!SWIG_IsOK(ecode5)) { | |
28780 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
28781 | } | |
28782 | arg5 = static_cast< long >(val5); | |
28783 | } | |
28784 | if (obj5) { | |
093d3ff1 | 28785 | { |
554f62e9 RD |
28786 | arg6 = wxString_in_helper(obj5); |
28787 | if (arg6 == NULL) SWIG_fail; | |
28788 | temp6 = true; | |
093d3ff1 | 28789 | } |
554f62e9 RD |
28790 | } |
28791 | { | |
28792 | if (!wxPyCheckForApp()) SWIG_fail; | |
28793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28794 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
28795 | wxPyEndAllowThreads(__tstate); | |
28796 | if (PyErr_Occurred()) SWIG_fail; | |
28797 | } | |
28798 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
28799 | { | |
28800 | if (temp6) | |
28801 | delete arg6; | |
28802 | } | |
28803 | return resultobj; | |
28804 | fail: | |
28805 | { | |
28806 | if (temp6) | |
28807 | delete arg6; | |
28808 | } | |
28809 | return NULL; | |
28810 | } | |
28811 | ||
28812 | ||
28813 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28814 | PyObject *obj; | |
28815 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28816 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
28817 | return SWIG_Py_Void(); | |
28818 | } | |
28819 | ||
28820 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28821 | return SWIG_Python_InitShadowInstance(args); | |
28822 | } | |
28823 | ||
28824 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28825 | PyObject *resultobj = 0; | |
28826 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28827 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28828 | wxString *arg3 = 0 ; | |
28829 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28830 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28831 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28832 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28833 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
28834 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
28835 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28836 | wxPreviewFrame *result = 0 ; | |
28837 | int res1 = 0 ; | |
28838 | void *argp2 = 0 ; | |
28839 | int res2 = 0 ; | |
28840 | bool temp3 = false ; | |
28841 | wxPoint temp4 ; | |
28842 | wxSize temp5 ; | |
28843 | long val6 ; | |
28844 | int ecode6 = 0 ; | |
28845 | bool temp7 = false ; | |
28846 | PyObject * obj0 = 0 ; | |
28847 | PyObject * obj1 = 0 ; | |
28848 | PyObject * obj2 = 0 ; | |
28849 | PyObject * obj3 = 0 ; | |
28850 | PyObject * obj4 = 0 ; | |
28851 | PyObject * obj5 = 0 ; | |
28852 | PyObject * obj6 = 0 ; | |
28853 | char * kwnames[] = { | |
28854 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28855 | }; | |
28856 | ||
28857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28858 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28859 | if (!SWIG_IsOK(res1)) { | |
28860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28861 | } | |
28862 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
28863 | if (!SWIG_IsOK(res2)) { | |
28864 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
28865 | } | |
28866 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
28867 | { | |
28868 | arg3 = wxString_in_helper(obj2); | |
28869 | if (arg3 == NULL) SWIG_fail; | |
28870 | temp3 = true; | |
28871 | } | |
28872 | if (obj3) { | |
093d3ff1 | 28873 | { |
554f62e9 RD |
28874 | arg4 = &temp4; |
28875 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28876 | } |
554f62e9 RD |
28877 | } |
28878 | if (obj4) { | |
d55e5bfc | 28879 | { |
554f62e9 RD |
28880 | arg5 = &temp5; |
28881 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 28882 | } |
554f62e9 RD |
28883 | } |
28884 | if (obj5) { | |
28885 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28886 | if (!SWIG_IsOK(ecode6)) { | |
28887 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
28888 | } | |
28889 | arg6 = static_cast< long >(val6); | |
28890 | } | |
28891 | if (obj6) { | |
093d3ff1 | 28892 | { |
554f62e9 RD |
28893 | arg7 = wxString_in_helper(obj6); |
28894 | if (arg7 == NULL) SWIG_fail; | |
28895 | temp7 = true; | |
093d3ff1 | 28896 | } |
554f62e9 RD |
28897 | } |
28898 | { | |
28899 | if (!wxPyCheckForApp()) SWIG_fail; | |
28900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28901 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28902 | wxPyEndAllowThreads(__tstate); | |
28903 | if (PyErr_Occurred()) SWIG_fail; | |
28904 | } | |
28905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
28906 | { | |
28907 | if (temp3) | |
28908 | delete arg3; | |
28909 | } | |
28910 | { | |
28911 | if (temp7) | |
28912 | delete arg7; | |
28913 | } | |
28914 | return resultobj; | |
28915 | fail: | |
28916 | { | |
28917 | if (temp3) | |
28918 | delete arg3; | |
28919 | } | |
28920 | { | |
28921 | if (temp7) | |
28922 | delete arg7; | |
28923 | } | |
28924 | return NULL; | |
d55e5bfc RD |
28925 | } |
28926 | ||
28927 | ||
554f62e9 RD |
28928 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28929 | PyObject *resultobj = 0; | |
28930 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28931 | void *argp1 = 0 ; | |
28932 | int res1 = 0 ; | |
28933 | PyObject *swig_obj[1] ; | |
28934 | ||
28935 | if (!args) SWIG_fail; | |
28936 | swig_obj[0] = args; | |
28937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28938 | if (!SWIG_IsOK(res1)) { | |
28939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28940 | } | |
28941 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28942 | { | |
28943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28944 | (arg1)->Initialize(); | |
28945 | wxPyEndAllowThreads(__tstate); | |
28946 | if (PyErr_Occurred()) SWIG_fail; | |
28947 | } | |
28948 | resultobj = SWIG_Py_Void(); | |
28949 | return resultobj; | |
28950 | fail: | |
28951 | return NULL; | |
d55e5bfc RD |
28952 | } |
28953 | ||
28954 | ||
554f62e9 RD |
28955 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28956 | PyObject *resultobj = 0; | |
28957 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28958 | void *argp1 = 0 ; | |
28959 | int res1 = 0 ; | |
28960 | PyObject *swig_obj[1] ; | |
28961 | ||
28962 | if (!args) SWIG_fail; | |
28963 | swig_obj[0] = args; | |
28964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28965 | if (!SWIG_IsOK(res1)) { | |
28966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28967 | } | |
28968 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28969 | { | |
28970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28971 | (arg1)->CreateControlBar(); | |
28972 | wxPyEndAllowThreads(__tstate); | |
28973 | if (PyErr_Occurred()) SWIG_fail; | |
28974 | } | |
28975 | resultobj = SWIG_Py_Void(); | |
28976 | return resultobj; | |
28977 | fail: | |
28978 | return NULL; | |
d55e5bfc RD |
28979 | } |
28980 | ||
28981 | ||
554f62e9 RD |
28982 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28983 | PyObject *resultobj = 0; | |
28984 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28985 | void *argp1 = 0 ; | |
28986 | int res1 = 0 ; | |
28987 | PyObject *swig_obj[1] ; | |
28988 | ||
28989 | if (!args) SWIG_fail; | |
28990 | swig_obj[0] = args; | |
28991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28992 | if (!SWIG_IsOK(res1)) { | |
28993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28994 | } | |
28995 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28996 | { | |
28997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28998 | (arg1)->CreateCanvas(); | |
28999 | wxPyEndAllowThreads(__tstate); | |
29000 | if (PyErr_Occurred()) SWIG_fail; | |
29001 | } | |
29002 | resultobj = SWIG_Py_Void(); | |
29003 | return resultobj; | |
29004 | fail: | |
29005 | return NULL; | |
d55e5bfc RD |
29006 | } |
29007 | ||
29008 | ||
554f62e9 RD |
29009 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29010 | PyObject *resultobj = 0; | |
29011 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29012 | wxPreviewControlBar *result = 0 ; | |
29013 | void *argp1 = 0 ; | |
29014 | int res1 = 0 ; | |
29015 | PyObject *swig_obj[1] ; | |
29016 | ||
29017 | if (!args) SWIG_fail; | |
29018 | swig_obj[0] = args; | |
29019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29020 | if (!SWIG_IsOK(res1)) { | |
29021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
29022 | } | |
29023 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29024 | { | |
29025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29026 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
29027 | wxPyEndAllowThreads(__tstate); | |
29028 | if (PyErr_Occurred()) SWIG_fail; | |
29029 | } | |
29030 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29031 | return resultobj; | |
29032 | fail: | |
29033 | return NULL; | |
29034 | } | |
29035 | ||
29036 | ||
29037 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29038 | PyObject *obj; | |
29039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
29041 | return SWIG_Py_Void(); | |
29042 | } | |
29043 | ||
29044 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29045 | return SWIG_Python_InitShadowInstance(args); | |
29046 | } | |
29047 | ||
29048 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29049 | PyObject *resultobj = 0; | |
29050 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29051 | long arg2 ; | |
29052 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29053 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29054 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29055 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29056 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29057 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
29058 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
29059 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29060 | wxPreviewControlBar *result = 0 ; | |
29061 | void *argp1 = 0 ; | |
29062 | int res1 = 0 ; | |
29063 | long val2 ; | |
29064 | int ecode2 = 0 ; | |
29065 | void *argp3 = 0 ; | |
29066 | int res3 = 0 ; | |
29067 | wxPoint temp4 ; | |
29068 | wxSize temp5 ; | |
29069 | long val6 ; | |
29070 | int ecode6 = 0 ; | |
29071 | bool temp7 = false ; | |
29072 | PyObject * obj0 = 0 ; | |
29073 | PyObject * obj1 = 0 ; | |
29074 | PyObject * obj2 = 0 ; | |
29075 | PyObject * obj3 = 0 ; | |
29076 | PyObject * obj4 = 0 ; | |
29077 | PyObject * obj5 = 0 ; | |
29078 | PyObject * obj6 = 0 ; | |
29079 | char * kwnames[] = { | |
29080 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29081 | }; | |
29082 | ||
29083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29085 | if (!SWIG_IsOK(res1)) { | |
29086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29087 | } | |
29088 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29089 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29090 | if (!SWIG_IsOK(ecode2)) { | |
29091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
29092 | } | |
29093 | arg2 = static_cast< long >(val2); | |
29094 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29095 | if (!SWIG_IsOK(res3)) { | |
29096 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
29097 | } | |
29098 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
29099 | if (obj3) { | |
d55e5bfc | 29100 | { |
554f62e9 RD |
29101 | arg4 = &temp4; |
29102 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29103 | } | |
29104 | } | |
29105 | if (obj4) { | |
d55e5bfc | 29106 | { |
554f62e9 RD |
29107 | arg5 = &temp5; |
29108 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 29109 | } |
554f62e9 RD |
29110 | } |
29111 | if (obj5) { | |
29112 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29113 | if (!SWIG_IsOK(ecode6)) { | |
29114 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
29115 | } | |
29116 | arg6 = static_cast< long >(val6); | |
29117 | } | |
29118 | if (obj6) { | |
d55e5bfc | 29119 | { |
554f62e9 RD |
29120 | arg7 = wxString_in_helper(obj6); |
29121 | if (arg7 == NULL) SWIG_fail; | |
29122 | temp7 = true; | |
d55e5bfc | 29123 | } |
554f62e9 RD |
29124 | } |
29125 | { | |
29126 | if (!wxPyCheckForApp()) SWIG_fail; | |
29127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29128 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29129 | wxPyEndAllowThreads(__tstate); | |
29130 | if (PyErr_Occurred()) SWIG_fail; | |
29131 | } | |
29132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
29133 | { | |
29134 | if (temp7) | |
29135 | delete arg7; | |
29136 | } | |
29137 | return resultobj; | |
29138 | fail: | |
29139 | { | |
29140 | if (temp7) | |
29141 | delete arg7; | |
29142 | } | |
29143 | return NULL; | |
d55e5bfc RD |
29144 | } |
29145 | ||
29146 | ||
554f62e9 RD |
29147 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29148 | PyObject *resultobj = 0; | |
29149 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29150 | int result; | |
29151 | void *argp1 = 0 ; | |
29152 | int res1 = 0 ; | |
29153 | PyObject *swig_obj[1] ; | |
29154 | ||
29155 | if (!args) SWIG_fail; | |
29156 | swig_obj[0] = args; | |
29157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29158 | if (!SWIG_IsOK(res1)) { | |
29159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29160 | } | |
29161 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29162 | { | |
29163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29164 | result = (int)(arg1)->GetZoomControl(); | |
29165 | wxPyEndAllowThreads(__tstate); | |
29166 | if (PyErr_Occurred()) SWIG_fail; | |
29167 | } | |
29168 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29169 | return resultobj; | |
29170 | fail: | |
29171 | return NULL; | |
29172 | } | |
29173 | ||
29174 | ||
29175 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29176 | PyObject *resultobj = 0; | |
29177 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29178 | int arg2 ; | |
29179 | void *argp1 = 0 ; | |
29180 | int res1 = 0 ; | |
29181 | int val2 ; | |
29182 | int ecode2 = 0 ; | |
29183 | PyObject * obj0 = 0 ; | |
29184 | PyObject * obj1 = 0 ; | |
29185 | char * kwnames[] = { | |
29186 | (char *) "self",(char *) "zoom", NULL | |
29187 | }; | |
29188 | ||
29189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
29190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29191 | if (!SWIG_IsOK(res1)) { | |
29192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29193 | } | |
29194 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29195 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29196 | if (!SWIG_IsOK(ecode2)) { | |
29197 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
29198 | } | |
29199 | arg2 = static_cast< int >(val2); | |
29200 | { | |
29201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29202 | (arg1)->SetZoomControl(arg2); | |
29203 | wxPyEndAllowThreads(__tstate); | |
29204 | if (PyErr_Occurred()) SWIG_fail; | |
29205 | } | |
29206 | resultobj = SWIG_Py_Void(); | |
29207 | return resultobj; | |
29208 | fail: | |
29209 | return NULL; | |
d55e5bfc RD |
29210 | } |
29211 | ||
29212 | ||
554f62e9 RD |
29213 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29214 | PyObject *resultobj = 0; | |
29215 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29216 | wxPrintPreview *result = 0 ; | |
29217 | void *argp1 = 0 ; | |
29218 | int res1 = 0 ; | |
29219 | PyObject *swig_obj[1] ; | |
29220 | ||
29221 | if (!args) SWIG_fail; | |
29222 | swig_obj[0] = args; | |
29223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29224 | if (!SWIG_IsOK(res1)) { | |
29225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29226 | } | |
29227 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29228 | { | |
29229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29230 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
29231 | wxPyEndAllowThreads(__tstate); | |
29232 | if (PyErr_Occurred()) SWIG_fail; | |
29233 | } | |
29234 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29235 | return resultobj; | |
29236 | fail: | |
29237 | return NULL; | |
d55e5bfc RD |
29238 | } |
29239 | ||
29240 | ||
554f62e9 RD |
29241 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29242 | PyObject *resultobj = 0; | |
29243 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29244 | void *argp1 = 0 ; | |
29245 | int res1 = 0 ; | |
29246 | PyObject *swig_obj[1] ; | |
29247 | ||
29248 | if (!args) SWIG_fail; | |
29249 | swig_obj[0] = args; | |
29250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29251 | if (!SWIG_IsOK(res1)) { | |
29252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29253 | } | |
29254 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29255 | { | |
29256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29257 | (arg1)->OnNext(); | |
29258 | wxPyEndAllowThreads(__tstate); | |
29259 | if (PyErr_Occurred()) SWIG_fail; | |
29260 | } | |
29261 | resultobj = SWIG_Py_Void(); | |
29262 | return resultobj; | |
29263 | fail: | |
29264 | return NULL; | |
d55e5bfc RD |
29265 | } |
29266 | ||
29267 | ||
554f62e9 RD |
29268 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29269 | PyObject *resultobj = 0; | |
29270 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29271 | void *argp1 = 0 ; | |
29272 | int res1 = 0 ; | |
29273 | PyObject *swig_obj[1] ; | |
29274 | ||
29275 | if (!args) SWIG_fail; | |
29276 | swig_obj[0] = args; | |
29277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29278 | if (!SWIG_IsOK(res1)) { | |
29279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29280 | } | |
29281 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29282 | { | |
29283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29284 | (arg1)->OnPrevious(); | |
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
29288 | resultobj = SWIG_Py_Void(); | |
29289 | return resultobj; | |
29290 | fail: | |
29291 | return NULL; | |
d55e5bfc RD |
29292 | } |
29293 | ||
29294 | ||
554f62e9 RD |
29295 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29296 | PyObject *resultobj = 0; | |
29297 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29298 | void *argp1 = 0 ; | |
29299 | int res1 = 0 ; | |
29300 | PyObject *swig_obj[1] ; | |
29301 | ||
29302 | if (!args) SWIG_fail; | |
29303 | swig_obj[0] = args; | |
29304 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29305 | if (!SWIG_IsOK(res1)) { | |
29306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29307 | } | |
29308 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29309 | { | |
29310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29311 | (arg1)->OnFirst(); | |
29312 | wxPyEndAllowThreads(__tstate); | |
29313 | if (PyErr_Occurred()) SWIG_fail; | |
29314 | } | |
29315 | resultobj = SWIG_Py_Void(); | |
29316 | return resultobj; | |
29317 | fail: | |
29318 | return NULL; | |
d55e5bfc RD |
29319 | } |
29320 | ||
29321 | ||
554f62e9 RD |
29322 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29323 | PyObject *resultobj = 0; | |
29324 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29325 | void *argp1 = 0 ; | |
29326 | int res1 = 0 ; | |
29327 | PyObject *swig_obj[1] ; | |
29328 | ||
29329 | if (!args) SWIG_fail; | |
29330 | swig_obj[0] = args; | |
29331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29332 | if (!SWIG_IsOK(res1)) { | |
29333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29334 | } | |
29335 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29336 | { | |
29337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29338 | (arg1)->OnLast(); | |
29339 | wxPyEndAllowThreads(__tstate); | |
29340 | if (PyErr_Occurred()) SWIG_fail; | |
29341 | } | |
29342 | resultobj = SWIG_Py_Void(); | |
29343 | return resultobj; | |
29344 | fail: | |
29345 | return NULL; | |
d55e5bfc RD |
29346 | } |
29347 | ||
29348 | ||
554f62e9 RD |
29349 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29350 | PyObject *resultobj = 0; | |
29351 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29352 | void *argp1 = 0 ; | |
29353 | int res1 = 0 ; | |
29354 | PyObject *swig_obj[1] ; | |
29355 | ||
29356 | if (!args) SWIG_fail; | |
29357 | swig_obj[0] = args; | |
29358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29359 | if (!SWIG_IsOK(res1)) { | |
29360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29361 | } | |
29362 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29363 | { | |
29364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29365 | (arg1)->OnGoto(); | |
29366 | wxPyEndAllowThreads(__tstate); | |
29367 | if (PyErr_Occurred()) SWIG_fail; | |
29368 | } | |
29369 | resultobj = SWIG_Py_Void(); | |
29370 | return resultobj; | |
29371 | fail: | |
29372 | return NULL; | |
d55e5bfc RD |
29373 | } |
29374 | ||
29375 | ||
554f62e9 RD |
29376 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29377 | PyObject *obj; | |
29378 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29379 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
29380 | return SWIG_Py_Void(); | |
d55e5bfc RD |
29381 | } |
29382 | ||
554f62e9 RD |
29383 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29384 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
29385 | } |
29386 | ||
554f62e9 RD |
29387 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29388 | PyObject *resultobj = 0; | |
29389 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29390 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29391 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29392 | wxPrintPreview *result = 0 ; | |
29393 | int res1 = 0 ; | |
29394 | int res2 = 0 ; | |
29395 | void *argp3 = 0 ; | |
29396 | int res3 = 0 ; | |
29397 | ||
29398 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29399 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29400 | if (!SWIG_IsOK(res1)) { | |
29401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29402 | } | |
29403 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29404 | if (!SWIG_IsOK(res2)) { | |
29405 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29406 | } | |
29407 | if (swig_obj[2]) { | |
29408 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29409 | if (!SWIG_IsOK(res3)) { | |
29410 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
29411 | } | |
29412 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); | |
29413 | } | |
29414 | { | |
29415 | if (!wxPyCheckForApp()) SWIG_fail; | |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29417 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29418 | wxPyEndAllowThreads(__tstate); | |
29419 | if (PyErr_Occurred()) SWIG_fail; | |
29420 | } | |
29421 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29422 | return resultobj; | |
29423 | fail: | |
29424 | return NULL; | |
29425 | } | |
29426 | ||
29427 | ||
29428 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29429 | PyObject *resultobj = 0; | |
29430 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29431 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29432 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29433 | wxPrintPreview *result = 0 ; | |
29434 | int res1 = 0 ; | |
29435 | int res2 = 0 ; | |
29436 | void *argp3 = 0 ; | |
29437 | int res3 = 0 ; | |
29438 | ||
29439 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29440 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29441 | if (!SWIG_IsOK(res1)) { | |
29442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29443 | } | |
29444 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29445 | if (!SWIG_IsOK(res2)) { | |
29446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29447 | } | |
29448 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29449 | if (!SWIG_IsOK(res3)) { | |
29450 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29451 | } | |
29452 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29453 | { | |
29454 | if (!wxPyCheckForApp()) SWIG_fail; | |
29455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29456 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29457 | wxPyEndAllowThreads(__tstate); | |
29458 | if (PyErr_Occurred()) SWIG_fail; | |
29459 | } | |
29460 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29461 | return resultobj; | |
29462 | fail: | |
29463 | return NULL; | |
d55e5bfc RD |
29464 | } |
29465 | ||
29466 | ||
554f62e9 RD |
29467 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
29468 | int argc; | |
29469 | PyObject *argv[4]; | |
29470 | ||
29471 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
29472 | --argc; | |
29473 | if ((argc >= 2) && (argc <= 3)) { | |
29474 | int _v = 0; | |
29475 | if (argc > 2) { | |
29476 | { | |
29477 | void *vptr = 0; | |
29478 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29479 | _v = SWIG_CheckState(res); | |
29480 | } | |
29481 | if (!_v) goto check_1; | |
d55e5bfc | 29482 | } |
554f62e9 RD |
29483 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
29484 | } | |
29485 | check_1: | |
29486 | ||
29487 | if (argc == 3) { | |
29488 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
29489 | } | |
29490 | ||
29491 | fail: | |
29492 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
29493 | return NULL; | |
d55e5bfc RD |
29494 | } |
29495 | ||
29496 | ||
554f62e9 RD |
29497 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29498 | PyObject *resultobj = 0; | |
29499 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29500 | void *argp1 = 0 ; | |
29501 | int res1 = 0 ; | |
29502 | PyObject *swig_obj[1] ; | |
29503 | ||
29504 | if (!args) SWIG_fail; | |
29505 | swig_obj[0] = args; | |
29506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29507 | if (!SWIG_IsOK(res1)) { | |
29508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29509 | } | |
29510 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | delete arg1; | |
caef1a4d | 29514 | |
554f62e9 RD |
29515 | wxPyEndAllowThreads(__tstate); |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
29518 | resultobj = SWIG_Py_Void(); | |
29519 | return resultobj; | |
29520 | fail: | |
29521 | return NULL; | |
29522 | } | |
29523 | ||
29524 | ||
29525 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29526 | PyObject *resultobj = 0; | |
29527 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29528 | int arg2 ; | |
29529 | bool result; | |
29530 | void *argp1 = 0 ; | |
29531 | int res1 = 0 ; | |
29532 | int val2 ; | |
29533 | int ecode2 = 0 ; | |
29534 | PyObject * obj0 = 0 ; | |
29535 | PyObject * obj1 = 0 ; | |
29536 | char * kwnames[] = { | |
29537 | (char *) "self",(char *) "pageNum", NULL | |
29538 | }; | |
29539 | ||
29540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) 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 '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29544 | } | |
29545 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29546 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29547 | if (!SWIG_IsOK(ecode2)) { | |
29548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
29549 | } | |
29550 | arg2 = static_cast< int >(val2); | |
29551 | { | |
29552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29553 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | { | |
29558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29559 | } | |
29560 | return resultobj; | |
29561 | fail: | |
29562 | return NULL; | |
caef1a4d RD |
29563 | } |
29564 | ||
29565 | ||
554f62e9 RD |
29566 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29567 | PyObject *resultobj = 0; | |
29568 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29569 | int result; | |
29570 | void *argp1 = 0 ; | |
29571 | int res1 = 0 ; | |
29572 | PyObject *swig_obj[1] ; | |
29573 | ||
29574 | if (!args) SWIG_fail; | |
29575 | swig_obj[0] = args; | |
29576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29577 | if (!SWIG_IsOK(res1)) { | |
29578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29579 | } | |
29580 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29581 | { | |
29582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29583 | result = (int)(arg1)->GetCurrentPage(); | |
29584 | wxPyEndAllowThreads(__tstate); | |
29585 | if (PyErr_Occurred()) SWIG_fail; | |
29586 | } | |
29587 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29588 | return resultobj; | |
29589 | fail: | |
29590 | return NULL; | |
29591 | } | |
29592 | ||
29593 | ||
29594 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29595 | PyObject *resultobj = 0; | |
29596 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29597 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29598 | void *argp1 = 0 ; | |
29599 | int res1 = 0 ; | |
29600 | int res2 = 0 ; | |
29601 | PyObject * obj0 = 0 ; | |
29602 | PyObject * obj1 = 0 ; | |
29603 | char * kwnames[] = { | |
29604 | (char *) "self",(char *) "printout", NULL | |
29605 | }; | |
29606 | ||
29607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
29608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29609 | if (!SWIG_IsOK(res1)) { | |
29610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29611 | } | |
29612 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29613 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29614 | if (!SWIG_IsOK(res2)) { | |
29615 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29616 | } | |
29617 | { | |
29618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29619 | (arg1)->SetPrintout(arg2); | |
29620 | wxPyEndAllowThreads(__tstate); | |
29621 | if (PyErr_Occurred()) SWIG_fail; | |
29622 | } | |
29623 | resultobj = SWIG_Py_Void(); | |
29624 | return resultobj; | |
29625 | fail: | |
29626 | return NULL; | |
8d38bd1d RD |
29627 | } |
29628 | ||
29629 | ||
554f62e9 RD |
29630 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29631 | PyObject *resultobj = 0; | |
29632 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29633 | wxPyPrintout *result = 0 ; | |
29634 | void *argp1 = 0 ; | |
29635 | int res1 = 0 ; | |
29636 | PyObject *swig_obj[1] ; | |
29637 | ||
29638 | if (!args) SWIG_fail; | |
29639 | swig_obj[0] = args; | |
29640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29641 | if (!SWIG_IsOK(res1)) { | |
29642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29643 | } | |
29644 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29645 | { | |
29646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29647 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
29648 | wxPyEndAllowThreads(__tstate); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | } | |
29651 | { | |
29652 | resultobj = wxPyMake_wxObject(result, 0); | |
29653 | } | |
29654 | return resultobj; | |
29655 | fail: | |
29656 | return NULL; | |
d55e5bfc RD |
29657 | } |
29658 | ||
29659 | ||
554f62e9 RD |
29660 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29661 | PyObject *resultobj = 0; | |
29662 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29663 | wxPyPrintout *result = 0 ; | |
29664 | void *argp1 = 0 ; | |
29665 | int res1 = 0 ; | |
29666 | PyObject *swig_obj[1] ; | |
29667 | ||
29668 | if (!args) SWIG_fail; | |
29669 | swig_obj[0] = args; | |
29670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29671 | if (!SWIG_IsOK(res1)) { | |
29672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29673 | } | |
29674 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29675 | { | |
29676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29677 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
29678 | wxPyEndAllowThreads(__tstate); | |
29679 | if (PyErr_Occurred()) SWIG_fail; | |
29680 | } | |
29681 | { | |
29682 | resultobj = wxPyMake_wxObject(result, 0); | |
29683 | } | |
29684 | return resultobj; | |
29685 | fail: | |
29686 | return NULL; | |
29687 | } | |
29688 | ||
29689 | ||
29690 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29691 | PyObject *resultobj = 0; | |
29692 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29693 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29694 | void *argp1 = 0 ; | |
29695 | int res1 = 0 ; | |
29696 | void *argp2 = 0 ; | |
29697 | int res2 = 0 ; | |
29698 | PyObject * obj0 = 0 ; | |
29699 | PyObject * obj1 = 0 ; | |
29700 | char * kwnames[] = { | |
29701 | (char *) "self",(char *) "frame", NULL | |
29702 | }; | |
29703 | ||
29704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
29705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29706 | if (!SWIG_IsOK(res1)) { | |
29707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29708 | } | |
29709 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29710 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29711 | if (!SWIG_IsOK(res2)) { | |
29712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29713 | } | |
29714 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29715 | { | |
29716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29717 | (arg1)->SetFrame(arg2); | |
29718 | wxPyEndAllowThreads(__tstate); | |
29719 | if (PyErr_Occurred()) SWIG_fail; | |
29720 | } | |
29721 | resultobj = SWIG_Py_Void(); | |
29722 | return resultobj; | |
29723 | fail: | |
29724 | return NULL; | |
29725 | } | |
29726 | ||
29727 | ||
29728 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29729 | PyObject *resultobj = 0; | |
29730 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29731 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29732 | void *argp1 = 0 ; | |
29733 | int res1 = 0 ; | |
29734 | void *argp2 = 0 ; | |
29735 | int res2 = 0 ; | |
29736 | PyObject * obj0 = 0 ; | |
29737 | PyObject * obj1 = 0 ; | |
29738 | char * kwnames[] = { | |
29739 | (char *) "self",(char *) "canvas", NULL | |
29740 | }; | |
29741 | ||
29742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29744 | if (!SWIG_IsOK(res1)) { | |
29745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29746 | } | |
29747 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29748 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29749 | if (!SWIG_IsOK(res2)) { | |
29750 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29751 | } | |
29752 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29753 | { | |
29754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29755 | (arg1)->SetCanvas(arg2); | |
29756 | wxPyEndAllowThreads(__tstate); | |
29757 | if (PyErr_Occurred()) SWIG_fail; | |
29758 | } | |
29759 | resultobj = SWIG_Py_Void(); | |
29760 | return resultobj; | |
29761 | fail: | |
29762 | return NULL; | |
d55e5bfc RD |
29763 | } |
29764 | ||
29765 | ||
554f62e9 RD |
29766 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29767 | PyObject *resultobj = 0; | |
29768 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29769 | wxFrame *result = 0 ; | |
29770 | void *argp1 = 0 ; | |
29771 | int res1 = 0 ; | |
29772 | PyObject *swig_obj[1] ; | |
29773 | ||
29774 | if (!args) SWIG_fail; | |
29775 | swig_obj[0] = args; | |
29776 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29777 | if (!SWIG_IsOK(res1)) { | |
29778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29779 | } | |
29780 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29781 | { | |
29782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29783 | result = (wxFrame *)(arg1)->GetFrame(); | |
29784 | wxPyEndAllowThreads(__tstate); | |
29785 | if (PyErr_Occurred()) SWIG_fail; | |
29786 | } | |
29787 | { | |
29788 | resultobj = wxPyMake_wxObject(result, 0); | |
29789 | } | |
29790 | return resultobj; | |
29791 | fail: | |
29792 | return NULL; | |
d55e5bfc RD |
29793 | } |
29794 | ||
29795 | ||
554f62e9 RD |
29796 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29797 | PyObject *resultobj = 0; | |
29798 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29799 | wxPreviewCanvas *result = 0 ; | |
29800 | void *argp1 = 0 ; | |
29801 | int res1 = 0 ; | |
29802 | PyObject *swig_obj[1] ; | |
29803 | ||
29804 | if (!args) SWIG_fail; | |
29805 | swig_obj[0] = args; | |
29806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29807 | if (!SWIG_IsOK(res1)) { | |
29808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29809 | } | |
29810 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29811 | { | |
29812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29813 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
29814 | wxPyEndAllowThreads(__tstate); | |
29815 | if (PyErr_Occurred()) SWIG_fail; | |
29816 | } | |
29817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29818 | return resultobj; | |
29819 | fail: | |
29820 | return NULL; | |
29821 | } | |
29822 | ||
29823 | ||
29824 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29825 | PyObject *resultobj = 0; | |
29826 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29827 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29828 | wxDC *arg3 = 0 ; | |
29829 | bool result; | |
29830 | void *argp1 = 0 ; | |
29831 | int res1 = 0 ; | |
29832 | void *argp2 = 0 ; | |
29833 | int res2 = 0 ; | |
29834 | void *argp3 = 0 ; | |
29835 | int res3 = 0 ; | |
29836 | PyObject * obj0 = 0 ; | |
29837 | PyObject * obj1 = 0 ; | |
29838 | PyObject * obj2 = 0 ; | |
29839 | char * kwnames[] = { | |
29840 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29841 | }; | |
29842 | ||
29843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29845 | if (!SWIG_IsOK(res1)) { | |
29846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29847 | } | |
29848 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29849 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29850 | if (!SWIG_IsOK(res2)) { | |
29851 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29852 | } | |
29853 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29854 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29855 | if (!SWIG_IsOK(res3)) { | |
29856 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29857 | } | |
29858 | if (!argp3) { | |
29859 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29860 | } | |
29861 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29862 | { | |
29863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29864 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
29865 | wxPyEndAllowThreads(__tstate); | |
29866 | if (PyErr_Occurred()) SWIG_fail; | |
29867 | } | |
29868 | { | |
29869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29870 | } | |
29871 | return resultobj; | |
29872 | fail: | |
29873 | return NULL; | |
29874 | } | |
29875 | ||
29876 | ||
29877 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29878 | PyObject *resultobj = 0; | |
29879 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29880 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29881 | wxDC *arg3 = 0 ; | |
29882 | bool result; | |
29883 | void *argp1 = 0 ; | |
29884 | int res1 = 0 ; | |
29885 | void *argp2 = 0 ; | |
29886 | int res2 = 0 ; | |
29887 | void *argp3 = 0 ; | |
29888 | int res3 = 0 ; | |
29889 | PyObject * obj0 = 0 ; | |
29890 | PyObject * obj1 = 0 ; | |
29891 | PyObject * obj2 = 0 ; | |
29892 | char * kwnames[] = { | |
29893 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29894 | }; | |
29895 | ||
29896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29898 | if (!SWIG_IsOK(res1)) { | |
29899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29900 | } | |
29901 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29902 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29903 | if (!SWIG_IsOK(res2)) { | |
29904 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29905 | } | |
29906 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29907 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29908 | if (!SWIG_IsOK(res3)) { | |
29909 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29910 | } | |
29911 | if (!argp3) { | |
29912 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29913 | } | |
29914 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29915 | { | |
29916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29917 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
29918 | wxPyEndAllowThreads(__tstate); | |
29919 | if (PyErr_Occurred()) SWIG_fail; | |
29920 | } | |
29921 | { | |
29922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29923 | } | |
29924 | return resultobj; | |
29925 | fail: | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
29930 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29931 | PyObject *resultobj = 0; | |
29932 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29933 | int arg2 ; | |
29934 | bool result; | |
29935 | void *argp1 = 0 ; | |
29936 | int res1 = 0 ; | |
29937 | int val2 ; | |
29938 | int ecode2 = 0 ; | |
29939 | PyObject * obj0 = 0 ; | |
29940 | PyObject * obj1 = 0 ; | |
29941 | char * kwnames[] = { | |
29942 | (char *) "self",(char *) "pageNum", NULL | |
29943 | }; | |
29944 | ||
29945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29947 | if (!SWIG_IsOK(res1)) { | |
29948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29949 | } | |
29950 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29951 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29952 | if (!SWIG_IsOK(ecode2)) { | |
29953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
29954 | } | |
29955 | arg2 = static_cast< int >(val2); | |
29956 | { | |
29957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29958 | result = (bool)(arg1)->RenderPage(arg2); | |
29959 | wxPyEndAllowThreads(__tstate); | |
29960 | if (PyErr_Occurred()) SWIG_fail; | |
29961 | } | |
29962 | { | |
29963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29964 | } | |
29965 | return resultobj; | |
29966 | fail: | |
29967 | return NULL; | |
29968 | } | |
29969 | ||
29970 | ||
29971 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29972 | PyObject *resultobj = 0; | |
29973 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29974 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29975 | void *argp1 = 0 ; | |
29976 | int res1 = 0 ; | |
29977 | void *argp2 = 0 ; | |
29978 | int res2 = 0 ; | |
29979 | PyObject * obj0 = 0 ; | |
29980 | PyObject * obj1 = 0 ; | |
29981 | char * kwnames[] = { | |
29982 | (char *) "self",(char *) "canvas", NULL | |
29983 | }; | |
29984 | ||
29985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
29986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29987 | if (!SWIG_IsOK(res1)) { | |
29988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29989 | } | |
29990 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29991 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29992 | if (!SWIG_IsOK(res2)) { | |
29993 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29994 | } | |
29995 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29996 | { | |
29997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29998 | (arg1)->AdjustScrollbars(arg2); | |
29999 | wxPyEndAllowThreads(__tstate); | |
30000 | if (PyErr_Occurred()) SWIG_fail; | |
30001 | } | |
30002 | resultobj = SWIG_Py_Void(); | |
30003 | return resultobj; | |
30004 | fail: | |
30005 | return NULL; | |
caef1a4d RD |
30006 | } |
30007 | ||
30008 | ||
554f62e9 RD |
30009 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30010 | PyObject *resultobj = 0; | |
30011 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30012 | wxPrintDialogData *result = 0 ; | |
30013 | void *argp1 = 0 ; | |
30014 | int res1 = 0 ; | |
30015 | PyObject *swig_obj[1] ; | |
30016 | ||
30017 | if (!args) SWIG_fail; | |
30018 | swig_obj[0] = args; | |
30019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30020 | if (!SWIG_IsOK(res1)) { | |
30021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30022 | } | |
30023 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30024 | { | |
30025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
60d5fcc1 | 30026 | { |
554f62e9 RD |
30027 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
30028 | result = (wxPrintDialogData *) &_result_ref; | |
60d5fcc1 | 30029 | } |
554f62e9 RD |
30030 | wxPyEndAllowThreads(__tstate); |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30034 | return resultobj; | |
30035 | fail: | |
30036 | return NULL; | |
30037 | } | |
30038 | ||
30039 | ||
30040 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30041 | PyObject *resultobj = 0; | |
30042 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30043 | int arg2 ; | |
30044 | void *argp1 = 0 ; | |
30045 | int res1 = 0 ; | |
30046 | int val2 ; | |
30047 | int ecode2 = 0 ; | |
30048 | PyObject * obj0 = 0 ; | |
30049 | PyObject * obj1 = 0 ; | |
30050 | char * kwnames[] = { | |
30051 | (char *) "self",(char *) "percent", NULL | |
30052 | }; | |
30053 | ||
30054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
30055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30056 | if (!SWIG_IsOK(res1)) { | |
30057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30058 | } | |
30059 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30060 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30061 | if (!SWIG_IsOK(ecode2)) { | |
30062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
30063 | } | |
30064 | arg2 = static_cast< int >(val2); | |
30065 | { | |
30066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30067 | (arg1)->SetZoom(arg2); | |
30068 | wxPyEndAllowThreads(__tstate); | |
30069 | if (PyErr_Occurred()) SWIG_fail; | |
30070 | } | |
30071 | resultobj = SWIG_Py_Void(); | |
30072 | return resultobj; | |
30073 | fail: | |
30074 | return NULL; | |
60d5fcc1 RD |
30075 | } |
30076 | ||
30077 | ||
554f62e9 RD |
30078 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30079 | PyObject *resultobj = 0; | |
30080 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30081 | int result; | |
30082 | void *argp1 = 0 ; | |
30083 | int res1 = 0 ; | |
30084 | PyObject *swig_obj[1] ; | |
30085 | ||
30086 | if (!args) SWIG_fail; | |
30087 | swig_obj[0] = args; | |
30088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30089 | if (!SWIG_IsOK(res1)) { | |
30090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30091 | } | |
30092 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30093 | { | |
30094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30095 | result = (int)(arg1)->GetZoom(); | |
30096 | wxPyEndAllowThreads(__tstate); | |
30097 | if (PyErr_Occurred()) SWIG_fail; | |
30098 | } | |
30099 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | return NULL; | |
d55e5bfc RD |
30103 | } |
30104 | ||
30105 | ||
554f62e9 RD |
30106 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30107 | PyObject *resultobj = 0; | |
30108 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30109 | int result; | |
30110 | void *argp1 = 0 ; | |
30111 | int res1 = 0 ; | |
30112 | PyObject *swig_obj[1] ; | |
30113 | ||
30114 | if (!args) SWIG_fail; | |
30115 | swig_obj[0] = args; | |
30116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30117 | if (!SWIG_IsOK(res1)) { | |
30118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30119 | } | |
30120 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30121 | { | |
30122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30123 | result = (int)(arg1)->GetMaxPage(); | |
30124 | wxPyEndAllowThreads(__tstate); | |
30125 | if (PyErr_Occurred()) SWIG_fail; | |
30126 | } | |
30127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30128 | return resultobj; | |
30129 | fail: | |
30130 | return NULL; | |
d55e5bfc RD |
30131 | } |
30132 | ||
30133 | ||
554f62e9 RD |
30134 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30135 | PyObject *resultobj = 0; | |
30136 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30137 | int result; | |
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_wxPrintPreview, 0 | 0 ); | |
30145 | if (!SWIG_IsOK(res1)) { | |
30146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30147 | } | |
30148 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30149 | { | |
30150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30151 | result = (int)(arg1)->GetMinPage(); | |
30152 | wxPyEndAllowThreads(__tstate); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | } | |
30155 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30156 | return resultobj; | |
30157 | fail: | |
30158 | return NULL; | |
d55e5bfc RD |
30159 | } |
30160 | ||
30161 | ||
554f62e9 RD |
30162 | SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30163 | PyObject *resultobj = 0; | |
30164 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30165 | bool result; | |
30166 | void *argp1 = 0 ; | |
30167 | int res1 = 0 ; | |
30168 | PyObject *swig_obj[1] ; | |
30169 | ||
30170 | if (!args) SWIG_fail; | |
30171 | swig_obj[0] = args; | |
30172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30173 | if (!SWIG_IsOK(res1)) { | |
30174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Ok" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30175 | } | |
30176 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30177 | { | |
30178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30179 | result = (bool)(arg1)->Ok(); | |
30180 | wxPyEndAllowThreads(__tstate); | |
30181 | if (PyErr_Occurred()) SWIG_fail; | |
30182 | } | |
30183 | { | |
30184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30185 | } | |
30186 | return resultobj; | |
30187 | fail: | |
30188 | return NULL; | |
30189 | } | |
30190 | ||
30191 | ||
30192 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30193 | PyObject *resultobj = 0; | |
30194 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30195 | bool arg2 ; | |
30196 | void *argp1 = 0 ; | |
30197 | int res1 = 0 ; | |
30198 | bool val2 ; | |
30199 | int ecode2 = 0 ; | |
30200 | PyObject * obj0 = 0 ; | |
30201 | PyObject * obj1 = 0 ; | |
30202 | char * kwnames[] = { | |
30203 | (char *) "self",(char *) "ok", NULL | |
30204 | }; | |
30205 | ||
30206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
30207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30208 | if (!SWIG_IsOK(res1)) { | |
30209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30210 | } | |
30211 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30212 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30213 | if (!SWIG_IsOK(ecode2)) { | |
30214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
30215 | } | |
30216 | arg2 = static_cast< bool >(val2); | |
30217 | { | |
30218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30219 | (arg1)->SetOk(arg2); | |
30220 | wxPyEndAllowThreads(__tstate); | |
30221 | if (PyErr_Occurred()) SWIG_fail; | |
30222 | } | |
30223 | resultobj = SWIG_Py_Void(); | |
30224 | return resultobj; | |
30225 | fail: | |
30226 | return NULL; | |
30227 | } | |
30228 | ||
30229 | ||
30230 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30231 | PyObject *resultobj = 0; | |
30232 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30233 | bool arg2 ; | |
30234 | bool result; | |
30235 | void *argp1 = 0 ; | |
30236 | int res1 = 0 ; | |
30237 | bool val2 ; | |
30238 | int ecode2 = 0 ; | |
30239 | PyObject * obj0 = 0 ; | |
30240 | PyObject * obj1 = 0 ; | |
30241 | char * kwnames[] = { | |
30242 | (char *) "self",(char *) "interactive", NULL | |
30243 | }; | |
30244 | ||
30245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
30246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30247 | if (!SWIG_IsOK(res1)) { | |
30248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30249 | } | |
30250 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30251 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30252 | if (!SWIG_IsOK(ecode2)) { | |
30253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
30254 | } | |
30255 | arg2 = static_cast< bool >(val2); | |
30256 | { | |
30257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30258 | result = (bool)(arg1)->Print(arg2); | |
30259 | wxPyEndAllowThreads(__tstate); | |
30260 | if (PyErr_Occurred()) SWIG_fail; | |
30261 | } | |
30262 | { | |
30263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30264 | } | |
30265 | return resultobj; | |
30266 | fail: | |
30267 | return NULL; | |
d55e5bfc RD |
30268 | } |
30269 | ||
30270 | ||
554f62e9 RD |
30271 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30272 | PyObject *resultobj = 0; | |
30273 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30274 | void *argp1 = 0 ; | |
30275 | int res1 = 0 ; | |
30276 | PyObject *swig_obj[1] ; | |
30277 | ||
30278 | if (!args) SWIG_fail; | |
30279 | swig_obj[0] = args; | |
30280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30281 | if (!SWIG_IsOK(res1)) { | |
30282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30283 | } | |
30284 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30285 | { | |
30286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30287 | (arg1)->DetermineScaling(); | |
30288 | wxPyEndAllowThreads(__tstate); | |
30289 | if (PyErr_Occurred()) SWIG_fail; | |
30290 | } | |
30291 | resultobj = SWIG_Py_Void(); | |
30292 | return resultobj; | |
30293 | fail: | |
30294 | return NULL; | |
d55e5bfc RD |
30295 | } |
30296 | ||
30297 | ||
554f62e9 RD |
30298 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30299 | PyObject *obj; | |
30300 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30301 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
30302 | return SWIG_Py_Void(); | |
d55e5bfc RD |
30303 | } |
30304 | ||
554f62e9 RD |
30305 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30306 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
30307 | } |
30308 | ||
554f62e9 RD |
30309 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30310 | PyObject *resultobj = 0; | |
30311 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30312 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30313 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
30314 | wxPyPrintPreview *result = 0 ; | |
30315 | int res1 = 0 ; | |
30316 | int res2 = 0 ; | |
30317 | void *argp3 = 0 ; | |
30318 | int res3 = 0 ; | |
30319 | ||
30320 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
30321 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30322 | if (!SWIG_IsOK(res1)) { | |
30323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30324 | } | |
30325 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30326 | if (!SWIG_IsOK(res2)) { | |
30327 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30328 | } | |
30329 | if (swig_obj[2]) { | |
30330 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30331 | if (!SWIG_IsOK(res3)) { | |
30332 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 30333 | } |
554f62e9 RD |
30334 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
30335 | } | |
30336 | { | |
30337 | if (!wxPyCheckForApp()) SWIG_fail; | |
30338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30339 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30344 | return resultobj; | |
30345 | fail: | |
30346 | return NULL; | |
30347 | } | |
30348 | ||
30349 | ||
30350 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30351 | PyObject *resultobj = 0; | |
30352 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30353 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30354 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
30355 | wxPyPrintPreview *result = 0 ; | |
30356 | int res1 = 0 ; | |
30357 | int res2 = 0 ; | |
30358 | void *argp3 = 0 ; | |
30359 | int res3 = 0 ; | |
30360 | ||
30361 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
30362 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30363 | if (!SWIG_IsOK(res1)) { | |
30364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30365 | } | |
30366 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30367 | if (!SWIG_IsOK(res2)) { | |
30368 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30369 | } | |
30370 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
30371 | if (!SWIG_IsOK(res3)) { | |
30372 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
30373 | } | |
30374 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
30375 | { | |
30376 | if (!wxPyCheckForApp()) SWIG_fail; | |
30377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30378 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30379 | wxPyEndAllowThreads(__tstate); | |
30380 | if (PyErr_Occurred()) SWIG_fail; | |
30381 | } | |
30382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30383 | return resultobj; | |
30384 | fail: | |
30385 | return NULL; | |
d55e5bfc RD |
30386 | } |
30387 | ||
30388 | ||
554f62e9 RD |
30389 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
30390 | int argc; | |
30391 | PyObject *argv[4]; | |
30392 | ||
30393 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
30394 | --argc; | |
30395 | if ((argc >= 2) && (argc <= 3)) { | |
30396 | int _v = 0; | |
30397 | if (argc > 2) { | |
30398 | { | |
30399 | void *vptr = 0; | |
30400 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
30401 | _v = SWIG_CheckState(res); | |
30402 | } | |
30403 | if (!_v) goto check_1; | |
d55e5bfc | 30404 | } |
554f62e9 RD |
30405 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); |
30406 | } | |
30407 | check_1: | |
30408 | ||
30409 | if (argc == 3) { | |
30410 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
30411 | } | |
30412 | ||
30413 | fail: | |
30414 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
30415 | return NULL; | |
30416 | } | |
30417 | ||
30418 | ||
30419 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30420 | PyObject *resultobj = 0; | |
30421 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
30422 | PyObject *arg2 = (PyObject *) 0 ; | |
30423 | PyObject *arg3 = (PyObject *) 0 ; | |
30424 | void *argp1 = 0 ; | |
30425 | int res1 = 0 ; | |
30426 | PyObject * obj0 = 0 ; | |
30427 | PyObject * obj1 = 0 ; | |
30428 | PyObject * obj2 = 0 ; | |
30429 | char * kwnames[] = { | |
30430 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30431 | }; | |
30432 | ||
30433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
30435 | if (!SWIG_IsOK(res1)) { | |
30436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
30437 | } | |
30438 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
30439 | arg2 = obj1; | |
30440 | arg3 = obj2; | |
30441 | { | |
30442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30443 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30444 | wxPyEndAllowThreads(__tstate); | |
30445 | if (PyErr_Occurred()) SWIG_fail; | |
30446 | } | |
30447 | resultobj = SWIG_Py_Void(); | |
30448 | return resultobj; | |
30449 | fail: | |
30450 | return NULL; | |
30451 | } | |
30452 | ||
30453 | ||
30454 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30455 | PyObject *obj; | |
30456 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30457 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
30458 | return SWIG_Py_Void(); | |
30459 | } | |
30460 | ||
30461 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30462 | return SWIG_Python_InitShadowInstance(args); | |
30463 | } | |
30464 | ||
30465 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30466 | PyObject *resultobj = 0; | |
30467 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30468 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30469 | wxString *arg3 = 0 ; | |
30470 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30471 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30472 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30473 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30474 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
30475 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
30476 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30477 | wxPyPreviewFrame *result = 0 ; | |
30478 | void *argp1 = 0 ; | |
30479 | int res1 = 0 ; | |
30480 | void *argp2 = 0 ; | |
30481 | int res2 = 0 ; | |
30482 | bool temp3 = false ; | |
30483 | wxPoint temp4 ; | |
30484 | wxSize temp5 ; | |
30485 | long val6 ; | |
30486 | int ecode6 = 0 ; | |
30487 | bool temp7 = false ; | |
30488 | PyObject * obj0 = 0 ; | |
30489 | PyObject * obj1 = 0 ; | |
30490 | PyObject * obj2 = 0 ; | |
30491 | PyObject * obj3 = 0 ; | |
30492 | PyObject * obj4 = 0 ; | |
30493 | PyObject * obj5 = 0 ; | |
30494 | PyObject * obj6 = 0 ; | |
30495 | char * kwnames[] = { | |
30496 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30497 | }; | |
30498 | ||
30499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30501 | if (!SWIG_IsOK(res1)) { | |
30502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30503 | } | |
30504 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30505 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30506 | if (!SWIG_IsOK(res2)) { | |
30507 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30508 | } | |
30509 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30510 | { | |
30511 | arg3 = wxString_in_helper(obj2); | |
30512 | if (arg3 == NULL) SWIG_fail; | |
30513 | temp3 = true; | |
30514 | } | |
30515 | if (obj3) { | |
d55e5bfc | 30516 | { |
554f62e9 RD |
30517 | arg4 = &temp4; |
30518 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30519 | } |
554f62e9 RD |
30520 | } |
30521 | if (obj4) { | |
d55e5bfc | 30522 | { |
554f62e9 RD |
30523 | arg5 = &temp5; |
30524 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30525 | } |
554f62e9 RD |
30526 | } |
30527 | if (obj5) { | |
30528 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30529 | if (!SWIG_IsOK(ecode6)) { | |
30530 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
30531 | } | |
30532 | arg6 = static_cast< long >(val6); | |
30533 | } | |
30534 | if (obj6) { | |
d55e5bfc | 30535 | { |
554f62e9 RD |
30536 | arg7 = wxString_in_helper(obj6); |
30537 | if (arg7 == NULL) SWIG_fail; | |
30538 | temp7 = true; | |
d55e5bfc | 30539 | } |
554f62e9 RD |
30540 | } |
30541 | { | |
30542 | if (!wxPyCheckForApp()) SWIG_fail; | |
30543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30544 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30545 | wxPyEndAllowThreads(__tstate); | |
30546 | if (PyErr_Occurred()) SWIG_fail; | |
30547 | } | |
30548 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
30549 | { | |
30550 | if (temp3) | |
30551 | delete arg3; | |
30552 | } | |
30553 | { | |
30554 | if (temp7) | |
30555 | delete arg7; | |
30556 | } | |
30557 | return resultobj; | |
30558 | fail: | |
30559 | { | |
30560 | if (temp3) | |
30561 | delete arg3; | |
30562 | } | |
30563 | { | |
30564 | if (temp7) | |
30565 | delete arg7; | |
30566 | } | |
30567 | return NULL; | |
30568 | } | |
30569 | ||
30570 | ||
30571 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30572 | PyObject *resultobj = 0; | |
30573 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30574 | PyObject *arg2 = (PyObject *) 0 ; | |
30575 | PyObject *arg3 = (PyObject *) 0 ; | |
30576 | void *argp1 = 0 ; | |
30577 | int res1 = 0 ; | |
30578 | PyObject * obj0 = 0 ; | |
30579 | PyObject * obj1 = 0 ; | |
30580 | PyObject * obj2 = 0 ; | |
30581 | char * kwnames[] = { | |
30582 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30583 | }; | |
30584 | ||
30585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30587 | if (!SWIG_IsOK(res1)) { | |
30588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30589 | } | |
30590 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30591 | arg2 = obj1; | |
30592 | arg3 = obj2; | |
30593 | { | |
30594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30595 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30596 | wxPyEndAllowThreads(__tstate); | |
30597 | if (PyErr_Occurred()) SWIG_fail; | |
30598 | } | |
30599 | resultobj = SWIG_Py_Void(); | |
30600 | return resultobj; | |
30601 | fail: | |
30602 | return NULL; | |
30603 | } | |
30604 | ||
30605 | ||
30606 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30607 | PyObject *resultobj = 0; | |
30608 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30609 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30610 | void *argp1 = 0 ; | |
30611 | int res1 = 0 ; | |
30612 | void *argp2 = 0 ; | |
30613 | int res2 = 0 ; | |
30614 | PyObject * obj0 = 0 ; | |
30615 | PyObject * obj1 = 0 ; | |
30616 | char * kwnames[] = { | |
30617 | (char *) "self",(char *) "canvas", NULL | |
30618 | }; | |
30619 | ||
30620 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30622 | if (!SWIG_IsOK(res1)) { | |
30623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30624 | } | |
30625 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30626 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30627 | if (!SWIG_IsOK(res2)) { | |
30628 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30629 | } | |
30630 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30631 | { | |
30632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30633 | (arg1)->SetPreviewCanvas(arg2); | |
30634 | wxPyEndAllowThreads(__tstate); | |
30635 | if (PyErr_Occurred()) SWIG_fail; | |
30636 | } | |
30637 | resultobj = SWIG_Py_Void(); | |
30638 | return resultobj; | |
30639 | fail: | |
30640 | return NULL; | |
30641 | } | |
30642 | ||
30643 | ||
30644 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30645 | PyObject *resultobj = 0; | |
30646 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30647 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
30648 | void *argp1 = 0 ; | |
30649 | int res1 = 0 ; | |
30650 | void *argp2 = 0 ; | |
30651 | int res2 = 0 ; | |
30652 | PyObject * obj0 = 0 ; | |
30653 | PyObject * obj1 = 0 ; | |
30654 | char * kwnames[] = { | |
30655 | (char *) "self",(char *) "bar", NULL | |
30656 | }; | |
30657 | ||
30658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
30659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30660 | if (!SWIG_IsOK(res1)) { | |
30661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30662 | } | |
30663 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30664 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30665 | if (!SWIG_IsOK(res2)) { | |
30666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
30667 | } | |
30668 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
30669 | { | |
30670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30671 | (arg1)->SetControlBar(arg2); | |
30672 | wxPyEndAllowThreads(__tstate); | |
30673 | if (PyErr_Occurred()) SWIG_fail; | |
30674 | } | |
30675 | resultobj = SWIG_Py_Void(); | |
30676 | return resultobj; | |
30677 | fail: | |
30678 | return NULL; | |
d55e5bfc RD |
30679 | } |
30680 | ||
30681 | ||
554f62e9 RD |
30682 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30683 | PyObject *resultobj = 0; | |
30684 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30685 | void *argp1 = 0 ; | |
30686 | int res1 = 0 ; | |
30687 | PyObject *swig_obj[1] ; | |
30688 | ||
30689 | if (!args) SWIG_fail; | |
30690 | swig_obj[0] = args; | |
30691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30692 | if (!SWIG_IsOK(res1)) { | |
30693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30694 | } | |
30695 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30696 | { | |
30697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30698 | (arg1)->Initialize(); | |
30699 | wxPyEndAllowThreads(__tstate); | |
30700 | if (PyErr_Occurred()) SWIG_fail; | |
30701 | } | |
30702 | resultobj = SWIG_Py_Void(); | |
30703 | return resultobj; | |
30704 | fail: | |
30705 | return NULL; | |
d55e5bfc RD |
30706 | } |
30707 | ||
30708 | ||
554f62e9 RD |
30709 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30710 | PyObject *resultobj = 0; | |
30711 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30712 | void *argp1 = 0 ; | |
30713 | int res1 = 0 ; | |
30714 | PyObject *swig_obj[1] ; | |
30715 | ||
30716 | if (!args) SWIG_fail; | |
30717 | swig_obj[0] = args; | |
30718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30719 | if (!SWIG_IsOK(res1)) { | |
30720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30721 | } | |
30722 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30723 | { | |
30724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30725 | (arg1)->CreateCanvas(); | |
30726 | wxPyEndAllowThreads(__tstate); | |
30727 | if (PyErr_Occurred()) SWIG_fail; | |
30728 | } | |
30729 | resultobj = SWIG_Py_Void(); | |
30730 | return resultobj; | |
30731 | fail: | |
30732 | return NULL; | |
caef1a4d RD |
30733 | } |
30734 | ||
30735 | ||
554f62e9 RD |
30736 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30737 | PyObject *resultobj = 0; | |
30738 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30739 | void *argp1 = 0 ; | |
30740 | int res1 = 0 ; | |
30741 | PyObject *swig_obj[1] ; | |
30742 | ||
30743 | if (!args) SWIG_fail; | |
30744 | swig_obj[0] = args; | |
30745 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30746 | if (!SWIG_IsOK(res1)) { | |
30747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30748 | } | |
30749 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30750 | { | |
30751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30752 | (arg1)->CreateControlBar(); | |
30753 | wxPyEndAllowThreads(__tstate); | |
30754 | if (PyErr_Occurred()) SWIG_fail; | |
30755 | } | |
30756 | resultobj = SWIG_Py_Void(); | |
30757 | return resultobj; | |
30758 | fail: | |
30759 | return NULL; | |
30760 | } | |
30761 | ||
30762 | ||
30763 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30764 | PyObject *obj; | |
30765 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30766 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
30767 | return SWIG_Py_Void(); | |
30768 | } | |
30769 | ||
30770 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30771 | return SWIG_Python_InitShadowInstance(args); | |
30772 | } | |
30773 | ||
30774 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30775 | PyObject *resultobj = 0; | |
30776 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30777 | long arg2 ; | |
30778 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30779 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30780 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30781 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30782 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30783 | long arg6 = (long) 0 ; | |
30784 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
30785 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30786 | wxPyPreviewControlBar *result = 0 ; | |
30787 | void *argp1 = 0 ; | |
30788 | int res1 = 0 ; | |
30789 | long val2 ; | |
30790 | int ecode2 = 0 ; | |
30791 | void *argp3 = 0 ; | |
30792 | int res3 = 0 ; | |
30793 | wxPoint temp4 ; | |
30794 | wxSize temp5 ; | |
30795 | long val6 ; | |
30796 | int ecode6 = 0 ; | |
30797 | bool temp7 = false ; | |
30798 | PyObject * obj0 = 0 ; | |
30799 | PyObject * obj1 = 0 ; | |
30800 | PyObject * obj2 = 0 ; | |
30801 | PyObject * obj3 = 0 ; | |
30802 | PyObject * obj4 = 0 ; | |
30803 | PyObject * obj5 = 0 ; | |
30804 | PyObject * obj6 = 0 ; | |
30805 | char * kwnames[] = { | |
30806 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30807 | }; | |
30808 | ||
30809 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30811 | if (!SWIG_IsOK(res1)) { | |
30812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30813 | } | |
30814 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30815 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30816 | if (!SWIG_IsOK(ecode2)) { | |
30817 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
30818 | } | |
30819 | arg2 = static_cast< long >(val2); | |
30820 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30821 | if (!SWIG_IsOK(res3)) { | |
30822 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
30823 | } | |
30824 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
30825 | if (obj3) { | |
8d38bd1d | 30826 | { |
554f62e9 RD |
30827 | arg4 = &temp4; |
30828 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30829 | } |
554f62e9 RD |
30830 | } |
30831 | if (obj4) { | |
d55e5bfc | 30832 | { |
554f62e9 RD |
30833 | arg5 = &temp5; |
30834 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30835 | } |
554f62e9 RD |
30836 | } |
30837 | if (obj5) { | |
30838 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30839 | if (!SWIG_IsOK(ecode6)) { | |
30840 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
30841 | } | |
30842 | arg6 = static_cast< long >(val6); | |
30843 | } | |
30844 | if (obj6) { | |
d55e5bfc | 30845 | { |
554f62e9 RD |
30846 | arg7 = wxString_in_helper(obj6); |
30847 | if (arg7 == NULL) SWIG_fail; | |
30848 | temp7 = true; | |
d55e5bfc | 30849 | } |
554f62e9 RD |
30850 | } |
30851 | { | |
30852 | if (!wxPyCheckForApp()) SWIG_fail; | |
30853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30854 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30855 | wxPyEndAllowThreads(__tstate); | |
30856 | if (PyErr_Occurred()) SWIG_fail; | |
30857 | } | |
30858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
30859 | { | |
30860 | if (temp7) | |
30861 | delete arg7; | |
30862 | } | |
30863 | return resultobj; | |
30864 | fail: | |
30865 | { | |
30866 | if (temp7) | |
30867 | delete arg7; | |
30868 | } | |
30869 | return NULL; | |
30870 | } | |
30871 | ||
30872 | ||
30873 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30874 | PyObject *resultobj = 0; | |
30875 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30876 | PyObject *arg2 = (PyObject *) 0 ; | |
30877 | PyObject *arg3 = (PyObject *) 0 ; | |
30878 | void *argp1 = 0 ; | |
30879 | int res1 = 0 ; | |
30880 | PyObject * obj0 = 0 ; | |
30881 | PyObject * obj1 = 0 ; | |
30882 | PyObject * obj2 = 0 ; | |
30883 | char * kwnames[] = { | |
30884 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30885 | }; | |
30886 | ||
30887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30889 | if (!SWIG_IsOK(res1)) { | |
30890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30891 | } | |
30892 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30893 | arg2 = obj1; | |
30894 | arg3 = obj2; | |
30895 | { | |
30896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30897 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30898 | wxPyEndAllowThreads(__tstate); | |
30899 | if (PyErr_Occurred()) SWIG_fail; | |
30900 | } | |
30901 | resultobj = SWIG_Py_Void(); | |
30902 | return resultobj; | |
30903 | fail: | |
30904 | return NULL; | |
30905 | } | |
30906 | ||
30907 | ||
30908 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30909 | PyObject *resultobj = 0; | |
30910 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30911 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
30912 | void *argp1 = 0 ; | |
30913 | int res1 = 0 ; | |
30914 | void *argp2 = 0 ; | |
30915 | int res2 = 0 ; | |
30916 | PyObject * obj0 = 0 ; | |
30917 | PyObject * obj1 = 0 ; | |
30918 | char * kwnames[] = { | |
30919 | (char *) "self",(char *) "preview", NULL | |
30920 | }; | |
30921 | ||
30922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
30923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30924 | if (!SWIG_IsOK(res1)) { | |
30925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30926 | } | |
30927 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30928 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30929 | if (!SWIG_IsOK(res2)) { | |
30930 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
30931 | } | |
30932 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
30933 | { | |
30934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30935 | (arg1)->SetPrintPreview(arg2); | |
30936 | wxPyEndAllowThreads(__tstate); | |
30937 | if (PyErr_Occurred()) SWIG_fail; | |
30938 | } | |
30939 | resultobj = SWIG_Py_Void(); | |
30940 | return resultobj; | |
30941 | fail: | |
30942 | return NULL; | |
d55e5bfc RD |
30943 | } |
30944 | ||
30945 | ||
554f62e9 RD |
30946 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30947 | PyObject *resultobj = 0; | |
30948 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30949 | void *argp1 = 0 ; | |
30950 | int res1 = 0 ; | |
30951 | PyObject *swig_obj[1] ; | |
30952 | ||
30953 | if (!args) SWIG_fail; | |
30954 | swig_obj[0] = args; | |
30955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30956 | if (!SWIG_IsOK(res1)) { | |
30957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30958 | } | |
30959 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30960 | { | |
30961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30962 | (arg1)->CreateButtons(); | |
30963 | wxPyEndAllowThreads(__tstate); | |
30964 | if (PyErr_Occurred()) SWIG_fail; | |
30965 | } | |
30966 | resultobj = SWIG_Py_Void(); | |
30967 | return resultobj; | |
30968 | fail: | |
30969 | return NULL; | |
30970 | } | |
30971 | ||
30972 | ||
30973 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30974 | PyObject *resultobj = 0; | |
30975 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30976 | int arg2 ; | |
30977 | void *argp1 = 0 ; | |
30978 | int res1 = 0 ; | |
30979 | int val2 ; | |
30980 | int ecode2 = 0 ; | |
30981 | PyObject * obj0 = 0 ; | |
30982 | PyObject * obj1 = 0 ; | |
30983 | char * kwnames[] = { | |
30984 | (char *) "self",(char *) "zoom", NULL | |
30985 | }; | |
30986 | ||
30987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
30988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30989 | if (!SWIG_IsOK(res1)) { | |
30990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30991 | } | |
30992 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30993 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30994 | if (!SWIG_IsOK(ecode2)) { | |
30995 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
30996 | } | |
30997 | arg2 = static_cast< int >(val2); | |
30998 | { | |
30999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31000 | (arg1)->SetZoomControl(arg2); | |
31001 | wxPyEndAllowThreads(__tstate); | |
31002 | if (PyErr_Occurred()) SWIG_fail; | |
31003 | } | |
31004 | resultobj = SWIG_Py_Void(); | |
31005 | return resultobj; | |
31006 | fail: | |
31007 | return NULL; | |
caef1a4d RD |
31008 | } |
31009 | ||
31010 | ||
554f62e9 RD |
31011 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31012 | PyObject *obj; | |
31013 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31014 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
31015 | return SWIG_Py_Void(); | |
60d5fcc1 RD |
31016 | } |
31017 | ||
554f62e9 RD |
31018 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31019 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
31020 | } |
31021 | ||
d55e5bfc | 31022 | static PyMethodDef SwigMethods[] = { |
093d3ff1 | 31023 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31024 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
093d3ff1 | 31025 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31026 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
093d3ff1 RD |
31027 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31028 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31029 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31030 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31031 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31032 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31033 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31034 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31035 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31036 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31037 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31038 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
093d3ff1 | 31039 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31040 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
093d3ff1 | 31041 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31042 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
31043 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
093d3ff1 RD |
31044 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
31045 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
554f62e9 | 31046 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
093d3ff1 RD |
31047 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
31048 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31049 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
093d3ff1 | 31050 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31051 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction)_wrap_ScrolledWindow_GetTargetRect, METH_O, NULL}, |
093d3ff1 RD |
31052 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31053 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31054 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31055 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31056 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31057 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
093d3ff1 | 31058 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31059 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
f460c29d | 31060 | { (char *)"TopLevelWindow_IsAlwaysMaximized", (PyCFunction)_wrap_TopLevelWindow_IsAlwaysMaximized, METH_O, NULL}, |
554f62e9 RD |
31061 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, |
31062 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
093d3ff1 RD |
31063 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
31064 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31065 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31066 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
093d3ff1 | 31067 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31068 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
093d3ff1 RD |
31069 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
31070 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31071 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
093d3ff1 | 31072 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31073 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 31074 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
10044bf1 | 31075 | { (char *)"TopLevelWindow_EnableCloseButton", (PyCFunction) _wrap_TopLevelWindow_EnableCloseButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
1eeb270e RD |
31076 | { (char *)"TopLevelWindow_GetDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetDefaultItem, METH_O, NULL}, |
31077 | { (char *)"TopLevelWindow_SetDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31078 | { (char *)"TopLevelWindow_SetTmpDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31079 | { (char *)"TopLevelWindow_GetTmpDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetTmpDefaultItem, METH_O, NULL}, | |
093d3ff1 RD |
31080 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
31081 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31082 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31083 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31084 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
093d3ff1 | 31085 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31086 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
093d3ff1 RD |
31087 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
31088 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31089 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
093d3ff1 RD |
31090 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31091 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31092 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31093 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31094 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31095 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31096 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
093d3ff1 | 31097 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31098 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
093d3ff1 RD |
31099 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31100 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31101 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31102 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31103 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31104 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31105 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31106 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
093d3ff1 RD |
31107 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31108 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31109 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 31110 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31111 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 31112 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31113 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
093d3ff1 RD |
31114 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
31115 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f | 31116 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31117 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
31118 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
093d3ff1 RD |
31119 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
31120 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31121 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31122 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31123 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31124 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
093d3ff1 RD |
31125 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31126 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31127 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31128 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31129 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31130 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
093d3ff1 | 31131 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31132 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31133 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31134 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
31135 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
31136 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
093d3ff1 | 31137 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31138 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31139 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31140 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
093d3ff1 RD |
31141 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31142 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31143 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
093d3ff1 RD |
31144 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
31145 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31146 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31147 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31148 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31149 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31150 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31151 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31152 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
31153 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
093d3ff1 RD |
31154 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31155 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31156 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31157 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31158 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
093d3ff1 | 31159 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31160 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
31161 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
093d3ff1 | 31162 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31163 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
093d3ff1 RD |
31164 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31165 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31166 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31167 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31168 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31169 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
31170 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
093d3ff1 RD |
31171 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31172 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31173 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
31174 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
093d3ff1 | 31175 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31176 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
093d3ff1 | 31177 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31178 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
093d3ff1 | 31179 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31180 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
093d3ff1 | 31181 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31182 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31183 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31184 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
093d3ff1 RD |
31185 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31186 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31187 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31188 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31189 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31190 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
31191 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
31192 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
31193 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
093d3ff1 | 31194 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31195 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31196 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31197 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31198 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31199 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31200 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31201 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31202 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31203 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31204 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31205 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
093d3ff1 | 31206 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31207 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
093d3ff1 RD |
31208 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31209 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31210 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
31211 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
093d3ff1 RD |
31212 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31213 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31214 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
31215 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
093d3ff1 | 31216 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31217 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31218 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31219 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31220 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31221 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31222 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
093d3ff1 | 31223 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31224 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
093d3ff1 | 31225 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31226 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
093d3ff1 | 31227 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31228 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31229 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31230 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31231 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
093d3ff1 | 31232 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31233 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 31234 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31235 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
093d3ff1 | 31236 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31237 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
093d3ff1 | 31238 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31239 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
093d3ff1 | 31240 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31241 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31242 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31243 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31244 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 31245 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31246 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
093d3ff1 | 31247 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31248 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31249 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31250 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
093d3ff1 | 31251 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31252 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
31253 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
093d3ff1 RD |
31254 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
31255 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31256 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31257 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
31258 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
31259 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
31260 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
093d3ff1 RD |
31261 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31262 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31263 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31264 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31265 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31266 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31267 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31268 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31269 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31270 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31271 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31272 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31273 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31274 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31275 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31276 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction)_wrap_PopupTransientWindow_Dismiss, METH_O, NULL}, |
093d3ff1 | 31277 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31278 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31279 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31280 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31281 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
093d3ff1 | 31282 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31283 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31284 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31285 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31286 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31287 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31288 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31289 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
31290 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
31291 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31292 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31293 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31294 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
31295 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
31296 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
31297 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
70b7a5fe | 31298 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31299 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
31300 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
31301 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31302 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31303 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31304 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31305 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31306 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
31307 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31308 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31309 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
31310 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
31311 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
093d3ff1 RD |
31312 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31313 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31314 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
31315 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
093d3ff1 | 31316 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31317 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
31318 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
093d3ff1 | 31319 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31320 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
093d3ff1 RD |
31321 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31322 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31323 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31324 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31325 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
31326 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
093d3ff1 RD |
31327 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
31328 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31329 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1c71765a RD |
31330 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
31331 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31332 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31333 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31334 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31335 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
31336 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31337 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31338 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31339 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 31340 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31341 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
554f62e9 RD |
31342 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
31343 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
31344 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
093d3ff1 | 31345 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31346 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
31347 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
31348 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
093d3ff1 | 31349 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31350 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
093d3ff1 RD |
31351 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
31352 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31353 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31354 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31355 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
31356 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
31357 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
31358 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
31359 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
31360 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
093d3ff1 RD |
31361 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
31362 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31363 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31364 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31365 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31366 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31367 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31368 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
093d3ff1 | 31369 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31370 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
7449af73 | 31371 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31372 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31373 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
31374 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
093d3ff1 RD |
31375 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31376 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31377 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31378 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31379 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31380 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31381 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31382 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31383 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31384 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31385 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31386 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
31387 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
31388 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
31389 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
31390 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
554f62e9 RD |
31391 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, |
31392 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
31393 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
093d3ff1 | 31394 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31395 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31396 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31397 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31398 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
093d3ff1 | 31399 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31400 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31401 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31402 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
31403 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
093d3ff1 RD |
31404 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31405 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31406 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31407 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31408 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
093d3ff1 RD |
31409 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
31410 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31411 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31412 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31413 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31414 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
27e45892 RD |
31415 | { (char *)"new_NumberEntryDialog", (PyCFunction) _wrap_new_NumberEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31416 | { (char *)"NumberEntryDialog_GetValue", (PyCFunction)_wrap_NumberEntryDialog_GetValue, METH_O, NULL}, | |
31417 | { (char *)"NumberEntryDialog_swigregister", NumberEntryDialog_swigregister, METH_VARARGS, NULL}, | |
31418 | { (char *)"NumberEntryDialog_swiginit", NumberEntryDialog_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
31419 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, |
31420 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
093d3ff1 | 31421 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31422 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
31423 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
31424 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
31425 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
31426 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
31427 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
093d3ff1 RD |
31428 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
31429 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31430 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31431 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31432 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31433 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31434 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31435 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31436 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31437 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
093d3ff1 | 31438 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31439 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
7449af73 | 31440 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31441 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31442 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31443 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31444 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31445 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31446 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
093d3ff1 | 31447 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31448 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31449 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31450 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
31451 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
31452 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
31453 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
093d3ff1 RD |
31454 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31455 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31456 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31457 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31458 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31459 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31460 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
31461 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
31462 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
31463 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
093d3ff1 RD |
31464 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31465 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31466 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31467 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31468 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31469 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31470 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
093d3ff1 | 31471 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31472 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
093d3ff1 RD |
31473 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31474 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31475 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31476 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31477 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31478 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31479 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
31480 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
31481 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
31482 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
31483 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
31484 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
31485 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction)_wrap_MDIParentFrame_GetToolBar, METH_O, NULL}, | |
31486 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction)_wrap_MDIParentFrame_GetWindowMenu, METH_O, NULL}, | |
093d3ff1 | 31487 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31488 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
31489 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31490 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31491 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31492 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31493 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31494 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
093d3ff1 | 31495 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31496 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31497 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31498 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31499 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31500 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31501 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31502 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31503 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31504 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31505 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31506 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31507 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31508 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31509 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31510 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31511 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
31512 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
31513 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
31514 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
31515 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
31516 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
31517 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31518 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31519 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31520 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31521 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
093d3ff1 RD |
31522 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31523 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31524 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31525 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31526 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31527 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31528 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31529 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
31530 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
31531 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
31532 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
31533 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
31534 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
31535 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31536 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31537 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31538 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31539 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31540 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31541 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31542 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31543 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31544 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31545 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31546 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31547 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
31548 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
31549 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
31550 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
31551 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
31552 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
31553 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31554 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31555 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31556 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
554f62e9 RD |
31557 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
31558 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
31559 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
31560 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
31561 | { (char *)"PrintData_Ok", (PyCFunction)_wrap_PrintData_Ok, METH_O, NULL}, | |
31562 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, | |
31563 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
31564 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
31565 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
31566 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
31567 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
31568 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
31569 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
093d3ff1 RD |
31570 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
31571 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31572 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31573 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31574 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31575 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31576 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31577 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31578 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31579 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31580 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31581 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
093d3ff1 | 31582 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31583 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
b9d6a5f3 | 31584 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31585 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31586 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31587 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
554f62e9 | 31588 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
093d3ff1 RD |
31589 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
31590 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31591 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31592 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31593 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31594 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
31595 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
31596 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
31597 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
31598 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
31599 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
31600 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
31601 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
31602 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
31603 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
31604 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
31605 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
31606 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
31607 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
31608 | { (char *)"PageSetupDialogData_Ok", (PyCFunction)_wrap_PageSetupDialogData_Ok, METH_O, NULL}, | |
093d3ff1 RD |
31609 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31610 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31611 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31612 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31613 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31614 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31615 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31616 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31617 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31618 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
31619 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
093d3ff1 | 31620 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31621 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31622 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 31623 | { (char *)"delete_PageSetupDialog", (PyCFunction)_wrap_delete_PageSetupDialog, METH_O, NULL}, |
554f62e9 RD |
31624 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
31625 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
31626 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
093d3ff1 | 31627 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31628 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31629 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
554f62e9 RD |
31630 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
31631 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
31632 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
31633 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
31634 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
31635 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
31636 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
31637 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
31638 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
31639 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
093d3ff1 RD |
31640 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31641 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31642 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31643 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31644 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31645 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31646 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31647 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31648 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31649 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31650 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31651 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31652 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31653 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
31654 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
31655 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
31656 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
31657 | { (char *)"PrintDialogData_Ok", (PyCFunction)_wrap_PrintDialogData_Ok, METH_O, NULL}, | |
31658 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, | |
093d3ff1 RD |
31659 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31660 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31661 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31662 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 31663 | { (char *)"delete_PrintDialog", (PyCFunction)_wrap_delete_PrintDialog, METH_O, NULL}, |
554f62e9 RD |
31664 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
31665 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
31666 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
31667 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
093d3ff1 | 31668 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31669 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31670 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31671 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
093d3ff1 RD |
31672 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31673 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31674 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31675 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31676 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31677 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
31678 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
31679 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
093d3ff1 | 31680 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31681 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31682 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31683 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
093d3ff1 | 31684 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31685 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
31686 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
093d3ff1 RD |
31687 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31688 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31689 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
093d3ff1 | 31690 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31691 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
093d3ff1 | 31692 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31693 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
093d3ff1 | 31694 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31695 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
31696 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, | |
093d3ff1 | 31697 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 | 31698 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31699 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
31700 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
31701 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
31702 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
b06b3e70 | 31703 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31704 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
093d3ff1 | 31705 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31706 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31707 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
31708 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31709 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31710 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31711 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
31712 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
31713 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
31714 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
093d3ff1 | 31715 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31716 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31717 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31718 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
093d3ff1 | 31719 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31720 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
31721 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
31722 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
31723 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
31724 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
31725 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
093d3ff1 | 31726 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31727 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31728 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
554f62e9 | 31729 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
093d3ff1 | 31730 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31731 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
093d3ff1 | 31732 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31733 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
31734 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
093d3ff1 RD |
31735 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31736 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31737 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
31738 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
093d3ff1 RD |
31739 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31740 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31741 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31742 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31743 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
093d3ff1 | 31744 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31745 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
31746 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
31747 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
31748 | { (char *)"PrintPreview_Ok", (PyCFunction)_wrap_PrintPreview_Ok, METH_O, NULL}, | |
093d3ff1 RD |
31749 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31750 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31751 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
093d3ff1 | 31752 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31753 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31754 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
31755 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31756 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31757 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31758 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31759 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31760 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31761 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31762 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
31763 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
31764 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
093d3ff1 | 31765 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31766 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31767 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31768 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31769 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31770 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
b06b3e70 | 31771 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31772 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31773 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c32bde28 | 31774 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
31775 | }; |
31776 | ||
31777 | ||
31778 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31779 | ||
31780 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
31781 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31782 | } | |
31783 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31784 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31785 | } | |
31786 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31787 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31788 | } | |
31789 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31790 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31791 | } | |
31792 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31793 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31794 | } | |
31795 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31796 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31797 | } | |
31798 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31799 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31800 | } | |
31801 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
31802 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31803 | } | |
31804 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31805 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31806 | } | |
31807 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31808 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31809 | } | |
31810 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
31811 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31812 | } | |
d55e5bfc RD |
31813 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
31814 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31815 | } | |
0f83f5da RD |
31816 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
31817 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
31818 | } | |
2131d850 RD |
31819 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
31820 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31821 | } | |
d55e5bfc RD |
31822 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
31823 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31824 | } | |
31825 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31826 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31827 | } | |
31828 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31829 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31830 | } | |
31831 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31832 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31833 | } | |
31834 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31835 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31836 | } | |
31837 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31838 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31839 | } | |
31840 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31841 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31842 | } | |
31843 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31844 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31845 | } | |
31846 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31847 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31848 | } | |
53aa7709 RD |
31849 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
31850 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
31851 | } | |
d55e5bfc RD |
31852 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
31853 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31854 | } | |
31855 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31856 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31857 | } | |
0f83f5da RD |
31858 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
31859 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
31860 | } | |
d55e5bfc RD |
31861 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
31862 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31863 | } | |
31864 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31865 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31866 | } | |
31867 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31868 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31869 | } | |
31870 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31871 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31872 | } | |
31873 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31874 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31875 | } | |
31876 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31877 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31878 | } | |
31879 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31880 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31881 | } | |
31882 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31883 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31884 | } | |
31885 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
31886 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
31887 | } | |
31888 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
31889 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31890 | } | |
31891 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31892 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31893 | } | |
31894 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31895 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31896 | } | |
31897 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31898 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31899 | } | |
31900 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31901 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31902 | } | |
31903 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31904 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31905 | } | |
31906 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31907 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31908 | } | |
31909 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31910 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31911 | } | |
31912 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
31913 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31914 | } | |
31915 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
31916 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31917 | } | |
c1cb24a4 RD |
31918 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
31919 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31920 | } | |
d55e5bfc RD |
31921 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
31922 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31923 | } | |
31924 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
31925 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31926 | } | |
31927 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
31928 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31929 | } | |
31930 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31931 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31932 | } | |
31933 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31934 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31935 | } | |
31936 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31937 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31938 | } | |
31939 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31940 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31941 | } | |
c1cb24a4 RD |
31942 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
31943 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31944 | } | |
d55e5bfc RD |
31945 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
31946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31947 | } | |
31948 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31949 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31950 | } | |
31951 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31952 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31953 | } | |
31954 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
31955 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31956 | } | |
27e45892 RD |
31957 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
31958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
31959 | } | |
d55e5bfc RD |
31960 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
31961 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31962 | } | |
31963 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
31964 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31965 | } | |
31966 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
31967 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31968 | } | |
31969 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
31970 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
31971 | } | |
31972 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
31973 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
31974 | } | |
31975 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31976 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31977 | } | |
31978 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
31979 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31980 | } | |
31981 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
31982 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31983 | } | |
31984 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
31985 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
31986 | } | |
31987 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
31988 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31989 | } | |
31990 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
31991 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
31992 | } | |
31993 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
31994 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
31995 | } | |
31996 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
31997 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
31998 | } | |
31999 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32000 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32001 | } | |
32002 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32003 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32004 | } | |
32005 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
32006 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
32007 | } | |
32008 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
32009 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
32010 | } | |
32011 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32012 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32013 | } | |
32014 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32015 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32016 | } | |
32017 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32018 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32019 | } | |
32020 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32021 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32022 | } | |
32023 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
32024 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32025 | } | |
32026 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32027 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32028 | } | |
32029 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32030 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32031 | } | |
32032 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
32033 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
32034 | } | |
32035 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
32036 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32037 | } | |
32038 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
32039 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32040 | } | |
32041 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
32042 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32043 | } | |
32044 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32045 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32046 | } | |
32047 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32048 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32049 | } | |
5e483524 RD |
32050 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
32051 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
32052 | } |
32053 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
32054 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32055 | } | |
d55e5bfc RD |
32056 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
32057 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32058 | } | |
32059 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
32060 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32061 | } | |
32062 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
32063 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32064 | } | |
c1cb24a4 RD |
32065 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
32066 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32067 | } | |
d55e5bfc RD |
32068 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
32069 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32070 | } | |
32071 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
32072 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32073 | } | |
32074 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
32075 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
32076 | } | |
32077 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
32078 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
32079 | } | |
32080 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
32081 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
32082 | } | |
32083 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
32084 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32085 | } | |
32086 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
32087 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
32088 | } | |
32089 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
32090 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
32091 | } | |
32092 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
32093 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
32094 | } | |
32095 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32096 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32097 | } | |
32098 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
32099 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
32100 | } | |
32101 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
32102 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32103 | } | |
32104 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
32105 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32106 | } | |
d55e5bfc RD |
32107 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
32108 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32109 | } | |
0f83f5da RD |
32110 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
32111 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32112 | } | |
d55e5bfc RD |
32113 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
32114 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32115 | } | |
32116 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32117 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32118 | } | |
32119 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32120 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32121 | } | |
32122 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32123 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32124 | } | |
32125 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32126 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32127 | } | |
32128 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32129 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32130 | } | |
32131 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32132 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32133 | } | |
32134 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
32135 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
32136 | } | |
32137 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32138 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32139 | } | |
32140 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
32141 | return (void *)((wxObject *) ((wxFontData *) x)); | |
32142 | } | |
32143 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
32144 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
32145 | } | |
32146 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32147 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32148 | } | |
32149 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32150 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32151 | } | |
32152 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32153 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32154 | } | |
32155 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
32156 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
32157 | } | |
5e483524 RD |
32158 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
32159 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
32160 | } |
32161 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
32162 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32163 | } | |
2131d850 RD |
32164 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
32165 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32166 | } | |
d55e5bfc RD |
32167 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
32168 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32169 | } | |
32170 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32171 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32172 | } | |
32173 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32174 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32175 | } | |
32176 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32177 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32178 | } | |
32179 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32180 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32181 | } | |
32182 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32183 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32184 | } | |
32185 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
32186 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32187 | } | |
32188 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32189 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32190 | } | |
32191 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32192 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32193 | } | |
32194 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
32195 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32196 | } | |
32197 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32198 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32199 | } | |
32200 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
32201 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
32202 | } | |
32203 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32204 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32205 | } | |
32206 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
32207 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32208 | } | |
32209 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
32210 | return (void *)((wxObject *) ((wxColourData *) x)); | |
32211 | } | |
32212 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32213 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32214 | } | |
32215 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32216 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32217 | } | |
32218 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
32219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
32220 | } | |
32221 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
32222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32223 | } | |
32224 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
32225 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32226 | } | |
32227 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
32228 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32229 | } | |
32230 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
32231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32232 | } | |
32233 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
32234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32235 | } | |
c1cb24a4 RD |
32236 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
32237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32238 | } | |
27e45892 RD |
32239 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
32240 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32241 | } | |
d55e5bfc RD |
32242 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
32243 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32244 | } | |
32245 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
32246 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32247 | } | |
32248 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
32249 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32250 | } | |
32251 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32252 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32253 | } | |
32254 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
32255 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
32256 | } | |
32257 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32258 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32259 | } | |
53aa7709 RD |
32260 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
32261 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32262 | } | |
d55e5bfc RD |
32263 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
32264 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32265 | } | |
32266 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32267 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32268 | } | |
32269 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32270 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32271 | } | |
32272 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32273 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32274 | } | |
32275 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32276 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32277 | } | |
32278 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32279 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32280 | } | |
32281 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32282 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32283 | } | |
32284 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32285 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32286 | } | |
d55e5bfc RD |
32287 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
32288 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32289 | } | |
32290 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32291 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32292 | } | |
32293 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32294 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32295 | } | |
32296 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32297 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32298 | } | |
32299 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32300 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32301 | } | |
32302 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32303 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32304 | } | |
32305 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32306 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32307 | } | |
32308 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32309 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32310 | } | |
32311 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32312 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32313 | } | |
9d7dfdff RD |
32314 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
32315 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
32316 | } | |
d55e5bfc RD |
32317 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
32318 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32319 | } | |
9d7dfdff RD |
32320 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
32321 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32322 | } | |
d55e5bfc RD |
32323 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
32324 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32325 | } | |
32326 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32327 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32328 | } | |
0f83f5da RD |
32329 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
32330 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32331 | } | |
d55e5bfc RD |
32332 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
32333 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
32334 | } | |
32335 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
32336 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32337 | } | |
32338 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
32339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32340 | } | |
62d32a5f RD |
32341 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
32342 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32343 | } | |
d55e5bfc RD |
32344 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32345 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32346 | } | |
32347 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
32348 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32349 | } | |
32350 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32351 | return (void *)((wxObject *) ((wxImage *) x)); | |
32352 | } | |
32353 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
32354 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32355 | } | |
32356 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
32357 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
32358 | } | |
32359 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32360 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32361 | } | |
32362 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
32363 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
32364 | } | |
32365 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
32366 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
32367 | } | |
32368 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
32369 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32370 | } | |
32371 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32372 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32373 | } | |
32374 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32375 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32376 | } | |
32377 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32378 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32379 | } | |
32380 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32381 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32382 | } | |
32383 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32384 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32385 | } | |
32386 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32387 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32388 | } | |
32389 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
32390 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32391 | } | |
32392 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
32393 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
32394 | } | |
32395 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
32396 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
32397 | } | |
32398 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
32399 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
32400 | } | |
32401 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
32402 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
32403 | } | |
32404 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
32405 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32406 | } | |
32407 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
32408 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
32409 | } | |
32410 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
32411 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32412 | } | |
32413 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
32414 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32415 | } | |
32416 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
32417 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32418 | } | |
32419 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
32420 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
32421 | } | |
32422 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
32423 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32424 | } | |
32425 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
32426 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
32427 | } | |
32428 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
32429 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
32430 | } | |
32431 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
32432 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32433 | } | |
32434 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
32435 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
32436 | } | |
32437 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
32438 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32439 | } | |
32440 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
32441 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32442 | } | |
32443 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
32444 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32445 | } | |
32446 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
32447 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32448 | } | |
32449 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
8ac8dba0 | 32450 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d55e5bfc RD |
32451 | } |
32452 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
c1cb24a4 | 32453 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d55e5bfc RD |
32454 | } |
32455 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32456 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32457 | } | |
32458 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32459 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32460 | } | |
32461 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32462 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32463 | } | |
32464 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32465 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32466 | } | |
32467 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32468 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32469 | } | |
32470 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32471 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32472 | } | |
32473 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32474 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32475 | } | |
32476 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32477 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32478 | } | |
32479 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32480 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32481 | } | |
32482 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
32483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32484 | } | |
32485 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
32486 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32487 | } | |
32488 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32489 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32490 | } | |
32491 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32492 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32493 | } | |
32494 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32495 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32496 | } | |
32497 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32498 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32499 | } | |
32500 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
32501 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
32502 | } | |
32503 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
32504 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
32505 | } | |
32506 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32507 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32508 | } | |
32509 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32510 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32511 | } | |
32512 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32513 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32514 | } | |
32515 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32516 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32517 | } | |
32518 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
32519 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32520 | } | |
32521 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
32522 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32523 | } | |
32524 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
32525 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32526 | } | |
32527 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
32528 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32529 | } | |
32530 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
32531 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
32532 | } | |
32533 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
32534 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
32535 | } | |
32536 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
32537 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
32538 | } | |
32539 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
32540 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
32541 | } | |
32542 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
32543 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
32544 | } | |
32545 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
32546 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
32547 | } | |
d55e5bfc RD |
32548 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
32549 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
32550 | } | |
32551 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
32552 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
32553 | } | |
32554 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
32555 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
32556 | } | |
d55e5bfc RD |
32557 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { |
32558 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
32559 | } | |
27e45892 RD |
32560 | static void *_p_wxNumberEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32561 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxNumberEntryDialog *) x)); | |
32562 | } | |
c1cb24a4 RD |
32563 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32564 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32565 | } | |
d55e5bfc RD |
32566 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32567 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
32568 | } | |
32569 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32570 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32571 | } | |
32572 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32573 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32574 | } | |
32575 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
32576 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
32577 | } | |
27e45892 RD |
32578 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
32579 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
32580 | } | |
c1cb24a4 RD |
32581 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
32582 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
32583 | } | |
d55e5bfc RD |
32584 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { |
32585 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
32586 | } | |
32587 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
32588 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32589 | } | |
32590 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
32591 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32592 | } | |
32593 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
32594 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32595 | } | |
32596 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
32597 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
32598 | } | |
32599 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32600 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32601 | } | |
32602 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
32603 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32604 | } | |
32605 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
32606 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32607 | } | |
32608 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
32609 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32610 | } | |
27e45892 RD |
32611 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
32612 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32613 | } | |
c1cb24a4 RD |
32614 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
32615 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32616 | } | |
d55e5bfc RD |
32617 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
32618 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32619 | } | |
32620 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
32621 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32622 | } | |
32623 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
32624 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32625 | } | |
32626 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
32627 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32628 | } | |
32629 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
32630 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
32631 | } | |
32632 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
32633 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
32634 | } | |
d55e5bfc RD |
32635 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
32636 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32637 | } | |
32638 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
32639 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32640 | } | |
32641 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
32642 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32643 | } | |
32644 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
32645 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
32646 | } | |
32647 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
32648 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32649 | } | |
32650 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
32651 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
32652 | } | |
32653 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
32654 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
32655 | } | |
32656 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
32657 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
32658 | } | |
32659 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
32660 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
32661 | } | |
32662 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
32663 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
32664 | } | |
c1cb24a4 RD |
32665 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
32666 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
32667 | } | |
d55e5bfc RD |
32668 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
32669 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32670 | } | |
32671 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32672 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32673 | } | |
32674 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
32675 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32676 | } | |
32677 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
32678 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32679 | } | |
32680 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
32681 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32682 | } | |
32683 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32684 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32685 | } | |
32686 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
32687 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
32688 | } | |
32689 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
32690 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32691 | } | |
32692 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
32693 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32694 | } | |
32695 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
32696 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32697 | } | |
32698 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
32699 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
32700 | } | |
32701 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
32702 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32703 | } | |
32704 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
32705 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
32706 | } | |
32707 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
32708 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32709 | } | |
32710 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
32711 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32712 | } | |
32713 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
32714 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32715 | } | |
32716 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
32717 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
32718 | } | |
d55e5bfc RD |
32719 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
32720 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32721 | } | |
32722 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
32723 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32724 | } | |
32725 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
32726 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32727 | } | |
32728 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
32729 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32730 | } | |
32731 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
32732 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
32733 | } | |
32734 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
32735 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
32736 | } | |
32737 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
32738 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
32739 | } | |
d55e5bfc RD |
32740 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
32741 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
32742 | } | |
32743 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
32744 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32745 | } | |
32746 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
32747 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32748 | } | |
32749 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
32750 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
32751 | } | |
c1cb24a4 RD |
32752 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
32753 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32754 | } | |
27e45892 RD |
32755 | static void *_p_wxNumberEntryDialogTo_p_wxDialog(void *x) { |
32756 | return (void *)((wxDialog *) ((wxNumberEntryDialog *) x)); | |
32757 | } | |
d55e5bfc RD |
32758 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
32759 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
32760 | } | |
32761 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
32762 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
32763 | } | |
32764 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
32765 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
32766 | } | |
32767 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
32768 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32769 | } | |
32770 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
32771 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32772 | } | |
32773 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
32774 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32775 | } | |
32776 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
32777 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32778 | } | |
32779 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
32780 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
32781 | } | |
32782 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
32783 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32784 | } | |
32785 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
32786 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
32787 | } | |
32788 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
32789 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32790 | } | |
32791 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32792 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32793 | } | |
32794 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32795 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32796 | } | |
32797 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32798 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32799 | } | |
53aa7709 RD |
32800 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
32801 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
32802 | } | |
d55e5bfc RD |
32803 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
32804 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32805 | } | |
2131d850 RD |
32806 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
32807 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32808 | } | |
d55e5bfc RD |
32809 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
32810 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32811 | } | |
32812 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32813 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32814 | } | |
32815 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32816 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32817 | } | |
32818 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
32819 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32820 | } | |
32821 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32822 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32823 | } | |
32824 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32825 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32826 | } | |
32827 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
32828 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
32829 | } | |
32830 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
32831 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32832 | } | |
f460c29d | 32833 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
32834 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32835 | 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}; | |
32836 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32837 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32838 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32839 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
32840 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
32841 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
32842 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
32843 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32844 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
32845 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
32846 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
2131d850 RD |
32847 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; |
32848 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
554f62e9 | 32849 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
2131d850 RD |
32850 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
32851 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32852 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
32853 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
32854 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32855 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
32856 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; |
32857 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
32858 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
32859 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32860 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
32861 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32862 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32863 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32864 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32865 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32866 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
32867 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
0f83f5da | 32868 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
32869 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
32870 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32871 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32872 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32873 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32874 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32875 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32876 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
32877 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32878 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32879 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32880 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32881 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32882 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32883 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32884 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32885 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32886 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32887 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
32888 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32889 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32890 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32891 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32892 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32893 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
32894 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
32895 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
32896 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
32897 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
32898 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32899 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
32900 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
32901 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 32902 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
32903 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
32904 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32905 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
32906 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
32907 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
32908 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
32909 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
32910 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
32911 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
32912 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
32913 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
32914 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
27e45892 | 32915 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", "wxNumberEntryDialog *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
32916 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
32917 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 32918 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 32919 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
32920 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
32921 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32922 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32923 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32924 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32925 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32926 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32927 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32928 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32929 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
32930 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
32931 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32932 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32933 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32934 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
32935 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
32936 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
32937 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32938 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 32939 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 32940 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
32941 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
32942 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32943 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32944 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
32945 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
32946 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
32947 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
32948 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32949 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
32950 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
32951 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
32952 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
32953 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32954 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
32955 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32956 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
32957 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
32958 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
32959 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
32960 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
32961 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
32962 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
32963 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
32964 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32965 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
32966 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
32967 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
32968 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
32969 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32970 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
32971 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
32972 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
32973 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
32974 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
32975 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32976 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
32977 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
32978 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
32979 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
32980 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
32981 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
32982 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32983 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
32984 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
32985 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
32986 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
32987 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
32988 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
32989 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
32990 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32991 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
32992 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
32993 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
32994 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
32995 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
32996 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
32997 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
7449af73 RD |
32998 | |
32999 | static swig_type_info *swig_type_initial[] = { | |
f460c29d | 33000 | &_swigt__p_bool, |
7449af73 RD |
33001 | &_swigt__p_char, |
33002 | &_swigt__p_form_ops_t, | |
33003 | &_swigt__p_int, | |
33004 | &_swigt__p_unsigned_char, | |
33005 | &_swigt__p_unsigned_int, | |
33006 | &_swigt__p_unsigned_long, | |
33007 | &_swigt__p_wxANIHandler, | |
33008 | &_swigt__p_wxAcceleratorTable, | |
33009 | &_swigt__p_wxActivateEvent, | |
33010 | &_swigt__p_wxArrayInt, | |
33011 | &_swigt__p_wxBMPHandler, | |
33012 | &_swigt__p_wxBitmap, | |
33013 | &_swigt__p_wxBoxSizer, | |
33014 | &_swigt__p_wxCURHandler, | |
33015 | &_swigt__p_wxCalculateLayoutEvent, | |
33016 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 33017 | &_swigt__p_wxClipboardTextEvent, |
7449af73 RD |
33018 | &_swigt__p_wxCloseEvent, |
33019 | &_swigt__p_wxColour, | |
33020 | &_swigt__p_wxColourData, | |
33021 | &_swigt__p_wxColourDialog, | |
33022 | &_swigt__p_wxCommandEvent, | |
33023 | &_swigt__p_wxContextMenuEvent, | |
33024 | &_swigt__p_wxControl, | |
33025 | &_swigt__p_wxControlWithItems, | |
33026 | &_swigt__p_wxDC, | |
33027 | &_swigt__p_wxDateEvent, | |
33028 | &_swigt__p_wxDialog, | |
33029 | &_swigt__p_wxDirDialog, | |
33030 | &_swigt__p_wxDisplayChangedEvent, | |
33031 | &_swigt__p_wxDropFilesEvent, | |
33032 | &_swigt__p_wxDuplexMode, | |
33033 | &_swigt__p_wxEraseEvent, | |
33034 | &_swigt__p_wxEvent, | |
33035 | &_swigt__p_wxEvtHandler, | |
33036 | &_swigt__p_wxFSFile, | |
33037 | &_swigt__p_wxFileDialog, | |
33038 | &_swigt__p_wxFileSystem, | |
33039 | &_swigt__p_wxFindDialogEvent, | |
33040 | &_swigt__p_wxFindReplaceData, | |
33041 | &_swigt__p_wxFindReplaceDialog, | |
33042 | &_swigt__p_wxFlexGridSizer, | |
33043 | &_swigt__p_wxFocusEvent, | |
33044 | &_swigt__p_wxFont, | |
33045 | &_swigt__p_wxFontData, | |
33046 | &_swigt__p_wxFontDialog, | |
33047 | &_swigt__p_wxFrame, | |
33048 | &_swigt__p_wxGBSizerItem, | |
33049 | &_swigt__p_wxGIFHandler, | |
33050 | &_swigt__p_wxGridBagSizer, | |
33051 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 33052 | &_swigt__p_wxHtmlLinkInfo, |
7449af73 RD |
33053 | &_swigt__p_wxICOHandler, |
33054 | &_swigt__p_wxIcon, | |
33055 | &_swigt__p_wxIconBundle, | |
33056 | &_swigt__p_wxIconizeEvent, | |
33057 | &_swigt__p_wxIdleEvent, | |
33058 | &_swigt__p_wxImage, | |
33059 | &_swigt__p_wxImageHandler, | |
33060 | &_swigt__p_wxIndividualLayoutConstraint, | |
33061 | &_swigt__p_wxInitDialogEvent, | |
33062 | &_swigt__p_wxJPEGHandler, | |
33063 | &_swigt__p_wxKeyEvent, | |
33064 | &_swigt__p_wxLayoutAlgorithm, | |
33065 | &_swigt__p_wxLayoutConstraints, | |
33066 | &_swigt__p_wxMDIChildFrame, | |
33067 | &_swigt__p_wxMDIClientWindow, | |
33068 | &_swigt__p_wxMDIParentFrame, | |
33069 | &_swigt__p_wxMaximizeEvent, | |
33070 | &_swigt__p_wxMenu, | |
33071 | &_swigt__p_wxMenuBar, | |
33072 | &_swigt__p_wxMenuEvent, | |
33073 | &_swigt__p_wxMenuItem, | |
33074 | &_swigt__p_wxMessageDialog, | |
33075 | &_swigt__p_wxMiniFrame, | |
33076 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 33077 | &_swigt__p_wxMouseCaptureLostEvent, |
7449af73 RD |
33078 | &_swigt__p_wxMouseEvent, |
33079 | &_swigt__p_wxMoveEvent, | |
33080 | &_swigt__p_wxMultiChoiceDialog, | |
33081 | &_swigt__p_wxNavigationKeyEvent, | |
33082 | &_swigt__p_wxNcPaintEvent, | |
33083 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 33084 | &_swigt__p_wxNumberEntryDialog, |
7449af73 RD |
33085 | &_swigt__p_wxObject, |
33086 | &_swigt__p_wxPCXHandler, | |
33087 | &_swigt__p_wxPNGHandler, | |
33088 | &_swigt__p_wxPNMHandler, | |
33089 | &_swigt__p_wxPageSetupDialog, | |
33090 | &_swigt__p_wxPageSetupDialogData, | |
33091 | &_swigt__p_wxPaintEvent, | |
33092 | &_swigt__p_wxPaletteChangedEvent, | |
33093 | &_swigt__p_wxPanel, | |
33094 | &_swigt__p_wxPaperSize, | |
33095 | &_swigt__p_wxPasswordEntryDialog, | |
33096 | &_swigt__p_wxPoint, | |
33097 | &_swigt__p_wxPopupWindow, | |
33098 | &_swigt__p_wxPreviewCanvas, | |
33099 | &_swigt__p_wxPreviewControlBar, | |
33100 | &_swigt__p_wxPreviewFrame, | |
33101 | &_swigt__p_wxPrintData, | |
33102 | &_swigt__p_wxPrintDialog, | |
33103 | &_swigt__p_wxPrintDialogData, | |
33104 | &_swigt__p_wxPrintPreview, | |
33105 | &_swigt__p_wxPrinter, | |
33106 | &_swigt__p_wxProgressDialog, | |
33107 | &_swigt__p_wxPyApp, | |
33108 | &_swigt__p_wxPyCommandEvent, | |
33109 | &_swigt__p_wxPyEvent, | |
33110 | &_swigt__p_wxPyHtmlListBox, | |
33111 | &_swigt__p_wxPyImageHandler, | |
33112 | &_swigt__p_wxPyPanel, | |
33113 | &_swigt__p_wxPyPopupTransientWindow, | |
33114 | &_swigt__p_wxPyPreviewControlBar, | |
33115 | &_swigt__p_wxPyPreviewFrame, | |
33116 | &_swigt__p_wxPyPrintPreview, | |
33117 | &_swigt__p_wxPyPrintout, | |
33118 | &_swigt__p_wxPyScrolledWindow, | |
33119 | &_swigt__p_wxPySizer, | |
33120 | &_swigt__p_wxPyTaskBarIcon, | |
33121 | &_swigt__p_wxPyVListBox, | |
33122 | &_swigt__p_wxPyVScrolledWindow, | |
33123 | &_swigt__p_wxPyValidator, | |
33124 | &_swigt__p_wxPyWindow, | |
33125 | &_swigt__p_wxQueryLayoutInfoEvent, | |
33126 | &_swigt__p_wxQueryNewPaletteEvent, | |
33127 | &_swigt__p_wxRect, | |
33128 | &_swigt__p_wxRegion, | |
33129 | &_swigt__p_wxSashEvent, | |
33130 | &_swigt__p_wxSashLayoutWindow, | |
33131 | &_swigt__p_wxSashWindow, | |
33132 | &_swigt__p_wxScrollEvent, | |
33133 | &_swigt__p_wxScrollWinEvent, | |
33134 | &_swigt__p_wxScrolledWindow, | |
33135 | &_swigt__p_wxSetCursorEvent, | |
33136 | &_swigt__p_wxShowEvent, | |
33137 | &_swigt__p_wxSingleChoiceDialog, | |
33138 | &_swigt__p_wxSize, | |
33139 | &_swigt__p_wxSizeEvent, | |
33140 | &_swigt__p_wxSizer, | |
33141 | &_swigt__p_wxSizerItem, | |
33142 | &_swigt__p_wxSplashScreen, | |
33143 | &_swigt__p_wxSplashScreenWindow, | |
33144 | &_swigt__p_wxSplitterEvent, | |
33145 | &_swigt__p_wxSplitterWindow, | |
33146 | &_swigt__p_wxStaticBoxSizer, | |
33147 | &_swigt__p_wxStatusBar, | |
33148 | &_swigt__p_wxStdDialogButtonSizer, | |
33149 | &_swigt__p_wxString, | |
33150 | &_swigt__p_wxSysColourChangedEvent, | |
33151 | &_swigt__p_wxTIFFHandler, | |
33152 | &_swigt__p_wxTaskBarIcon, | |
33153 | &_swigt__p_wxTaskBarIconEvent, | |
33154 | &_swigt__p_wxTextEntryDialog, | |
33155 | &_swigt__p_wxTipWindow, | |
33156 | &_swigt__p_wxToolBar, | |
33157 | &_swigt__p_wxTopLevelWindow, | |
33158 | &_swigt__p_wxUpdateUIEvent, | |
33159 | &_swigt__p_wxValidator, | |
33160 | &_swigt__p_wxVisualAttributes, | |
33161 | &_swigt__p_wxWindow, | |
33162 | &_swigt__p_wxWindowCreateEvent, | |
33163 | &_swigt__p_wxWindowDestroyEvent, | |
33164 | &_swigt__p_wxXPMHandler, | |
7449af73 RD |
33165 | }; |
33166 | ||
f460c29d | 33167 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33168 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
33169 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
33170 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
33171 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
33172 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
33173 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
33174 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
33175 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
33176 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33177 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
33178 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
33179 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 RD |
33180 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33181 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 | 33182 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 RD |
33183 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33184 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33185 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
33186 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33187 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33188 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 33189 | 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}}; |
7449af73 | 33190 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 33191 | 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}}; |
7449af73 RD |
33192 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33193 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
33194 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33195 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33196 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33197 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33198 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33199 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33200 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 33201 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33202 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33203 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33204 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33205 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33206 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33207 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33208 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33209 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33210 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33211 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33212 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33213 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33214 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33215 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33216 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33217 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33218 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33219 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 33220 | 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}}; |
7449af73 RD |
33221 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; |
33222 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
33223 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
33224 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
33225 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33226 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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_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}}; |
7449af73 RD |
33227 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33228 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
33229 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33230 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
33231 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33232 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
33233 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
33234 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33235 | 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 | 33236 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33237 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
33238 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
33239 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
33240 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33241 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33242 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33243 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
33244 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33245 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33246 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33247 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33248 | 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 | 33249 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = { {&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 | 33250 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 | 33251 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 33252 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33253 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
33254 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33255 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33256 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33257 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33258 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33259 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33260 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
33261 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33262 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
33263 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33264 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33265 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33266 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33267 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33268 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33269 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33270 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33271 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33272 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 33273 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33274 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33275 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33276 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
33277 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 33278 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_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}}; |
7449af73 RD |
33279 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33280 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33281 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0},{0, 0, 0, 0}}; | |
33282 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33283 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33284 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
33285 | 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}}; | |
33286 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
33287 | 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}}; | |
33288 | 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}}; | |
33289 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
33290 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33291 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33292 | 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}}; | |
33293 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
33294 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33295 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
33296 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
33297 | 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}}; | |
33298 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33299 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33300 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
33301 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
33302 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33303 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33304 | static swig_cast_info _swigc__p_wxPyVListBox[] = { {&_swigt__p_wxPyVListBox, 0, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0},{0, 0, 0, 0}}; | |
33305 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = { {&_swigt__p_wxPyVScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
33306 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33307 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33308 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
33309 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
33310 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33311 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33312 | 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}}; | |
33313 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33314 | 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}}; | |
33315 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33316 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33317 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
33318 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33319 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33320 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33321 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33322 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33323 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
33324 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33325 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33326 | 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}}; | |
33327 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33328 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33329 | 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}}; |
7449af73 | 33330 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 33331 | 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_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
33332 | |
33333 | static swig_cast_info *swig_cast_initial[] = { | |
f460c29d | 33334 | _swigc__p_bool, |
7449af73 RD |
33335 | _swigc__p_char, |
33336 | _swigc__p_form_ops_t, | |
33337 | _swigc__p_int, | |
33338 | _swigc__p_unsigned_char, | |
33339 | _swigc__p_unsigned_int, | |
33340 | _swigc__p_unsigned_long, | |
33341 | _swigc__p_wxANIHandler, | |
33342 | _swigc__p_wxAcceleratorTable, | |
33343 | _swigc__p_wxActivateEvent, | |
33344 | _swigc__p_wxArrayInt, | |
33345 | _swigc__p_wxBMPHandler, | |
33346 | _swigc__p_wxBitmap, | |
33347 | _swigc__p_wxBoxSizer, | |
33348 | _swigc__p_wxCURHandler, | |
33349 | _swigc__p_wxCalculateLayoutEvent, | |
33350 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 33351 | _swigc__p_wxClipboardTextEvent, |
7449af73 RD |
33352 | _swigc__p_wxCloseEvent, |
33353 | _swigc__p_wxColour, | |
33354 | _swigc__p_wxColourData, | |
33355 | _swigc__p_wxColourDialog, | |
33356 | _swigc__p_wxCommandEvent, | |
33357 | _swigc__p_wxContextMenuEvent, | |
33358 | _swigc__p_wxControl, | |
33359 | _swigc__p_wxControlWithItems, | |
33360 | _swigc__p_wxDC, | |
33361 | _swigc__p_wxDateEvent, | |
33362 | _swigc__p_wxDialog, | |
33363 | _swigc__p_wxDirDialog, | |
33364 | _swigc__p_wxDisplayChangedEvent, | |
33365 | _swigc__p_wxDropFilesEvent, | |
33366 | _swigc__p_wxDuplexMode, | |
33367 | _swigc__p_wxEraseEvent, | |
33368 | _swigc__p_wxEvent, | |
33369 | _swigc__p_wxEvtHandler, | |
33370 | _swigc__p_wxFSFile, | |
33371 | _swigc__p_wxFileDialog, | |
33372 | _swigc__p_wxFileSystem, | |
33373 | _swigc__p_wxFindDialogEvent, | |
33374 | _swigc__p_wxFindReplaceData, | |
33375 | _swigc__p_wxFindReplaceDialog, | |
33376 | _swigc__p_wxFlexGridSizer, | |
33377 | _swigc__p_wxFocusEvent, | |
33378 | _swigc__p_wxFont, | |
33379 | _swigc__p_wxFontData, | |
33380 | _swigc__p_wxFontDialog, | |
33381 | _swigc__p_wxFrame, | |
33382 | _swigc__p_wxGBSizerItem, | |
33383 | _swigc__p_wxGIFHandler, | |
33384 | _swigc__p_wxGridBagSizer, | |
33385 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 33386 | _swigc__p_wxHtmlLinkInfo, |
7449af73 RD |
33387 | _swigc__p_wxICOHandler, |
33388 | _swigc__p_wxIcon, | |
33389 | _swigc__p_wxIconBundle, | |
33390 | _swigc__p_wxIconizeEvent, | |
33391 | _swigc__p_wxIdleEvent, | |
33392 | _swigc__p_wxImage, | |
33393 | _swigc__p_wxImageHandler, | |
33394 | _swigc__p_wxIndividualLayoutConstraint, | |
33395 | _swigc__p_wxInitDialogEvent, | |
33396 | _swigc__p_wxJPEGHandler, | |
33397 | _swigc__p_wxKeyEvent, | |
33398 | _swigc__p_wxLayoutAlgorithm, | |
33399 | _swigc__p_wxLayoutConstraints, | |
33400 | _swigc__p_wxMDIChildFrame, | |
33401 | _swigc__p_wxMDIClientWindow, | |
33402 | _swigc__p_wxMDIParentFrame, | |
33403 | _swigc__p_wxMaximizeEvent, | |
33404 | _swigc__p_wxMenu, | |
33405 | _swigc__p_wxMenuBar, | |
33406 | _swigc__p_wxMenuEvent, | |
33407 | _swigc__p_wxMenuItem, | |
33408 | _swigc__p_wxMessageDialog, | |
33409 | _swigc__p_wxMiniFrame, | |
33410 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 33411 | _swigc__p_wxMouseCaptureLostEvent, |
7449af73 RD |
33412 | _swigc__p_wxMouseEvent, |
33413 | _swigc__p_wxMoveEvent, | |
33414 | _swigc__p_wxMultiChoiceDialog, | |
33415 | _swigc__p_wxNavigationKeyEvent, | |
33416 | _swigc__p_wxNcPaintEvent, | |
33417 | _swigc__p_wxNotifyEvent, | |
27e45892 | 33418 | _swigc__p_wxNumberEntryDialog, |
7449af73 RD |
33419 | _swigc__p_wxObject, |
33420 | _swigc__p_wxPCXHandler, | |
33421 | _swigc__p_wxPNGHandler, | |
33422 | _swigc__p_wxPNMHandler, | |
33423 | _swigc__p_wxPageSetupDialog, | |
33424 | _swigc__p_wxPageSetupDialogData, | |
33425 | _swigc__p_wxPaintEvent, | |
33426 | _swigc__p_wxPaletteChangedEvent, | |
33427 | _swigc__p_wxPanel, | |
33428 | _swigc__p_wxPaperSize, | |
33429 | _swigc__p_wxPasswordEntryDialog, | |
33430 | _swigc__p_wxPoint, | |
33431 | _swigc__p_wxPopupWindow, | |
33432 | _swigc__p_wxPreviewCanvas, | |
33433 | _swigc__p_wxPreviewControlBar, | |
33434 | _swigc__p_wxPreviewFrame, | |
33435 | _swigc__p_wxPrintData, | |
33436 | _swigc__p_wxPrintDialog, | |
33437 | _swigc__p_wxPrintDialogData, | |
33438 | _swigc__p_wxPrintPreview, | |
33439 | _swigc__p_wxPrinter, | |
33440 | _swigc__p_wxProgressDialog, | |
33441 | _swigc__p_wxPyApp, | |
33442 | _swigc__p_wxPyCommandEvent, | |
33443 | _swigc__p_wxPyEvent, | |
33444 | _swigc__p_wxPyHtmlListBox, | |
33445 | _swigc__p_wxPyImageHandler, | |
33446 | _swigc__p_wxPyPanel, | |
33447 | _swigc__p_wxPyPopupTransientWindow, | |
33448 | _swigc__p_wxPyPreviewControlBar, | |
33449 | _swigc__p_wxPyPreviewFrame, | |
33450 | _swigc__p_wxPyPrintPreview, | |
33451 | _swigc__p_wxPyPrintout, | |
33452 | _swigc__p_wxPyScrolledWindow, | |
33453 | _swigc__p_wxPySizer, | |
33454 | _swigc__p_wxPyTaskBarIcon, | |
33455 | _swigc__p_wxPyVListBox, | |
33456 | _swigc__p_wxPyVScrolledWindow, | |
33457 | _swigc__p_wxPyValidator, | |
33458 | _swigc__p_wxPyWindow, | |
33459 | _swigc__p_wxQueryLayoutInfoEvent, | |
33460 | _swigc__p_wxQueryNewPaletteEvent, | |
33461 | _swigc__p_wxRect, | |
33462 | _swigc__p_wxRegion, | |
33463 | _swigc__p_wxSashEvent, | |
33464 | _swigc__p_wxSashLayoutWindow, | |
33465 | _swigc__p_wxSashWindow, | |
33466 | _swigc__p_wxScrollEvent, | |
33467 | _swigc__p_wxScrollWinEvent, | |
33468 | _swigc__p_wxScrolledWindow, | |
33469 | _swigc__p_wxSetCursorEvent, | |
33470 | _swigc__p_wxShowEvent, | |
33471 | _swigc__p_wxSingleChoiceDialog, | |
33472 | _swigc__p_wxSize, | |
554f62e9 RD |
33473 | _swigc__p_wxSizeEvent, |
33474 | _swigc__p_wxSizer, | |
33475 | _swigc__p_wxSizerItem, | |
33476 | _swigc__p_wxSplashScreen, | |
33477 | _swigc__p_wxSplashScreenWindow, | |
33478 | _swigc__p_wxSplitterEvent, | |
33479 | _swigc__p_wxSplitterWindow, | |
33480 | _swigc__p_wxStaticBoxSizer, | |
33481 | _swigc__p_wxStatusBar, | |
33482 | _swigc__p_wxStdDialogButtonSizer, | |
33483 | _swigc__p_wxString, | |
33484 | _swigc__p_wxSysColourChangedEvent, | |
33485 | _swigc__p_wxTIFFHandler, | |
33486 | _swigc__p_wxTaskBarIcon, | |
33487 | _swigc__p_wxTaskBarIconEvent, | |
33488 | _swigc__p_wxTextEntryDialog, | |
33489 | _swigc__p_wxTipWindow, | |
33490 | _swigc__p_wxToolBar, | |
33491 | _swigc__p_wxTopLevelWindow, | |
33492 | _swigc__p_wxUpdateUIEvent, | |
33493 | _swigc__p_wxValidator, | |
33494 | _swigc__p_wxVisualAttributes, | |
33495 | _swigc__p_wxWindow, | |
33496 | _swigc__p_wxWindowCreateEvent, | |
33497 | _swigc__p_wxWindowDestroyEvent, | |
33498 | _swigc__p_wxXPMHandler, | |
33499 | }; | |
33500 | ||
33501 | ||
33502 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33503 | ||
33504 | static swig_const_info swig_const_table[] = { | |
33505 | {0, 0, 0, 0.0, 0, 0}}; | |
33506 | ||
093d3ff1 RD |
33507 | #ifdef __cplusplus |
33508 | } | |
33509 | #endif | |
554f62e9 RD |
33510 | /* ----------------------------------------------------------------------------- |
33511 | * Type initialization: | |
33512 | * This problem is tough by the requirement that no dynamic | |
33513 | * memory is used. Also, since swig_type_info structures store pointers to | |
33514 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
33515 | * to swig_type_info structures, we need some lookup code at initialization. | |
33516 | * The idea is that swig generates all the structures that are needed. | |
33517 | * The runtime then collects these partially filled structures. | |
33518 | * The SWIG_InitializeModule function takes these initial arrays out of | |
33519 | * swig_module, and does all the lookup, filling in the swig_module.types | |
33520 | * array with the correct data and linking the correct swig_cast_info | |
33521 | * structures together. | |
33522 | * | |
33523 | * The generated swig_type_info structures are assigned staticly to an initial | |
33524 | * array. We just loop though that array, and handle each type individually. | |
33525 | * First we lookup if this type has been already loaded, and if so, use the | |
33526 | * loaded structure instead of the generated one. Then we have to fill in the | |
33527 | * cast linked list. The cast data is initially stored in something like a | |
33528 | * two-dimensional array. Each row corresponds to a type (there are the same | |
33529 | * number of rows as there are in the swig_type_initial array). Each entry in | |
33530 | * a column is one of the swig_cast_info structures for that type. | |
33531 | * The cast_initial array is actually an array of arrays, because each row has | |
33532 | * a variable number of columns. So to actually build the cast linked list, | |
33533 | * we find the array of casts associated with the type, and loop through it | |
33534 | * adding the casts to the list. The one last trick we need to do is making | |
33535 | * sure the type pointer in the swig_cast_info struct is correct. | |
33536 | * | |
33537 | * First off, we lookup the cast->type name to see if it is already loaded. | |
33538 | * There are three cases to handle: | |
33539 | * 1) If the cast->type has already been loaded AND the type we are adding | |
33540 | * casting info to has not been loaded (it is in this module), THEN we | |
33541 | * replace the cast->type pointer with the type pointer that has already | |
33542 | * been loaded. | |
33543 | * 2) If BOTH types (the one we are adding casting info to, and the | |
33544 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
33545 | * the previous module so we just ignore it. | |
33546 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
33547 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
33548 | * be correct. | |
33549 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 33550 | |
093d3ff1 | 33551 | #ifdef __cplusplus |
554f62e9 RD |
33552 | extern "C" { |
33553 | #if 0 | |
33554 | } /* c-mode */ | |
33555 | #endif | |
33556 | #endif | |
33557 | ||
33558 | #if 0 | |
33559 | #define SWIGRUNTIME_DEBUG | |
33560 | #endif | |
33561 | ||
33562 | SWIGRUNTIME void | |
33563 | SWIG_InitializeModule(void *clientdata) { | |
33564 | size_t i; | |
33565 | swig_module_info *module_head; | |
33566 | static int init_run = 0; | |
33567 | ||
33568 | clientdata = clientdata; | |
33569 | ||
33570 | if (init_run) return; | |
33571 | init_run = 1; | |
33572 | ||
33573 | /* Initialize the swig_module */ | |
33574 | swig_module.type_initial = swig_type_initial; | |
33575 | swig_module.cast_initial = swig_cast_initial; | |
33576 | ||
33577 | /* Try and load any already created modules */ | |
33578 | module_head = SWIG_GetModule(clientdata); | |
33579 | if (module_head) { | |
33580 | swig_module.next = module_head->next; | |
33581 | module_head->next = &swig_module; | |
33582 | } else { | |
33583 | /* This is the first module loaded */ | |
33584 | swig_module.next = &swig_module; | |
33585 | SWIG_SetModule(clientdata, &swig_module); | |
33586 | } | |
33587 | ||
33588 | /* Now work on filling in swig_module.types */ | |
33589 | #ifdef SWIGRUNTIME_DEBUG | |
33590 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
33591 | #endif | |
33592 | for (i = 0; i < swig_module.size; ++i) { | |
33593 | swig_type_info *type = 0; | |
33594 | swig_type_info *ret; | |
33595 | swig_cast_info *cast; | |
d55e5bfc | 33596 | |
554f62e9 RD |
33597 | #ifdef SWIGRUNTIME_DEBUG |
33598 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33599 | #endif | |
d55e5bfc | 33600 | |
554f62e9 RD |
33601 | /* if there is another module already loaded */ |
33602 | if (swig_module.next != &swig_module) { | |
33603 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 33604 | } |
554f62e9 RD |
33605 | if (type) { |
33606 | /* Overwrite clientdata field */ | |
33607 | #ifdef SWIGRUNTIME_DEBUG | |
33608 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
33609 | #endif | |
33610 | if (swig_module.type_initial[i]->clientdata) { | |
33611 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
33612 | #ifdef SWIGRUNTIME_DEBUG | |
33613 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
33614 | #endif | |
33615 | } | |
33616 | } else { | |
33617 | type = swig_module.type_initial[i]; | |
093d3ff1 | 33618 | } |
554f62e9 RD |
33619 | |
33620 | /* Insert casting types */ | |
33621 | cast = swig_module.cast_initial[i]; | |
33622 | while (cast->type) { | |
33623 | /* Don't need to add information already in the list */ | |
33624 | ret = 0; | |
33625 | #ifdef SWIGRUNTIME_DEBUG | |
33626 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
33627 | #endif | |
33628 | if (swig_module.next != &swig_module) { | |
33629 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
33630 | #ifdef SWIGRUNTIME_DEBUG | |
33631 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
33632 | #endif | |
33633 | } | |
33634 | if (ret) { | |
33635 | if (type == swig_module.type_initial[i]) { | |
33636 | #ifdef SWIGRUNTIME_DEBUG | |
33637 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
33638 | #endif | |
33639 | cast->type = ret; | |
33640 | ret = 0; | |
33641 | } else { | |
33642 | /* Check for casting already in the list */ | |
33643 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
33644 | #ifdef SWIGRUNTIME_DEBUG | |
33645 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
33646 | #endif | |
33647 | if (!ocast) ret = 0; | |
33648 | } | |
33649 | } | |
33650 | ||
33651 | if (!ret) { | |
33652 | #ifdef SWIGRUNTIME_DEBUG | |
33653 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
33654 | #endif | |
33655 | if (type->cast) { | |
33656 | type->cast->prev = cast; | |
33657 | cast->next = type->cast; | |
33658 | } | |
33659 | type->cast = cast; | |
33660 | } | |
33661 | cast++; | |
093d3ff1 | 33662 | } |
554f62e9 RD |
33663 | /* Set entry in modules->types array equal to the type */ |
33664 | swig_module.types[i] = type; | |
33665 | } | |
33666 | swig_module.types[i] = 0; | |
33667 | ||
33668 | #ifdef SWIGRUNTIME_DEBUG | |
33669 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33670 | for (i = 0; i < swig_module.size; ++i) { | |
33671 | int j = 0; | |
33672 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
33673 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33674 | while (cast->type) { | |
33675 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
33676 | cast++; | |
33677 | ++j; | |
33678 | } | |
33679 | printf("---- Total casts: %d\n",j); | |
33680 | } | |
33681 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33682 | #endif | |
33683 | } | |
33684 | ||
33685 | /* This function will propagate the clientdata field of type to | |
33686 | * any new swig_type_info structures that have been added into the list | |
33687 | * of equivalent types. It is like calling | |
33688 | * SWIG_TypeClientData(type, clientdata) a second time. | |
33689 | */ | |
33690 | SWIGRUNTIME void | |
33691 | SWIG_PropagateClientData(void) { | |
33692 | size_t i; | |
33693 | swig_cast_info *equiv; | |
33694 | static int init_run = 0; | |
33695 | ||
33696 | if (init_run) return; | |
33697 | init_run = 1; | |
33698 | ||
33699 | for (i = 0; i < swig_module.size; i++) { | |
33700 | if (swig_module.types[i]->clientdata) { | |
33701 | equiv = swig_module.types[i]->cast; | |
33702 | while (equiv) { | |
33703 | if (!equiv->converter) { | |
33704 | if (equiv->type && !equiv->type->clientdata) | |
33705 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
33706 | } | |
33707 | equiv = equiv->next; | |
33708 | } | |
093d3ff1 | 33709 | } |
554f62e9 RD |
33710 | } |
33711 | } | |
33712 | ||
33713 | #ifdef __cplusplus | |
33714 | #if 0 | |
33715 | { | |
33716 | /* c-mode */ | |
33717 | #endif | |
33718 | } | |
33719 | #endif | |
33720 | ||
33721 | ||
33722 | ||
33723 | #ifdef __cplusplus | |
33724 | extern "C" { | |
33725 | #endif | |
33726 | ||
33727 | /* Python-specific SWIG API */ | |
33728 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
33729 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
33730 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
33731 | ||
33732 | /* ----------------------------------------------------------------------------- | |
33733 | * global variable support code. | |
33734 | * ----------------------------------------------------------------------------- */ | |
33735 | ||
33736 | typedef struct swig_globalvar { | |
33737 | char *name; /* Name of global variable */ | |
33738 | PyObject *(*get_attr)(void); /* Return the current value */ | |
33739 | int (*set_attr)(PyObject *); /* Set the value */ | |
33740 | struct swig_globalvar *next; | |
33741 | } swig_globalvar; | |
33742 | ||
33743 | typedef struct swig_varlinkobject { | |
33744 | PyObject_HEAD | |
33745 | swig_globalvar *vars; | |
33746 | } swig_varlinkobject; | |
33747 | ||
33748 | SWIGINTERN PyObject * | |
33749 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
33750 | return PyString_FromString("<Swig global variables>"); | |
33751 | } | |
33752 | ||
33753 | SWIGINTERN PyObject * | |
33754 | swig_varlink_str(swig_varlinkobject *v) { | |
33755 | PyObject *str = PyString_FromString("("); | |
33756 | swig_globalvar *var; | |
33757 | for (var = v->vars; var; var=var->next) { | |
33758 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33759 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33760 | } | |
33761 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33762 | return str; | |
33763 | } | |
33764 | ||
33765 | SWIGINTERN int | |
33766 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33767 | PyObject *str = swig_varlink_str(v); | |
33768 | fprintf(fp,"Swig global variables "); | |
33769 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33770 | Py_DECREF(str); | |
33771 | return 0; | |
33772 | } | |
33773 | ||
33774 | SWIGINTERN void | |
33775 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33776 | swig_globalvar *var = v->vars; | |
33777 | while (var) { | |
33778 | swig_globalvar *n = var->next; | |
33779 | free(var->name); | |
33780 | free(var); | |
33781 | var = n; | |
093d3ff1 | 33782 | } |
554f62e9 RD |
33783 | } |
33784 | ||
33785 | SWIGINTERN PyObject * | |
33786 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33787 | PyObject *res = NULL; | |
33788 | swig_globalvar *var = v->vars; | |
33789 | while (var) { | |
33790 | if (strcmp(var->name,n) == 0) { | |
33791 | res = (*var->get_attr)(); | |
33792 | break; | |
33793 | } | |
33794 | var = var->next; | |
093d3ff1 | 33795 | } |
554f62e9 RD |
33796 | if (res == NULL && !PyErr_Occurred()) { |
33797 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33798 | } |
554f62e9 RD |
33799 | return res; |
33800 | } | |
33801 | ||
33802 | SWIGINTERN int | |
33803 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33804 | int res = 1; | |
33805 | swig_globalvar *var = v->vars; | |
33806 | while (var) { | |
33807 | if (strcmp(var->name,n) == 0) { | |
33808 | res = (*var->set_attr)(p); | |
33809 | break; | |
33810 | } | |
33811 | var = var->next; | |
093d3ff1 | 33812 | } |
554f62e9 RD |
33813 | if (res == 1 && !PyErr_Occurred()) { |
33814 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33815 | } |
554f62e9 RD |
33816 | return res; |
33817 | } | |
33818 | ||
33819 | SWIGINTERN PyTypeObject* | |
33820 | swig_varlink_type(void) { | |
33821 | static char varlink__doc__[] = "Swig var link object"; | |
33822 | static PyTypeObject varlink_type; | |
33823 | static int type_init = 0; | |
33824 | if (!type_init) { | |
33825 | const PyTypeObject tmp | |
33826 | = { | |
33827 | PyObject_HEAD_INIT(NULL) | |
33828 | 0, /* Number of items in variable part (ob_size) */ | |
33829 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33830 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33831 | 0, /* Itemsize (tp_itemsize) */ | |
33832 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33833 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33834 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33835 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33836 | 0, /* tp_compare */ | |
33837 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33838 | 0, /* tp_as_number */ | |
33839 | 0, /* tp_as_sequence */ | |
33840 | 0, /* tp_as_mapping */ | |
33841 | 0, /* tp_hash */ | |
33842 | 0, /* tp_call */ | |
33843 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33844 | 0, /* tp_getattro */ | |
33845 | 0, /* tp_setattro */ | |
33846 | 0, /* tp_as_buffer */ | |
33847 | 0, /* tp_flags */ | |
33848 | varlink__doc__, /* tp_doc */ | |
33849 | 0, /* tp_traverse */ | |
33850 | 0, /* tp_clear */ | |
33851 | 0, /* tp_richcompare */ | |
33852 | 0, /* tp_weaklistoffset */ | |
33853 | #if PY_VERSION_HEX >= 0x02020000 | |
33854 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33855 | #endif | |
33856 | #if PY_VERSION_HEX >= 0x02030000 | |
33857 | 0, /* tp_del */ | |
33858 | #endif | |
33859 | #ifdef COUNT_ALLOCS | |
33860 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33861 | #endif | |
33862 | }; | |
33863 | varlink_type = tmp; | |
33864 | varlink_type.ob_type = &PyType_Type; | |
33865 | type_init = 1; | |
093d3ff1 | 33866 | } |
554f62e9 RD |
33867 | return &varlink_type; |
33868 | } | |
33869 | ||
33870 | /* Create a variable linking object for use later */ | |
33871 | SWIGINTERN PyObject * | |
33872 | SWIG_Python_newvarlink(void) { | |
33873 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33874 | if (result) { | |
33875 | result->vars = 0; | |
33876 | } | |
33877 | return ((PyObject*) result); | |
33878 | } | |
33879 | ||
33880 | SWIGINTERN void | |
33881 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33882 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33883 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33884 | if (gv) { | |
33885 | size_t size = strlen(name)+1; | |
33886 | gv->name = (char *)malloc(size); | |
33887 | if (gv->name) { | |
33888 | strncpy(gv->name,name,size); | |
33889 | gv->get_attr = get_attr; | |
33890 | gv->set_attr = set_attr; | |
33891 | gv->next = v->vars; | |
33892 | } | |
093d3ff1 | 33893 | } |
554f62e9 RD |
33894 | v->vars = gv; |
33895 | } | |
33896 | ||
33897 | SWIGINTERN PyObject * | |
33898 | SWIG_globals() { | |
33899 | static PyObject *_SWIG_globals = 0; | |
33900 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33901 | return _SWIG_globals; | |
33902 | } | |
33903 | ||
33904 | /* ----------------------------------------------------------------------------- | |
33905 | * constants/methods manipulation | |
33906 | * ----------------------------------------------------------------------------- */ | |
33907 | ||
33908 | /* Install Constants */ | |
33909 | SWIGINTERN void | |
33910 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33911 | PyObject *obj = 0; | |
33912 | size_t i; | |
33913 | for (i = 0; constants[i].type; ++i) { | |
33914 | switch(constants[i].type) { | |
33915 | case SWIG_PY_POINTER: | |
33916 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33917 | break; | |
33918 | case SWIG_PY_BINARY: | |
33919 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33920 | break; | |
33921 | default: | |
33922 | obj = 0; | |
33923 | break; | |
33924 | } | |
33925 | if (obj) { | |
33926 | PyDict_SetItemString(d, constants[i].name, obj); | |
33927 | Py_DECREF(obj); | |
33928 | } | |
093d3ff1 | 33929 | } |
554f62e9 RD |
33930 | } |
33931 | ||
33932 | /* -----------------------------------------------------------------------------*/ | |
33933 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33934 | /* -----------------------------------------------------------------------------*/ | |
33935 | ||
33936 | SWIGINTERN void | |
33937 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33938 | swig_const_info *const_table, | |
33939 | swig_type_info **types, | |
33940 | swig_type_info **types_initial) { | |
33941 | size_t i; | |
33942 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 33943 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
33944 | if (c && (c = strstr(c, "swig_ptr: "))) { |
33945 | int j; | |
33946 | swig_const_info *ci = 0; | |
453fb36b | 33947 | const char *name = c + 10; |
554f62e9 RD |
33948 | for (j = 0; const_table[j].type; ++j) { |
33949 | if (strncmp(const_table[j].name, name, | |
33950 | strlen(const_table[j].name)) == 0) { | |
33951 | ci = &(const_table[j]); | |
33952 | break; | |
33953 | } | |
33954 | } | |
33955 | if (ci) { | |
33956 | size_t shift = (ci->ptype) - types; | |
33957 | swig_type_info *ty = types_initial[shift]; | |
33958 | size_t ldoc = (c - methods[i].ml_doc); | |
33959 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33960 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33961 | if (ndoc) { | |
33962 | char *buff = ndoc; | |
33963 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33964 | if (ptr) { | |
33965 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33966 | buff += ldoc; | |
33967 | strncpy(buff, "swig_ptr: ", 10); | |
33968 | buff += 10; | |
33969 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33970 | methods[i].ml_doc = ndoc; | |
33971 | } | |
33972 | } | |
33973 | } | |
33974 | } | |
093d3ff1 | 33975 | } |
554f62e9 RD |
33976 | } |
33977 | ||
33978 | #ifdef __cplusplus | |
33979 | } | |
33980 | #endif | |
33981 | ||
33982 | /* -----------------------------------------------------------------------------* | |
33983 | * Partial Init method | |
33984 | * -----------------------------------------------------------------------------*/ | |
33985 | ||
33986 | #ifdef __cplusplus | |
33987 | extern "C" | |
33988 | #endif | |
33989 | SWIGEXPORT void SWIG_init(void) { | |
33990 | PyObject *m, *d; | |
33991 | ||
33992 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33993 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33994 | ||
33995 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33996 | d = PyModule_GetDict(m); | |
33997 | ||
33998 | SWIG_InitializeModule(0); | |
33999 | SWIG_InstallConstants(d,swig_const_table); | |
34000 | ||
34001 | ||
34002 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
34003 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
34004 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
34005 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
34006 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
34007 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
34008 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
34009 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
34010 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
34011 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
34012 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
34013 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
34014 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
34015 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
34016 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
34017 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
34018 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
34019 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
34020 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
34021 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
34022 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
34023 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
34024 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
34025 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
34026 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
34027 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
34028 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
34029 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
34030 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
fc46b7f3 | 34031 | SWIG_Python_SetConstant(d, "WS_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxWS_EX_CONTEXTHELP))); |
554f62e9 RD |
34032 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); |
34033 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
34034 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
34035 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
fc46b7f3 RD |
34036 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); |
34037 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
554f62e9 RD |
34038 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); |
34039 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
34040 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
34041 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
34042 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
34043 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
34044 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
34045 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
34046 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
34047 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
34048 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
34049 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
34050 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
34051 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
34052 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
34053 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
34054 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
34055 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
34056 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
34057 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
34058 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
34059 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
34060 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
34061 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
34062 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
34063 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
34064 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
34065 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
34066 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
34067 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
34068 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
34069 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
34070 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
34071 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
34072 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
34073 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
34074 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
34075 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
34076 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
34077 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
34078 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
34079 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
34080 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
34081 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
34082 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
34083 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
34084 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
34085 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
34086 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
34087 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
34088 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
34089 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
34090 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
34091 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
34092 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
34093 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
34094 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
34095 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
34096 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
34097 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
34098 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
34099 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
34100 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
34101 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
34102 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
34103 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
34104 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
34105 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
34106 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
34107 | ||
34108 | // Map renamed classes back to their common name for OOR | |
34109 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
34110 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
34111 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
34112 | ||
34113 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
34114 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
34115 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
34116 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
34117 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
34118 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
34119 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
34120 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
34121 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
34122 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
34123 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
34124 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
34125 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
704eda0c RD |
34126 | SWIG_Python_SetConstant(d, "DD_NEW_DIR_BUTTON",SWIG_From_int(static_cast< int >(wxDD_NEW_DIR_BUTTON))); |
34127 | SWIG_Python_SetConstant(d, "DD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDD_DEFAULT_STYLE))); | |
34128 | SWIG_Python_SetConstant(d, "DD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDD_CHANGE_DIR))); | |
34129 | SWIG_Python_SetConstant(d, "OPEN",SWIG_From_int(static_cast< int >(wxOPEN))); | |
34130 | SWIG_Python_SetConstant(d, "SAVE",SWIG_From_int(static_cast< int >(wxSAVE))); | |
34131 | SWIG_Python_SetConstant(d, "OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxOVERWRITE_PROMPT))); | |
34132 | SWIG_Python_SetConstant(d, "FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFILE_MUST_EXIST))); | |
34133 | SWIG_Python_SetConstant(d, "MULTIPLE",SWIG_From_int(static_cast< int >(wxMULTIPLE))); | |
34134 | SWIG_Python_SetConstant(d, "CHANGE_DIR",SWIG_From_int(static_cast< int >(wxCHANGE_DIR))); | |
b02396e8 | 34135 | SWIG_Python_SetConstant(d, "HIDE_READONLY",SWIG_From_int(static_cast< int >(wxHIDE_READONLY))); |
704eda0c RD |
34136 | SWIG_Python_SetConstant(d, "FD_OPEN",SWIG_From_int(static_cast< int >(wxFD_OPEN))); |
34137 | SWIG_Python_SetConstant(d, "FD_SAVE",SWIG_From_int(static_cast< int >(wxFD_SAVE))); | |
34138 | SWIG_Python_SetConstant(d, "FD_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFD_OVERWRITE_PROMPT))); | |
34139 | SWIG_Python_SetConstant(d, "FD_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFD_FILE_MUST_EXIST))); | |
34140 | SWIG_Python_SetConstant(d, "FD_MULTIPLE",SWIG_From_int(static_cast< int >(wxFD_MULTIPLE))); | |
34141 | SWIG_Python_SetConstant(d, "FD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFD_CHANGE_DIR))); | |
1eeb270e | 34142 | SWIG_Python_SetConstant(d, "FD_PREVIEW",SWIG_From_int(static_cast< int >(wxFD_PREVIEW))); |
704eda0c | 34143 | SWIG_Python_SetConstant(d, "FD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFD_DEFAULT_STYLE))); |
554f62e9 RD |
34144 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); |
34145 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
34146 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
34147 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); | |
34148 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
34149 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
34150 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
34151 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
34152 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
34153 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
34154 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
34155 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
34156 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
34157 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
34158 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
34159 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
34160 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
34161 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
34162 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
34163 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
34164 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
34165 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
34166 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
34167 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
34168 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
34169 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
34170 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
34171 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
34172 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
34173 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
34174 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
34175 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
34176 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
34177 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
34178 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
34179 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
34180 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
34181 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
34182 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
34183 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
34184 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
34185 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
34186 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
34187 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
34188 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
34189 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
34190 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
34191 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
34192 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
34193 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
34194 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
34195 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
34196 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
34197 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
34198 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
34199 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
34200 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
34201 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
34202 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
34203 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
34204 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
34205 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
34206 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
34207 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
34208 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
34209 | ||
34210 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
34211 | ||
d55e5bfc RD |
34212 | } |
34213 |