]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d14a1e28 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d14a1e28 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d14a1e28 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
d14a1e28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
15afbcd0 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
15afbcd0 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
994141e6 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
994141e6 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
15afbcd0 RD |
1048 | } |
1049 | ||
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
15afbcd0 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
c32bde28 | 1058 | } |
15afbcd0 | 1059 | |
0085ce49 | 1060 | /* Append a value to the result obj */ |
994141e6 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
c32bde28 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
c32bde28 RD |
1103 | } |
1104 | ||
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1682 | type_init = 1; |
1683 | } | |
32fe5131 | 1684 | return &pyswigobject_type; |
093d3ff1 RD |
1685 | } |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c32bde28 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
093d3ff1 | 1698 | } |
d14a1e28 | 1699 | |
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 1703 | |
093d3ff1 RD |
1704 | typedef struct { |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
c32bde28 | 1710 | |
093d3ff1 | 1711 | SWIGRUNTIME int |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
994141e6 | 1713 | { |
093d3ff1 RD |
1714 | char result[SWIG_BUFFER_SIZE]; |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
15afbcd0 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
15afbcd0 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
15afbcd0 | 1749 | { |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
994141e6 | 1757 | |
093d3ff1 | 1758 | SWIGRUNTIME PyTypeObject* |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 | 1848 | } |
d14a1e28 | 1849 | |
093d3ff1 | 1850 | SWIGRUNTIME PyObject * |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
093d3ff1 | 1867 | } |
d14a1e28 | 1868 | |
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 | 1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d14a1e28 | 1871 | { |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 | 1880 | } |
d14a1e28 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 | 1884 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 1885 | |
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d14a1e28 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d14a1e28 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d14a1e28 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
d14a1e28 | 1949 | |
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
093d3ff1 | 1963 | } |
d14a1e28 | 1964 | |
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
d14a1e28 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
d14a1e28 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
093d3ff1 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2224 | } |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
093d3ff1 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2251 | } |
2252 | ||
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
093d3ff1 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
093d3ff1 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
093d3ff1 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
01f6b6d3 RD |
2466 | #define SWIGTYPE_p_bool swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
2469 | #define SWIGTYPE_p_int swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
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] | |
34e0a3bb RD |
2543 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[77] |
2544 | #define SWIGTYPE_p_wxMouseEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxMoveEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[80] | |
2547 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[81] | |
2548 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[82] | |
2549 | #define SWIGTYPE_p_wxNotifyEvent swig_types[83] | |
2550 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[84] | |
2551 | #define SWIGTYPE_p_wxObject swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPCXHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPNGHandler swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPNMHandler swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPaintEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPanel swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPaperSize swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPoint swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPopupWindow swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPreviewFrame swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPrintData swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPrintDialog swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPrintDialogData swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPrintPreview swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPrinter swig_types[105] | |
2572 | #define SWIGTYPE_p_wxProgressDialog swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyApp swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyImageHandler swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyPanel swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyPrintout swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPySizer swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyVListBox swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyValidator swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyWindow swig_types[124] | |
2591 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[125] | |
2592 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRect swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRegion swig_types[128] | |
2595 | #define SWIGTYPE_p_wxSashEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashWindow swig_types[131] | |
2598 | #define SWIGTYPE_p_wxScrollEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrolledWindow swig_types[134] | |
2601 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxShowEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSize swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplashScreen swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterWindow swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStatusBar swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148] | |
2615 | #define SWIGTYPE_p_wxString swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTIFFHandler swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTipWindow swig_types[155] | |
2622 | #define SWIGTYPE_p_wxToolBar swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[158] | |
2625 | #define SWIGTYPE_p_wxValidator swig_types[159] | |
2626 | #define SWIGTYPE_p_wxVisualAttributes swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindow swig_types[161] | |
2628 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxXPMHandler swig_types[164] | |
2631 | static swig_type_info *swig_types[166]; | |
2632 | static swig_module_info swig_module = {swig_types, 165, 0, 0, 0, 0}; | |
32fe5131 RD |
2633 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2634 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2635 | |
2636 | /* -------- TYPES TABLE (END) -------- */ | |
2637 | ||
0085ce49 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 | ||
0085ce49 | 2660 | #define SWIGVERSION 0x010329 |
093d3ff1 | 2661 | |
093d3ff1 | 2662 | |
0085ce49 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 | ||
0085ce49 | 2667 | #include <stdexcept> |
093d3ff1 RD |
2668 | |
2669 | ||
0085ce49 RD |
2670 | namespace swig { |
2671 | class PyObject_ptr { | |
2672 | protected: | |
2673 | PyObject *_obj; | |
093d3ff1 | 2674 | |
0085ce49 RD |
2675 | public: |
2676 | PyObject_ptr() :_obj(0) | |
2677 | { | |
2678 | } | |
093d3ff1 | 2679 | |
0085ce49 RD |
2680 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2681 | { | |
2682 | Py_XINCREF(_obj); | |
093d3ff1 | 2683 | } |
0085ce49 RD |
2684 | |
2685 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2686 | { | |
2687 | if (initial_ref) Py_XINCREF(_obj); | |
093d3ff1 | 2688 | } |
0085ce49 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 | ||
0085ce49 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 | } |
0085ce49 | 2726 | }; |
093d3ff1 | 2727 | } |
093d3ff1 RD |
2728 | |
2729 | ||
0085ce49 RD |
2730 | #include "wx/wxPython/wxPython.h" |
2731 | #include "wx/wxPython/pyclasses.h" | |
2732 | ||
093d3ff1 | 2733 | |
0085ce49 RD |
2734 | static const wxString wxPyEmptyString(wxEmptyString); |
2735 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 | 2736 | |
093d3ff1 | 2737 | |
0085ce49 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 | { |
0085ce49 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 | ||
0085ce49 RD |
2761 | |
2762 | SWIGINTERN int | |
2763 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2764 | { |
0085ce49 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 | |
0085ce49 | 2779 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2780 | { |
2781 | if (obj == Py_True) { | |
2782 | if (val) *val = true; | |
0085ce49 RD |
2783 | return SWIG_OK; |
2784 | } else if (obj == Py_False) { | |
093d3ff1 | 2785 | if (val) *val = false; |
0085ce49 | 2786 | return SWIG_OK; |
093d3ff1 | 2787 | } else { |
0085ce49 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 | ||
0085ce49 | 2796 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2797 | |
2798 | ||
0085ce49 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 | |
0085ce49 | 2807 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
2808 | { |
2809 | if (PyNumber_Check(obj)) { | |
2810 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 2811 | return SWIG_OK; |
093d3ff1 | 2812 | } |
0085ce49 | 2813 | return SWIG_TypeError; |
093d3ff1 RD |
2814 | } |
2815 | ||
2816 | ||
0085ce49 | 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); | |
0085ce49 RD |
2823 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ /*wxPyRaiseNotImplemented();*/ } |
2824 | SWIGINTERN bool wxTopLevelWindow_MacGetMetalAppearance(wxTopLevelWindow const *self){ /*wxPyRaiseNotImplemented();*/ return false; } | |
10044bf1 | 2825 | |
093d3ff1 | 2826 | |
0085ce49 | 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 | ||
0085ce49 | 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 | { | |
32fe5131 | 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); } | |
d14a1e28 | 2931 | |
01f6b6d3 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(); } | |
d14a1e28 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 | ||
32fe5131 | 2961 | SWIGINTERNINLINE int |
0085ce49 | 2962 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c32bde28 | 2963 | { |
0085ce49 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; | |
15afbcd0 RD |
2968 | } |
2969 | ||
2970 | ||
32fe5131 | 2971 | SWIGINTERNINLINE PyObject* |
0085ce49 | 2972 | SWIG_From_unsigned_SS_long (unsigned long value) |
994141e6 | 2973 | { |
15afbcd0 | 2974 | return (value > LONG_MAX) ? |
0085ce49 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)); | |
994141e6 RD |
2983 | } |
2984 | ||
2985 | ||
d14a1e28 | 2986 | #include <wx/vlbox.h> |
d14a1e28 | 2987 | |
b2dc1044 | 2988 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); |
d14a1e28 RD |
2989 | |
2990 | class wxPyVListBox : public wxVListBox | |
2991 | { | |
32fe5131 | 2992 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d14a1e28 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; | |
75219dcb | 3025 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d14a1e28 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); | |
75219dcb | 3046 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d14a1e28 RD |
3047 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3048 | ||
3049 | ||
0085ce49 | 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 | } | |
0085ce49 | 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 | } | |
d14a1e28 RD |
3069 | |
3070 | #include <wx/htmllbox.h> | |
3071 | ||
3072 | ||
3073 | class wxPyHtmlListBox : public wxHtmlListBox | |
3074 | { | |
32fe5131 | 3075 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d14a1e28 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 | ||
75219dcb RD |
3097 | // These are from wxVListBox |
3098 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3099 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3100 | ||
d14a1e28 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); | |
d14a1e28 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); | |
75219dcb RD |
3129 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3130 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d14a1e28 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 | ||
d14a1e28 RD |
3148 | |
3149 | ||
3150 | ||
ae8162c8 RD |
3151 | #ifndef wxHAS_TASK_BAR_ICON |
3152 | // implement dummy classes for platforms that don't have it | |
d14a1e28 RD |
3153 | |
3154 | class wxTaskBarIcon : public wxEvtHandler | |
3155 | { | |
3156 | public: | |
39f61e25 | 3157 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } |
d14a1e28 | 3158 | }; |
09c21d3b | 3159 | |
d14a1e28 RD |
3160 | |
3161 | class wxTaskBarIconEvent : public wxEvent | |
3162 | { | |
3163 | public: | |
3164 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
39f61e25 | 3165 | { wxPyRaiseNotImplemented(); } |
d14a1e28 | 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; } | |
d14a1e28 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 | { | |
32fe5131 | 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 | |
d14a1e28 RD |
3219 | #endif |
3220 | ||
0085ce49 | 3221 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
74a57fcd | 3222 | self->RemoveIcon(); |
5e483524 | 3223 | delete self; |
74a57fcd | 3224 | } |
b2dc1044 RD |
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 | ||
0085ce49 | 3235 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d14a1e28 RD |
3236 | wxArrayString arr; |
3237 | self->GetFilenames(arr); | |
3238 | return wxArrayString2PyList_helper(arr); | |
3239 | } | |
0085ce49 | 3240 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d14a1e28 RD |
3241 | wxArrayString arr; |
3242 | self->GetPaths(arr); | |
3243 | return wxArrayString2PyList_helper(arr); | |
3244 | } | |
0085ce49 | 3245 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d14a1e28 RD |
3246 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3247 | } | |
0085ce49 | 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){ |
d14a1e28 RD |
3249 | return new wxSingleChoiceDialog(parent, message, caption, |
3250 | choices, choices_array, NULL, style, pos); | |
3251 | } | |
d3b6e4ff | 3252 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d14a1e28 | 3253 | |
01f6b6d3 RD |
3254 | SWIGINTERNINLINE PyObject* |
3255 | SWIG_From_bool (bool value) | |
3256 | { | |
3257 | return PyBool_FromLong(value ? 1 : 0); | |
3258 | } | |
3259 | ||
3260 | ||
d14a1e28 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 | ||
db3e571a | 3276 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d14a1e28 | 3277 | |
976dbff5 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 | ||
d14a1e28 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 | ||
db3e571a | 3312 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3313 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3314 | |
51b83b37 RD |
3315 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3316 | ||
8d38bd1d RD |
3317 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3318 | ||
d14a1e28 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 | ||
db3e571a | 3348 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
db3e571a | 3349 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3350 | |
3351 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d14a1e28 | 3352 | |
8d38bd1d RD |
3353 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3354 | ||
d14a1e28 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 | ||
db3e571a | 3368 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
976dbff5 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 | } | |
db3e571a | 3378 | |
d14a1e28 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 | ||
db3e571a | 3404 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3405 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 3406 | |
51b83b37 RD |
3407 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3408 | ||
8d38bd1d RD |
3409 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3410 | ||
d14a1e28 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 | ||
db3e571a | 3440 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
db3e571a | 3441 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
1cb4a8aa | 3442 | |
51b83b37 RD |
3443 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3444 | ||
8d38bd1d RD |
3445 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3446 | ||
1cb4a8aa 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 | ||
db3e571a | 3460 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
976dbff5 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 | } | |
1cb4a8aa 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 | ||
db3e571a | 3495 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 3496 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
1cb4a8aa | 3497 | |
51b83b37 RD |
3498 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3499 | ||
8d38bd1d RD |
3500 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3501 | ||
1cb4a8aa 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 | ||
db3e571a | 3531 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
db3e571a RD |
3532 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3533 | ||
51b83b37 | 3534 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d14a1e28 | 3535 | |
8d38bd1d RD |
3536 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3537 | ||
d14a1e28 RD |
3538 | |
3539 | #include "wx/wxPython/printfw.h" | |
3540 | ||
d14a1e28 | 3541 | |
33b885b9 RD |
3542 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); |
3543 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
0085ce49 | 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 | } | |
0085ce49 | 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 | } | |
d14a1e28 RD |
3563 | |
3564 | ||
a68b8331 | 3565 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d14a1e28 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; |
d14a1e28 RD |
3570 | bool found; |
3571 | ||
5a446332 | 3572 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 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; |
d14a1e28 RD |
3581 | |
3582 | val = PyTuple_GetItem(result, 1); | |
3583 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
ae8162c8 | 3584 | else hadErr = true; |
d14a1e28 RD |
3585 | |
3586 | val = PyTuple_GetItem(result, 2); | |
3587 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
ae8162c8 | 3588 | else hadErr = true; |
d14a1e28 RD |
3589 | |
3590 | val = PyTuple_GetItem(result, 3); | |
3591 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
ae8162c8 | 3592 | else hadErr = true; |
d14a1e28 RD |
3593 | } |
3594 | else | |
ae8162c8 | 3595 | hadErr = true; |
d14a1e28 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 | } | |
4f89f6a3 | 3603 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
3604 | if (! found) |
3605 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3606 | } | |
3607 | ||
d14a1e28 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) \ |
c26d9ab4 | 3623 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d14a1e28 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; \ | |
32fe5131 | 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; \ | |
c26d9ab4 | 3642 | } |
d14a1e28 RD |
3643 | |
3644 | ||
3645 | ||
3646 | ||
3647 | class wxPyPrintPreview : public wxPrintPreview | |
3648 | { | |
3649 | DECLARE_CLASS(wxPyPrintPreview) | |
3650 | public: | |
4276dc52 RD |
3651 | wxPyPrintPreview(wxPyPrintout* printout, |
3652 | wxPyPrintout* printoutForPrinting, | |
3653 | wxPrintDialogData* data=NULL) | |
3654 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3655 | {} | |
d14a1e28 RD |
3656 | wxPyPrintPreview(wxPyPrintout* printout, |
3657 | wxPyPrintout* printoutForPrinting, | |
32fe5131 | 3658 | wxPrintData* data) |
d14a1e28 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 | { | |
32fe5131 | 3693 | DECLARE_CLASS(wxPyPreviewFrame) |
d14a1e28 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 | { | |
32fe5131 | 3723 | DECLARE_CLASS(wxPyPreviewControlBar) |
d14a1e28 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 | |
0085ce49 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) { | |
d14a1e28 | 3795 | { |
0085ce49 RD |
3796 | arg3 = &temp3; |
3797 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 3798 | } |
0085ce49 RD |
3799 | } |
3800 | if (obj3) { | |
d14a1e28 | 3801 | { |
0085ce49 RD |
3802 | arg4 = &temp4; |
3803 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 3804 | } |
0085ce49 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) { | |
d14a1e28 | 3814 | { |
0085ce49 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; | |
d14a1e28 RD |
3839 | } |
3840 | ||
3841 | ||
0085ce49 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) { | |
4f89f6a3 | 3915 | { |
0085ce49 RD |
3916 | arg4 = &temp4; |
3917 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 3918 | } |
0085ce49 RD |
3919 | } |
3920 | if (obj4) { | |
d14a1e28 | 3921 | { |
0085ce49 RD |
3922 | arg5 = &temp5; |
3923 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 3924 | } |
0085ce49 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) { | |
d14a1e28 | 3934 | { |
0085ce49 RD |
3935 | arg7 = wxString_in_helper(obj6); |
3936 | if (arg7 == NULL) SWIG_fail; | |
3937 | temp7 = true; | |
d14a1e28 | 3938 | } |
0085ce49 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; | |
5cbf236d RD |
3960 | } |
3961 | ||
3962 | ||
0085ce49 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) { | |
5cbf236d | 4079 | { |
0085ce49 RD |
4080 | arg3 = &temp3; |
4081 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22bfe96c | 4082 | } |
0085ce49 RD |
4083 | } |
4084 | if (obj3) { | |
22bfe96c | 4085 | { |
0085ce49 RD |
4086 | arg4 = &temp4; |
4087 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22bfe96c | 4088 | } |
0085ce49 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) { | |
22bfe96c | 4098 | { |
0085ce49 RD |
4099 | arg6 = wxString_in_helper(obj5); |
4100 | if (arg6 == NULL) SWIG_fail; | |
4101 | temp6 = true; | |
22bfe96c | 4102 | } |
0085ce49 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; | |
22bfe96c RD |
4123 | } |
4124 | ||
4125 | ||
0085ce49 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) { | |
d14a1e28 | 4199 | { |
0085ce49 RD |
4200 | arg4 = &temp4; |
4201 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4202 | } | |
4203 | } | |
4204 | if (obj4) { | |
d14a1e28 | 4205 | { |
0085ce49 RD |
4206 | arg5 = &temp5; |
4207 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 4208 | } |
0085ce49 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) { | |
d14a1e28 | 4218 | { |
0085ce49 RD |
4219 | arg7 = wxString_in_helper(obj6); |
4220 | if (arg7 == NULL) SWIG_fail; | |
4221 | temp7 = true; | |
d14a1e28 | 4222 | } |
0085ce49 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; | |
d14a1e28 RD |
4710 | } |
4711 | ||
4712 | ||
0085ce49 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; | |
d14a1e28 RD |
4738 | } |
4739 | ||
4740 | ||
0085ce49 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; | |
d14a1e28 RD |
4766 | } |
4767 | ||
4768 | ||
0085ce49 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; | |
d14a1e28 RD |
4859 | } |
4860 | ||
4861 | ||
0085ce49 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; | |
d14a1e28 RD |
4878 | } |
4879 | ||
4880 | ||
0085ce49 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; | |
d14a1e28 RD |
4971 | } |
4972 | ||
4973 | ||
0085ce49 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; | |
d14a1e28 RD |
4990 | } |
4991 | ||
4992 | ||
0085ce49 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; | |
d14a1e28 RD |
5097 | } |
5098 | ||
5099 | ||
0085ce49 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_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5131 | PyObject *resultobj = 0; | |
5132 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5133 | wxDC *arg2 = 0 ; | |
5134 | void *argp1 = 0 ; | |
5135 | int res1 = 0 ; | |
5136 | void *argp2 = 0 ; | |
5137 | int res2 = 0 ; | |
5138 | PyObject * obj0 = 0 ; | |
5139 | PyObject * obj1 = 0 ; | |
5140 | char * kwnames[] = { | |
5141 | (char *) "self",(char *) "dc", NULL | |
5142 | }; | |
5143 | ||
5144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5146 | if (!SWIG_IsOK(res1)) { | |
5147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5148 | } | |
5149 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5150 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5151 | if (!SWIG_IsOK(res2)) { | |
5152 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5153 | } | |
5154 | if (!argp2) { | |
5155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5156 | } | |
5157 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | (arg1)->DoPrepareDC(*arg2); | |
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | resultobj = SWIG_Py_Void(); | |
5165 | return resultobj; | |
5166 | fail: | |
5167 | return NULL; | |
5168 | } | |
5169 | ||
5170 | ||
5171 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5172 | PyObject *resultobj = 0; | |
5173 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5174 | SwigValueWrapper<wxVisualAttributes > result; | |
5175 | int val1 ; | |
5176 | int ecode1 = 0 ; | |
5177 | PyObject * obj0 = 0 ; | |
5178 | char * kwnames[] = { | |
5179 | (char *) "variant", NULL | |
5180 | }; | |
5181 | ||
5182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5183 | if (obj0) { | |
5184 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5185 | if (!SWIG_IsOK(ecode1)) { | |
5186 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5187 | } | |
5188 | arg1 = static_cast< wxWindowVariant >(val1); | |
5189 | } | |
5190 | { | |
5191 | if (!wxPyCheckForApp()) SWIG_fail; | |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5193 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5194 | wxPyEndAllowThreads(__tstate); | |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
d14a1e28 RD |
5201 | } |
5202 | ||
5203 | ||
0085ce49 RD |
5204 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5205 | PyObject *obj; | |
5206 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5207 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5208 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5209 | } |
5210 | ||
0085ce49 RD |
5211 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5212 | return SWIG_Python_InitShadowInstance(args); | |
5213 | } | |
d14a1e28 | 5214 | |
0085ce49 RD |
5215 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5216 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5217 | return 1; | |
d14a1e28 RD |
5218 | } |
5219 | ||
5220 | ||
0085ce49 RD |
5221 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5222 | PyObject *pyobj = 0; | |
5223 | ||
5224 | { | |
5225 | #if wxUSE_UNICODE | |
5226 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5227 | #else | |
5228 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5229 | #endif | |
5230 | } | |
5231 | return pyobj; | |
d14a1e28 RD |
5232 | } |
5233 | ||
5234 | ||
0085ce49 RD |
5235 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5236 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5237 | return 1; | |
d14a1e28 RD |
5238 | } |
5239 | ||
5240 | ||
0085ce49 RD |
5241 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5242 | PyObject *pyobj = 0; | |
5243 | ||
5244 | { | |
5245 | #if wxUSE_UNICODE | |
5246 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5247 | #else | |
5248 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5249 | #endif | |
5250 | } | |
5251 | return pyobj; | |
d14a1e28 RD |
5252 | } |
5253 | ||
5254 | ||
0085ce49 RD |
5255 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5256 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5257 | return 1; | |
d14a1e28 RD |
5258 | } |
5259 | ||
5260 | ||
0085ce49 RD |
5261 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5262 | PyObject *pyobj = 0; | |
5263 | ||
5264 | { | |
5265 | #if wxUSE_UNICODE | |
5266 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5267 | #else | |
5268 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5269 | #endif | |
5270 | } | |
5271 | return pyobj; | |
d14a1e28 RD |
5272 | } |
5273 | ||
5274 | ||
0085ce49 RD |
5275 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5276 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5277 | return 1; | |
d14a1e28 RD |
5278 | } |
5279 | ||
5280 | ||
0085ce49 RD |
5281 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5282 | PyObject *pyobj = 0; | |
5283 | ||
5284 | { | |
5285 | #if wxUSE_UNICODE | |
5286 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5287 | #else | |
5288 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5289 | #endif | |
5290 | } | |
5291 | return pyobj; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5296 | PyObject *resultobj = 0; | |
5297 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5298 | bool arg2 = (bool) true ; | |
5299 | void *argp1 = 0 ; | |
5300 | int res1 = 0 ; | |
5301 | bool val2 ; | |
5302 | int ecode2 = 0 ; | |
5303 | PyObject * obj0 = 0 ; | |
5304 | PyObject * obj1 = 0 ; | |
5305 | char * kwnames[] = { | |
5306 | (char *) "self",(char *) "maximize", NULL | |
5307 | }; | |
5308 | ||
5309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5311 | if (!SWIG_IsOK(res1)) { | |
5312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5313 | } | |
5314 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5315 | if (obj1) { | |
5316 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5317 | if (!SWIG_IsOK(ecode2)) { | |
5318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5319 | } | |
5320 | arg2 = static_cast< bool >(val2); | |
5321 | } | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | (arg1)->Maximize(arg2); | |
5325 | wxPyEndAllowThreads(__tstate); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | } | |
5328 | resultobj = SWIG_Py_Void(); | |
5329 | return resultobj; | |
5330 | fail: | |
5331 | return NULL; | |
d14a1e28 RD |
5332 | } |
5333 | ||
5334 | ||
0085ce49 RD |
5335 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5336 | PyObject *resultobj = 0; | |
5337 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5338 | void *argp1 = 0 ; | |
5339 | int res1 = 0 ; | |
5340 | PyObject *swig_obj[1] ; | |
5341 | ||
5342 | if (!args) SWIG_fail; | |
5343 | swig_obj[0] = args; | |
5344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5345 | if (!SWIG_IsOK(res1)) { | |
5346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5347 | } | |
5348 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | (arg1)->Restore(); | |
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | resultobj = SWIG_Py_Void(); | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | return NULL; | |
5359 | } | |
5360 | ||
5361 | ||
5362 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5363 | PyObject *resultobj = 0; | |
5364 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5365 | bool arg2 = (bool) true ; | |
5366 | void *argp1 = 0 ; | |
5367 | int res1 = 0 ; | |
5368 | bool val2 ; | |
5369 | int ecode2 = 0 ; | |
5370 | PyObject * obj0 = 0 ; | |
5371 | PyObject * obj1 = 0 ; | |
5372 | char * kwnames[] = { | |
5373 | (char *) "self",(char *) "iconize", NULL | |
5374 | }; | |
5375 | ||
5376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5378 | if (!SWIG_IsOK(res1)) { | |
5379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5380 | } | |
5381 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5382 | if (obj1) { | |
5383 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5384 | if (!SWIG_IsOK(ecode2)) { | |
5385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5386 | } | |
5387 | arg2 = static_cast< bool >(val2); | |
5388 | } | |
5389 | { | |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5391 | (arg1)->Iconize(arg2); | |
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
5395 | resultobj = SWIG_Py_Void(); | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | return NULL; | |
d14a1e28 RD |
5399 | } |
5400 | ||
5401 | ||
0085ce49 RD |
5402 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5403 | PyObject *resultobj = 0; | |
5404 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5405 | bool result; | |
5406 | void *argp1 = 0 ; | |
5407 | int res1 = 0 ; | |
5408 | PyObject *swig_obj[1] ; | |
5409 | ||
5410 | if (!args) SWIG_fail; | |
5411 | swig_obj[0] = args; | |
5412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5413 | if (!SWIG_IsOK(res1)) { | |
5414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5415 | } | |
5416 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5417 | { | |
5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5419 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5425 | } | |
5426 | return resultobj; | |
5427 | fail: | |
5428 | return NULL; | |
d14a1e28 RD |
5429 | } |
5430 | ||
5431 | ||
01f6b6d3 RD |
5432 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsAlwaysMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5433 | PyObject *resultobj = 0; | |
5434 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5435 | bool result; | |
5436 | void *argp1 = 0 ; | |
5437 | int res1 = 0 ; | |
5438 | PyObject *swig_obj[1] ; | |
5439 | ||
5440 | if (!args) SWIG_fail; | |
5441 | swig_obj[0] = args; | |
5442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5443 | if (!SWIG_IsOK(res1)) { | |
5444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsAlwaysMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5445 | } | |
5446 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5449 | result = (bool)((wxTopLevelWindow const *)arg1)->IsAlwaysMaximized(); | |
5450 | wxPyEndAllowThreads(__tstate); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | { | |
5454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5455 | } | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
0085ce49 RD |
5462 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5463 | PyObject *resultobj = 0; | |
5464 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5465 | bool result; | |
5466 | void *argp1 = 0 ; | |
5467 | int res1 = 0 ; | |
5468 | PyObject *swig_obj[1] ; | |
5469 | ||
5470 | if (!args) SWIG_fail; | |
5471 | swig_obj[0] = args; | |
5472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5473 | if (!SWIG_IsOK(res1)) { | |
5474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5475 | } | |
5476 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5477 | { | |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
5483 | { | |
5484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5485 | } | |
5486 | return resultobj; | |
5487 | fail: | |
5488 | return NULL; | |
f5b96ee1 RD |
5489 | } |
5490 | ||
5491 | ||
0085ce49 RD |
5492 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5493 | PyObject *resultobj = 0; | |
5494 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5495 | wxIcon result; | |
5496 | void *argp1 = 0 ; | |
5497 | int res1 = 0 ; | |
5498 | PyObject *swig_obj[1] ; | |
5499 | ||
5500 | if (!args) SWIG_fail; | |
5501 | swig_obj[0] = args; | |
5502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5503 | if (!SWIG_IsOK(res1)) { | |
5504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5505 | } | |
5506 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5507 | { | |
5508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5509 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5514 | return resultobj; | |
5515 | fail: | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj = 0; | |
5522 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5523 | wxIcon *arg2 = 0 ; | |
5524 | void *argp1 = 0 ; | |
5525 | int res1 = 0 ; | |
5526 | void *argp2 = 0 ; | |
5527 | int res2 = 0 ; | |
5528 | PyObject * obj0 = 0 ; | |
5529 | PyObject * obj1 = 0 ; | |
5530 | char * kwnames[] = { | |
5531 | (char *) "self",(char *) "icon", NULL | |
5532 | }; | |
5533 | ||
5534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5536 | if (!SWIG_IsOK(res1)) { | |
5537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5538 | } | |
5539 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5540 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5541 | if (!SWIG_IsOK(res2)) { | |
5542 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5543 | } | |
5544 | if (!argp2) { | |
5545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5546 | } | |
5547 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5548 | { | |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | resultobj = SWIG_Py_Void(); | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj = 0; | |
5563 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5564 | wxIconBundle *arg2 = 0 ; | |
5565 | void *argp1 = 0 ; | |
5566 | int res1 = 0 ; | |
5567 | void *argp2 = 0 ; | |
5568 | int res2 = 0 ; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | PyObject * obj1 = 0 ; | |
5571 | char * kwnames[] = { | |
5572 | (char *) "self",(char *) "icons", NULL | |
5573 | }; | |
5574 | ||
5575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5577 | if (!SWIG_IsOK(res1)) { | |
5578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5579 | } | |
5580 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5581 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5582 | if (!SWIG_IsOK(res2)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5584 | } | |
5585 | if (!argp2) { | |
5586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5587 | } | |
5588 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5589 | { | |
5590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5591 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5592 | wxPyEndAllowThreads(__tstate); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
5594 | } | |
5595 | resultobj = SWIG_Py_Void(); | |
5596 | return resultobj; | |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5603 | PyObject *resultobj = 0; | |
5604 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5605 | bool arg2 ; | |
5606 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5607 | bool result; | |
5608 | void *argp1 = 0 ; | |
5609 | int res1 = 0 ; | |
5610 | bool val2 ; | |
5611 | int ecode2 = 0 ; | |
5612 | long val3 ; | |
5613 | int ecode3 = 0 ; | |
5614 | PyObject * obj0 = 0 ; | |
5615 | PyObject * obj1 = 0 ; | |
5616 | PyObject * obj2 = 0 ; | |
5617 | char * kwnames[] = { | |
5618 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5619 | }; | |
5620 | ||
5621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5623 | if (!SWIG_IsOK(res1)) { | |
5624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5625 | } | |
5626 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5627 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5628 | if (!SWIG_IsOK(ecode2)) { | |
5629 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5630 | } | |
5631 | arg2 = static_cast< bool >(val2); | |
5632 | if (obj2) { | |
5633 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5634 | if (!SWIG_IsOK(ecode3)) { | |
5635 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5636 | } | |
5637 | arg3 = static_cast< long >(val3); | |
5638 | } | |
5639 | { | |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5642 | wxPyEndAllowThreads(__tstate); | |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
5644 | } | |
5645 | { | |
5646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5647 | } | |
5648 | return resultobj; | |
5649 | fail: | |
5650 | return NULL; | |
22bfe96c RD |
5651 | } |
5652 | ||
5653 | ||
0085ce49 RD |
5654 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5655 | PyObject *resultobj = 0; | |
5656 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5657 | bool result; | |
5658 | void *argp1 = 0 ; | |
5659 | int res1 = 0 ; | |
5660 | PyObject *swig_obj[1] ; | |
5661 | ||
5662 | if (!args) SWIG_fail; | |
5663 | swig_obj[0] = args; | |
5664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5665 | if (!SWIG_IsOK(res1)) { | |
5666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5667 | } | |
5668 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5669 | { | |
5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5671 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) SWIG_fail; | |
5674 | } | |
5675 | { | |
5676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5677 | } | |
5678 | return resultobj; | |
5679 | fail: | |
5680 | return NULL; | |
5681 | } | |
5682 | ||
5683 | ||
5684 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5685 | PyObject *resultobj = 0; | |
5686 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5687 | wxString *arg2 = 0 ; | |
5688 | void *argp1 = 0 ; | |
5689 | int res1 = 0 ; | |
5690 | bool temp2 = false ; | |
5691 | PyObject * obj0 = 0 ; | |
5692 | PyObject * obj1 = 0 ; | |
5693 | char * kwnames[] = { | |
5694 | (char *) "self",(char *) "title", NULL | |
5695 | }; | |
5696 | ||
5697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5699 | if (!SWIG_IsOK(res1)) { | |
5700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5701 | } | |
5702 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5703 | { | |
5704 | arg2 = wxString_in_helper(obj1); | |
5705 | if (arg2 == NULL) SWIG_fail; | |
5706 | temp2 = true; | |
5707 | } | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | (arg1)->SetTitle((wxString const &)*arg2); | |
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | resultobj = SWIG_Py_Void(); | |
5715 | { | |
5716 | if (temp2) | |
5717 | delete arg2; | |
5718 | } | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | { | |
5722 | if (temp2) | |
5723 | delete arg2; | |
5724 | } | |
5725 | return NULL; | |
b2dc1044 RD |
5726 | } |
5727 | ||
5728 | ||
0085ce49 RD |
5729 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5730 | PyObject *resultobj = 0; | |
5731 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5732 | wxString result; | |
5733 | void *argp1 = 0 ; | |
5734 | int res1 = 0 ; | |
5735 | PyObject *swig_obj[1] ; | |
5736 | ||
5737 | if (!args) SWIG_fail; | |
5738 | swig_obj[0] = args; | |
5739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5740 | if (!SWIG_IsOK(res1)) { | |
5741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5742 | } | |
5743 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5747 | wxPyEndAllowThreads(__tstate); | |
5748 | if (PyErr_Occurred()) SWIG_fail; | |
5749 | } | |
5750 | { | |
b2dc1044 | 5751 | #if wxUSE_UNICODE |
0085ce49 | 5752 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5753 | #else |
0085ce49 | 5754 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
b2dc1044 | 5755 | #endif |
0085ce49 RD |
5756 | } |
5757 | return resultobj; | |
5758 | fail: | |
5759 | return NULL; | |
5760 | } | |
5761 | ||
5762 | ||
70d7cb34 RD |
5763 | SWIGINTERN PyObject *_wrap_TopLevelWindow_EnableCloseButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5764 | PyObject *resultobj = 0; | |
5765 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5766 | bool arg2 ; | |
5767 | bool result; | |
5768 | void *argp1 = 0 ; | |
5769 | int res1 = 0 ; | |
5770 | bool val2 ; | |
5771 | int ecode2 = 0 ; | |
5772 | PyObject * obj0 = 0 ; | |
5773 | PyObject * obj1 = 0 ; | |
5774 | char * kwnames[] = { | |
5775 | (char *) "self",(char *) "enable", NULL | |
5776 | }; | |
5777 | ||
5778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_EnableCloseButton",kwnames,&obj0,&obj1)) SWIG_fail; | |
5779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5780 | if (!SWIG_IsOK(res1)) { | |
5781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5782 | } | |
5783 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5784 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5785 | if (!SWIG_IsOK(ecode2)) { | |
5786 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_EnableCloseButton" "', expected argument " "2"" of type '" "bool""'"); | |
5787 | } | |
5788 | arg2 = static_cast< bool >(val2); | |
5789 | { | |
5790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5791 | result = (bool)(arg1)->EnableCloseButton(arg2); | |
5792 | wxPyEndAllowThreads(__tstate); | |
5793 | if (PyErr_Occurred()) SWIG_fail; | |
5794 | } | |
5795 | { | |
5796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5797 | } | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
0085ce49 RD |
5804 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5805 | PyObject *resultobj = 0; | |
5806 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5807 | wxRegion *arg2 = 0 ; | |
5808 | bool result; | |
5809 | void *argp1 = 0 ; | |
5810 | int res1 = 0 ; | |
5811 | void *argp2 = 0 ; | |
5812 | int res2 = 0 ; | |
5813 | PyObject * obj0 = 0 ; | |
5814 | PyObject * obj1 = 0 ; | |
5815 | char * kwnames[] = { | |
5816 | (char *) "self",(char *) "region", NULL | |
5817 | }; | |
5818 | ||
5819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5821 | if (!SWIG_IsOK(res1)) { | |
5822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5823 | } | |
5824 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5825 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5826 | if (!SWIG_IsOK(res2)) { | |
5827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5828 | } | |
5829 | if (!argp2) { | |
5830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5831 | } | |
5832 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5833 | { | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5836 | wxPyEndAllowThreads(__tstate); | |
5837 | if (PyErr_Occurred()) SWIG_fail; | |
5838 | } | |
5839 | { | |
5840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5841 | } | |
5842 | return resultobj; | |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
5848 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5849 | PyObject *resultobj = 0; | |
5850 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5851 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5852 | void *argp1 = 0 ; | |
5853 | int res1 = 0 ; | |
5854 | int val2 ; | |
5855 | int ecode2 = 0 ; | |
5856 | PyObject * obj0 = 0 ; | |
5857 | PyObject * obj1 = 0 ; | |
5858 | char * kwnames[] = { | |
5859 | (char *) "self",(char *) "flags", NULL | |
5860 | }; | |
5861 | ||
5862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5864 | if (!SWIG_IsOK(res1)) { | |
5865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5866 | } | |
5867 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5868 | if (obj1) { | |
5869 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5870 | if (!SWIG_IsOK(ecode2)) { | |
5871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5872 | } | |
5873 | arg2 = static_cast< int >(val2); | |
5874 | } | |
5875 | { | |
5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5877 | (arg1)->RequestUserAttention(arg2); | |
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
5881 | resultobj = SWIG_Py_Void(); | |
5882 | return resultobj; | |
5883 | fail: | |
5884 | return NULL; | |
b2dc1044 RD |
5885 | } |
5886 | ||
5887 | ||
0085ce49 RD |
5888 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5889 | PyObject *resultobj = 0; | |
5890 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5891 | bool result; | |
5892 | void *argp1 = 0 ; | |
5893 | int res1 = 0 ; | |
5894 | PyObject *swig_obj[1] ; | |
5895 | ||
5896 | if (!args) SWIG_fail; | |
5897 | swig_obj[0] = args; | |
5898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5899 | if (!SWIG_IsOK(res1)) { | |
5900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5901 | } | |
5902 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5903 | { | |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5905 | result = (bool)(arg1)->IsActive(); | |
5906 | wxPyEndAllowThreads(__tstate); | |
5907 | if (PyErr_Occurred()) SWIG_fail; | |
5908 | } | |
5909 | { | |
5910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5911 | } | |
5912 | return resultobj; | |
5913 | fail: | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj = 0; | |
5920 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5921 | bool arg2 ; | |
5922 | void *argp1 = 0 ; | |
5923 | int res1 = 0 ; | |
5924 | bool val2 ; | |
5925 | int ecode2 = 0 ; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | PyObject * obj1 = 0 ; | |
5928 | char * kwnames[] = { | |
5929 | (char *) "self",(char *) "on", NULL | |
5930 | }; | |
5931 | ||
5932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5934 | if (!SWIG_IsOK(res1)) { | |
5935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5936 | } | |
5937 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5938 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5939 | if (!SWIG_IsOK(ecode2)) { | |
5940 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5941 | } | |
5942 | arg2 = static_cast< bool >(val2); | |
5943 | { | |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
5949 | resultobj = SWIG_Py_Void(); | |
5950 | return resultobj; | |
5951 | fail: | |
5952 | return NULL; | |
b2dc1044 RD |
5953 | } |
5954 | ||
5955 | ||
0085ce49 RD |
5956 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5957 | PyObject *resultobj = 0; | |
5958 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5959 | bool result; | |
5960 | void *argp1 = 0 ; | |
5961 | int res1 = 0 ; | |
5962 | PyObject *swig_obj[1] ; | |
5963 | ||
5964 | if (!args) SWIG_fail; | |
5965 | swig_obj[0] = args; | |
5966 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5967 | if (!SWIG_IsOK(res1)) { | |
5968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5969 | } | |
5970 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1); | |
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
5977 | { | |
5978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5979 | } | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
5986 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj = 0; | |
5988 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5989 | int arg2 = (int) wxBOTH ; | |
5990 | void *argp1 = 0 ; | |
5991 | int res1 = 0 ; | |
5992 | int val2 ; | |
5993 | int ecode2 = 0 ; | |
5994 | PyObject * obj0 = 0 ; | |
5995 | PyObject * obj1 = 0 ; | |
5996 | char * kwnames[] = { | |
5997 | (char *) "self",(char *) "dir", NULL | |
5998 | }; | |
5999 | ||
6000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
6001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6002 | if (!SWIG_IsOK(res1)) { | |
6003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6004 | } | |
6005 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6006 | if (obj1) { | |
6007 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6008 | if (!SWIG_IsOK(ecode2)) { | |
6009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
6010 | } | |
6011 | arg2 = static_cast< int >(val2); | |
6012 | } | |
6013 | { | |
6014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6015 | (arg1)->CenterOnScreen(arg2); | |
6016 | wxPyEndAllowThreads(__tstate); | |
6017 | if (PyErr_Occurred()) SWIG_fail; | |
6018 | } | |
6019 | resultobj = SWIG_Py_Void(); | |
6020 | return resultobj; | |
6021 | fail: | |
6022 | return NULL; | |
6023 | } | |
6024 | ||
6025 | ||
10044bf1 RD |
6026 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6027 | PyObject *resultobj = 0; | |
6028 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6029 | wxWindow *result = 0 ; | |
6030 | void *argp1 = 0 ; | |
6031 | int res1 = 0 ; | |
6032 | PyObject *swig_obj[1] ; | |
6033 | ||
6034 | if (!args) SWIG_fail; | |
6035 | swig_obj[0] = args; | |
6036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6037 | if (!SWIG_IsOK(res1)) { | |
6038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6039 | } | |
6040 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6041 | { | |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6043 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetDefaultItem(); | |
6044 | wxPyEndAllowThreads(__tstate); | |
6045 | if (PyErr_Occurred()) SWIG_fail; | |
6046 | } | |
6047 | { | |
6048 | resultobj = wxPyMake_wxObject(result, 0); | |
6049 | } | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
6056 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6057 | PyObject *resultobj = 0; | |
6058 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6060 | wxWindow *result = 0 ; | |
6061 | void *argp1 = 0 ; | |
6062 | int res1 = 0 ; | |
6063 | void *argp2 = 0 ; | |
6064 | int res2 = 0 ; | |
6065 | PyObject * obj0 = 0 ; | |
6066 | PyObject * obj1 = 0 ; | |
6067 | char * kwnames[] = { | |
6068 | (char *) "self",(char *) "child", NULL | |
6069 | }; | |
6070 | ||
6071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6073 | if (!SWIG_IsOK(res1)) { | |
6074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6075 | } | |
6076 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6077 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6078 | if (!SWIG_IsOK(res2)) { | |
6079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6080 | } | |
6081 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6082 | { | |
6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6084 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
6085 | wxPyEndAllowThreads(__tstate); | |
6086 | if (PyErr_Occurred()) SWIG_fail; | |
6087 | } | |
6088 | { | |
6089 | resultobj = wxPyMake_wxObject(result, 0); | |
6090 | } | |
6091 | return resultobj; | |
6092 | fail: | |
6093 | return NULL; | |
6094 | } | |
6095 | ||
6096 | ||
6097 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6098 | PyObject *resultobj = 0; | |
6099 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6101 | void *argp1 = 0 ; | |
6102 | int res1 = 0 ; | |
6103 | void *argp2 = 0 ; | |
6104 | int res2 = 0 ; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | PyObject * obj1 = 0 ; | |
6107 | char * kwnames[] = { | |
6108 | (char *) "self",(char *) "win", NULL | |
6109 | }; | |
6110 | ||
6111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTmpDefaultItem",kwnames,&obj0,&obj1)) SWIG_fail; | |
6112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6113 | if (!SWIG_IsOK(res1)) { | |
6114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
6115 | } | |
6116 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6117 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6118 | if (!SWIG_IsOK(res2)) { | |
6119 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetTmpDefaultItem" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6120 | } | |
6121 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6122 | { | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | (arg1)->SetTmpDefaultItem(arg2); | |
6125 | wxPyEndAllowThreads(__tstate); | |
6126 | if (PyErr_Occurred()) SWIG_fail; | |
6127 | } | |
6128 | resultobj = SWIG_Py_Void(); | |
6129 | return resultobj; | |
6130 | fail: | |
6131 | return NULL; | |
6132 | } | |
6133 | ||
6134 | ||
6135 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTmpDefaultItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6136 | PyObject *resultobj = 0; | |
6137 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
6138 | wxWindow *result = 0 ; | |
6139 | void *argp1 = 0 ; | |
6140 | int res1 = 0 ; | |
6141 | PyObject *swig_obj[1] ; | |
6142 | ||
6143 | if (!args) SWIG_fail; | |
6144 | swig_obj[0] = args; | |
6145 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
6146 | if (!SWIG_IsOK(res1)) { | |
6147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTmpDefaultItem" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
6148 | } | |
6149 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
6150 | { | |
6151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6152 | result = (wxWindow *)((wxTopLevelWindow const *)arg1)->GetTmpDefaultItem(); | |
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
6156 | { | |
6157 | resultobj = wxPyMake_wxObject(result, 0); | |
6158 | } | |
6159 | return resultobj; | |
6160 | fail: | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
0085ce49 RD |
6165 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6166 | PyObject *obj; | |
6167 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6168 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
6169 | return SWIG_Py_Void(); | |
6170 | } | |
6171 | ||
6172 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj = 0; | |
6174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6175 | int arg2 = (int) (int)-1 ; | |
6176 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6177 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6178 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6179 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6180 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6181 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6182 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6183 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6184 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6185 | wxFrame *result = 0 ; | |
6186 | void *argp1 = 0 ; | |
6187 | int res1 = 0 ; | |
6188 | int val2 ; | |
6189 | int ecode2 = 0 ; | |
6190 | bool temp3 = false ; | |
6191 | wxPoint temp4 ; | |
6192 | wxSize temp5 ; | |
6193 | long val6 ; | |
6194 | int ecode6 = 0 ; | |
6195 | bool temp7 = false ; | |
6196 | PyObject * obj0 = 0 ; | |
6197 | PyObject * obj1 = 0 ; | |
6198 | PyObject * obj2 = 0 ; | |
6199 | PyObject * obj3 = 0 ; | |
6200 | PyObject * obj4 = 0 ; | |
6201 | PyObject * obj5 = 0 ; | |
6202 | PyObject * obj6 = 0 ; | |
6203 | char * kwnames[] = { | |
6204 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6205 | }; | |
6206 | ||
6207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6209 | if (!SWIG_IsOK(res1)) { | |
6210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6211 | } | |
6212 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6213 | if (obj1) { | |
6214 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6215 | if (!SWIG_IsOK(ecode2)) { | |
6216 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6217 | } | |
6218 | arg2 = static_cast< int >(val2); | |
6219 | } | |
6220 | if (obj2) { | |
b2dc1044 | 6221 | { |
0085ce49 RD |
6222 | arg3 = wxString_in_helper(obj2); |
6223 | if (arg3 == NULL) SWIG_fail; | |
6224 | temp3 = true; | |
b2dc1044 | 6225 | } |
0085ce49 RD |
6226 | } |
6227 | if (obj3) { | |
b2dc1044 | 6228 | { |
0085ce49 RD |
6229 | arg4 = &temp4; |
6230 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
b2dc1044 | 6231 | } |
0085ce49 RD |
6232 | } |
6233 | if (obj4) { | |
b2dc1044 | 6234 | { |
0085ce49 RD |
6235 | arg5 = &temp5; |
6236 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 6237 | } |
0085ce49 RD |
6238 | } |
6239 | if (obj5) { | |
6240 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6241 | if (!SWIG_IsOK(ecode6)) { | |
6242 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6243 | } | |
6244 | arg6 = static_cast< long >(val6); | |
6245 | } | |
6246 | if (obj6) { | |
d14a1e28 | 6247 | { |
0085ce49 RD |
6248 | arg7 = wxString_in_helper(obj6); |
6249 | if (arg7 == NULL) SWIG_fail; | |
6250 | temp7 = true; | |
d14a1e28 | 6251 | } |
0085ce49 RD |
6252 | } |
6253 | { | |
6254 | if (!wxPyCheckForApp()) SWIG_fail; | |
6255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6256 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
6260 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6261 | { | |
6262 | if (temp3) | |
6263 | delete arg3; | |
6264 | } | |
6265 | { | |
6266 | if (temp7) | |
6267 | delete arg7; | |
6268 | } | |
6269 | return resultobj; | |
6270 | fail: | |
6271 | { | |
6272 | if (temp3) | |
6273 | delete arg3; | |
6274 | } | |
6275 | { | |
6276 | if (temp7) | |
6277 | delete arg7; | |
6278 | } | |
6279 | return NULL; | |
d14a1e28 RD |
6280 | } |
6281 | ||
6282 | ||
0085ce49 RD |
6283 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6284 | PyObject *resultobj = 0; | |
6285 | wxFrame *result = 0 ; | |
6286 | ||
6287 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6288 | { | |
6289 | if (!wxPyCheckForApp()) SWIG_fail; | |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6291 | result = (wxFrame *)new wxFrame(); | |
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
6295 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | return NULL; | |
6299 | } | |
6300 | ||
6301 | ||
6302 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6303 | PyObject *resultobj = 0; | |
6304 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6305 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6306 | int arg3 = (int) (int)-1 ; | |
6307 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6308 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6309 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6310 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6311 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6312 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6313 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6314 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6315 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6316 | bool result; | |
6317 | void *argp1 = 0 ; | |
6318 | int res1 = 0 ; | |
6319 | void *argp2 = 0 ; | |
6320 | int res2 = 0 ; | |
6321 | int val3 ; | |
6322 | int ecode3 = 0 ; | |
6323 | bool temp4 = false ; | |
6324 | wxPoint temp5 ; | |
6325 | wxSize temp6 ; | |
6326 | long val7 ; | |
6327 | int ecode7 = 0 ; | |
6328 | bool temp8 = false ; | |
6329 | PyObject * obj0 = 0 ; | |
6330 | PyObject * obj1 = 0 ; | |
6331 | PyObject * obj2 = 0 ; | |
6332 | PyObject * obj3 = 0 ; | |
6333 | PyObject * obj4 = 0 ; | |
6334 | PyObject * obj5 = 0 ; | |
6335 | PyObject * obj6 = 0 ; | |
6336 | PyObject * obj7 = 0 ; | |
6337 | char * kwnames[] = { | |
6338 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6339 | }; | |
6340 | ||
6341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6343 | if (!SWIG_IsOK(res1)) { | |
6344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6345 | } | |
6346 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6347 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6348 | if (!SWIG_IsOK(res2)) { | |
6349 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6350 | } | |
6351 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6352 | if (obj2) { | |
6353 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6354 | if (!SWIG_IsOK(ecode3)) { | |
6355 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6356 | } | |
6357 | arg3 = static_cast< int >(val3); | |
6358 | } | |
6359 | if (obj3) { | |
d14a1e28 | 6360 | { |
0085ce49 RD |
6361 | arg4 = wxString_in_helper(obj3); |
6362 | if (arg4 == NULL) SWIG_fail; | |
6363 | temp4 = true; | |
d14a1e28 | 6364 | } |
0085ce49 RD |
6365 | } |
6366 | if (obj4) { | |
4f89f6a3 | 6367 | { |
0085ce49 RD |
6368 | arg5 = &temp5; |
6369 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 6370 | } |
0085ce49 RD |
6371 | } |
6372 | if (obj5) { | |
d14a1e28 | 6373 | { |
0085ce49 RD |
6374 | arg6 = &temp6; |
6375 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 6376 | } |
0085ce49 RD |
6377 | } |
6378 | if (obj6) { | |
6379 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6380 | if (!SWIG_IsOK(ecode7)) { | |
6381 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6382 | } | |
6383 | arg7 = static_cast< long >(val7); | |
6384 | } | |
6385 | if (obj7) { | |
4f89f6a3 | 6386 | { |
0085ce49 RD |
6387 | arg8 = wxString_in_helper(obj7); |
6388 | if (arg8 == NULL) SWIG_fail; | |
6389 | temp8 = true; | |
4f89f6a3 | 6390 | } |
0085ce49 RD |
6391 | } |
6392 | { | |
6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6394 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6400 | } | |
6401 | { | |
6402 | if (temp4) | |
6403 | delete arg4; | |
6404 | } | |
6405 | { | |
6406 | if (temp8) | |
6407 | delete arg8; | |
6408 | } | |
6409 | return resultobj; | |
6410 | fail: | |
6411 | { | |
6412 | if (temp4) | |
6413 | delete arg4; | |
6414 | } | |
6415 | { | |
6416 | if (temp8) | |
6417 | delete arg8; | |
6418 | } | |
6419 | return NULL; | |
d14a1e28 RD |
6420 | } |
6421 | ||
6422 | ||
0085ce49 RD |
6423 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6424 | PyObject *resultobj = 0; | |
6425 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6426 | void *argp1 = 0 ; | |
6427 | int res1 = 0 ; | |
6428 | PyObject *swig_obj[1] ; | |
6429 | ||
6430 | if (!args) SWIG_fail; | |
6431 | swig_obj[0] = args; | |
6432 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6433 | if (!SWIG_IsOK(res1)) { | |
6434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6435 | } | |
6436 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6437 | { | |
6438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6439 | (arg1)->SendSizeEvent(); | |
6440 | wxPyEndAllowThreads(__tstate); | |
6441 | if (PyErr_Occurred()) SWIG_fail; | |
6442 | } | |
6443 | resultobj = SWIG_Py_Void(); | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj = 0; | |
6452 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6453 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6454 | void *argp1 = 0 ; | |
6455 | int res1 = 0 ; | |
6456 | void *argp2 = 0 ; | |
6457 | int res2 = 0 ; | |
6458 | PyObject * obj0 = 0 ; | |
6459 | PyObject * obj1 = 0 ; | |
6460 | char * kwnames[] = { | |
6461 | (char *) "self",(char *) "menubar", NULL | |
6462 | }; | |
6463 | ||
6464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6466 | if (!SWIG_IsOK(res1)) { | |
6467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6468 | } | |
6469 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6470 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6471 | if (!SWIG_IsOK(res2)) { | |
6472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6473 | } | |
6474 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | (arg1)->SetMenuBar(arg2); | |
6478 | wxPyEndAllowThreads(__tstate); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | } | |
6481 | resultobj = SWIG_Py_Void(); | |
6482 | return resultobj; | |
6483 | fail: | |
6484 | return NULL; | |
d14a1e28 RD |
6485 | } |
6486 | ||
6487 | ||
0085ce49 RD |
6488 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6489 | PyObject *resultobj = 0; | |
6490 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6491 | wxMenuBar *result = 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_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6501 | } | |
6502 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6506 | wxPyEndAllowThreads(__tstate); | |
6507 | if (PyErr_Occurred()) SWIG_fail; | |
6508 | } | |
6509 | { | |
6510 | resultobj = wxPyMake_wxObject(result, 0); | |
6511 | } | |
6512 | return resultobj; | |
6513 | fail: | |
6514 | return NULL; | |
6515 | } | |
6516 | ||
6517 | ||
6518 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6519 | PyObject *resultobj = 0; | |
6520 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6521 | int arg2 ; | |
6522 | bool result; | |
6523 | void *argp1 = 0 ; | |
6524 | int res1 = 0 ; | |
6525 | int val2 ; | |
6526 | int ecode2 = 0 ; | |
6527 | PyObject * obj0 = 0 ; | |
6528 | PyObject * obj1 = 0 ; | |
6529 | char * kwnames[] = { | |
6530 | (char *) "self",(char *) "winid", NULL | |
6531 | }; | |
6532 | ||
6533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6535 | if (!SWIG_IsOK(res1)) { | |
6536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6537 | } | |
6538 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6539 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6540 | if (!SWIG_IsOK(ecode2)) { | |
6541 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6542 | } | |
6543 | arg2 = static_cast< int >(val2); | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) SWIG_fail; | |
6549 | } | |
6550 | { | |
6551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6552 | } | |
6553 | return resultobj; | |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
6559 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6560 | PyObject *resultobj = 0; | |
6561 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6562 | int arg2 = (int) 1 ; | |
6563 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6564 | int arg4 = (int) 0 ; | |
6565 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6566 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6567 | wxStatusBar *result = 0 ; | |
6568 | void *argp1 = 0 ; | |
6569 | int res1 = 0 ; | |
6570 | int val2 ; | |
6571 | int ecode2 = 0 ; | |
6572 | long val3 ; | |
6573 | int ecode3 = 0 ; | |
6574 | int val4 ; | |
6575 | int ecode4 = 0 ; | |
6576 | bool temp5 = false ; | |
6577 | PyObject * obj0 = 0 ; | |
6578 | PyObject * obj1 = 0 ; | |
6579 | PyObject * obj2 = 0 ; | |
6580 | PyObject * obj3 = 0 ; | |
6581 | PyObject * obj4 = 0 ; | |
6582 | char * kwnames[] = { | |
6583 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6584 | }; | |
6585 | ||
6586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6588 | if (!SWIG_IsOK(res1)) { | |
6589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6590 | } | |
6591 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6592 | if (obj1) { | |
6593 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6594 | if (!SWIG_IsOK(ecode2)) { | |
6595 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6596 | } | |
6597 | arg2 = static_cast< int >(val2); | |
6598 | } | |
6599 | if (obj2) { | |
6600 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6601 | if (!SWIG_IsOK(ecode3)) { | |
6602 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6603 | } | |
6604 | arg3 = static_cast< long >(val3); | |
6605 | } | |
6606 | if (obj3) { | |
6607 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6608 | if (!SWIG_IsOK(ecode4)) { | |
6609 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6610 | } | |
6611 | arg4 = static_cast< int >(val4); | |
6612 | } | |
6613 | if (obj4) { | |
093d3ff1 | 6614 | { |
0085ce49 RD |
6615 | arg5 = wxString_in_helper(obj4); |
6616 | if (arg5 == NULL) SWIG_fail; | |
6617 | temp5 = true; | |
d14a1e28 | 6618 | } |
0085ce49 RD |
6619 | } |
6620 | { | |
6621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6622 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6623 | wxPyEndAllowThreads(__tstate); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | { | |
6627 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6628 | } | |
6629 | { | |
6630 | if (temp5) | |
6631 | delete arg5; | |
6632 | } | |
6633 | return resultobj; | |
6634 | fail: | |
6635 | { | |
6636 | if (temp5) | |
6637 | delete arg5; | |
6638 | } | |
6639 | return NULL; | |
d14a1e28 RD |
6640 | } |
6641 | ||
6642 | ||
0085ce49 RD |
6643 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6644 | PyObject *resultobj = 0; | |
6645 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6646 | wxStatusBar *result = 0 ; | |
6647 | void *argp1 = 0 ; | |
6648 | int res1 = 0 ; | |
6649 | PyObject *swig_obj[1] ; | |
6650 | ||
6651 | if (!args) SWIG_fail; | |
6652 | swig_obj[0] = args; | |
6653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6654 | if (!SWIG_IsOK(res1)) { | |
6655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6656 | } | |
6657 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | { | |
6665 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6666 | } | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | return NULL; | |
6670 | } | |
6671 | ||
6672 | ||
6673 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6674 | PyObject *resultobj = 0; | |
6675 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6676 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6677 | void *argp1 = 0 ; | |
6678 | int res1 = 0 ; | |
6679 | void *argp2 = 0 ; | |
6680 | int res2 = 0 ; | |
6681 | PyObject * obj0 = 0 ; | |
6682 | PyObject * obj1 = 0 ; | |
6683 | char * kwnames[] = { | |
6684 | (char *) "self",(char *) "statBar", NULL | |
6685 | }; | |
6686 | ||
6687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6689 | if (!SWIG_IsOK(res1)) { | |
6690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6691 | } | |
6692 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6693 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6694 | if (!SWIG_IsOK(res2)) { | |
6695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6696 | } | |
6697 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6698 | { | |
6699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6700 | (arg1)->SetStatusBar(arg2); | |
6701 | wxPyEndAllowThreads(__tstate); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | resultobj = SWIG_Py_Void(); | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
6711 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6712 | PyObject *resultobj = 0; | |
6713 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6714 | wxString *arg2 = 0 ; | |
6715 | int arg3 = (int) 0 ; | |
6716 | void *argp1 = 0 ; | |
6717 | int res1 = 0 ; | |
6718 | bool temp2 = false ; | |
6719 | int val3 ; | |
6720 | int ecode3 = 0 ; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | PyObject * obj1 = 0 ; | |
6723 | PyObject * obj2 = 0 ; | |
6724 | char * kwnames[] = { | |
6725 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6726 | }; | |
6727 | ||
6728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6730 | if (!SWIG_IsOK(res1)) { | |
6731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6732 | } | |
6733 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6734 | { | |
6735 | arg2 = wxString_in_helper(obj1); | |
6736 | if (arg2 == NULL) SWIG_fail; | |
6737 | temp2 = true; | |
6738 | } | |
6739 | if (obj2) { | |
6740 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6741 | if (!SWIG_IsOK(ecode3)) { | |
6742 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6743 | } | |
6744 | arg3 = static_cast< int >(val3); | |
6745 | } | |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | resultobj = SWIG_Py_Void(); | |
6753 | { | |
6754 | if (temp2) | |
6755 | delete arg2; | |
6756 | } | |
6757 | return resultobj; | |
6758 | fail: | |
6759 | { | |
6760 | if (temp2) | |
6761 | delete arg2; | |
6762 | } | |
6763 | return NULL; | |
d14a1e28 RD |
6764 | } |
6765 | ||
6766 | ||
0085ce49 RD |
6767 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6768 | PyObject *resultobj = 0; | |
6769 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6770 | int arg2 ; | |
6771 | int *arg3 = (int *) 0 ; | |
6772 | void *argp1 = 0 ; | |
6773 | int res1 = 0 ; | |
6774 | PyObject * obj0 = 0 ; | |
6775 | PyObject * obj1 = 0 ; | |
6776 | char * kwnames[] = { | |
6777 | (char *) "self",(char *) "widths", NULL | |
6778 | }; | |
6779 | ||
6780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6782 | if (!SWIG_IsOK(res1)) { | |
6783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6784 | } | |
6785 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6786 | { | |
6787 | arg2 = PyList_Size(obj1); | |
6788 | arg3 = int_LIST_helper(obj1); | |
6789 | if (arg3 == NULL) SWIG_fail; | |
6790 | } | |
6791 | { | |
6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6793 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
6797 | resultobj = SWIG_Py_Void(); | |
6798 | { | |
6799 | if (arg3) delete [] arg3; | |
6800 | } | |
6801 | return resultobj; | |
6802 | fail: | |
6803 | { | |
6804 | if (arg3) delete [] arg3; | |
6805 | } | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj = 0; | |
6812 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6813 | wxString *arg2 = 0 ; | |
6814 | int arg3 = (int) 0 ; | |
6815 | void *argp1 = 0 ; | |
6816 | int res1 = 0 ; | |
6817 | bool temp2 = false ; | |
6818 | int val3 ; | |
6819 | int ecode3 = 0 ; | |
6820 | PyObject * obj0 = 0 ; | |
6821 | PyObject * obj1 = 0 ; | |
6822 | PyObject * obj2 = 0 ; | |
6823 | char * kwnames[] = { | |
6824 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6825 | }; | |
6826 | ||
6827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6829 | if (!SWIG_IsOK(res1)) { | |
6830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6831 | } | |
6832 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6833 | { | |
6834 | arg2 = wxString_in_helper(obj1); | |
6835 | if (arg2 == NULL) SWIG_fail; | |
6836 | temp2 = true; | |
6837 | } | |
6838 | if (obj2) { | |
6839 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6840 | if (!SWIG_IsOK(ecode3)) { | |
6841 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6842 | } | |
6843 | arg3 = static_cast< int >(val3); | |
6844 | } | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6848 | wxPyEndAllowThreads(__tstate); | |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
6850 | } | |
6851 | resultobj = SWIG_Py_Void(); | |
6852 | { | |
6853 | if (temp2) | |
6854 | delete arg2; | |
6855 | } | |
6856 | return resultobj; | |
6857 | fail: | |
6858 | { | |
6859 | if (temp2) | |
6860 | delete arg2; | |
6861 | } | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
6866 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj = 0; | |
6868 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6869 | int arg2 = (int) 0 ; | |
6870 | void *argp1 = 0 ; | |
6871 | int res1 = 0 ; | |
6872 | int val2 ; | |
6873 | int ecode2 = 0 ; | |
6874 | PyObject * obj0 = 0 ; | |
6875 | PyObject * obj1 = 0 ; | |
6876 | char * kwnames[] = { | |
6877 | (char *) "self",(char *) "number", NULL | |
6878 | }; | |
6879 | ||
6880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6882 | if (!SWIG_IsOK(res1)) { | |
6883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6884 | } | |
6885 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6886 | if (obj1) { | |
6887 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6888 | if (!SWIG_IsOK(ecode2)) { | |
6889 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6890 | } | |
6891 | arg2 = static_cast< int >(val2); | |
6892 | } | |
6893 | { | |
6894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6895 | (arg1)->PopStatusText(arg2); | |
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
6899 | resultobj = SWIG_Py_Void(); | |
6900 | return resultobj; | |
6901 | fail: | |
6902 | return NULL; | |
6903 | } | |
6904 | ||
6905 | ||
6906 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj = 0; | |
6908 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6909 | int arg2 ; | |
6910 | void *argp1 = 0 ; | |
6911 | int res1 = 0 ; | |
6912 | int val2 ; | |
6913 | int ecode2 = 0 ; | |
6914 | PyObject * obj0 = 0 ; | |
6915 | PyObject * obj1 = 0 ; | |
6916 | char * kwnames[] = { | |
6917 | (char *) "self",(char *) "n", NULL | |
6918 | }; | |
6919 | ||
6920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6922 | if (!SWIG_IsOK(res1)) { | |
6923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6924 | } | |
6925 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6927 | if (!SWIG_IsOK(ecode2)) { | |
6928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6929 | } | |
6930 | arg2 = static_cast< int >(val2); | |
6931 | { | |
6932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6933 | (arg1)->SetStatusBarPane(arg2); | |
6934 | wxPyEndAllowThreads(__tstate); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | } | |
6937 | resultobj = SWIG_Py_Void(); | |
6938 | return resultobj; | |
6939 | fail: | |
6940 | return NULL; | |
d14a1e28 RD |
6941 | } |
6942 | ||
6943 | ||
0085ce49 RD |
6944 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6945 | PyObject *resultobj = 0; | |
6946 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6947 | int result; | |
6948 | void *argp1 = 0 ; | |
6949 | int res1 = 0 ; | |
6950 | PyObject *swig_obj[1] ; | |
6951 | ||
6952 | if (!args) SWIG_fail; | |
6953 | swig_obj[0] = args; | |
6954 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6955 | if (!SWIG_IsOK(res1)) { | |
6956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6957 | } | |
6958 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj = 0; | |
6974 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6975 | long arg2 = (long) -1 ; | |
6976 | int arg3 = (int) -1 ; | |
6977 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
6978 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6979 | wxToolBar *result = 0 ; | |
6980 | void *argp1 = 0 ; | |
6981 | int res1 = 0 ; | |
6982 | long val2 ; | |
6983 | int ecode2 = 0 ; | |
6984 | int val3 ; | |
6985 | int ecode3 = 0 ; | |
6986 | bool temp4 = false ; | |
6987 | PyObject * obj0 = 0 ; | |
6988 | PyObject * obj1 = 0 ; | |
6989 | PyObject * obj2 = 0 ; | |
6990 | PyObject * obj3 = 0 ; | |
6991 | char * kwnames[] = { | |
6992 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6993 | }; | |
6994 | ||
6995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6997 | if (!SWIG_IsOK(res1)) { | |
6998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6999 | } | |
7000 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7001 | if (obj1) { | |
7002 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7003 | if (!SWIG_IsOK(ecode2)) { | |
7004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
7005 | } | |
7006 | arg2 = static_cast< long >(val2); | |
7007 | } | |
7008 | if (obj2) { | |
7009 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7010 | if (!SWIG_IsOK(ecode3)) { | |
7011 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
7012 | } | |
7013 | arg3 = static_cast< int >(val3); | |
7014 | } | |
7015 | if (obj3) { | |
4f89f6a3 | 7016 | { |
0085ce49 RD |
7017 | arg4 = wxString_in_helper(obj3); |
7018 | if (arg4 == NULL) SWIG_fail; | |
7019 | temp4 = true; | |
4f89f6a3 | 7020 | } |
0085ce49 RD |
7021 | } |
7022 | { | |
7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7024 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
7025 | wxPyEndAllowThreads(__tstate); | |
7026 | if (PyErr_Occurred()) SWIG_fail; | |
7027 | } | |
7028 | { | |
7029 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7030 | } | |
7031 | { | |
7032 | if (temp4) | |
7033 | delete arg4; | |
7034 | } | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | { | |
7038 | if (temp4) | |
7039 | delete arg4; | |
7040 | } | |
7041 | return NULL; | |
d14a1e28 RD |
7042 | } |
7043 | ||
7044 | ||
0085ce49 RD |
7045 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7046 | PyObject *resultobj = 0; | |
7047 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7048 | wxToolBar *result = 0 ; | |
7049 | void *argp1 = 0 ; | |
7050 | int res1 = 0 ; | |
7051 | PyObject *swig_obj[1] ; | |
7052 | ||
7053 | if (!args) SWIG_fail; | |
7054 | swig_obj[0] = args; | |
7055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7056 | if (!SWIG_IsOK(res1)) { | |
7057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
7058 | } | |
7059 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7060 | { | |
7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7062 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
7066 | { | |
7067 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7068 | } | |
7069 | return resultobj; | |
7070 | fail: | |
7071 | return NULL; | |
7072 | } | |
7073 | ||
7074 | ||
7075 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7076 | PyObject *resultobj = 0; | |
7077 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7078 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
7079 | void *argp1 = 0 ; | |
7080 | int res1 = 0 ; | |
7081 | void *argp2 = 0 ; | |
7082 | int res2 = 0 ; | |
7083 | PyObject * obj0 = 0 ; | |
7084 | PyObject * obj1 = 0 ; | |
7085 | char * kwnames[] = { | |
7086 | (char *) "self",(char *) "toolbar", NULL | |
7087 | }; | |
7088 | ||
7089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
7090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7091 | if (!SWIG_IsOK(res1)) { | |
7092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7093 | } | |
7094 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7095 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
7096 | if (!SWIG_IsOK(res2)) { | |
7097 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
7098 | } | |
7099 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
7100 | { | |
7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7102 | (arg1)->SetToolBar(arg2); | |
7103 | wxPyEndAllowThreads(__tstate); | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | } | |
7106 | resultobj = SWIG_Py_Void(); | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj = 0; | |
7115 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7116 | wxString *arg2 = 0 ; | |
7117 | bool arg3 ; | |
7118 | void *argp1 = 0 ; | |
7119 | int res1 = 0 ; | |
7120 | bool temp2 = false ; | |
7121 | bool val3 ; | |
7122 | int ecode3 = 0 ; | |
7123 | PyObject * obj0 = 0 ; | |
7124 | PyObject * obj1 = 0 ; | |
7125 | PyObject * obj2 = 0 ; | |
7126 | char * kwnames[] = { | |
7127 | (char *) "self",(char *) "text",(char *) "show", NULL | |
7128 | }; | |
7129 | ||
7130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7131 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7132 | if (!SWIG_IsOK(res1)) { | |
7133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7134 | } | |
7135 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7136 | { | |
7137 | arg2 = wxString_in_helper(obj1); | |
7138 | if (arg2 == NULL) SWIG_fail; | |
7139 | temp2 = true; | |
7140 | } | |
7141 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7142 | if (!SWIG_IsOK(ecode3)) { | |
7143 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
7144 | } | |
7145 | arg3 = static_cast< bool >(val3); | |
7146 | { | |
7147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7148 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | resultobj = SWIG_Py_Void(); | |
7153 | { | |
7154 | if (temp2) | |
7155 | delete arg2; | |
7156 | } | |
7157 | return resultobj; | |
7158 | fail: | |
7159 | { | |
7160 | if (temp2) | |
7161 | delete arg2; | |
7162 | } | |
7163 | return NULL; | |
7164 | } | |
7165 | ||
7166 | ||
7167 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7168 | PyObject *resultobj = 0; | |
7169 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7170 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7171 | void *argp1 = 0 ; | |
7172 | int res1 = 0 ; | |
7173 | void *argp2 = 0 ; | |
7174 | int res2 = 0 ; | |
7175 | PyObject * obj0 = 0 ; | |
7176 | PyObject * obj1 = 0 ; | |
7177 | char * kwnames[] = { | |
7178 | (char *) "self",(char *) "menu", NULL | |
7179 | }; | |
7180 | ||
7181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7183 | if (!SWIG_IsOK(res1)) { | |
7184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7185 | } | |
7186 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7187 | if (obj1) { | |
7188 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7189 | if (!SWIG_IsOK(res2)) { | |
7190 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d14a1e28 | 7191 | } |
0085ce49 RD |
7192 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7193 | } | |
7194 | { | |
7195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7196 | (arg1)->DoMenuUpdates(arg2); | |
7197 | wxPyEndAllowThreads(__tstate); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | resultobj = SWIG_Py_Void(); | |
7201 | return resultobj; | |
7202 | fail: | |
7203 | return NULL; | |
7204 | } | |
7205 | ||
7206 | ||
7207 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7208 | PyObject *resultobj = 0; | |
7209 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7210 | SwigValueWrapper<wxVisualAttributes > result; | |
7211 | int val1 ; | |
7212 | int ecode1 = 0 ; | |
7213 | PyObject * obj0 = 0 ; | |
7214 | char * kwnames[] = { | |
7215 | (char *) "variant", NULL | |
7216 | }; | |
7217 | ||
7218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7219 | if (obj0) { | |
7220 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7221 | if (!SWIG_IsOK(ecode1)) { | |
7222 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7223 | } | |
7224 | arg1 = static_cast< wxWindowVariant >(val1); | |
7225 | } | |
7226 | { | |
7227 | if (!wxPyCheckForApp()) SWIG_fail; | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7230 | wxPyEndAllowThreads(__tstate); | |
7231 | if (PyErr_Occurred()) SWIG_fail; | |
7232 | } | |
7233 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7234 | return resultobj; | |
7235 | fail: | |
7236 | return NULL; | |
7237 | } | |
7238 | ||
7239 | ||
7240 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7241 | PyObject *obj; | |
7242 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7243 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7244 | return SWIG_Py_Void(); | |
7245 | } | |
7246 | ||
7247 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7248 | return SWIG_Python_InitShadowInstance(args); | |
7249 | } | |
7250 | ||
7251 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7252 | PyObject *resultobj = 0; | |
7253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7254 | int arg2 = (int) (int)-1 ; | |
7255 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7256 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7257 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7258 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7259 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7260 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7261 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7262 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7263 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7264 | wxDialog *result = 0 ; | |
7265 | void *argp1 = 0 ; | |
7266 | int res1 = 0 ; | |
7267 | int val2 ; | |
7268 | int ecode2 = 0 ; | |
7269 | bool temp3 = false ; | |
7270 | wxPoint temp4 ; | |
7271 | wxSize temp5 ; | |
7272 | long val6 ; | |
7273 | int ecode6 = 0 ; | |
7274 | bool temp7 = false ; | |
7275 | PyObject * obj0 = 0 ; | |
7276 | PyObject * obj1 = 0 ; | |
7277 | PyObject * obj2 = 0 ; | |
7278 | PyObject * obj3 = 0 ; | |
7279 | PyObject * obj4 = 0 ; | |
7280 | PyObject * obj5 = 0 ; | |
7281 | PyObject * obj6 = 0 ; | |
7282 | char * kwnames[] = { | |
7283 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7284 | }; | |
7285 | ||
7286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7288 | if (!SWIG_IsOK(res1)) { | |
7289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7290 | } | |
7291 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7292 | if (obj1) { | |
7293 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7294 | if (!SWIG_IsOK(ecode2)) { | |
7295 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7296 | } | |
7297 | arg2 = static_cast< int >(val2); | |
7298 | } | |
7299 | if (obj2) { | |
d14a1e28 | 7300 | { |
0085ce49 RD |
7301 | arg3 = wxString_in_helper(obj2); |
7302 | if (arg3 == NULL) SWIG_fail; | |
7303 | temp3 = true; | |
d14a1e28 | 7304 | } |
0085ce49 RD |
7305 | } |
7306 | if (obj3) { | |
d14a1e28 | 7307 | { |
0085ce49 RD |
7308 | arg4 = &temp4; |
7309 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 7310 | } |
0085ce49 RD |
7311 | } |
7312 | if (obj4) { | |
d14a1e28 | 7313 | { |
0085ce49 RD |
7314 | arg5 = &temp5; |
7315 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7316 | } |
0085ce49 RD |
7317 | } |
7318 | if (obj5) { | |
7319 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7320 | if (!SWIG_IsOK(ecode6)) { | |
7321 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7322 | } | |
7323 | arg6 = static_cast< long >(val6); | |
7324 | } | |
7325 | if (obj6) { | |
d14a1e28 | 7326 | { |
0085ce49 RD |
7327 | arg7 = wxString_in_helper(obj6); |
7328 | if (arg7 == NULL) SWIG_fail; | |
7329 | temp7 = true; | |
d14a1e28 | 7330 | } |
0085ce49 RD |
7331 | } |
7332 | { | |
7333 | if (!wxPyCheckForApp()) SWIG_fail; | |
7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7335 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7340 | { | |
7341 | if (temp3) | |
7342 | delete arg3; | |
7343 | } | |
7344 | { | |
7345 | if (temp7) | |
7346 | delete arg7; | |
7347 | } | |
7348 | return resultobj; | |
7349 | fail: | |
7350 | { | |
7351 | if (temp3) | |
7352 | delete arg3; | |
7353 | } | |
7354 | { | |
7355 | if (temp7) | |
7356 | delete arg7; | |
7357 | } | |
7358 | return NULL; | |
d14a1e28 RD |
7359 | } |
7360 | ||
7361 | ||
0085ce49 RD |
7362 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7363 | PyObject *resultobj = 0; | |
7364 | wxDialog *result = 0 ; | |
7365 | ||
7366 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7367 | { | |
7368 | if (!wxPyCheckForApp()) SWIG_fail; | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (wxDialog *)new wxDialog(); | |
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj = 0; | |
7383 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7385 | int arg3 = (int) (int)-1 ; | |
7386 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7387 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7388 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7389 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7390 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7391 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7392 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7393 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7394 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7395 | bool result; | |
7396 | void *argp1 = 0 ; | |
7397 | int res1 = 0 ; | |
7398 | void *argp2 = 0 ; | |
7399 | int res2 = 0 ; | |
7400 | int val3 ; | |
7401 | int ecode3 = 0 ; | |
7402 | bool temp4 = false ; | |
7403 | wxPoint temp5 ; | |
7404 | wxSize temp6 ; | |
7405 | long val7 ; | |
7406 | int ecode7 = 0 ; | |
7407 | bool temp8 = false ; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | PyObject * obj1 = 0 ; | |
7410 | PyObject * obj2 = 0 ; | |
7411 | PyObject * obj3 = 0 ; | |
7412 | PyObject * obj4 = 0 ; | |
7413 | PyObject * obj5 = 0 ; | |
7414 | PyObject * obj6 = 0 ; | |
7415 | PyObject * obj7 = 0 ; | |
7416 | char * kwnames[] = { | |
7417 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7418 | }; | |
7419 | ||
7420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7422 | if (!SWIG_IsOK(res1)) { | |
7423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7424 | } | |
7425 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7426 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7427 | if (!SWIG_IsOK(res2)) { | |
7428 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7429 | } | |
7430 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7431 | if (obj2) { | |
7432 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7433 | if (!SWIG_IsOK(ecode3)) { | |
7434 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7435 | } | |
7436 | arg3 = static_cast< int >(val3); | |
7437 | } | |
7438 | if (obj3) { | |
093d3ff1 | 7439 | { |
0085ce49 RD |
7440 | arg4 = wxString_in_helper(obj3); |
7441 | if (arg4 == NULL) SWIG_fail; | |
7442 | temp4 = true; | |
d14a1e28 | 7443 | } |
0085ce49 RD |
7444 | } |
7445 | if (obj4) { | |
d14a1e28 | 7446 | { |
0085ce49 RD |
7447 | arg5 = &temp5; |
7448 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 7449 | } |
0085ce49 RD |
7450 | } |
7451 | if (obj5) { | |
4f89f6a3 | 7452 | { |
0085ce49 RD |
7453 | arg6 = &temp6; |
7454 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
c32bde28 | 7455 | } |
0085ce49 RD |
7456 | } |
7457 | if (obj6) { | |
7458 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7459 | if (!SWIG_IsOK(ecode7)) { | |
7460 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7461 | } | |
7462 | arg7 = static_cast< long >(val7); | |
7463 | } | |
7464 | if (obj7) { | |
c32bde28 | 7465 | { |
0085ce49 RD |
7466 | arg8 = wxString_in_helper(obj7); |
7467 | if (arg8 == NULL) SWIG_fail; | |
7468 | temp8 = true; | |
7469 | } | |
7470 | } | |
7471 | { | |
7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7473 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
7477 | { | |
7478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7479 | } | |
7480 | { | |
7481 | if (temp4) | |
7482 | delete arg4; | |
7483 | } | |
7484 | { | |
7485 | if (temp8) | |
7486 | delete arg8; | |
7487 | } | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | { | |
7491 | if (temp4) | |
7492 | delete arg4; | |
7493 | } | |
7494 | { | |
7495 | if (temp8) | |
7496 | delete arg8; | |
7497 | } | |
7498 | return NULL; | |
7499 | } | |
7500 | ||
7501 | ||
7502 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7503 | PyObject *resultobj = 0; | |
7504 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7505 | int arg2 ; | |
7506 | void *argp1 = 0 ; | |
7507 | int res1 = 0 ; | |
7508 | int val2 ; | |
7509 | int ecode2 = 0 ; | |
7510 | PyObject * obj0 = 0 ; | |
7511 | PyObject * obj1 = 0 ; | |
7512 | char * kwnames[] = { | |
7513 | (char *) "self",(char *) "returnCode", NULL | |
7514 | }; | |
7515 | ||
7516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7518 | if (!SWIG_IsOK(res1)) { | |
7519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7520 | } | |
7521 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7522 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7523 | if (!SWIG_IsOK(ecode2)) { | |
7524 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7525 | } | |
7526 | arg2 = static_cast< int >(val2); | |
7527 | { | |
7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7529 | (arg1)->SetReturnCode(arg2); | |
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | resultobj = SWIG_Py_Void(); | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
c32bde28 RD |
7537 | } |
7538 | ||
7539 | ||
0085ce49 RD |
7540 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7541 | PyObject *resultobj = 0; | |
7542 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7543 | int result; | |
7544 | void *argp1 = 0 ; | |
7545 | int res1 = 0 ; | |
7546 | PyObject *swig_obj[1] ; | |
7547 | ||
7548 | if (!args) SWIG_fail; | |
7549 | swig_obj[0] = args; | |
7550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7551 | if (!SWIG_IsOK(res1)) { | |
7552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7553 | } | |
7554 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7555 | { | |
7556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7562 | return resultobj; | |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(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 *) "affirmativeId", NULL | |
7580 | }; | |
7581 | ||
7582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",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_SetAffirmativeId" "', 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_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7591 | } | |
7592 | arg2 = static_cast< int >(val2); | |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | (arg1)->SetAffirmativeId(arg2); | |
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | resultobj = SWIG_Py_Void(); | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
b6294124 RD |
7603 | } |
7604 | ||
7605 | ||
0085ce49 RD |
7606 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(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_GetAffirmativeId" "', 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)->GetAffirmativeId(); | |
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_SetEscapeId(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 *) "escapeId", NULL | |
7646 | }; | |
7647 | ||
7648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",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_SetEscapeId" "', 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_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7657 | } | |
7658 | arg2 = static_cast< int >(val2); | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | (arg1)->SetEscapeId(arg2); | |
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | resultobj = SWIG_Py_Void(); | |
7666 | return resultobj; | |
7667 | fail: | |
7668 | return NULL; | |
84f85550 RD |
7669 | } |
7670 | ||
7671 | ||
0085ce49 RD |
7672 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(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_GetEscapeId" "', 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)->GetEscapeId(); | |
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_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj = 0; | |
7702 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7703 | wxString *arg2 = 0 ; | |
7704 | wxSizer *result = 0 ; | |
7705 | void *argp1 = 0 ; | |
7706 | int res1 = 0 ; | |
7707 | bool temp2 = false ; | |
7708 | PyObject * obj0 = 0 ; | |
7709 | PyObject * obj1 = 0 ; | |
7710 | char * kwnames[] = { | |
7711 | (char *) "self",(char *) "message", NULL | |
7712 | }; | |
7713 | ||
7714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",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_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7718 | } | |
7719 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7720 | { | |
7721 | arg2 = wxString_in_helper(obj1); | |
7722 | if (arg2 == NULL) SWIG_fail; | |
7723 | temp2 = true; | |
7724 | } | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7728 | wxPyEndAllowThreads(__tstate); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | { | |
7732 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7733 | } | |
7734 | { | |
7735 | if (temp2) | |
7736 | delete arg2; | |
7737 | } | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | { | |
7741 | if (temp2) | |
7742 | delete arg2; | |
7743 | } | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
b39fe951 | 7748 | SWIGINTERN PyObject *_wrap_Dialog__CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
7749 | PyObject *resultobj = 0; |
7750 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7751 | long arg2 ; | |
0085ce49 RD |
7752 | wxSizer *result = 0 ; |
7753 | void *argp1 = 0 ; | |
7754 | int res1 = 0 ; | |
7755 | long val2 ; | |
7756 | int ecode2 = 0 ; | |
0085ce49 RD |
7757 | PyObject * obj0 = 0 ; |
7758 | PyObject * obj1 = 0 ; | |
0085ce49 | 7759 | char * kwnames[] = { |
b39fe951 | 7760 | (char *) "self",(char *) "flags", NULL |
0085ce49 RD |
7761 | }; |
7762 | ||
b39fe951 | 7763 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog__CreateButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
7764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); |
7765 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 7766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); |
0085ce49 RD |
7767 | } |
7768 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7769 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7770 | if (!SWIG_IsOK(ecode2)) { | |
b39fe951 | 7771 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog__CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); |
0085ce49 RD |
7772 | } |
7773 | arg2 = static_cast< long >(val2); | |
b39fe951 RD |
7774 | { |
7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7776 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
7777 | wxPyEndAllowThreads(__tstate); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 7779 | } |
b39fe951 RD |
7780 | { |
7781 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
0085ce49 | 7782 | } |
b39fe951 RD |
7783 | return resultobj; |
7784 | fail: | |
7785 | return NULL; | |
7786 | } | |
7787 | ||
7788 | ||
7789 | SWIGINTERN PyObject *_wrap_Dialog_CreateSeparatedButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7790 | PyObject *resultobj = 0; | |
7791 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7792 | long arg2 ; | |
7793 | wxSizer *result = 0 ; | |
7794 | void *argp1 = 0 ; | |
7795 | int res1 = 0 ; | |
7796 | long val2 ; | |
7797 | int ecode2 = 0 ; | |
7798 | PyObject * obj0 = 0 ; | |
7799 | PyObject * obj1 = 0 ; | |
7800 | char * kwnames[] = { | |
7801 | (char *) "self",(char *) "flags", NULL | |
7802 | }; | |
7803 | ||
7804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateSeparatedButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7806 | if (!SWIG_IsOK(res1)) { | |
7807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7808 | } | |
7809 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7810 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7811 | if (!SWIG_IsOK(ecode2)) { | |
7812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateSeparatedButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7813 | } | |
7814 | arg2 = static_cast< long >(val2); | |
0085ce49 RD |
7815 | { |
7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 7817 | result = (wxSizer *)(arg1)->CreateSeparatedButtonSizer(arg2); |
0085ce49 RD |
7818 | wxPyEndAllowThreads(__tstate); |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | } | |
7821 | { | |
7822 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7823 | } | |
7824 | return resultobj; | |
7825 | fail: | |
7826 | return NULL; | |
7827 | } | |
7828 | ||
7829 | ||
7830 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7831 | PyObject *resultobj = 0; | |
7832 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7833 | long arg2 ; | |
7834 | wxStdDialogButtonSizer *result = 0 ; | |
7835 | void *argp1 = 0 ; | |
7836 | int res1 = 0 ; | |
7837 | long val2 ; | |
7838 | int ecode2 = 0 ; | |
7839 | PyObject * obj0 = 0 ; | |
7840 | PyObject * obj1 = 0 ; | |
7841 | char * kwnames[] = { | |
7842 | (char *) "self",(char *) "flags", NULL | |
7843 | }; | |
7844 | ||
7845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7847 | if (!SWIG_IsOK(res1)) { | |
7848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7849 | } | |
7850 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7851 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7852 | if (!SWIG_IsOK(ecode2)) { | |
7853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7854 | } | |
7855 | arg2 = static_cast< long >(val2); | |
7856 | { | |
7857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7858 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | return NULL; | |
84f85550 RD |
7866 | } |
7867 | ||
7868 | ||
0085ce49 RD |
7869 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7870 | PyObject *resultobj = 0; | |
7871 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7872 | bool result; | |
7873 | void *argp1 = 0 ; | |
7874 | int res1 = 0 ; | |
7875 | PyObject *swig_obj[1] ; | |
7876 | ||
7877 | if (!args) SWIG_fail; | |
7878 | swig_obj[0] = args; | |
7879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7880 | if (!SWIG_IsOK(res1)) { | |
7881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7882 | } | |
7883 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7884 | { | |
7885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7886 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7887 | wxPyEndAllowThreads(__tstate); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | { | |
7891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | return NULL; | |
b1fcee84 RD |
7896 | } |
7897 | ||
7898 | ||
0085ce49 RD |
7899 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7900 | PyObject *resultobj = 0; | |
7901 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7902 | int result; | |
7903 | void *argp1 = 0 ; | |
7904 | int res1 = 0 ; | |
7905 | PyObject *swig_obj[1] ; | |
7906 | ||
7907 | if (!args) SWIG_fail; | |
7908 | swig_obj[0] = args; | |
7909 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7910 | if (!SWIG_IsOK(res1)) { | |
7911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7912 | } | |
7913 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7914 | { | |
7915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7916 | result = (int)(arg1)->ShowModal(); | |
7917 | wxPyEndAllowThreads(__tstate); | |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
7919 | } | |
7920 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7921 | return resultobj; | |
7922 | fail: | |
7923 | return NULL; | |
7924 | } | |
7925 | ||
7926 | ||
7927 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7928 | PyObject *resultobj = 0; | |
7929 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7930 | int arg2 ; | |
7931 | void *argp1 = 0 ; | |
7932 | int res1 = 0 ; | |
7933 | int val2 ; | |
7934 | int ecode2 = 0 ; | |
7935 | PyObject * obj0 = 0 ; | |
7936 | PyObject * obj1 = 0 ; | |
7937 | char * kwnames[] = { | |
7938 | (char *) "self",(char *) "retCode", NULL | |
7939 | }; | |
7940 | ||
7941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7943 | if (!SWIG_IsOK(res1)) { | |
7944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7945 | } | |
7946 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7947 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7948 | if (!SWIG_IsOK(ecode2)) { | |
7949 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7950 | } | |
7951 | arg2 = static_cast< int >(val2); | |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | (arg1)->EndModal(arg2); | |
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | resultobj = SWIG_Py_Void(); | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj = 0; | |
7967 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7968 | SwigValueWrapper<wxVisualAttributes > result; | |
7969 | int val1 ; | |
7970 | int ecode1 = 0 ; | |
7971 | PyObject * obj0 = 0 ; | |
7972 | char * kwnames[] = { | |
7973 | (char *) "variant", NULL | |
7974 | }; | |
7975 | ||
7976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7977 | if (obj0) { | |
7978 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7979 | if (!SWIG_IsOK(ecode1)) { | |
7980 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7981 | } | |
7982 | arg1 = static_cast< wxWindowVariant >(val1); | |
7983 | } | |
7984 | { | |
7985 | if (!wxPyCheckForApp()) SWIG_fail; | |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7992 | return resultobj; | |
7993 | fail: | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
7998 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7999 | PyObject *obj; | |
8000 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8001 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
8002 | return SWIG_Py_Void(); | |
8003 | } | |
8004 | ||
8005 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8006 | return SWIG_Python_InitShadowInstance(args); | |
8007 | } | |
8008 | ||
8009 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8010 | PyObject *resultobj = 0; | |
8011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8012 | int arg2 = (int) (int)-1 ; | |
8013 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8014 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8015 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8016 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8017 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8018 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8019 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
8020 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
8021 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8022 | wxMiniFrame *result = 0 ; | |
8023 | void *argp1 = 0 ; | |
8024 | int res1 = 0 ; | |
8025 | int val2 ; | |
8026 | int ecode2 = 0 ; | |
8027 | bool temp3 = false ; | |
8028 | wxPoint temp4 ; | |
8029 | wxSize temp5 ; | |
8030 | long val6 ; | |
8031 | int ecode6 = 0 ; | |
8032 | bool temp7 = false ; | |
8033 | PyObject * obj0 = 0 ; | |
8034 | PyObject * obj1 = 0 ; | |
8035 | PyObject * obj2 = 0 ; | |
8036 | PyObject * obj3 = 0 ; | |
8037 | PyObject * obj4 = 0 ; | |
8038 | PyObject * obj5 = 0 ; | |
8039 | PyObject * obj6 = 0 ; | |
8040 | char * kwnames[] = { | |
8041 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8042 | }; | |
8043 | ||
8044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
8045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8046 | if (!SWIG_IsOK(res1)) { | |
8047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8048 | } | |
8049 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8050 | if (obj1) { | |
8051 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8052 | if (!SWIG_IsOK(ecode2)) { | |
8053 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
8054 | } | |
8055 | arg2 = static_cast< int >(val2); | |
8056 | } | |
8057 | if (obj2) { | |
d14a1e28 | 8058 | { |
0085ce49 RD |
8059 | arg3 = wxString_in_helper(obj2); |
8060 | if (arg3 == NULL) SWIG_fail; | |
8061 | temp3 = true; | |
d14a1e28 | 8062 | } |
0085ce49 RD |
8063 | } |
8064 | if (obj3) { | |
d14a1e28 | 8065 | { |
0085ce49 RD |
8066 | arg4 = &temp4; |
8067 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8068 | } |
0085ce49 RD |
8069 | } |
8070 | if (obj4) { | |
d14a1e28 | 8071 | { |
0085ce49 RD |
8072 | arg5 = &temp5; |
8073 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8074 | } |
0085ce49 RD |
8075 | } |
8076 | if (obj5) { | |
8077 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8078 | if (!SWIG_IsOK(ecode6)) { | |
8079 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
8080 | } | |
8081 | arg6 = static_cast< long >(val6); | |
8082 | } | |
8083 | if (obj6) { | |
d14a1e28 | 8084 | { |
0085ce49 RD |
8085 | arg7 = wxString_in_helper(obj6); |
8086 | if (arg7 == NULL) SWIG_fail; | |
8087 | temp7 = true; | |
d14a1e28 | 8088 | } |
0085ce49 RD |
8089 | } |
8090 | { | |
8091 | if (!wxPyCheckForApp()) SWIG_fail; | |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
8097 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
8098 | { | |
8099 | if (temp3) | |
8100 | delete arg3; | |
8101 | } | |
8102 | { | |
8103 | if (temp7) | |
8104 | delete arg7; | |
8105 | } | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | { | |
8109 | if (temp3) | |
8110 | delete arg3; | |
8111 | } | |
8112 | { | |
8113 | if (temp7) | |
8114 | delete arg7; | |
8115 | } | |
8116 | return NULL; | |
d14a1e28 RD |
8117 | } |
8118 | ||
8119 | ||
0085ce49 RD |
8120 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8121 | PyObject *resultobj = 0; | |
8122 | wxMiniFrame *result = 0 ; | |
8123 | ||
8124 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
8125 | { | |
8126 | if (!wxPyCheckForApp()) SWIG_fail; | |
8127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8128 | result = (wxMiniFrame *)new wxMiniFrame(); | |
8129 | wxPyEndAllowThreads(__tstate); | |
8130 | if (PyErr_Occurred()) SWIG_fail; | |
8131 | } | |
8132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | return NULL; | |
8136 | } | |
8137 | ||
8138 | ||
8139 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8140 | PyObject *resultobj = 0; | |
8141 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
8142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8143 | int arg3 = (int) (int)-1 ; | |
8144 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8145 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8146 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8147 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8148 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8149 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8150 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
8151 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
8152 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8153 | bool result; | |
8154 | void *argp1 = 0 ; | |
8155 | int res1 = 0 ; | |
8156 | void *argp2 = 0 ; | |
8157 | int res2 = 0 ; | |
8158 | int val3 ; | |
8159 | int ecode3 = 0 ; | |
8160 | bool temp4 = false ; | |
8161 | wxPoint temp5 ; | |
8162 | wxSize temp6 ; | |
8163 | long val7 ; | |
8164 | int ecode7 = 0 ; | |
8165 | bool temp8 = false ; | |
8166 | PyObject * obj0 = 0 ; | |
8167 | PyObject * obj1 = 0 ; | |
8168 | PyObject * obj2 = 0 ; | |
8169 | PyObject * obj3 = 0 ; | |
8170 | PyObject * obj4 = 0 ; | |
8171 | PyObject * obj5 = 0 ; | |
8172 | PyObject * obj6 = 0 ; | |
8173 | PyObject * obj7 = 0 ; | |
8174 | char * kwnames[] = { | |
8175 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8176 | }; | |
8177 | ||
8178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
8180 | if (!SWIG_IsOK(res1)) { | |
8181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
8182 | } | |
8183 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
8184 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8185 | if (!SWIG_IsOK(res2)) { | |
8186 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8187 | } | |
8188 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8189 | if (obj2) { | |
8190 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8191 | if (!SWIG_IsOK(ecode3)) { | |
8192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8193 | } | |
8194 | arg3 = static_cast< int >(val3); | |
8195 | } | |
8196 | if (obj3) { | |
d14a1e28 | 8197 | { |
0085ce49 RD |
8198 | arg4 = wxString_in_helper(obj3); |
8199 | if (arg4 == NULL) SWIG_fail; | |
8200 | temp4 = true; | |
d14a1e28 | 8201 | } |
0085ce49 RD |
8202 | } |
8203 | if (obj4) { | |
4f89f6a3 | 8204 | { |
0085ce49 RD |
8205 | arg5 = &temp5; |
8206 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 8207 | } |
0085ce49 RD |
8208 | } |
8209 | if (obj5) { | |
d14a1e28 | 8210 | { |
0085ce49 RD |
8211 | arg6 = &temp6; |
8212 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 8213 | } |
0085ce49 RD |
8214 | } |
8215 | if (obj6) { | |
8216 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8217 | if (!SWIG_IsOK(ecode7)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8219 | } | |
8220 | arg7 = static_cast< long >(val7); | |
8221 | } | |
8222 | if (obj7) { | |
d14a1e28 | 8223 | { |
0085ce49 RD |
8224 | arg8 = wxString_in_helper(obj7); |
8225 | if (arg8 == NULL) SWIG_fail; | |
8226 | temp8 = true; | |
d14a1e28 | 8227 | } |
0085ce49 RD |
8228 | } |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8232 | wxPyEndAllowThreads(__tstate); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | { | |
8236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8237 | } | |
8238 | { | |
8239 | if (temp4) | |
8240 | delete arg4; | |
8241 | } | |
8242 | { | |
8243 | if (temp8) | |
8244 | delete arg8; | |
8245 | } | |
8246 | return resultobj; | |
8247 | fail: | |
8248 | { | |
8249 | if (temp4) | |
8250 | delete arg4; | |
8251 | } | |
8252 | { | |
8253 | if (temp8) | |
8254 | delete arg8; | |
8255 | } | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8261 | PyObject *obj; | |
8262 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8263 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8264 | return SWIG_Py_Void(); | |
8265 | } | |
8266 | ||
8267 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8268 | return SWIG_Python_InitShadowInstance(args); | |
8269 | } | |
8270 | ||
8271 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8272 | PyObject *resultobj = 0; | |
8273 | wxBitmap *arg1 = 0 ; | |
8274 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8275 | int arg3 ; | |
8276 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8277 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8278 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8279 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8280 | long arg6 = (long) wxNO_BORDER ; | |
8281 | wxSplashScreenWindow *result = 0 ; | |
8282 | void *argp1 = 0 ; | |
8283 | int res1 = 0 ; | |
8284 | void *argp2 = 0 ; | |
8285 | int res2 = 0 ; | |
8286 | int val3 ; | |
8287 | int ecode3 = 0 ; | |
8288 | wxPoint temp4 ; | |
8289 | wxSize temp5 ; | |
8290 | long val6 ; | |
8291 | int ecode6 = 0 ; | |
8292 | PyObject * obj0 = 0 ; | |
8293 | PyObject * obj1 = 0 ; | |
8294 | PyObject * obj2 = 0 ; | |
8295 | PyObject * obj3 = 0 ; | |
8296 | PyObject * obj4 = 0 ; | |
8297 | PyObject * obj5 = 0 ; | |
8298 | char * kwnames[] = { | |
8299 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8300 | }; | |
8301 | ||
8302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8303 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8304 | if (!SWIG_IsOK(res1)) { | |
8305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8306 | } | |
8307 | if (!argp1) { | |
8308 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8309 | } | |
8310 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8311 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8312 | if (!SWIG_IsOK(res2)) { | |
8313 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8314 | } | |
8315 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8316 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8317 | if (!SWIG_IsOK(ecode3)) { | |
8318 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8319 | } | |
8320 | arg3 = static_cast< int >(val3); | |
8321 | if (obj3) { | |
d14a1e28 | 8322 | { |
0085ce49 RD |
8323 | arg4 = &temp4; |
8324 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 8325 | } |
0085ce49 RD |
8326 | } |
8327 | if (obj4) { | |
d14a1e28 | 8328 | { |
0085ce49 RD |
8329 | arg5 = &temp5; |
8330 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 8331 | } |
0085ce49 RD |
8332 | } |
8333 | if (obj5) { | |
8334 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8335 | if (!SWIG_IsOK(ecode6)) { | |
8336 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8337 | } | |
8338 | arg6 = static_cast< long >(val6); | |
8339 | } | |
8340 | { | |
8341 | if (!wxPyCheckForApp()) SWIG_fail; | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj = 0; | |
8356 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8357 | wxBitmap *arg2 = 0 ; | |
8358 | void *argp1 = 0 ; | |
8359 | int res1 = 0 ; | |
8360 | void *argp2 = 0 ; | |
8361 | int res2 = 0 ; | |
8362 | PyObject * obj0 = 0 ; | |
8363 | PyObject * obj1 = 0 ; | |
8364 | char * kwnames[] = { | |
8365 | (char *) "self",(char *) "bitmap", NULL | |
8366 | }; | |
8367 | ||
8368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8370 | if (!SWIG_IsOK(res1)) { | |
8371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8372 | } | |
8373 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8374 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8375 | if (!SWIG_IsOK(res2)) { | |
8376 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8377 | } | |
8378 | if (!argp2) { | |
8379 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8380 | } | |
8381 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8385 | wxPyEndAllowThreads(__tstate); | |
8386 | if (PyErr_Occurred()) SWIG_fail; | |
8387 | } | |
8388 | resultobj = SWIG_Py_Void(); | |
8389 | return resultobj; | |
8390 | fail: | |
8391 | return NULL; | |
d14a1e28 RD |
8392 | } |
8393 | ||
8394 | ||
0085ce49 RD |
8395 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8396 | PyObject *resultobj = 0; | |
8397 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8398 | wxBitmap *result = 0 ; | |
8399 | void *argp1 = 0 ; | |
8400 | int res1 = 0 ; | |
8401 | PyObject *swig_obj[1] ; | |
8402 | ||
8403 | if (!args) SWIG_fail; | |
8404 | swig_obj[0] = args; | |
8405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8406 | if (!SWIG_IsOK(res1)) { | |
8407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8408 | } | |
8409 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8410 | { | |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | { | |
8413 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
8414 | result = (wxBitmap *) &_result_ref; | |
8415 | } | |
8416 | wxPyEndAllowThreads(__tstate); | |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8418 | } | |
8419 | { | |
8420 | wxBitmap* resultptr = new wxBitmap(*result); | |
8421 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8422 | } | |
8423 | return resultobj; | |
8424 | fail: | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8430 | PyObject *obj; | |
8431 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8432 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8433 | return SWIG_Py_Void(); | |
8434 | } | |
8435 | ||
8436 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8437 | return SWIG_Python_InitShadowInstance(args); | |
8438 | } | |
8439 | ||
8440 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8441 | PyObject *resultobj = 0; | |
8442 | wxBitmap *arg1 = 0 ; | |
8443 | long arg2 ; | |
8444 | int arg3 ; | |
8445 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8446 | int arg5 = (int) -1 ; | |
8447 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8448 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8449 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8450 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8451 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8452 | wxSplashScreen *result = 0 ; | |
8453 | void *argp1 = 0 ; | |
8454 | int res1 = 0 ; | |
8455 | long val2 ; | |
8456 | int ecode2 = 0 ; | |
8457 | int val3 ; | |
8458 | int ecode3 = 0 ; | |
8459 | void *argp4 = 0 ; | |
8460 | int res4 = 0 ; | |
8461 | int val5 ; | |
8462 | int ecode5 = 0 ; | |
8463 | wxPoint temp6 ; | |
8464 | wxSize temp7 ; | |
8465 | long val8 ; | |
8466 | int ecode8 = 0 ; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | PyObject * obj1 = 0 ; | |
8469 | PyObject * obj2 = 0 ; | |
8470 | PyObject * obj3 = 0 ; | |
8471 | PyObject * obj4 = 0 ; | |
8472 | PyObject * obj5 = 0 ; | |
8473 | PyObject * obj6 = 0 ; | |
8474 | PyObject * obj7 = 0 ; | |
8475 | char * kwnames[] = { | |
8476 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8477 | }; | |
8478 | ||
8479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8480 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8481 | if (!SWIG_IsOK(res1)) { | |
8482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8483 | } | |
8484 | if (!argp1) { | |
8485 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8486 | } | |
8487 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8488 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8489 | if (!SWIG_IsOK(ecode2)) { | |
8490 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8491 | } | |
8492 | arg2 = static_cast< long >(val2); | |
8493 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8494 | if (!SWIG_IsOK(ecode3)) { | |
8495 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8496 | } | |
8497 | arg3 = static_cast< int >(val3); | |
8498 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8499 | if (!SWIG_IsOK(res4)) { | |
8500 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8501 | } | |
8502 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8503 | if (obj4) { | |
8504 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8505 | if (!SWIG_IsOK(ecode5)) { | |
8506 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8507 | } | |
8508 | arg5 = static_cast< int >(val5); | |
8509 | } | |
8510 | if (obj5) { | |
d14a1e28 | 8511 | { |
0085ce49 RD |
8512 | arg6 = &temp6; |
8513 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 8514 | } |
0085ce49 RD |
8515 | } |
8516 | if (obj6) { | |
d14a1e28 | 8517 | { |
0085ce49 RD |
8518 | arg7 = &temp7; |
8519 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d14a1e28 | 8520 | } |
0085ce49 RD |
8521 | } |
8522 | if (obj7) { | |
8523 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8524 | if (!SWIG_IsOK(ecode8)) { | |
8525 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8526 | } | |
8527 | arg8 = static_cast< long >(val8); | |
8528 | } | |
8529 | { | |
8530 | if (!wxPyCheckForApp()) SWIG_fail; | |
8531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8532 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
8536 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8537 | return resultobj; | |
8538 | fail: | |
8539 | return NULL; | |
d14a1e28 RD |
8540 | } |
8541 | ||
8542 | ||
0085ce49 RD |
8543 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8544 | PyObject *resultobj = 0; | |
8545 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8546 | long result; | |
8547 | void *argp1 = 0 ; | |
8548 | int res1 = 0 ; | |
8549 | PyObject *swig_obj[1] ; | |
8550 | ||
8551 | if (!args) SWIG_fail; | |
8552 | swig_obj[0] = args; | |
8553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8554 | if (!SWIG_IsOK(res1)) { | |
8555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8556 | } | |
8557 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8561 | wxPyEndAllowThreads(__tstate); | |
8562 | if (PyErr_Occurred()) SWIG_fail; | |
8563 | } | |
8564 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | return NULL; | |
d14a1e28 RD |
8568 | } |
8569 | ||
8570 | ||
0085ce49 RD |
8571 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8572 | PyObject *resultobj = 0; | |
8573 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8574 | wxSplashScreenWindow *result = 0 ; | |
8575 | void *argp1 = 0 ; | |
8576 | int res1 = 0 ; | |
8577 | PyObject *swig_obj[1] ; | |
8578 | ||
8579 | if (!args) SWIG_fail; | |
8580 | swig_obj[0] = args; | |
8581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8582 | if (!SWIG_IsOK(res1)) { | |
8583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8584 | } | |
8585 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8586 | { | |
8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8588 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8589 | wxPyEndAllowThreads(__tstate); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | } | |
8592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8593 | return resultobj; | |
8594 | fail: | |
8595 | return NULL; | |
d14a1e28 RD |
8596 | } |
8597 | ||
8598 | ||
0085ce49 RD |
8599 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8600 | PyObject *resultobj = 0; | |
8601 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8602 | int result; | |
8603 | void *argp1 = 0 ; | |
8604 | int res1 = 0 ; | |
8605 | PyObject *swig_obj[1] ; | |
8606 | ||
8607 | if (!args) SWIG_fail; | |
8608 | swig_obj[0] = args; | |
8609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8610 | if (!SWIG_IsOK(res1)) { | |
8611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8612 | } | |
8613 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8614 | { | |
8615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8616 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8617 | wxPyEndAllowThreads(__tstate); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
8620 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8621 | return resultobj; | |
8622 | fail: | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
8627 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8628 | PyObject *obj; | |
8629 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8630 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8631 | return SWIG_Py_Void(); | |
8632 | } | |
8633 | ||
8634 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8635 | return SWIG_Python_InitShadowInstance(args); | |
8636 | } | |
8637 | ||
8638 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj = 0; | |
8640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8641 | int arg2 = (int) -1 ; | |
8642 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8643 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8644 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8645 | wxStatusBar *result = 0 ; | |
8646 | void *argp1 = 0 ; | |
8647 | int res1 = 0 ; | |
8648 | int val2 ; | |
8649 | int ecode2 = 0 ; | |
8650 | long val3 ; | |
8651 | int ecode3 = 0 ; | |
8652 | bool temp4 = false ; | |
8653 | PyObject * obj0 = 0 ; | |
8654 | PyObject * obj1 = 0 ; | |
8655 | PyObject * obj2 = 0 ; | |
8656 | PyObject * obj3 = 0 ; | |
8657 | char * kwnames[] = { | |
8658 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8659 | }; | |
8660 | ||
8661 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8663 | if (!SWIG_IsOK(res1)) { | |
8664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8665 | } | |
8666 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8667 | if (obj1) { | |
8668 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8669 | if (!SWIG_IsOK(ecode2)) { | |
8670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8671 | } | |
8672 | arg2 = static_cast< int >(val2); | |
8673 | } | |
8674 | if (obj2) { | |
8675 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8676 | if (!SWIG_IsOK(ecode3)) { | |
8677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8678 | } | |
8679 | arg3 = static_cast< long >(val3); | |
8680 | } | |
8681 | if (obj3) { | |
d14a1e28 | 8682 | { |
0085ce49 RD |
8683 | arg4 = wxString_in_helper(obj3); |
8684 | if (arg4 == NULL) SWIG_fail; | |
8685 | temp4 = true; | |
d14a1e28 | 8686 | } |
0085ce49 RD |
8687 | } |
8688 | { | |
8689 | if (!wxPyCheckForApp()) SWIG_fail; | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
8695 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8696 | { | |
8697 | if (temp4) | |
8698 | delete arg4; | |
8699 | } | |
8700 | return resultobj; | |
8701 | fail: | |
8702 | { | |
8703 | if (temp4) | |
8704 | delete arg4; | |
8705 | } | |
8706 | return NULL; | |
d14a1e28 RD |
8707 | } |
8708 | ||
8709 | ||
0085ce49 RD |
8710 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8711 | PyObject *resultobj = 0; | |
8712 | wxStatusBar *result = 0 ; | |
8713 | ||
8714 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8715 | { | |
8716 | if (!wxPyCheckForApp()) SWIG_fail; | |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (wxStatusBar *)new wxStatusBar(); | |
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8723 | return resultobj; | |
8724 | fail: | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
8729 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8730 | PyObject *resultobj = 0; | |
8731 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8733 | int arg3 = (int) -1 ; | |
8734 | long arg4 = (long) wxST_SIZEGRIP ; | |
8735 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8736 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8737 | bool result; | |
8738 | void *argp1 = 0 ; | |
8739 | int res1 = 0 ; | |
8740 | void *argp2 = 0 ; | |
8741 | int res2 = 0 ; | |
8742 | int val3 ; | |
8743 | int ecode3 = 0 ; | |
8744 | long val4 ; | |
8745 | int ecode4 = 0 ; | |
8746 | bool temp5 = false ; | |
8747 | PyObject * obj0 = 0 ; | |
8748 | PyObject * obj1 = 0 ; | |
8749 | PyObject * obj2 = 0 ; | |
8750 | PyObject * obj3 = 0 ; | |
8751 | PyObject * obj4 = 0 ; | |
8752 | char * kwnames[] = { | |
8753 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8754 | }; | |
8755 | ||
8756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8758 | if (!SWIG_IsOK(res1)) { | |
8759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8760 | } | |
8761 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8762 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8763 | if (!SWIG_IsOK(res2)) { | |
8764 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8765 | } | |
8766 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8767 | if (obj2) { | |
8768 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8769 | if (!SWIG_IsOK(ecode3)) { | |
8770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8771 | } | |
8772 | arg3 = static_cast< int >(val3); | |
8773 | } | |
8774 | if (obj3) { | |
8775 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8776 | if (!SWIG_IsOK(ecode4)) { | |
8777 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8778 | } | |
8779 | arg4 = static_cast< long >(val4); | |
8780 | } | |
8781 | if (obj4) { | |
d14a1e28 | 8782 | { |
0085ce49 RD |
8783 | arg5 = wxString_in_helper(obj4); |
8784 | if (arg5 == NULL) SWIG_fail; | |
8785 | temp5 = true; | |
d14a1e28 | 8786 | } |
0085ce49 RD |
8787 | } |
8788 | { | |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8790 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8791 | wxPyEndAllowThreads(__tstate); | |
8792 | if (PyErr_Occurred()) SWIG_fail; | |
8793 | } | |
8794 | { | |
8795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8796 | } | |
8797 | { | |
8798 | if (temp5) | |
8799 | delete arg5; | |
8800 | } | |
8801 | return resultobj; | |
8802 | fail: | |
8803 | { | |
8804 | if (temp5) | |
8805 | delete arg5; | |
8806 | } | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
8811 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj = 0; | |
8813 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8814 | int arg2 = (int) 1 ; | |
8815 | void *argp1 = 0 ; | |
8816 | int res1 = 0 ; | |
8817 | int val2 ; | |
8818 | int ecode2 = 0 ; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | PyObject * obj1 = 0 ; | |
8821 | char * kwnames[] = { | |
8822 | (char *) "self",(char *) "number", NULL | |
8823 | }; | |
8824 | ||
8825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8827 | if (!SWIG_IsOK(res1)) { | |
8828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8829 | } | |
8830 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8831 | if (obj1) { | |
8832 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8833 | if (!SWIG_IsOK(ecode2)) { | |
8834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8835 | } | |
8836 | arg2 = static_cast< int >(val2); | |
8837 | } | |
8838 | { | |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | (arg1)->SetFieldsCount(arg2); | |
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | resultobj = SWIG_Py_Void(); | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | return NULL; | |
d14a1e28 RD |
8848 | } |
8849 | ||
8850 | ||
0085ce49 RD |
8851 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8852 | PyObject *resultobj = 0; | |
8853 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8854 | int result; | |
8855 | void *argp1 = 0 ; | |
8856 | int res1 = 0 ; | |
8857 | PyObject *swig_obj[1] ; | |
8858 | ||
8859 | if (!args) SWIG_fail; | |
8860 | swig_obj[0] = args; | |
8861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8862 | if (!SWIG_IsOK(res1)) { | |
8863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8864 | } | |
8865 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8866 | { | |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8873 | return resultobj; | |
8874 | fail: | |
8875 | return NULL; | |
8876 | } | |
8877 | ||
8878 | ||
8879 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8880 | PyObject *resultobj = 0; | |
8881 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8882 | wxString *arg2 = 0 ; | |
8883 | int arg3 = (int) 0 ; | |
8884 | void *argp1 = 0 ; | |
8885 | int res1 = 0 ; | |
8886 | bool temp2 = false ; | |
8887 | int val3 ; | |
8888 | int ecode3 = 0 ; | |
8889 | PyObject * obj0 = 0 ; | |
8890 | PyObject * obj1 = 0 ; | |
8891 | PyObject * obj2 = 0 ; | |
8892 | char * kwnames[] = { | |
8893 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8894 | }; | |
8895 | ||
8896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8898 | if (!SWIG_IsOK(res1)) { | |
8899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8900 | } | |
8901 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8902 | { | |
8903 | arg2 = wxString_in_helper(obj1); | |
8904 | if (arg2 == NULL) SWIG_fail; | |
8905 | temp2 = true; | |
8906 | } | |
8907 | if (obj2) { | |
8908 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8909 | if (!SWIG_IsOK(ecode3)) { | |
8910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8911 | } | |
8912 | arg3 = static_cast< int >(val3); | |
8913 | } | |
8914 | { | |
8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8916 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8917 | wxPyEndAllowThreads(__tstate); | |
8918 | if (PyErr_Occurred()) SWIG_fail; | |
8919 | } | |
8920 | resultobj = SWIG_Py_Void(); | |
8921 | { | |
8922 | if (temp2) | |
8923 | delete arg2; | |
8924 | } | |
8925 | return resultobj; | |
8926 | fail: | |
8927 | { | |
8928 | if (temp2) | |
8929 | delete arg2; | |
8930 | } | |
8931 | return NULL; | |
8932 | } | |
8933 | ||
8934 | ||
8935 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8936 | PyObject *resultobj = 0; | |
8937 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8938 | int arg2 = (int) 0 ; | |
8939 | wxString result; | |
8940 | void *argp1 = 0 ; | |
8941 | int res1 = 0 ; | |
8942 | int val2 ; | |
8943 | int ecode2 = 0 ; | |
8944 | PyObject * obj0 = 0 ; | |
8945 | PyObject * obj1 = 0 ; | |
8946 | char * kwnames[] = { | |
8947 | (char *) "self",(char *) "number", NULL | |
8948 | }; | |
8949 | ||
8950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8952 | if (!SWIG_IsOK(res1)) { | |
8953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8954 | } | |
8955 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8956 | if (obj1) { | |
8957 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8958 | if (!SWIG_IsOK(ecode2)) { | |
8959 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8960 | } | |
8961 | arg2 = static_cast< int >(val2); | |
8962 | } | |
8963 | { | |
8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8965 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
8966 | wxPyEndAllowThreads(__tstate); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | { | |
8970 | #if wxUSE_UNICODE | |
8971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8972 | #else | |
8973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8974 | #endif | |
8975 | } | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj = 0; | |
8984 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8985 | wxString *arg2 = 0 ; | |
8986 | int arg3 = (int) 0 ; | |
8987 | void *argp1 = 0 ; | |
8988 | int res1 = 0 ; | |
8989 | bool temp2 = false ; | |
8990 | int val3 ; | |
8991 | int ecode3 = 0 ; | |
8992 | PyObject * obj0 = 0 ; | |
8993 | PyObject * obj1 = 0 ; | |
8994 | PyObject * obj2 = 0 ; | |
8995 | char * kwnames[] = { | |
8996 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8997 | }; | |
8998 | ||
8999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9001 | if (!SWIG_IsOK(res1)) { | |
9002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9003 | } | |
9004 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9005 | { | |
9006 | arg2 = wxString_in_helper(obj1); | |
9007 | if (arg2 == NULL) SWIG_fail; | |
9008 | temp2 = true; | |
9009 | } | |
9010 | if (obj2) { | |
9011 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9012 | if (!SWIG_IsOK(ecode3)) { | |
9013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
9014 | } | |
9015 | arg3 = static_cast< int >(val3); | |
9016 | } | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
9020 | wxPyEndAllowThreads(__tstate); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | resultobj = SWIG_Py_Void(); | |
9024 | { | |
9025 | if (temp2) | |
9026 | delete arg2; | |
9027 | } | |
9028 | return resultobj; | |
9029 | fail: | |
9030 | { | |
9031 | if (temp2) | |
9032 | delete arg2; | |
9033 | } | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
9038 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9039 | PyObject *resultobj = 0; | |
9040 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9041 | int arg2 = (int) 0 ; | |
9042 | void *argp1 = 0 ; | |
9043 | int res1 = 0 ; | |
9044 | int val2 ; | |
9045 | int ecode2 = 0 ; | |
9046 | PyObject * obj0 = 0 ; | |
9047 | PyObject * obj1 = 0 ; | |
9048 | char * kwnames[] = { | |
9049 | (char *) "self",(char *) "number", NULL | |
9050 | }; | |
9051 | ||
9052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
9053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9054 | if (!SWIG_IsOK(res1)) { | |
9055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9056 | } | |
9057 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9058 | if (obj1) { | |
9059 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9060 | if (!SWIG_IsOK(ecode2)) { | |
9061 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
9062 | } | |
9063 | arg2 = static_cast< int >(val2); | |
9064 | } | |
9065 | { | |
9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9067 | (arg1)->PopStatusText(arg2); | |
9068 | wxPyEndAllowThreads(__tstate); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | } | |
9071 | resultobj = SWIG_Py_Void(); | |
9072 | return resultobj; | |
9073 | fail: | |
9074 | return NULL; | |
9075 | } | |
9076 | ||
9077 | ||
9078 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9079 | PyObject *resultobj = 0; | |
9080 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9081 | int arg2 ; | |
9082 | int *arg3 = (int *) 0 ; | |
9083 | void *argp1 = 0 ; | |
9084 | int res1 = 0 ; | |
9085 | PyObject * obj0 = 0 ; | |
9086 | PyObject * obj1 = 0 ; | |
9087 | char * kwnames[] = { | |
9088 | (char *) "self",(char *) "widths", NULL | |
9089 | }; | |
9090 | ||
9091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
9092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9093 | if (!SWIG_IsOK(res1)) { | |
9094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9095 | } | |
9096 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9097 | { | |
9098 | arg2 = PyList_Size(obj1); | |
9099 | arg3 = int_LIST_helper(obj1); | |
9100 | if (arg3 == NULL) SWIG_fail; | |
9101 | } | |
9102 | { | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
9105 | wxPyEndAllowThreads(__tstate); | |
9106 | if (PyErr_Occurred()) SWIG_fail; | |
9107 | } | |
9108 | resultobj = SWIG_Py_Void(); | |
9109 | { | |
9110 | if (arg3) delete [] arg3; | |
9111 | } | |
9112 | return resultobj; | |
9113 | fail: | |
9114 | { | |
9115 | if (arg3) delete [] arg3; | |
9116 | } | |
9117 | return NULL; | |
d14a1e28 RD |
9118 | } |
9119 | ||
9120 | ||
0085ce49 RD |
9121 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9122 | PyObject *resultobj = 0; | |
9123 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9124 | int arg2 ; | |
9125 | int *arg3 = (int *) 0 ; | |
9126 | void *argp1 = 0 ; | |
9127 | int res1 = 0 ; | |
9128 | PyObject * obj0 = 0 ; | |
9129 | PyObject * obj1 = 0 ; | |
9130 | char * kwnames[] = { | |
9131 | (char *) "self",(char *) "styles", NULL | |
9132 | }; | |
9133 | ||
9134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
9135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9136 | if (!SWIG_IsOK(res1)) { | |
9137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9138 | } | |
9139 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9140 | { | |
9141 | arg2 = PyList_Size(obj1); | |
9142 | arg3 = int_LIST_helper(obj1); | |
9143 | if (arg3 == NULL) SWIG_fail; | |
9144 | } | |
9145 | { | |
9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9147 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
9148 | wxPyEndAllowThreads(__tstate); | |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
9150 | } | |
9151 | resultobj = SWIG_Py_Void(); | |
9152 | { | |
9153 | if (arg3) delete [] arg3; | |
9154 | } | |
9155 | return resultobj; | |
9156 | fail: | |
9157 | { | |
9158 | if (arg3) delete [] arg3; | |
9159 | } | |
9160 | return NULL; | |
9161 | } | |
9162 | ||
9163 | ||
9164 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9165 | PyObject *resultobj = 0; | |
9166 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9167 | int arg2 ; | |
9168 | wxRect result; | |
9169 | void *argp1 = 0 ; | |
9170 | int res1 = 0 ; | |
9171 | int val2 ; | |
9172 | int ecode2 = 0 ; | |
9173 | PyObject * obj0 = 0 ; | |
9174 | PyObject * obj1 = 0 ; | |
9175 | char * kwnames[] = { | |
9176 | (char *) "self",(char *) "i", NULL | |
9177 | }; | |
9178 | ||
9179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
9180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9181 | if (!SWIG_IsOK(res1)) { | |
9182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9183 | } | |
9184 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9185 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9186 | if (!SWIG_IsOK(ecode2)) { | |
9187 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
9188 | } | |
9189 | arg2 = static_cast< int >(val2); | |
9190 | { | |
9191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9192 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
9196 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
9203 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj = 0; | |
9205 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9206 | int arg2 ; | |
9207 | void *argp1 = 0 ; | |
9208 | int res1 = 0 ; | |
9209 | int val2 ; | |
9210 | int ecode2 = 0 ; | |
9211 | PyObject * obj0 = 0 ; | |
9212 | PyObject * obj1 = 0 ; | |
9213 | char * kwnames[] = { | |
9214 | (char *) "self",(char *) "height", NULL | |
9215 | }; | |
9216 | ||
9217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9219 | if (!SWIG_IsOK(res1)) { | |
9220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9221 | } | |
9222 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9223 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9224 | if (!SWIG_IsOK(ecode2)) { | |
9225 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9226 | } | |
9227 | arg2 = static_cast< int >(val2); | |
9228 | { | |
9229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9230 | (arg1)->SetMinHeight(arg2); | |
9231 | wxPyEndAllowThreads(__tstate); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
9233 | } | |
9234 | resultobj = SWIG_Py_Void(); | |
9235 | return resultobj; | |
9236 | fail: | |
9237 | return NULL; | |
d14a1e28 RD |
9238 | } |
9239 | ||
9240 | ||
0085ce49 RD |
9241 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9242 | PyObject *resultobj = 0; | |
9243 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9244 | int result; | |
9245 | void *argp1 = 0 ; | |
9246 | int res1 = 0 ; | |
9247 | PyObject *swig_obj[1] ; | |
9248 | ||
9249 | if (!args) SWIG_fail; | |
9250 | swig_obj[0] = args; | |
9251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9252 | if (!SWIG_IsOK(res1)) { | |
9253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9254 | } | |
9255 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9256 | { | |
9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9258 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9259 | wxPyEndAllowThreads(__tstate); | |
9260 | if (PyErr_Occurred()) SWIG_fail; | |
9261 | } | |
9262 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
d14a1e28 RD |
9266 | } |
9267 | ||
9268 | ||
0085ce49 RD |
9269 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9270 | PyObject *resultobj = 0; | |
9271 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9272 | int result; | |
9273 | void *argp1 = 0 ; | |
9274 | int res1 = 0 ; | |
9275 | PyObject *swig_obj[1] ; | |
9276 | ||
9277 | if (!args) SWIG_fail; | |
9278 | swig_obj[0] = args; | |
9279 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9280 | if (!SWIG_IsOK(res1)) { | |
9281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9282 | } | |
9283 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9287 | wxPyEndAllowThreads(__tstate); | |
9288 | if (PyErr_Occurred()) SWIG_fail; | |
9289 | } | |
9290 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9291 | return resultobj; | |
9292 | fail: | |
9293 | return NULL; | |
9294 | } | |
9295 | ||
9296 | ||
9297 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9298 | PyObject *resultobj = 0; | |
9299 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9300 | SwigValueWrapper<wxVisualAttributes > result; | |
9301 | int val1 ; | |
9302 | int ecode1 = 0 ; | |
9303 | PyObject * obj0 = 0 ; | |
9304 | char * kwnames[] = { | |
9305 | (char *) "variant", NULL | |
9306 | }; | |
9307 | ||
9308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9309 | if (obj0) { | |
9310 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9311 | if (!SWIG_IsOK(ecode1)) { | |
9312 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9313 | } | |
9314 | arg1 = static_cast< wxWindowVariant >(val1); | |
9315 | } | |
9316 | { | |
9317 | if (!wxPyCheckForApp()) SWIG_fail; | |
9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9319 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9320 | wxPyEndAllowThreads(__tstate); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
9322 | } | |
9323 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9324 | return resultobj; | |
9325 | fail: | |
9326 | return NULL; | |
d14a1e28 RD |
9327 | } |
9328 | ||
9329 | ||
0085ce49 RD |
9330 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9331 | PyObject *obj; | |
9332 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9333 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9334 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9335 | } |
9336 | ||
0085ce49 RD |
9337 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9338 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9339 | } |
9340 | ||
0085ce49 RD |
9341 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9342 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9343 | return 1; | |
d14a1e28 RD |
9344 | } |
9345 | ||
9346 | ||
0085ce49 RD |
9347 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9348 | PyObject *pyobj = 0; | |
9349 | ||
9350 | { | |
9351 | #if wxUSE_UNICODE | |
9352 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9353 | #else | |
9354 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9355 | #endif | |
9356 | } | |
9357 | return pyobj; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj = 0; | |
9363 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9364 | int arg2 = (int) -1 ; | |
9365 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9366 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9367 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9368 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9369 | long arg5 = (long) wxSP_3D ; | |
9370 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9371 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9372 | wxSplitterWindow *result = 0 ; | |
9373 | void *argp1 = 0 ; | |
9374 | int res1 = 0 ; | |
9375 | int val2 ; | |
9376 | int ecode2 = 0 ; | |
9377 | wxPoint temp3 ; | |
9378 | wxSize temp4 ; | |
9379 | long val5 ; | |
9380 | int ecode5 = 0 ; | |
9381 | bool temp6 = false ; | |
9382 | PyObject * obj0 = 0 ; | |
9383 | PyObject * obj1 = 0 ; | |
9384 | PyObject * obj2 = 0 ; | |
9385 | PyObject * obj3 = 0 ; | |
9386 | PyObject * obj4 = 0 ; | |
9387 | PyObject * obj5 = 0 ; | |
9388 | char * kwnames[] = { | |
9389 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9390 | }; | |
9391 | ||
9392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9394 | if (!SWIG_IsOK(res1)) { | |
9395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9396 | } | |
9397 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9398 | if (obj1) { | |
9399 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9400 | if (!SWIG_IsOK(ecode2)) { | |
9401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9402 | } | |
9403 | arg2 = static_cast< int >(val2); | |
9404 | } | |
9405 | if (obj2) { | |
093d3ff1 | 9406 | { |
0085ce49 RD |
9407 | arg3 = &temp3; |
9408 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 9409 | } |
0085ce49 RD |
9410 | } |
9411 | if (obj3) { | |
d14a1e28 | 9412 | { |
0085ce49 RD |
9413 | arg4 = &temp4; |
9414 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9415 | } |
0085ce49 RD |
9416 | } |
9417 | if (obj4) { | |
9418 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9419 | if (!SWIG_IsOK(ecode5)) { | |
9420 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9421 | } | |
9422 | arg5 = static_cast< long >(val5); | |
9423 | } | |
9424 | if (obj5) { | |
093d3ff1 | 9425 | { |
0085ce49 RD |
9426 | arg6 = wxString_in_helper(obj5); |
9427 | if (arg6 == NULL) SWIG_fail; | |
9428 | temp6 = true; | |
093d3ff1 | 9429 | } |
0085ce49 RD |
9430 | } |
9431 | { | |
9432 | if (!wxPyCheckForApp()) SWIG_fail; | |
9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9434 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9435 | wxPyEndAllowThreads(__tstate); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | } | |
9438 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9439 | { | |
9440 | if (temp6) | |
9441 | delete arg6; | |
9442 | } | |
9443 | return resultobj; | |
9444 | fail: | |
9445 | { | |
9446 | if (temp6) | |
9447 | delete arg6; | |
9448 | } | |
9449 | return NULL; | |
d14a1e28 RD |
9450 | } |
9451 | ||
9452 | ||
0085ce49 RD |
9453 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9454 | PyObject *resultobj = 0; | |
9455 | wxSplitterWindow *result = 0 ; | |
9456 | ||
9457 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9458 | { | |
9459 | if (!wxPyCheckForApp()) SWIG_fail; | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9462 | wxPyEndAllowThreads(__tstate); | |
9463 | if (PyErr_Occurred()) SWIG_fail; | |
9464 | } | |
9465 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9466 | return resultobj; | |
9467 | fail: | |
9468 | return NULL; | |
9469 | } | |
9470 | ||
9471 | ||
9472 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9473 | PyObject *resultobj = 0; | |
9474 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9475 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9476 | int arg3 = (int) -1 ; | |
9477 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9478 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9479 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9480 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9481 | long arg6 = (long) wxSP_3D ; | |
9482 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9483 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9484 | bool result; | |
9485 | void *argp1 = 0 ; | |
9486 | int res1 = 0 ; | |
9487 | void *argp2 = 0 ; | |
9488 | int res2 = 0 ; | |
9489 | int val3 ; | |
9490 | int ecode3 = 0 ; | |
9491 | wxPoint temp4 ; | |
9492 | wxSize temp5 ; | |
9493 | long val6 ; | |
9494 | int ecode6 = 0 ; | |
9495 | bool temp7 = false ; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | PyObject * obj1 = 0 ; | |
9498 | PyObject * obj2 = 0 ; | |
9499 | PyObject * obj3 = 0 ; | |
9500 | PyObject * obj4 = 0 ; | |
9501 | PyObject * obj5 = 0 ; | |
9502 | PyObject * obj6 = 0 ; | |
9503 | char * kwnames[] = { | |
9504 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9505 | }; | |
9506 | ||
9507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9509 | if (!SWIG_IsOK(res1)) { | |
9510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9511 | } | |
9512 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9513 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9514 | if (!SWIG_IsOK(res2)) { | |
9515 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9516 | } | |
9517 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9518 | if (obj2) { | |
9519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9520 | if (!SWIG_IsOK(ecode3)) { | |
9521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9522 | } | |
9523 | arg3 = static_cast< int >(val3); | |
9524 | } | |
9525 | if (obj3) { | |
d14a1e28 | 9526 | { |
0085ce49 RD |
9527 | arg4 = &temp4; |
9528 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 9529 | } |
0085ce49 RD |
9530 | } |
9531 | if (obj4) { | |
d14a1e28 | 9532 | { |
0085ce49 RD |
9533 | arg5 = &temp5; |
9534 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 9535 | } |
0085ce49 RD |
9536 | } |
9537 | if (obj5) { | |
9538 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9539 | if (!SWIG_IsOK(ecode6)) { | |
9540 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9541 | } | |
9542 | arg6 = static_cast< long >(val6); | |
9543 | } | |
9544 | if (obj6) { | |
d14a1e28 | 9545 | { |
0085ce49 RD |
9546 | arg7 = wxString_in_helper(obj6); |
9547 | if (arg7 == NULL) SWIG_fail; | |
9548 | temp7 = true; | |
d14a1e28 | 9549 | } |
0085ce49 RD |
9550 | } |
9551 | { | |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
9557 | { | |
9558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9559 | } | |
9560 | { | |
9561 | if (temp7) | |
9562 | delete arg7; | |
9563 | } | |
9564 | return resultobj; | |
9565 | fail: | |
9566 | { | |
9567 | if (temp7) | |
9568 | delete arg7; | |
9569 | } | |
9570 | return NULL; | |
d14a1e28 RD |
9571 | } |
9572 | ||
9573 | ||
0085ce49 RD |
9574 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9575 | PyObject *resultobj = 0; | |
9576 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9577 | wxWindow *result = 0 ; | |
9578 | void *argp1 = 0 ; | |
9579 | int res1 = 0 ; | |
9580 | PyObject *swig_obj[1] ; | |
9581 | ||
9582 | if (!args) SWIG_fail; | |
9583 | swig_obj[0] = args; | |
9584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9585 | if (!SWIG_IsOK(res1)) { | |
9586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9587 | } | |
9588 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9589 | { | |
9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9591 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9592 | wxPyEndAllowThreads(__tstate); | |
9593 | if (PyErr_Occurred()) SWIG_fail; | |
9594 | } | |
9595 | { | |
9596 | resultobj = wxPyMake_wxObject(result, 0); | |
9597 | } | |
9598 | return resultobj; | |
9599 | fail: | |
9600 | return NULL; | |
d14a1e28 RD |
9601 | } |
9602 | ||
9603 | ||
0085ce49 RD |
9604 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9605 | PyObject *resultobj = 0; | |
9606 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9607 | wxWindow *result = 0 ; | |
9608 | void *argp1 = 0 ; | |
9609 | int res1 = 0 ; | |
9610 | PyObject *swig_obj[1] ; | |
9611 | ||
9612 | if (!args) SWIG_fail; | |
9613 | swig_obj[0] = args; | |
9614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9615 | if (!SWIG_IsOK(res1)) { | |
9616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9617 | } | |
9618 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | { | |
9626 | resultobj = wxPyMake_wxObject(result, 0); | |
9627 | } | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9635 | PyObject *resultobj = 0; | |
9636 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9637 | int arg2 ; | |
9638 | void *argp1 = 0 ; | |
9639 | int res1 = 0 ; | |
9640 | int val2 ; | |
9641 | int ecode2 = 0 ; | |
9642 | PyObject * obj0 = 0 ; | |
9643 | PyObject * obj1 = 0 ; | |
9644 | char * kwnames[] = { | |
9645 | (char *) "self",(char *) "mode", NULL | |
9646 | }; | |
9647 | ||
9648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9650 | if (!SWIG_IsOK(res1)) { | |
9651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9652 | } | |
9653 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9654 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9655 | if (!SWIG_IsOK(ecode2)) { | |
9656 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9657 | } | |
9658 | arg2 = static_cast< int >(val2); | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | (arg1)->SetSplitMode(arg2); | |
9662 | wxPyEndAllowThreads(__tstate); | |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
9664 | } | |
9665 | resultobj = SWIG_Py_Void(); | |
9666 | return resultobj; | |
9667 | fail: | |
9668 | return NULL; | |
d14a1e28 RD |
9669 | } |
9670 | ||
9671 | ||
0085ce49 RD |
9672 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9673 | PyObject *resultobj = 0; | |
9674 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9675 | wxSplitMode result; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | PyObject *swig_obj[1] ; | |
9679 | ||
9680 | if (!args) SWIG_fail; | |
9681 | swig_obj[0] = args; | |
9682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9683 | if (!SWIG_IsOK(res1)) { | |
9684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9685 | } | |
9686 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9701 | PyObject *resultobj = 0; | |
9702 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9704 | void *argp1 = 0 ; | |
9705 | int res1 = 0 ; | |
9706 | void *argp2 = 0 ; | |
9707 | int res2 = 0 ; | |
9708 | PyObject * obj0 = 0 ; | |
9709 | PyObject * obj1 = 0 ; | |
9710 | char * kwnames[] = { | |
9711 | (char *) "self",(char *) "window", NULL | |
9712 | }; | |
9713 | ||
9714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9716 | if (!SWIG_IsOK(res1)) { | |
9717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9718 | } | |
9719 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9720 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9721 | if (!SWIG_IsOK(res2)) { | |
9722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9723 | } | |
9724 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9725 | { | |
9726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9727 | (arg1)->Initialize(arg2); | |
9728 | wxPyEndAllowThreads(__tstate); | |
9729 | if (PyErr_Occurred()) SWIG_fail; | |
9730 | } | |
9731 | resultobj = SWIG_Py_Void(); | |
9732 | return resultobj; | |
9733 | fail: | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
9738 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9739 | PyObject *resultobj = 0; | |
9740 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9741 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9742 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9743 | int arg4 = (int) 0 ; | |
9744 | bool result; | |
9745 | void *argp1 = 0 ; | |
9746 | int res1 = 0 ; | |
9747 | void *argp2 = 0 ; | |
9748 | int res2 = 0 ; | |
9749 | void *argp3 = 0 ; | |
9750 | int res3 = 0 ; | |
9751 | int val4 ; | |
9752 | int ecode4 = 0 ; | |
9753 | PyObject * obj0 = 0 ; | |
9754 | PyObject * obj1 = 0 ; | |
9755 | PyObject * obj2 = 0 ; | |
9756 | PyObject * obj3 = 0 ; | |
9757 | char * kwnames[] = { | |
9758 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9759 | }; | |
9760 | ||
9761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_SplitVertically" "', 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_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9770 | } | |
9771 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9772 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9773 | if (!SWIG_IsOK(res3)) { | |
9774 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9775 | } | |
9776 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9777 | if (obj3) { | |
9778 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9779 | if (!SWIG_IsOK(ecode4)) { | |
9780 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9781 | } | |
9782 | arg4 = static_cast< int >(val4); | |
9783 | } | |
9784 | { | |
9785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9786 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
9790 | { | |
9791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9792 | } | |
9793 | return resultobj; | |
9794 | fail: | |
9795 | return NULL; | |
9796 | } | |
9797 | ||
9798 | ||
9799 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9800 | PyObject *resultobj = 0; | |
9801 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9802 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9803 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9804 | int arg4 = (int) 0 ; | |
9805 | bool result; | |
9806 | void *argp1 = 0 ; | |
9807 | int res1 = 0 ; | |
9808 | void *argp2 = 0 ; | |
9809 | int res2 = 0 ; | |
9810 | void *argp3 = 0 ; | |
9811 | int res3 = 0 ; | |
9812 | int val4 ; | |
9813 | int ecode4 = 0 ; | |
9814 | PyObject * obj0 = 0 ; | |
9815 | PyObject * obj1 = 0 ; | |
9816 | PyObject * obj2 = 0 ; | |
9817 | PyObject * obj3 = 0 ; | |
9818 | char * kwnames[] = { | |
9819 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9820 | }; | |
9821 | ||
9822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9824 | if (!SWIG_IsOK(res1)) { | |
9825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9826 | } | |
9827 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9828 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9829 | if (!SWIG_IsOK(res2)) { | |
9830 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9831 | } | |
9832 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9833 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9834 | if (!SWIG_IsOK(res3)) { | |
9835 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9836 | } | |
9837 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9838 | if (obj3) { | |
9839 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9840 | if (!SWIG_IsOK(ecode4)) { | |
9841 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9842 | } | |
9843 | arg4 = static_cast< int >(val4); | |
9844 | } | |
9845 | { | |
9846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9847 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9848 | wxPyEndAllowThreads(__tstate); | |
9849 | if (PyErr_Occurred()) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9853 | } | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
9860 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9861 | PyObject *resultobj = 0; | |
9862 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9863 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9864 | bool result; | |
9865 | void *argp1 = 0 ; | |
9866 | int res1 = 0 ; | |
9867 | void *argp2 = 0 ; | |
9868 | int res2 = 0 ; | |
9869 | PyObject * obj0 = 0 ; | |
9870 | PyObject * obj1 = 0 ; | |
9871 | char * kwnames[] = { | |
9872 | (char *) "self",(char *) "toRemove", NULL | |
9873 | }; | |
9874 | ||
9875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9877 | if (!SWIG_IsOK(res1)) { | |
9878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9879 | } | |
9880 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9881 | if (obj1) { | |
9882 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9883 | if (!SWIG_IsOK(res2)) { | |
9884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d14a1e28 | 9885 | } |
0085ce49 RD |
9886 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9887 | } | |
9888 | { | |
9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9890 | result = (bool)(arg1)->Unsplit(arg2); | |
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) SWIG_fail; | |
9893 | } | |
9894 | { | |
9895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9896 | } | |
9897 | return resultobj; | |
9898 | fail: | |
9899 | return NULL; | |
9900 | } | |
9901 | ||
9902 | ||
9903 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9904 | PyObject *resultobj = 0; | |
9905 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9906 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9907 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9908 | bool result; | |
9909 | void *argp1 = 0 ; | |
9910 | int res1 = 0 ; | |
9911 | void *argp2 = 0 ; | |
9912 | int res2 = 0 ; | |
9913 | void *argp3 = 0 ; | |
9914 | int res3 = 0 ; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | PyObject * obj1 = 0 ; | |
9917 | PyObject * obj2 = 0 ; | |
9918 | char * kwnames[] = { | |
9919 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9920 | }; | |
9921 | ||
9922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) 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_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9926 | } | |
9927 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9928 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9929 | if (!SWIG_IsOK(res2)) { | |
9930 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9931 | } | |
9932 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9933 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9934 | if (!SWIG_IsOK(res3)) { | |
9935 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9936 | } | |
9937 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9940 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9941 | wxPyEndAllowThreads(__tstate); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | } | |
9944 | { | |
9945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9946 | } | |
9947 | return resultobj; | |
9948 | fail: | |
9949 | return NULL; | |
d14a1e28 RD |
9950 | } |
9951 | ||
9952 | ||
0085ce49 RD |
9953 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9954 | PyObject *resultobj = 0; | |
9955 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9956 | void *argp1 = 0 ; | |
9957 | int res1 = 0 ; | |
9958 | PyObject *swig_obj[1] ; | |
9959 | ||
9960 | if (!args) SWIG_fail; | |
9961 | swig_obj[0] = args; | |
9962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9963 | if (!SWIG_IsOK(res1)) { | |
9964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9965 | } | |
9966 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9967 | { | |
9968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9969 | (arg1)->UpdateSize(); | |
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | resultobj = SWIG_Py_Void(); | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | return NULL; | |
22bfe96c RD |
9977 | } |
9978 | ||
9979 | ||
0085ce49 RD |
9980 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9981 | PyObject *resultobj = 0; | |
9982 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9983 | bool result; | |
9984 | void *argp1 = 0 ; | |
9985 | int res1 = 0 ; | |
9986 | PyObject *swig_obj[1] ; | |
9987 | ||
9988 | if (!args) SWIG_fail; | |
9989 | swig_obj[0] = args; | |
9990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9991 | if (!SWIG_IsOK(res1)) { | |
9992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9993 | } | |
9994 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9995 | { | |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
9998 | wxPyEndAllowThreads(__tstate); | |
9999 | if (PyErr_Occurred()) SWIG_fail; | |
10000 | } | |
10001 | { | |
10002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10003 | } | |
10004 | return resultobj; | |
10005 | fail: | |
10006 | return NULL; | |
10007 | } | |
10008 | ||
10009 | ||
10010 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10011 | PyObject *resultobj = 0; | |
10012 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10013 | int arg2 ; | |
10014 | void *argp1 = 0 ; | |
10015 | int res1 = 0 ; | |
10016 | int val2 ; | |
10017 | int ecode2 = 0 ; | |
10018 | PyObject * obj0 = 0 ; | |
10019 | PyObject * obj1 = 0 ; | |
10020 | char * kwnames[] = { | |
10021 | (char *) "self",(char *) "width", NULL | |
10022 | }; | |
10023 | ||
10024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10026 | if (!SWIG_IsOK(res1)) { | |
10027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10028 | } | |
10029 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10031 | if (!SWIG_IsOK(ecode2)) { | |
10032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
10033 | } | |
10034 | arg2 = static_cast< int >(val2); | |
10035 | { | |
10036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10037 | (arg1)->SetSashSize(arg2); | |
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | resultobj = SWIG_Py_Void(); | |
10042 | return resultobj; | |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj = 0; | |
10050 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10051 | int arg2 ; | |
10052 | void *argp1 = 0 ; | |
10053 | int res1 = 0 ; | |
10054 | int val2 ; | |
10055 | int ecode2 = 0 ; | |
10056 | PyObject * obj0 = 0 ; | |
10057 | PyObject * obj1 = 0 ; | |
10058 | char * kwnames[] = { | |
10059 | (char *) "self",(char *) "width", NULL | |
10060 | }; | |
10061 | ||
10062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10064 | if (!SWIG_IsOK(res1)) { | |
10065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10066 | } | |
10067 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10068 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10069 | if (!SWIG_IsOK(ecode2)) { | |
10070 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
10071 | } | |
10072 | arg2 = static_cast< int >(val2); | |
10073 | { | |
10074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10075 | (arg1)->SetBorderSize(arg2); | |
10076 | wxPyEndAllowThreads(__tstate); | |
10077 | if (PyErr_Occurred()) SWIG_fail; | |
10078 | } | |
10079 | resultobj = SWIG_Py_Void(); | |
10080 | return resultobj; | |
10081 | fail: | |
10082 | return NULL; | |
d14a1e28 RD |
10083 | } |
10084 | ||
10085 | ||
0085ce49 RD |
10086 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10087 | PyObject *resultobj = 0; | |
10088 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10089 | int result; | |
10090 | void *argp1 = 0 ; | |
10091 | int res1 = 0 ; | |
10092 | PyObject *swig_obj[1] ; | |
10093 | ||
10094 | if (!args) SWIG_fail; | |
10095 | swig_obj[0] = args; | |
10096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10097 | if (!SWIG_IsOK(res1)) { | |
10098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10099 | } | |
10100 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10108 | return resultobj; | |
10109 | fail: | |
10110 | return NULL; | |
d14a1e28 RD |
10111 | } |
10112 | ||
10113 | ||
0085ce49 RD |
10114 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10115 | PyObject *resultobj = 0; | |
10116 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10117 | int result; | |
10118 | void *argp1 = 0 ; | |
10119 | int res1 = 0 ; | |
10120 | PyObject *swig_obj[1] ; | |
10121 | ||
10122 | if (!args) SWIG_fail; | |
10123 | swig_obj[0] = args; | |
10124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10125 | if (!SWIG_IsOK(res1)) { | |
10126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10127 | } | |
10128 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10129 | { | |
10130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10131 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10136 | return resultobj; | |
10137 | fail: | |
10138 | return NULL; | |
10139 | } | |
10140 | ||
10141 | ||
10142 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10143 | PyObject *resultobj = 0; | |
10144 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10145 | int arg2 ; | |
10146 | bool arg3 = (bool) true ; | |
10147 | void *argp1 = 0 ; | |
10148 | int res1 = 0 ; | |
10149 | int val2 ; | |
10150 | int ecode2 = 0 ; | |
10151 | bool val3 ; | |
10152 | int ecode3 = 0 ; | |
10153 | PyObject * obj0 = 0 ; | |
10154 | PyObject * obj1 = 0 ; | |
10155 | PyObject * obj2 = 0 ; | |
10156 | char * kwnames[] = { | |
10157 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
10158 | }; | |
10159 | ||
10160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10162 | if (!SWIG_IsOK(res1)) { | |
10163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10164 | } | |
10165 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10166 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10167 | if (!SWIG_IsOK(ecode2)) { | |
10168 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10169 | } | |
10170 | arg2 = static_cast< int >(val2); | |
10171 | if (obj2) { | |
10172 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10173 | if (!SWIG_IsOK(ecode3)) { | |
10174 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
10175 | } | |
10176 | arg3 = static_cast< bool >(val3); | |
10177 | } | |
10178 | { | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | (arg1)->SetSashPosition(arg2,arg3); | |
10181 | wxPyEndAllowThreads(__tstate); | |
10182 | if (PyErr_Occurred()) SWIG_fail; | |
10183 | } | |
10184 | resultobj = SWIG_Py_Void(); | |
10185 | return resultobj; | |
10186 | fail: | |
10187 | return NULL; | |
d14a1e28 RD |
10188 | } |
10189 | ||
10190 | ||
0085ce49 RD |
10191 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10192 | PyObject *resultobj = 0; | |
10193 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10194 | int result; | |
10195 | void *argp1 = 0 ; | |
10196 | int res1 = 0 ; | |
10197 | PyObject *swig_obj[1] ; | |
10198 | ||
10199 | if (!args) SWIG_fail; | |
10200 | swig_obj[0] = args; | |
10201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10202 | if (!SWIG_IsOK(res1)) { | |
10203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10204 | } | |
10205 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
10219 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10220 | PyObject *resultobj = 0; | |
10221 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10222 | double arg2 ; | |
10223 | void *argp1 = 0 ; | |
10224 | int res1 = 0 ; | |
10225 | double val2 ; | |
10226 | int ecode2 = 0 ; | |
10227 | PyObject * obj0 = 0 ; | |
10228 | PyObject * obj1 = 0 ; | |
10229 | char * kwnames[] = { | |
10230 | (char *) "self",(char *) "gravity", NULL | |
10231 | }; | |
10232 | ||
10233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10235 | if (!SWIG_IsOK(res1)) { | |
10236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10237 | } | |
10238 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10239 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10240 | if (!SWIG_IsOK(ecode2)) { | |
10241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10242 | } | |
10243 | arg2 = static_cast< double >(val2); | |
10244 | { | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | (arg1)->SetSashGravity(arg2); | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) SWIG_fail; | |
10249 | } | |
10250 | resultobj = SWIG_Py_Void(); | |
10251 | return resultobj; | |
10252 | fail: | |
10253 | return NULL; | |
d14a1e28 RD |
10254 | } |
10255 | ||
10256 | ||
0085ce49 RD |
10257 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10258 | PyObject *resultobj = 0; | |
10259 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10260 | double result; | |
10261 | void *argp1 = 0 ; | |
10262 | int res1 = 0 ; | |
10263 | PyObject *swig_obj[1] ; | |
10264 | ||
10265 | if (!args) SWIG_fail; | |
10266 | swig_obj[0] = args; | |
10267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10268 | if (!SWIG_IsOK(res1)) { | |
10269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10270 | } | |
10271 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10274 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj = 0; | |
10287 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10288 | int arg2 ; | |
10289 | void *argp1 = 0 ; | |
10290 | int res1 = 0 ; | |
10291 | int val2 ; | |
10292 | int ecode2 = 0 ; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | PyObject * obj1 = 0 ; | |
10295 | char * kwnames[] = { | |
10296 | (char *) "self",(char *) "min", NULL | |
10297 | }; | |
10298 | ||
10299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10301 | if (!SWIG_IsOK(res1)) { | |
10302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10303 | } | |
10304 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10305 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10306 | if (!SWIG_IsOK(ecode2)) { | |
10307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10308 | } | |
10309 | arg2 = static_cast< int >(val2); | |
10310 | { | |
10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10312 | (arg1)->SetMinimumPaneSize(arg2); | |
10313 | wxPyEndAllowThreads(__tstate); | |
10314 | if (PyErr_Occurred()) SWIG_fail; | |
10315 | } | |
10316 | resultobj = SWIG_Py_Void(); | |
10317 | return resultobj; | |
10318 | fail: | |
10319 | return NULL; | |
d14a1e28 RD |
10320 | } |
10321 | ||
10322 | ||
0085ce49 RD |
10323 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10324 | PyObject *resultobj = 0; | |
10325 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10326 | int result; | |
10327 | void *argp1 = 0 ; | |
10328 | int res1 = 0 ; | |
10329 | PyObject *swig_obj[1] ; | |
10330 | ||
10331 | if (!args) SWIG_fail; | |
10332 | swig_obj[0] = args; | |
10333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10334 | if (!SWIG_IsOK(res1)) { | |
10335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10336 | } | |
10337 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10338 | { | |
10339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10340 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | return NULL; | |
10348 | } | |
10349 | ||
10350 | ||
10351 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10352 | PyObject *resultobj = 0; | |
10353 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10354 | int arg2 ; | |
10355 | int arg3 ; | |
10356 | int arg4 = (int) 5 ; | |
10357 | bool result; | |
10358 | void *argp1 = 0 ; | |
10359 | int res1 = 0 ; | |
10360 | int val2 ; | |
10361 | int ecode2 = 0 ; | |
10362 | int val3 ; | |
10363 | int ecode3 = 0 ; | |
10364 | int val4 ; | |
10365 | int ecode4 = 0 ; | |
10366 | PyObject * obj0 = 0 ; | |
10367 | PyObject * obj1 = 0 ; | |
10368 | PyObject * obj2 = 0 ; | |
10369 | PyObject * obj3 = 0 ; | |
10370 | char * kwnames[] = { | |
10371 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10372 | }; | |
10373 | ||
10374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10376 | if (!SWIG_IsOK(res1)) { | |
10377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10378 | } | |
10379 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10380 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10381 | if (!SWIG_IsOK(ecode2)) { | |
10382 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10383 | } | |
10384 | arg2 = static_cast< int >(val2); | |
10385 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10386 | if (!SWIG_IsOK(ecode3)) { | |
10387 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10388 | } | |
10389 | arg3 = static_cast< int >(val3); | |
10390 | if (obj3) { | |
10391 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10392 | if (!SWIG_IsOK(ecode4)) { | |
10393 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10394 | } | |
10395 | arg4 = static_cast< int >(val4); | |
10396 | } | |
10397 | { | |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10400 | wxPyEndAllowThreads(__tstate); | |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
10403 | { | |
10404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10405 | } | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
b1fcee84 RD |
10409 | } |
10410 | ||
10411 | ||
0085ce49 RD |
10412 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10413 | PyObject *resultobj = 0; | |
10414 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10415 | void *argp1 = 0 ; | |
10416 | int res1 = 0 ; | |
10417 | PyObject *swig_obj[1] ; | |
10418 | ||
10419 | if (!args) SWIG_fail; | |
10420 | swig_obj[0] = args; | |
10421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10422 | if (!SWIG_IsOK(res1)) { | |
10423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10424 | } | |
10425 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10426 | { | |
10427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10428 | (arg1)->SizeWindows(); | |
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | resultobj = SWIG_Py_Void(); | |
10433 | return resultobj; | |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj = 0; | |
10441 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10442 | bool arg2 ; | |
10443 | void *argp1 = 0 ; | |
10444 | int res1 = 0 ; | |
10445 | bool val2 ; | |
10446 | int ecode2 = 0 ; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | PyObject * obj1 = 0 ; | |
10449 | char * kwnames[] = { | |
10450 | (char *) "self",(char *) "needUpdating", NULL | |
10451 | }; | |
10452 | ||
10453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10455 | if (!SWIG_IsOK(res1)) { | |
10456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10457 | } | |
10458 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10459 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10460 | if (!SWIG_IsOK(ecode2)) { | |
10461 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10462 | } | |
10463 | arg2 = static_cast< bool >(val2); | |
10464 | { | |
10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10466 | (arg1)->SetNeedUpdating(arg2); | |
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | resultobj = SWIG_Py_Void(); | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
b1fcee84 RD |
10474 | } |
10475 | ||
10476 | ||
0085ce49 RD |
10477 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10478 | PyObject *resultobj = 0; | |
10479 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10480 | bool result; | |
10481 | void *argp1 = 0 ; | |
10482 | int res1 = 0 ; | |
10483 | PyObject *swig_obj[1] ; | |
10484 | ||
10485 | if (!args) SWIG_fail; | |
10486 | swig_obj[0] = args; | |
10487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10488 | if (!SWIG_IsOK(res1)) { | |
10489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10490 | } | |
10491 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10494 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | } | |
10498 | { | |
10499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10500 | } | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | return NULL; | |
b1fcee84 RD |
10504 | } |
10505 | ||
10506 | ||
0085ce49 RD |
10507 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10508 | PyObject *resultobj = 0; | |
10509 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10510 | SwigValueWrapper<wxVisualAttributes > result; | |
10511 | int val1 ; | |
10512 | int ecode1 = 0 ; | |
10513 | PyObject * obj0 = 0 ; | |
10514 | char * kwnames[] = { | |
10515 | (char *) "variant", NULL | |
10516 | }; | |
10517 | ||
10518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10519 | if (obj0) { | |
10520 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10521 | if (!SWIG_IsOK(ecode1)) { | |
10522 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10523 | } | |
10524 | arg1 = static_cast< wxWindowVariant >(val1); | |
10525 | } | |
10526 | { | |
10527 | if (!wxPyCheckForApp()) SWIG_fail; | |
10528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10529 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10530 | wxPyEndAllowThreads(__tstate); | |
10531 | if (PyErr_Occurred()) SWIG_fail; | |
10532 | } | |
10533 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10534 | return resultobj; | |
10535 | fail: | |
10536 | return NULL; | |
b1fcee84 RD |
10537 | } |
10538 | ||
10539 | ||
0085ce49 RD |
10540 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10541 | PyObject *obj; | |
10542 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10543 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10544 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10545 | } |
10546 | ||
0085ce49 RD |
10547 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10548 | return SWIG_Python_InitShadowInstance(args); | |
e505d15e RD |
10549 | } |
10550 | ||
0085ce49 RD |
10551 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10552 | PyObject *resultobj = 0; | |
10553 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10554 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10555 | wxSplitterEvent *result = 0 ; | |
10556 | int val1 ; | |
10557 | int ecode1 = 0 ; | |
10558 | void *argp2 = 0 ; | |
10559 | int res2 = 0 ; | |
10560 | PyObject * obj0 = 0 ; | |
10561 | PyObject * obj1 = 0 ; | |
10562 | char * kwnames[] = { | |
10563 | (char *) "type",(char *) "splitter", NULL | |
10564 | }; | |
10565 | ||
10566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10567 | if (obj0) { | |
10568 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10569 | if (!SWIG_IsOK(ecode1)) { | |
10570 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10571 | } | |
10572 | arg1 = static_cast< wxEventType >(val1); | |
10573 | } | |
10574 | if (obj1) { | |
10575 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10576 | if (!SWIG_IsOK(res2)) { | |
10577 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
4f89f6a3 | 10578 | } |
0085ce49 RD |
10579 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10580 | } | |
10581 | { | |
10582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10583 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10584 | wxPyEndAllowThreads(__tstate); | |
10585 | if (PyErr_Occurred()) SWIG_fail; | |
10586 | } | |
10587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10588 | return resultobj; | |
10589 | fail: | |
10590 | return NULL; | |
10591 | } | |
10592 | ||
10593 | ||
10594 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10595 | PyObject *resultobj = 0; | |
10596 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10597 | int arg2 ; | |
10598 | void *argp1 = 0 ; | |
10599 | int res1 = 0 ; | |
10600 | int val2 ; | |
10601 | int ecode2 = 0 ; | |
10602 | PyObject * obj0 = 0 ; | |
10603 | PyObject * obj1 = 0 ; | |
10604 | char * kwnames[] = { | |
10605 | (char *) "self",(char *) "pos", NULL | |
10606 | }; | |
10607 | ||
10608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10610 | if (!SWIG_IsOK(res1)) { | |
10611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10612 | } | |
10613 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10614 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10615 | if (!SWIG_IsOK(ecode2)) { | |
10616 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10617 | } | |
10618 | arg2 = static_cast< int >(val2); | |
10619 | { | |
10620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10621 | (arg1)->SetSashPosition(arg2); | |
10622 | wxPyEndAllowThreads(__tstate); | |
10623 | if (PyErr_Occurred()) SWIG_fail; | |
10624 | } | |
10625 | resultobj = SWIG_Py_Void(); | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | return NULL; | |
d14a1e28 RD |
10629 | } |
10630 | ||
10631 | ||
0085ce49 RD |
10632 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10633 | PyObject *resultobj = 0; | |
10634 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10635 | int result; | |
10636 | void *argp1 = 0 ; | |
10637 | int res1 = 0 ; | |
10638 | PyObject *swig_obj[1] ; | |
10639 | ||
10640 | if (!args) SWIG_fail; | |
10641 | swig_obj[0] = args; | |
10642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10643 | if (!SWIG_IsOK(res1)) { | |
10644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10645 | } | |
10646 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10647 | { | |
10648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10649 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10650 | wxPyEndAllowThreads(__tstate); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10654 | return resultobj; | |
10655 | fail: | |
10656 | return NULL; | |
d14a1e28 RD |
10657 | } |
10658 | ||
10659 | ||
0085ce49 RD |
10660 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10661 | PyObject *resultobj = 0; | |
10662 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10663 | wxWindow *result = 0 ; | |
10664 | void *argp1 = 0 ; | |
10665 | int res1 = 0 ; | |
10666 | PyObject *swig_obj[1] ; | |
10667 | ||
10668 | if (!args) SWIG_fail; | |
10669 | swig_obj[0] = args; | |
10670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10671 | if (!SWIG_IsOK(res1)) { | |
10672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10673 | } | |
10674 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10675 | { | |
10676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10677 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10678 | wxPyEndAllowThreads(__tstate); | |
10679 | if (PyErr_Occurred()) SWIG_fail; | |
10680 | } | |
10681 | { | |
10682 | resultobj = wxPyMake_wxObject(result, 0); | |
10683 | } | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
d14a1e28 RD |
10687 | } |
10688 | ||
10689 | ||
0085ce49 RD |
10690 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10691 | PyObject *resultobj = 0; | |
10692 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10693 | int result; | |
10694 | void *argp1 = 0 ; | |
10695 | int res1 = 0 ; | |
10696 | PyObject *swig_obj[1] ; | |
10697 | ||
10698 | if (!args) SWIG_fail; | |
10699 | swig_obj[0] = args; | |
10700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10701 | if (!SWIG_IsOK(res1)) { | |
10702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10703 | } | |
10704 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10708 | wxPyEndAllowThreads(__tstate); | |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
10710 | } | |
10711 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10712 | return resultobj; | |
10713 | fail: | |
10714 | return NULL; | |
22bfe96c RD |
10715 | } |
10716 | ||
10717 | ||
0085ce49 RD |
10718 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10719 | PyObject *resultobj = 0; | |
10720 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10721 | int result; | |
10722 | void *argp1 = 0 ; | |
10723 | int res1 = 0 ; | |
10724 | PyObject *swig_obj[1] ; | |
10725 | ||
10726 | if (!args) SWIG_fail; | |
10727 | swig_obj[0] = args; | |
10728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10729 | if (!SWIG_IsOK(res1)) { | |
10730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10731 | } | |
10732 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10733 | { | |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10736 | wxPyEndAllowThreads(__tstate); | |
10737 | if (PyErr_Occurred()) SWIG_fail; | |
10738 | } | |
10739 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10740 | return resultobj; | |
10741 | fail: | |
10742 | return NULL; | |
d14a1e28 RD |
10743 | } |
10744 | ||
10745 | ||
0085ce49 RD |
10746 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10747 | PyObject *obj; | |
10748 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10749 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10750 | return SWIG_Py_Void(); | |
d14a1e28 RD |
10751 | } |
10752 | ||
0085ce49 RD |
10753 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10754 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
10755 | } |
10756 | ||
0085ce49 RD |
10757 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10758 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10759 | return 1; | |
d14a1e28 RD |
10760 | } |
10761 | ||
10762 | ||
0085ce49 RD |
10763 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10764 | PyObject *pyobj = 0; | |
10765 | ||
10766 | { | |
10767 | #if wxUSE_UNICODE | |
10768 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10769 | #else | |
10770 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10771 | #endif | |
10772 | } | |
10773 | return pyobj; | |
d14a1e28 RD |
10774 | } |
10775 | ||
10776 | ||
0085ce49 RD |
10777 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10778 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10779 | return 1; | |
d14a1e28 RD |
10780 | } |
10781 | ||
10782 | ||
0085ce49 RD |
10783 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10784 | PyObject *pyobj = 0; | |
10785 | ||
10786 | { | |
10787 | #if wxUSE_UNICODE | |
10788 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10789 | #else | |
10790 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10791 | #endif | |
10792 | } | |
10793 | return pyobj; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10798 | PyObject *resultobj = 0; | |
10799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10800 | int arg2 = (int) -1 ; | |
10801 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10802 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10803 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10804 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10805 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10806 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10807 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10808 | wxSashWindow *result = 0 ; | |
10809 | void *argp1 = 0 ; | |
10810 | int res1 = 0 ; | |
10811 | int val2 ; | |
10812 | int ecode2 = 0 ; | |
10813 | wxPoint temp3 ; | |
10814 | wxSize temp4 ; | |
10815 | long val5 ; | |
10816 | int ecode5 = 0 ; | |
10817 | bool temp6 = false ; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | PyObject * obj1 = 0 ; | |
10820 | PyObject * obj2 = 0 ; | |
10821 | PyObject * obj3 = 0 ; | |
10822 | PyObject * obj4 = 0 ; | |
10823 | PyObject * obj5 = 0 ; | |
10824 | char * kwnames[] = { | |
10825 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10826 | }; | |
10827 | ||
10828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10830 | if (!SWIG_IsOK(res1)) { | |
10831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10832 | } | |
10833 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10834 | if (obj1) { | |
10835 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10836 | if (!SWIG_IsOK(ecode2)) { | |
10837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10838 | } | |
10839 | arg2 = static_cast< int >(val2); | |
10840 | } | |
10841 | if (obj2) { | |
093d3ff1 | 10842 | { |
0085ce49 RD |
10843 | arg3 = &temp3; |
10844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 10845 | } |
0085ce49 RD |
10846 | } |
10847 | if (obj3) { | |
d14a1e28 | 10848 | { |
0085ce49 RD |
10849 | arg4 = &temp4; |
10850 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10851 | } |
0085ce49 RD |
10852 | } |
10853 | if (obj4) { | |
10854 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10855 | if (!SWIG_IsOK(ecode5)) { | |
10856 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10857 | } | |
10858 | arg5 = static_cast< long >(val5); | |
10859 | } | |
10860 | if (obj5) { | |
093d3ff1 | 10861 | { |
0085ce49 RD |
10862 | arg6 = wxString_in_helper(obj5); |
10863 | if (arg6 == NULL) SWIG_fail; | |
10864 | temp6 = true; | |
093d3ff1 | 10865 | } |
0085ce49 RD |
10866 | } |
10867 | { | |
10868 | if (!wxPyCheckForApp()) SWIG_fail; | |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10871 | wxPyEndAllowThreads(__tstate); | |
10872 | if (PyErr_Occurred()) SWIG_fail; | |
10873 | } | |
10874 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10875 | { | |
10876 | if (temp6) | |
10877 | delete arg6; | |
10878 | } | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | { | |
10882 | if (temp6) | |
10883 | delete arg6; | |
10884 | } | |
10885 | return NULL; | |
d14a1e28 RD |
10886 | } |
10887 | ||
10888 | ||
0085ce49 RD |
10889 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10890 | PyObject *resultobj = 0; | |
10891 | wxSashWindow *result = 0 ; | |
10892 | ||
10893 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10894 | { | |
10895 | if (!wxPyCheckForApp()) SWIG_fail; | |
10896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10897 | result = (wxSashWindow *)new wxSashWindow(); | |
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
10908 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10909 | PyObject *resultobj = 0; | |
10910 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10911 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10912 | int arg3 = (int) -1 ; | |
10913 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10914 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10915 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10916 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10917 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10918 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10919 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10920 | bool result; | |
10921 | void *argp1 = 0 ; | |
10922 | int res1 = 0 ; | |
10923 | void *argp2 = 0 ; | |
10924 | int res2 = 0 ; | |
10925 | int val3 ; | |
10926 | int ecode3 = 0 ; | |
10927 | wxPoint temp4 ; | |
10928 | wxSize temp5 ; | |
10929 | long val6 ; | |
10930 | int ecode6 = 0 ; | |
10931 | bool temp7 = false ; | |
10932 | PyObject * obj0 = 0 ; | |
10933 | PyObject * obj1 = 0 ; | |
10934 | PyObject * obj2 = 0 ; | |
10935 | PyObject * obj3 = 0 ; | |
10936 | PyObject * obj4 = 0 ; | |
10937 | PyObject * obj5 = 0 ; | |
10938 | PyObject * obj6 = 0 ; | |
10939 | char * kwnames[] = { | |
10940 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10941 | }; | |
10942 | ||
10943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10945 | if (!SWIG_IsOK(res1)) { | |
10946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10947 | } | |
10948 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10949 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10950 | if (!SWIG_IsOK(res2)) { | |
10951 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10952 | } | |
10953 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10954 | if (obj2) { | |
10955 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10956 | if (!SWIG_IsOK(ecode3)) { | |
10957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
10958 | } | |
10959 | arg3 = static_cast< int >(val3); | |
10960 | } | |
10961 | if (obj3) { | |
093d3ff1 | 10962 | { |
0085ce49 RD |
10963 | arg4 = &temp4; |
10964 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 10965 | } |
0085ce49 RD |
10966 | } |
10967 | if (obj4) { | |
d14a1e28 | 10968 | { |
0085ce49 RD |
10969 | arg5 = &temp5; |
10970 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 10971 | } |
0085ce49 RD |
10972 | } |
10973 | if (obj5) { | |
10974 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10975 | if (!SWIG_IsOK(ecode6)) { | |
10976 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
10977 | } | |
10978 | arg6 = static_cast< long >(val6); | |
10979 | } | |
10980 | if (obj6) { | |
d14a1e28 | 10981 | { |
0085ce49 RD |
10982 | arg7 = wxString_in_helper(obj6); |
10983 | if (arg7 == NULL) SWIG_fail; | |
10984 | temp7 = true; | |
d14a1e28 | 10985 | } |
0085ce49 RD |
10986 | } |
10987 | { | |
10988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10989 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10990 | wxPyEndAllowThreads(__tstate); | |
10991 | if (PyErr_Occurred()) SWIG_fail; | |
10992 | } | |
10993 | { | |
10994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10995 | } | |
10996 | { | |
10997 | if (temp7) | |
10998 | delete arg7; | |
10999 | } | |
11000 | return resultobj; | |
11001 | fail: | |
11002 | { | |
11003 | if (temp7) | |
11004 | delete arg7; | |
11005 | } | |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
11010 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11011 | PyObject *resultobj = 0; | |
11012 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11013 | wxSashEdgePosition arg2 ; | |
11014 | bool arg3 ; | |
11015 | void *argp1 = 0 ; | |
11016 | int res1 = 0 ; | |
11017 | int val2 ; | |
11018 | int ecode2 = 0 ; | |
11019 | bool val3 ; | |
11020 | int ecode3 = 0 ; | |
11021 | PyObject * obj0 = 0 ; | |
11022 | PyObject * obj1 = 0 ; | |
11023 | PyObject * obj2 = 0 ; | |
11024 | char * kwnames[] = { | |
11025 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
11026 | }; | |
11027 | ||
11028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11030 | if (!SWIG_IsOK(res1)) { | |
11031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11032 | } | |
11033 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11034 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11035 | if (!SWIG_IsOK(ecode2)) { | |
11036 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11037 | } | |
11038 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11039 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11040 | if (!SWIG_IsOK(ecode3)) { | |
11041 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
11042 | } | |
11043 | arg3 = static_cast< bool >(val3); | |
11044 | { | |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | (arg1)->SetSashVisible(arg2,arg3); | |
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
11050 | resultobj = SWIG_Py_Void(); | |
11051 | return resultobj; | |
11052 | fail: | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
11057 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11058 | PyObject *resultobj = 0; | |
11059 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11060 | wxSashEdgePosition arg2 ; | |
11061 | bool result; | |
11062 | void *argp1 = 0 ; | |
11063 | int res1 = 0 ; | |
11064 | int val2 ; | |
11065 | int ecode2 = 0 ; | |
11066 | PyObject * obj0 = 0 ; | |
11067 | PyObject * obj1 = 0 ; | |
11068 | char * kwnames[] = { | |
11069 | (char *) "self",(char *) "edge", NULL | |
11070 | }; | |
11071 | ||
11072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
11073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11074 | if (!SWIG_IsOK(res1)) { | |
11075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11076 | } | |
11077 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11078 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11079 | if (!SWIG_IsOK(ecode2)) { | |
11080 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11081 | } | |
11082 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | { | |
11090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11091 | } | |
11092 | return resultobj; | |
11093 | fail: | |
11094 | return NULL; | |
11095 | } | |
11096 | ||
11097 | ||
11098 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11099 | PyObject *resultobj = 0; | |
11100 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11101 | wxSashEdgePosition arg2 ; | |
11102 | bool arg3 ; | |
11103 | void *argp1 = 0 ; | |
11104 | int res1 = 0 ; | |
11105 | int val2 ; | |
11106 | int ecode2 = 0 ; | |
11107 | bool val3 ; | |
11108 | int ecode3 = 0 ; | |
11109 | PyObject * obj0 = 0 ; | |
11110 | PyObject * obj1 = 0 ; | |
11111 | PyObject * obj2 = 0 ; | |
11112 | char * kwnames[] = { | |
11113 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
11114 | }; | |
11115 | ||
11116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11118 | if (!SWIG_IsOK(res1)) { | |
11119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11120 | } | |
11121 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11122 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11123 | if (!SWIG_IsOK(ecode2)) { | |
11124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11125 | } | |
11126 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11127 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
11128 | if (!SWIG_IsOK(ecode3)) { | |
11129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
11130 | } | |
11131 | arg3 = static_cast< bool >(val3); | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | (arg1)->SetSashBorder(arg2,arg3); | |
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | resultobj = SWIG_Py_Void(); | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj = 0; | |
11147 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11148 | wxSashEdgePosition arg2 ; | |
11149 | bool result; | |
11150 | void *argp1 = 0 ; | |
11151 | int res1 = 0 ; | |
11152 | int val2 ; | |
11153 | int ecode2 = 0 ; | |
11154 | PyObject * obj0 = 0 ; | |
11155 | PyObject * obj1 = 0 ; | |
11156 | char * kwnames[] = { | |
11157 | (char *) "self",(char *) "edge", NULL | |
11158 | }; | |
11159 | ||
11160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
11161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11162 | if (!SWIG_IsOK(res1)) { | |
11163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11164 | } | |
11165 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11166 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11167 | if (!SWIG_IsOK(ecode2)) { | |
11168 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11169 | } | |
11170 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11171 | { | |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | { | |
11178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11179 | } | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj = 0; | |
11188 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11189 | wxSashEdgePosition arg2 ; | |
11190 | int result; | |
11191 | void *argp1 = 0 ; | |
11192 | int res1 = 0 ; | |
11193 | int val2 ; | |
11194 | int ecode2 = 0 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | char * kwnames[] = { | |
11198 | (char *) "self",(char *) "edge", NULL | |
11199 | }; | |
11200 | ||
11201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11203 | if (!SWIG_IsOK(res1)) { | |
11204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11205 | } | |
11206 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11208 | if (!SWIG_IsOK(ecode2)) { | |
11209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11210 | } | |
11211 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11212 | { | |
11213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11214 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11215 | wxPyEndAllowThreads(__tstate); | |
11216 | if (PyErr_Occurred()) SWIG_fail; | |
11217 | } | |
11218 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11219 | return resultobj; | |
11220 | fail: | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
11225 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11226 | PyObject *resultobj = 0; | |
11227 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11228 | int arg2 ; | |
11229 | void *argp1 = 0 ; | |
11230 | int res1 = 0 ; | |
11231 | int val2 ; | |
11232 | int ecode2 = 0 ; | |
11233 | PyObject * obj0 = 0 ; | |
11234 | PyObject * obj1 = 0 ; | |
11235 | char * kwnames[] = { | |
11236 | (char *) "self",(char *) "width", NULL | |
11237 | }; | |
11238 | ||
11239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11241 | if (!SWIG_IsOK(res1)) { | |
11242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11243 | } | |
11244 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11245 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11246 | if (!SWIG_IsOK(ecode2)) { | |
11247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11248 | } | |
11249 | arg2 = static_cast< int >(val2); | |
11250 | { | |
11251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11252 | (arg1)->SetDefaultBorderSize(arg2); | |
11253 | wxPyEndAllowThreads(__tstate); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | } | |
11256 | resultobj = SWIG_Py_Void(); | |
11257 | return resultobj; | |
11258 | fail: | |
11259 | return NULL; | |
d14a1e28 RD |
11260 | } |
11261 | ||
11262 | ||
0085ce49 RD |
11263 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11264 | PyObject *resultobj = 0; | |
11265 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11266 | int result; | |
11267 | void *argp1 = 0 ; | |
11268 | int res1 = 0 ; | |
11269 | PyObject *swig_obj[1] ; | |
11270 | ||
11271 | if (!args) SWIG_fail; | |
11272 | swig_obj[0] = args; | |
11273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11274 | if (!SWIG_IsOK(res1)) { | |
11275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11276 | } | |
11277 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11278 | { | |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11281 | wxPyEndAllowThreads(__tstate); | |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
11283 | } | |
11284 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11285 | return resultobj; | |
11286 | fail: | |
11287 | return NULL; | |
11288 | } | |
11289 | ||
11290 | ||
11291 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11292 | PyObject *resultobj = 0; | |
11293 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11294 | int arg2 ; | |
11295 | void *argp1 = 0 ; | |
11296 | int res1 = 0 ; | |
11297 | int val2 ; | |
11298 | int ecode2 = 0 ; | |
11299 | PyObject * obj0 = 0 ; | |
11300 | PyObject * obj1 = 0 ; | |
11301 | char * kwnames[] = { | |
11302 | (char *) "self",(char *) "width", NULL | |
11303 | }; | |
11304 | ||
11305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11307 | if (!SWIG_IsOK(res1)) { | |
11308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11309 | } | |
11310 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11312 | if (!SWIG_IsOK(ecode2)) { | |
11313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11314 | } | |
11315 | arg2 = static_cast< int >(val2); | |
11316 | { | |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | (arg1)->SetExtraBorderSize(arg2); | |
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | resultobj = SWIG_Py_Void(); | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
d14a1e28 RD |
11326 | } |
11327 | ||
11328 | ||
0085ce49 RD |
11329 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11330 | PyObject *resultobj = 0; | |
11331 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11332 | int result; | |
11333 | void *argp1 = 0 ; | |
11334 | int res1 = 0 ; | |
11335 | PyObject *swig_obj[1] ; | |
11336 | ||
11337 | if (!args) SWIG_fail; | |
11338 | swig_obj[0] = args; | |
11339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11340 | if (!SWIG_IsOK(res1)) { | |
11341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11342 | } | |
11343 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11344 | { | |
11345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11346 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11347 | wxPyEndAllowThreads(__tstate); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11358 | PyObject *resultobj = 0; | |
11359 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11360 | int arg2 ; | |
11361 | void *argp1 = 0 ; | |
11362 | int res1 = 0 ; | |
11363 | int val2 ; | |
11364 | int ecode2 = 0 ; | |
11365 | PyObject * obj0 = 0 ; | |
11366 | PyObject * obj1 = 0 ; | |
11367 | char * kwnames[] = { | |
11368 | (char *) "self",(char *) "min", NULL | |
11369 | }; | |
11370 | ||
11371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11373 | if (!SWIG_IsOK(res1)) { | |
11374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11375 | } | |
11376 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11378 | if (!SWIG_IsOK(ecode2)) { | |
11379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11380 | } | |
11381 | arg2 = static_cast< int >(val2); | |
11382 | { | |
11383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11384 | (arg1)->SetMinimumSizeX(arg2); | |
11385 | wxPyEndAllowThreads(__tstate); | |
11386 | if (PyErr_Occurred()) SWIG_fail; | |
11387 | } | |
11388 | resultobj = SWIG_Py_Void(); | |
11389 | return resultobj; | |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
11395 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11396 | PyObject *resultobj = 0; | |
11397 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11398 | int arg2 ; | |
11399 | void *argp1 = 0 ; | |
11400 | int res1 = 0 ; | |
11401 | int val2 ; | |
11402 | int ecode2 = 0 ; | |
11403 | PyObject * obj0 = 0 ; | |
11404 | PyObject * obj1 = 0 ; | |
11405 | char * kwnames[] = { | |
11406 | (char *) "self",(char *) "min", NULL | |
11407 | }; | |
11408 | ||
11409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11411 | if (!SWIG_IsOK(res1)) { | |
11412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11413 | } | |
11414 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11416 | if (!SWIG_IsOK(ecode2)) { | |
11417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11418 | } | |
11419 | arg2 = static_cast< int >(val2); | |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | (arg1)->SetMinimumSizeY(arg2); | |
11423 | wxPyEndAllowThreads(__tstate); | |
11424 | if (PyErr_Occurred()) SWIG_fail; | |
11425 | } | |
11426 | resultobj = SWIG_Py_Void(); | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
d14a1e28 RD |
11430 | } |
11431 | ||
11432 | ||
0085ce49 RD |
11433 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11434 | PyObject *resultobj = 0; | |
11435 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11436 | int result; | |
11437 | void *argp1 = 0 ; | |
11438 | int res1 = 0 ; | |
11439 | PyObject *swig_obj[1] ; | |
11440 | ||
11441 | if (!args) SWIG_fail; | |
11442 | swig_obj[0] = args; | |
11443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11444 | if (!SWIG_IsOK(res1)) { | |
11445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11446 | } | |
11447 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11448 | { | |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11451 | wxPyEndAllowThreads(__tstate); | |
11452 | if (PyErr_Occurred()) SWIG_fail; | |
11453 | } | |
11454 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11455 | return resultobj; | |
11456 | fail: | |
11457 | return NULL; | |
d14a1e28 RD |
11458 | } |
11459 | ||
11460 | ||
0085ce49 RD |
11461 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11462 | PyObject *resultobj = 0; | |
11463 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11464 | int result; | |
11465 | void *argp1 = 0 ; | |
11466 | int res1 = 0 ; | |
11467 | PyObject *swig_obj[1] ; | |
11468 | ||
11469 | if (!args) SWIG_fail; | |
11470 | swig_obj[0] = args; | |
11471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11472 | if (!SWIG_IsOK(res1)) { | |
11473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11474 | } | |
11475 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11476 | { | |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11479 | wxPyEndAllowThreads(__tstate); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
11482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11483 | return resultobj; | |
11484 | fail: | |
11485 | return NULL; | |
11486 | } | |
11487 | ||
11488 | ||
11489 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11490 | PyObject *resultobj = 0; | |
11491 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11492 | int arg2 ; | |
11493 | void *argp1 = 0 ; | |
11494 | int res1 = 0 ; | |
11495 | int val2 ; | |
11496 | int ecode2 = 0 ; | |
11497 | PyObject * obj0 = 0 ; | |
11498 | PyObject * obj1 = 0 ; | |
11499 | char * kwnames[] = { | |
11500 | (char *) "self",(char *) "max", NULL | |
11501 | }; | |
11502 | ||
11503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11505 | if (!SWIG_IsOK(res1)) { | |
11506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11507 | } | |
11508 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11510 | if (!SWIG_IsOK(ecode2)) { | |
11511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11512 | } | |
11513 | arg2 = static_cast< int >(val2); | |
11514 | { | |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11516 | (arg1)->SetMaximumSizeX(arg2); | |
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | resultobj = SWIG_Py_Void(); | |
11521 | return resultobj; | |
11522 | fail: | |
11523 | return NULL; | |
11524 | } | |
11525 | ||
11526 | ||
11527 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11528 | PyObject *resultobj = 0; | |
11529 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11530 | int arg2 ; | |
11531 | void *argp1 = 0 ; | |
11532 | int res1 = 0 ; | |
11533 | int val2 ; | |
11534 | int ecode2 = 0 ; | |
11535 | PyObject * obj0 = 0 ; | |
11536 | PyObject * obj1 = 0 ; | |
11537 | char * kwnames[] = { | |
11538 | (char *) "self",(char *) "max", NULL | |
11539 | }; | |
11540 | ||
11541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11543 | if (!SWIG_IsOK(res1)) { | |
11544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11545 | } | |
11546 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11548 | if (!SWIG_IsOK(ecode2)) { | |
11549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11550 | } | |
11551 | arg2 = static_cast< int >(val2); | |
11552 | { | |
11553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11554 | (arg1)->SetMaximumSizeY(arg2); | |
11555 | wxPyEndAllowThreads(__tstate); | |
11556 | if (PyErr_Occurred()) SWIG_fail; | |
11557 | } | |
11558 | resultobj = SWIG_Py_Void(); | |
11559 | return resultobj; | |
11560 | fail: | |
11561 | return NULL; | |
d14a1e28 RD |
11562 | } |
11563 | ||
11564 | ||
0085ce49 RD |
11565 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11566 | PyObject *resultobj = 0; | |
11567 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11568 | int result; | |
11569 | void *argp1 = 0 ; | |
11570 | int res1 = 0 ; | |
11571 | PyObject *swig_obj[1] ; | |
11572 | ||
11573 | if (!args) SWIG_fail; | |
11574 | swig_obj[0] = args; | |
11575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11576 | if (!SWIG_IsOK(res1)) { | |
11577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11578 | } | |
11579 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11580 | { | |
11581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11582 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11583 | wxPyEndAllowThreads(__tstate); | |
11584 | if (PyErr_Occurred()) SWIG_fail; | |
11585 | } | |
11586 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11587 | return resultobj; | |
11588 | fail: | |
11589 | return NULL; | |
d14a1e28 RD |
11590 | } |
11591 | ||
11592 | ||
0085ce49 RD |
11593 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11594 | PyObject *resultobj = 0; | |
11595 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11596 | int result; | |
11597 | void *argp1 = 0 ; | |
11598 | int res1 = 0 ; | |
11599 | PyObject *swig_obj[1] ; | |
11600 | ||
11601 | if (!args) SWIG_fail; | |
11602 | swig_obj[0] = args; | |
11603 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11604 | if (!SWIG_IsOK(res1)) { | |
11605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11606 | } | |
11607 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11608 | { | |
11609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11610 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
11621 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11622 | PyObject *resultobj = 0; | |
11623 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11624 | int arg2 ; | |
11625 | int arg3 ; | |
11626 | int arg4 = (int) 2 ; | |
11627 | wxSashEdgePosition result; | |
11628 | void *argp1 = 0 ; | |
11629 | int res1 = 0 ; | |
11630 | int val2 ; | |
11631 | int ecode2 = 0 ; | |
11632 | int val3 ; | |
11633 | int ecode3 = 0 ; | |
11634 | int val4 ; | |
11635 | int ecode4 = 0 ; | |
11636 | PyObject * obj0 = 0 ; | |
11637 | PyObject * obj1 = 0 ; | |
11638 | PyObject * obj2 = 0 ; | |
11639 | PyObject * obj3 = 0 ; | |
11640 | char * kwnames[] = { | |
11641 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11642 | }; | |
11643 | ||
11644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11646 | if (!SWIG_IsOK(res1)) { | |
11647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11648 | } | |
11649 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11650 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11651 | if (!SWIG_IsOK(ecode2)) { | |
11652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11653 | } | |
11654 | arg2 = static_cast< int >(val2); | |
11655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11656 | if (!SWIG_IsOK(ecode3)) { | |
11657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11658 | } | |
11659 | arg3 = static_cast< int >(val3); | |
11660 | if (obj3) { | |
11661 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11662 | if (!SWIG_IsOK(ecode4)) { | |
11663 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11664 | } | |
11665 | arg4 = static_cast< int >(val4); | |
11666 | } | |
11667 | { | |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
11673 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11674 | return resultobj; | |
11675 | fail: | |
11676 | return NULL; | |
d14a1e28 RD |
11677 | } |
11678 | ||
11679 | ||
0085ce49 RD |
11680 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11681 | PyObject *resultobj = 0; | |
11682 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11683 | void *argp1 = 0 ; | |
11684 | int res1 = 0 ; | |
11685 | PyObject *swig_obj[1] ; | |
11686 | ||
11687 | if (!args) SWIG_fail; | |
11688 | swig_obj[0] = args; | |
11689 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11690 | if (!SWIG_IsOK(res1)) { | |
11691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11692 | } | |
11693 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11694 | { | |
11695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11696 | (arg1)->SizeWindows(); | |
11697 | wxPyEndAllowThreads(__tstate); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
11700 | resultobj = SWIG_Py_Void(); | |
11701 | return resultobj; | |
11702 | fail: | |
11703 | return NULL; | |
d14a1e28 RD |
11704 | } |
11705 | ||
11706 | ||
0085ce49 RD |
11707 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11708 | PyObject *obj; | |
11709 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11710 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11711 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11712 | } |
11713 | ||
0085ce49 RD |
11714 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11715 | return SWIG_Python_InitShadowInstance(args); | |
f16ab95d RD |
11716 | } |
11717 | ||
0085ce49 RD |
11718 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11719 | PyObject *resultobj = 0; | |
11720 | int arg1 = (int) 0 ; | |
11721 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11722 | wxSashEvent *result = 0 ; | |
11723 | int val1 ; | |
11724 | int ecode1 = 0 ; | |
11725 | int val2 ; | |
11726 | int ecode2 = 0 ; | |
11727 | PyObject * obj0 = 0 ; | |
11728 | PyObject * obj1 = 0 ; | |
11729 | char * kwnames[] = { | |
11730 | (char *) "id",(char *) "edge", NULL | |
11731 | }; | |
11732 | ||
11733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11734 | if (obj0) { | |
11735 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11736 | if (!SWIG_IsOK(ecode1)) { | |
11737 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11738 | } | |
11739 | arg1 = static_cast< int >(val1); | |
11740 | } | |
11741 | if (obj1) { | |
11742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11743 | if (!SWIG_IsOK(ecode2)) { | |
11744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11745 | } | |
11746 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11747 | } | |
11748 | { | |
11749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11750 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11751 | wxPyEndAllowThreads(__tstate); | |
11752 | if (PyErr_Occurred()) SWIG_fail; | |
11753 | } | |
11754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11755 | return resultobj; | |
11756 | fail: | |
11757 | return NULL; | |
11758 | } | |
11759 | ||
11760 | ||
11761 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11762 | PyObject *resultobj = 0; | |
11763 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11764 | wxSashEdgePosition arg2 ; | |
11765 | void *argp1 = 0 ; | |
11766 | int res1 = 0 ; | |
11767 | int val2 ; | |
11768 | int ecode2 = 0 ; | |
11769 | PyObject * obj0 = 0 ; | |
11770 | PyObject * obj1 = 0 ; | |
11771 | char * kwnames[] = { | |
11772 | (char *) "self",(char *) "edge", NULL | |
11773 | }; | |
11774 | ||
11775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11777 | if (!SWIG_IsOK(res1)) { | |
11778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11779 | } | |
11780 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11781 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11782 | if (!SWIG_IsOK(ecode2)) { | |
11783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11784 | } | |
11785 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11786 | { | |
11787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11788 | (arg1)->SetEdge(arg2); | |
11789 | wxPyEndAllowThreads(__tstate); | |
11790 | if (PyErr_Occurred()) SWIG_fail; | |
11791 | } | |
11792 | resultobj = SWIG_Py_Void(); | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | return NULL; | |
d14a1e28 RD |
11796 | } |
11797 | ||
11798 | ||
0085ce49 RD |
11799 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11800 | PyObject *resultobj = 0; | |
11801 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11802 | wxSashEdgePosition result; | |
11803 | void *argp1 = 0 ; | |
11804 | int res1 = 0 ; | |
11805 | PyObject *swig_obj[1] ; | |
11806 | ||
11807 | if (!args) SWIG_fail; | |
11808 | swig_obj[0] = args; | |
11809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11810 | if (!SWIG_IsOK(res1)) { | |
11811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11812 | } | |
11813 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11814 | { | |
11815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11816 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11817 | wxPyEndAllowThreads(__tstate); | |
11818 | if (PyErr_Occurred()) SWIG_fail; | |
11819 | } | |
11820 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11821 | return resultobj; | |
11822 | fail: | |
11823 | return NULL; | |
11824 | } | |
11825 | ||
11826 | ||
11827 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11828 | PyObject *resultobj = 0; | |
11829 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11830 | wxRect *arg2 = 0 ; | |
11831 | void *argp1 = 0 ; | |
11832 | int res1 = 0 ; | |
11833 | wxRect temp2 ; | |
11834 | PyObject * obj0 = 0 ; | |
11835 | PyObject * obj1 = 0 ; | |
11836 | char * kwnames[] = { | |
11837 | (char *) "self",(char *) "rect", NULL | |
11838 | }; | |
11839 | ||
11840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11842 | if (!SWIG_IsOK(res1)) { | |
11843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11844 | } | |
11845 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11846 | { | |
11847 | arg2 = &temp2; | |
11848 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11849 | } | |
11850 | { | |
11851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11852 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11853 | wxPyEndAllowThreads(__tstate); | |
11854 | if (PyErr_Occurred()) SWIG_fail; | |
11855 | } | |
11856 | resultobj = SWIG_Py_Void(); | |
11857 | return resultobj; | |
11858 | fail: | |
11859 | return NULL; | |
d14a1e28 RD |
11860 | } |
11861 | ||
11862 | ||
0085ce49 RD |
11863 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11864 | PyObject *resultobj = 0; | |
11865 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11866 | wxRect result; | |
11867 | void *argp1 = 0 ; | |
11868 | int res1 = 0 ; | |
11869 | PyObject *swig_obj[1] ; | |
11870 | ||
11871 | if (!args) SWIG_fail; | |
11872 | swig_obj[0] = args; | |
11873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11874 | if (!SWIG_IsOK(res1)) { | |
11875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11876 | } | |
11877 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11878 | { | |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11881 | wxPyEndAllowThreads(__tstate); | |
11882 | if (PyErr_Occurred()) SWIG_fail; | |
11883 | } | |
11884 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11885 | return resultobj; | |
11886 | fail: | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj = 0; | |
11893 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11894 | wxSashDragStatus arg2 ; | |
11895 | void *argp1 = 0 ; | |
11896 | int res1 = 0 ; | |
11897 | int val2 ; | |
11898 | int ecode2 = 0 ; | |
11899 | PyObject * obj0 = 0 ; | |
11900 | PyObject * obj1 = 0 ; | |
11901 | char * kwnames[] = { | |
11902 | (char *) "self",(char *) "status", NULL | |
11903 | }; | |
11904 | ||
11905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11907 | if (!SWIG_IsOK(res1)) { | |
11908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11909 | } | |
11910 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11911 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11912 | if (!SWIG_IsOK(ecode2)) { | |
11913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11914 | } | |
11915 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | (arg1)->SetDragStatus(arg2); | |
11919 | wxPyEndAllowThreads(__tstate); | |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
11921 | } | |
11922 | resultobj = SWIG_Py_Void(); | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | return NULL; | |
d14a1e28 RD |
11926 | } |
11927 | ||
11928 | ||
0085ce49 RD |
11929 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11930 | PyObject *resultobj = 0; | |
11931 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11932 | wxSashDragStatus result; | |
11933 | void *argp1 = 0 ; | |
11934 | int res1 = 0 ; | |
11935 | PyObject *swig_obj[1] ; | |
11936 | ||
11937 | if (!args) SWIG_fail; | |
11938 | swig_obj[0] = args; | |
11939 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11940 | if (!SWIG_IsOK(res1)) { | |
11941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11942 | } | |
11943 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11944 | { | |
11945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11946 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11947 | wxPyEndAllowThreads(__tstate); | |
11948 | if (PyErr_Occurred()) SWIG_fail; | |
11949 | } | |
11950 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11951 | return resultobj; | |
11952 | fail: | |
11953 | return NULL; | |
d14a1e28 RD |
11954 | } |
11955 | ||
11956 | ||
0085ce49 RD |
11957 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11958 | PyObject *obj; | |
11959 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11960 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
11961 | return SWIG_Py_Void(); | |
22bfe96c RD |
11962 | } |
11963 | ||
0085ce49 RD |
11964 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11965 | return SWIG_Python_InitShadowInstance(args); | |
b2dc1044 RD |
11966 | } |
11967 | ||
0085ce49 RD |
11968 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11969 | PyObject *resultobj = 0; | |
11970 | int arg1 = (int) 0 ; | |
11971 | wxQueryLayoutInfoEvent *result = 0 ; | |
11972 | int val1 ; | |
11973 | int ecode1 = 0 ; | |
11974 | PyObject * obj0 = 0 ; | |
11975 | char * kwnames[] = { | |
11976 | (char *) "id", NULL | |
11977 | }; | |
11978 | ||
11979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
11980 | if (obj0) { | |
11981 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11982 | if (!SWIG_IsOK(ecode1)) { | |
11983 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
11984 | } | |
11985 | arg1 = static_cast< int >(val1); | |
11986 | } | |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
11990 | wxPyEndAllowThreads(__tstate); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | } | |
11993 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
11994 | return resultobj; | |
11995 | fail: | |
11996 | return NULL; | |
11997 | } | |
11998 | ||
11999 | ||
12000 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12001 | PyObject *resultobj = 0; | |
12002 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12003 | int arg2 ; | |
12004 | void *argp1 = 0 ; | |
12005 | int res1 = 0 ; | |
12006 | int val2 ; | |
12007 | int ecode2 = 0 ; | |
12008 | PyObject * obj0 = 0 ; | |
12009 | PyObject * obj1 = 0 ; | |
12010 | char * kwnames[] = { | |
12011 | (char *) "self",(char *) "length", NULL | |
12012 | }; | |
12013 | ||
12014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
12015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12016 | if (!SWIG_IsOK(res1)) { | |
12017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12018 | } | |
12019 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12020 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12021 | if (!SWIG_IsOK(ecode2)) { | |
12022 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
12023 | } | |
12024 | arg2 = static_cast< int >(val2); | |
12025 | { | |
12026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12027 | (arg1)->SetRequestedLength(arg2); | |
12028 | wxPyEndAllowThreads(__tstate); | |
12029 | if (PyErr_Occurred()) SWIG_fail; | |
12030 | } | |
12031 | resultobj = SWIG_Py_Void(); | |
12032 | return resultobj; | |
12033 | fail: | |
12034 | return NULL; | |
d14a1e28 RD |
12035 | } |
12036 | ||
12037 | ||
0085ce49 RD |
12038 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12039 | PyObject *resultobj = 0; | |
12040 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12041 | int result; | |
12042 | void *argp1 = 0 ; | |
12043 | int res1 = 0 ; | |
12044 | PyObject *swig_obj[1] ; | |
12045 | ||
12046 | if (!args) SWIG_fail; | |
12047 | swig_obj[0] = args; | |
12048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12049 | if (!SWIG_IsOK(res1)) { | |
12050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12051 | } | |
12052 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12053 | { | |
12054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12055 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
12056 | wxPyEndAllowThreads(__tstate); | |
12057 | if (PyErr_Occurred()) SWIG_fail; | |
12058 | } | |
12059 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12060 | return resultobj; | |
12061 | fail: | |
12062 | return NULL; | |
12063 | } | |
12064 | ||
12065 | ||
12066 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12067 | PyObject *resultobj = 0; | |
12068 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12069 | int arg2 ; | |
12070 | void *argp1 = 0 ; | |
12071 | int res1 = 0 ; | |
12072 | int val2 ; | |
12073 | int ecode2 = 0 ; | |
12074 | PyObject * obj0 = 0 ; | |
12075 | PyObject * obj1 = 0 ; | |
12076 | char * kwnames[] = { | |
12077 | (char *) "self",(char *) "flags", NULL | |
12078 | }; | |
12079 | ||
12080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12082 | if (!SWIG_IsOK(res1)) { | |
12083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12084 | } | |
12085 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12087 | if (!SWIG_IsOK(ecode2)) { | |
12088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12089 | } | |
12090 | arg2 = static_cast< int >(val2); | |
12091 | { | |
12092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12093 | (arg1)->SetFlags(arg2); | |
12094 | wxPyEndAllowThreads(__tstate); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
12097 | resultobj = SWIG_Py_Void(); | |
12098 | return resultobj; | |
12099 | fail: | |
12100 | return NULL; | |
d14a1e28 RD |
12101 | } |
12102 | ||
12103 | ||
0085ce49 RD |
12104 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12105 | PyObject *resultobj = 0; | |
12106 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12107 | int result; | |
12108 | void *argp1 = 0 ; | |
12109 | int res1 = 0 ; | |
12110 | PyObject *swig_obj[1] ; | |
12111 | ||
12112 | if (!args) SWIG_fail; | |
12113 | swig_obj[0] = args; | |
12114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12115 | if (!SWIG_IsOK(res1)) { | |
12116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12117 | } | |
12118 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12119 | { | |
12120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12121 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
12122 | wxPyEndAllowThreads(__tstate); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12126 | return resultobj; | |
12127 | fail: | |
12128 | return NULL; | |
12129 | } | |
12130 | ||
12131 | ||
12132 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12133 | PyObject *resultobj = 0; | |
12134 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12135 | wxSize *arg2 = 0 ; | |
12136 | void *argp1 = 0 ; | |
12137 | int res1 = 0 ; | |
12138 | wxSize temp2 ; | |
12139 | PyObject * obj0 = 0 ; | |
12140 | PyObject * obj1 = 0 ; | |
12141 | char * kwnames[] = { | |
12142 | (char *) "self",(char *) "size", NULL | |
12143 | }; | |
12144 | ||
12145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12147 | if (!SWIG_IsOK(res1)) { | |
12148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12149 | } | |
12150 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12151 | { | |
12152 | arg2 = &temp2; | |
12153 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12154 | } | |
12155 | { | |
12156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12157 | (arg1)->SetSize((wxSize const &)*arg2); | |
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | resultobj = SWIG_Py_Void(); | |
12162 | return resultobj; | |
12163 | fail: | |
12164 | return NULL; | |
d14a1e28 RD |
12165 | } |
12166 | ||
12167 | ||
0085ce49 RD |
12168 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12169 | PyObject *resultobj = 0; | |
12170 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12171 | wxSize result; | |
12172 | void *argp1 = 0 ; | |
12173 | int res1 = 0 ; | |
12174 | PyObject *swig_obj[1] ; | |
12175 | ||
12176 | if (!args) SWIG_fail; | |
12177 | swig_obj[0] = args; | |
12178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12179 | if (!SWIG_IsOK(res1)) { | |
12180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12181 | } | |
12182 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12183 | { | |
12184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12185 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
12186 | wxPyEndAllowThreads(__tstate); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | } | |
12189 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12190 | return resultobj; | |
12191 | fail: | |
12192 | return NULL; | |
12193 | } | |
12194 | ||
12195 | ||
12196 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12197 | PyObject *resultobj = 0; | |
12198 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12199 | wxLayoutOrientation arg2 ; | |
12200 | void *argp1 = 0 ; | |
12201 | int res1 = 0 ; | |
12202 | int val2 ; | |
12203 | int ecode2 = 0 ; | |
12204 | PyObject * obj0 = 0 ; | |
12205 | PyObject * obj1 = 0 ; | |
12206 | char * kwnames[] = { | |
12207 | (char *) "self",(char *) "orient", NULL | |
12208 | }; | |
12209 | ||
12210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12212 | if (!SWIG_IsOK(res1)) { | |
12213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12214 | } | |
12215 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12216 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12217 | if (!SWIG_IsOK(ecode2)) { | |
12218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12219 | } | |
12220 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12221 | { | |
12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12223 | (arg1)->SetOrientation(arg2); | |
12224 | wxPyEndAllowThreads(__tstate); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
12227 | resultobj = SWIG_Py_Void(); | |
12228 | return resultobj; | |
12229 | fail: | |
12230 | return NULL; | |
d14a1e28 RD |
12231 | } |
12232 | ||
12233 | ||
0085ce49 RD |
12234 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12235 | PyObject *resultobj = 0; | |
12236 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12237 | wxLayoutOrientation result; | |
12238 | void *argp1 = 0 ; | |
12239 | int res1 = 0 ; | |
12240 | PyObject *swig_obj[1] ; | |
12241 | ||
12242 | if (!args) SWIG_fail; | |
12243 | swig_obj[0] = args; | |
12244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12245 | if (!SWIG_IsOK(res1)) { | |
12246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12247 | } | |
12248 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12249 | { | |
12250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12251 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12252 | wxPyEndAllowThreads(__tstate); | |
12253 | if (PyErr_Occurred()) SWIG_fail; | |
12254 | } | |
12255 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12256 | return resultobj; | |
12257 | fail: | |
12258 | return NULL; | |
12259 | } | |
12260 | ||
12261 | ||
12262 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12263 | PyObject *resultobj = 0; | |
12264 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12265 | wxLayoutAlignment arg2 ; | |
12266 | void *argp1 = 0 ; | |
12267 | int res1 = 0 ; | |
12268 | int val2 ; | |
12269 | int ecode2 = 0 ; | |
12270 | PyObject * obj0 = 0 ; | |
12271 | PyObject * obj1 = 0 ; | |
12272 | char * kwnames[] = { | |
12273 | (char *) "self",(char *) "align", NULL | |
12274 | }; | |
12275 | ||
12276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12278 | if (!SWIG_IsOK(res1)) { | |
12279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12280 | } | |
12281 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12282 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12283 | if (!SWIG_IsOK(ecode2)) { | |
12284 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12285 | } | |
12286 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12287 | { | |
12288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12289 | (arg1)->SetAlignment(arg2); | |
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
12293 | resultobj = SWIG_Py_Void(); | |
12294 | return resultobj; | |
12295 | fail: | |
12296 | return NULL; | |
d14a1e28 RD |
12297 | } |
12298 | ||
12299 | ||
0085ce49 RD |
12300 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12301 | PyObject *resultobj = 0; | |
12302 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12303 | wxLayoutAlignment result; | |
12304 | void *argp1 = 0 ; | |
12305 | int res1 = 0 ; | |
12306 | PyObject *swig_obj[1] ; | |
12307 | ||
12308 | if (!args) SWIG_fail; | |
12309 | swig_obj[0] = args; | |
12310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12311 | if (!SWIG_IsOK(res1)) { | |
12312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12313 | } | |
12314 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12315 | { | |
12316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12317 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12318 | wxPyEndAllowThreads(__tstate); | |
12319 | if (PyErr_Occurred()) SWIG_fail; | |
12320 | } | |
12321 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12322 | return resultobj; | |
12323 | fail: | |
12324 | return NULL; | |
d14a1e28 RD |
12325 | } |
12326 | ||
12327 | ||
0085ce49 RD |
12328 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12329 | PyObject *obj; | |
12330 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12331 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12332 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12333 | } |
12334 | ||
0085ce49 RD |
12335 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12336 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12337 | } |
12338 | ||
0085ce49 RD |
12339 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12340 | PyObject *resultobj = 0; | |
12341 | int arg1 = (int) 0 ; | |
12342 | wxCalculateLayoutEvent *result = 0 ; | |
12343 | int val1 ; | |
12344 | int ecode1 = 0 ; | |
12345 | PyObject * obj0 = 0 ; | |
12346 | char * kwnames[] = { | |
12347 | (char *) "id", NULL | |
12348 | }; | |
12349 | ||
12350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12351 | if (obj0) { | |
12352 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12353 | if (!SWIG_IsOK(ecode1)) { | |
12354 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12355 | } | |
12356 | arg1 = static_cast< int >(val1); | |
12357 | } | |
12358 | { | |
12359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12360 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12361 | wxPyEndAllowThreads(__tstate); | |
12362 | if (PyErr_Occurred()) SWIG_fail; | |
12363 | } | |
12364 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12365 | return resultobj; | |
12366 | fail: | |
12367 | return NULL; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj = 0; | |
12373 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12374 | int arg2 ; | |
12375 | void *argp1 = 0 ; | |
12376 | int res1 = 0 ; | |
12377 | int val2 ; | |
12378 | int ecode2 = 0 ; | |
12379 | PyObject * obj0 = 0 ; | |
12380 | PyObject * obj1 = 0 ; | |
12381 | char * kwnames[] = { | |
12382 | (char *) "self",(char *) "flags", NULL | |
12383 | }; | |
12384 | ||
12385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12387 | if (!SWIG_IsOK(res1)) { | |
12388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12389 | } | |
12390 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12391 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12392 | if (!SWIG_IsOK(ecode2)) { | |
12393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12394 | } | |
12395 | arg2 = static_cast< int >(val2); | |
12396 | { | |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | (arg1)->SetFlags(arg2); | |
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | resultobj = SWIG_Py_Void(); | |
12403 | return resultobj; | |
12404 | fail: | |
12405 | return NULL; | |
d14a1e28 RD |
12406 | } |
12407 | ||
12408 | ||
0085ce49 RD |
12409 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12410 | PyObject *resultobj = 0; | |
12411 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12412 | int result; | |
12413 | void *argp1 = 0 ; | |
12414 | int res1 = 0 ; | |
12415 | PyObject *swig_obj[1] ; | |
12416 | ||
12417 | if (!args) SWIG_fail; | |
12418 | swig_obj[0] = args; | |
12419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12420 | if (!SWIG_IsOK(res1)) { | |
12421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12422 | } | |
12423 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12424 | { | |
12425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12426 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12431 | return resultobj; | |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12438 | PyObject *resultobj = 0; | |
12439 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12440 | wxRect *arg2 = 0 ; | |
12441 | void *argp1 = 0 ; | |
12442 | int res1 = 0 ; | |
12443 | wxRect temp2 ; | |
12444 | PyObject * obj0 = 0 ; | |
12445 | PyObject * obj1 = 0 ; | |
12446 | char * kwnames[] = { | |
12447 | (char *) "self",(char *) "rect", NULL | |
12448 | }; | |
12449 | ||
12450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12452 | if (!SWIG_IsOK(res1)) { | |
12453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12454 | } | |
12455 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12456 | { | |
12457 | arg2 = &temp2; | |
12458 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12459 | } | |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | (arg1)->SetRect((wxRect const &)*arg2); | |
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | resultobj = SWIG_Py_Void(); | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
d14a1e28 RD |
12470 | } |
12471 | ||
12472 | ||
0085ce49 RD |
12473 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12474 | PyObject *resultobj = 0; | |
12475 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12476 | wxRect result; | |
12477 | void *argp1 = 0 ; | |
12478 | int res1 = 0 ; | |
12479 | PyObject *swig_obj[1] ; | |
12480 | ||
12481 | if (!args) SWIG_fail; | |
12482 | swig_obj[0] = args; | |
12483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12484 | if (!SWIG_IsOK(res1)) { | |
12485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12486 | } | |
12487 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12495 | return resultobj; | |
12496 | fail: | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
12501 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12502 | PyObject *obj; | |
12503 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12504 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12505 | return SWIG_Py_Void(); | |
12506 | } | |
12507 | ||
12508 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12509 | return SWIG_Python_InitShadowInstance(args); | |
12510 | } | |
12511 | ||
12512 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12513 | PyObject *resultobj = 0; | |
12514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12515 | int arg2 = (int) -1 ; | |
12516 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12517 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12518 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12519 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12520 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12521 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12522 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12523 | wxSashLayoutWindow *result = 0 ; | |
12524 | void *argp1 = 0 ; | |
12525 | int res1 = 0 ; | |
12526 | int val2 ; | |
12527 | int ecode2 = 0 ; | |
12528 | wxPoint temp3 ; | |
12529 | wxSize temp4 ; | |
12530 | long val5 ; | |
12531 | int ecode5 = 0 ; | |
12532 | bool temp6 = false ; | |
12533 | PyObject * obj0 = 0 ; | |
12534 | PyObject * obj1 = 0 ; | |
12535 | PyObject * obj2 = 0 ; | |
12536 | PyObject * obj3 = 0 ; | |
12537 | PyObject * obj4 = 0 ; | |
12538 | PyObject * obj5 = 0 ; | |
12539 | char * kwnames[] = { | |
12540 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12541 | }; | |
12542 | ||
12543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12545 | if (!SWIG_IsOK(res1)) { | |
12546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12547 | } | |
12548 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12549 | if (obj1) { | |
12550 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12551 | if (!SWIG_IsOK(ecode2)) { | |
12552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12553 | } | |
12554 | arg2 = static_cast< int >(val2); | |
12555 | } | |
12556 | if (obj2) { | |
4f89f6a3 | 12557 | { |
0085ce49 RD |
12558 | arg3 = &temp3; |
12559 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4f89f6a3 | 12560 | } |
0085ce49 RD |
12561 | } |
12562 | if (obj3) { | |
d14a1e28 | 12563 | { |
0085ce49 RD |
12564 | arg4 = &temp4; |
12565 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 12566 | } |
0085ce49 RD |
12567 | } |
12568 | if (obj4) { | |
12569 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12570 | if (!SWIG_IsOK(ecode5)) { | |
12571 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12572 | } | |
12573 | arg5 = static_cast< long >(val5); | |
12574 | } | |
12575 | if (obj5) { | |
4f89f6a3 | 12576 | { |
0085ce49 RD |
12577 | arg6 = wxString_in_helper(obj5); |
12578 | if (arg6 == NULL) SWIG_fail; | |
12579 | temp6 = true; | |
4f89f6a3 | 12580 | } |
0085ce49 RD |
12581 | } |
12582 | { | |
12583 | if (!wxPyCheckForApp()) SWIG_fail; | |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12585 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
12589 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12590 | { | |
12591 | if (temp6) | |
12592 | delete arg6; | |
12593 | } | |
12594 | return resultobj; | |
12595 | fail: | |
12596 | { | |
12597 | if (temp6) | |
12598 | delete arg6; | |
12599 | } | |
12600 | return NULL; | |
d14a1e28 RD |
12601 | } |
12602 | ||
12603 | ||
0085ce49 RD |
12604 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12605 | PyObject *resultobj = 0; | |
12606 | wxSashLayoutWindow *result = 0 ; | |
12607 | ||
12608 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12609 | { | |
12610 | if (!wxPyCheckForApp()) SWIG_fail; | |
12611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12612 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12613 | wxPyEndAllowThreads(__tstate); | |
12614 | if (PyErr_Occurred()) SWIG_fail; | |
12615 | } | |
12616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12617 | return resultobj; | |
12618 | fail: | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
12623 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12624 | PyObject *resultobj = 0; | |
12625 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12626 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12627 | int arg3 = (int) -1 ; | |
12628 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12629 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12630 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12631 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12632 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12633 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12634 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12635 | bool result; | |
12636 | void *argp1 = 0 ; | |
12637 | int res1 = 0 ; | |
12638 | void *argp2 = 0 ; | |
12639 | int res2 = 0 ; | |
12640 | int val3 ; | |
12641 | int ecode3 = 0 ; | |
12642 | wxPoint temp4 ; | |
12643 | wxSize temp5 ; | |
12644 | long val6 ; | |
12645 | int ecode6 = 0 ; | |
12646 | bool temp7 = false ; | |
12647 | PyObject * obj0 = 0 ; | |
12648 | PyObject * obj1 = 0 ; | |
12649 | PyObject * obj2 = 0 ; | |
12650 | PyObject * obj3 = 0 ; | |
12651 | PyObject * obj4 = 0 ; | |
12652 | PyObject * obj5 = 0 ; | |
12653 | PyObject * obj6 = 0 ; | |
12654 | char * kwnames[] = { | |
12655 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12656 | }; | |
12657 | ||
12658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12660 | if (!SWIG_IsOK(res1)) { | |
12661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12662 | } | |
12663 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12664 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12665 | if (!SWIG_IsOK(res2)) { | |
12666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12667 | } | |
12668 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12669 | if (obj2) { | |
12670 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12671 | if (!SWIG_IsOK(ecode3)) { | |
12672 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12673 | } | |
12674 | arg3 = static_cast< int >(val3); | |
12675 | } | |
12676 | if (obj3) { | |
d00d1b88 | 12677 | { |
0085ce49 RD |
12678 | arg4 = &temp4; |
12679 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12680 | } | |
12681 | } | |
12682 | if (obj4) { | |
d14a1e28 | 12683 | { |
0085ce49 RD |
12684 | arg5 = &temp5; |
12685 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 12686 | } |
0085ce49 RD |
12687 | } |
12688 | if (obj5) { | |
12689 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12690 | if (!SWIG_IsOK(ecode6)) { | |
12691 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12692 | } | |
12693 | arg6 = static_cast< long >(val6); | |
12694 | } | |
12695 | if (obj6) { | |
4f89f6a3 | 12696 | { |
0085ce49 RD |
12697 | arg7 = wxString_in_helper(obj6); |
12698 | if (arg7 == NULL) SWIG_fail; | |
12699 | temp7 = true; | |
4f89f6a3 | 12700 | } |
0085ce49 RD |
12701 | } |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12705 | wxPyEndAllowThreads(__tstate); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12710 | } | |
12711 | { | |
12712 | if (temp7) | |
12713 | delete arg7; | |
12714 | } | |
12715 | return resultobj; | |
12716 | fail: | |
12717 | { | |
12718 | if (temp7) | |
12719 | delete arg7; | |
12720 | } | |
12721 | return NULL; | |
d14a1e28 RD |
12722 | } |
12723 | ||
12724 | ||
0085ce49 RD |
12725 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12726 | PyObject *resultobj = 0; | |
12727 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12728 | wxLayoutAlignment result; | |
12729 | void *argp1 = 0 ; | |
12730 | int res1 = 0 ; | |
12731 | PyObject *swig_obj[1] ; | |
12732 | ||
12733 | if (!args) SWIG_fail; | |
12734 | swig_obj[0] = args; | |
12735 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12736 | if (!SWIG_IsOK(res1)) { | |
12737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12738 | } | |
12739 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
d14a1e28 RD |
12750 | } |
12751 | ||
12752 | ||
0085ce49 RD |
12753 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12754 | PyObject *resultobj = 0; | |
12755 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12756 | wxLayoutOrientation result; | |
12757 | void *argp1 = 0 ; | |
12758 | int res1 = 0 ; | |
12759 | PyObject *swig_obj[1] ; | |
12760 | ||
12761 | if (!args) SWIG_fail; | |
12762 | swig_obj[0] = args; | |
12763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12764 | if (!SWIG_IsOK(res1)) { | |
12765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12766 | } | |
12767 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
12774 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12775 | return resultobj; | |
12776 | fail: | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
12781 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj = 0; | |
12783 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12784 | wxLayoutAlignment arg2 ; | |
12785 | void *argp1 = 0 ; | |
12786 | int res1 = 0 ; | |
12787 | int val2 ; | |
12788 | int ecode2 = 0 ; | |
12789 | PyObject * obj0 = 0 ; | |
12790 | PyObject * obj1 = 0 ; | |
12791 | char * kwnames[] = { | |
12792 | (char *) "self",(char *) "alignment", NULL | |
12793 | }; | |
12794 | ||
12795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12797 | if (!SWIG_IsOK(res1)) { | |
12798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12799 | } | |
12800 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12802 | if (!SWIG_IsOK(ecode2)) { | |
12803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12804 | } | |
12805 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12806 | { | |
12807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12808 | (arg1)->SetAlignment(arg2); | |
12809 | wxPyEndAllowThreads(__tstate); | |
12810 | if (PyErr_Occurred()) SWIG_fail; | |
12811 | } | |
12812 | resultobj = SWIG_Py_Void(); | |
12813 | return resultobj; | |
12814 | fail: | |
12815 | return NULL; | |
12816 | } | |
12817 | ||
12818 | ||
12819 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12820 | PyObject *resultobj = 0; | |
12821 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12822 | wxSize *arg2 = 0 ; | |
12823 | void *argp1 = 0 ; | |
12824 | int res1 = 0 ; | |
12825 | wxSize temp2 ; | |
12826 | PyObject * obj0 = 0 ; | |
12827 | PyObject * obj1 = 0 ; | |
12828 | char * kwnames[] = { | |
12829 | (char *) "self",(char *) "size", NULL | |
12830 | }; | |
12831 | ||
12832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12834 | if (!SWIG_IsOK(res1)) { | |
12835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12836 | } | |
12837 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12838 | { | |
12839 | arg2 = &temp2; | |
12840 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12841 | } | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | resultobj = SWIG_Py_Void(); | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
12855 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12856 | PyObject *resultobj = 0; | |
12857 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12858 | wxLayoutOrientation arg2 ; | |
12859 | void *argp1 = 0 ; | |
12860 | int res1 = 0 ; | |
12861 | int val2 ; | |
12862 | int ecode2 = 0 ; | |
12863 | PyObject * obj0 = 0 ; | |
12864 | PyObject * obj1 = 0 ; | |
12865 | char * kwnames[] = { | |
12866 | (char *) "self",(char *) "orientation", NULL | |
12867 | }; | |
12868 | ||
12869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12871 | if (!SWIG_IsOK(res1)) { | |
12872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12873 | } | |
12874 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12875 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12876 | if (!SWIG_IsOK(ecode2)) { | |
12877 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12878 | } | |
12879 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12880 | { | |
12881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12882 | (arg1)->SetOrientation(arg2); | |
12883 | wxPyEndAllowThreads(__tstate); | |
12884 | if (PyErr_Occurred()) SWIG_fail; | |
12885 | } | |
12886 | resultobj = SWIG_Py_Void(); | |
12887 | return resultobj; | |
12888 | fail: | |
12889 | return NULL; | |
d14a1e28 RD |
12890 | } |
12891 | ||
12892 | ||
0085ce49 RD |
12893 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12894 | PyObject *obj; | |
12895 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12896 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12897 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12898 | } |
12899 | ||
0085ce49 RD |
12900 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12901 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12902 | } |
12903 | ||
0085ce49 RD |
12904 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12905 | PyObject *resultobj = 0; | |
12906 | wxLayoutAlgorithm *result = 0 ; | |
12907 | ||
12908 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12909 | { | |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12912 | wxPyEndAllowThreads(__tstate); | |
12913 | if (PyErr_Occurred()) SWIG_fail; | |
12914 | } | |
12915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12916 | return resultobj; | |
12917 | fail: | |
12918 | return NULL; | |
d14a1e28 RD |
12919 | } |
12920 | ||
12921 | ||
0085ce49 RD |
12922 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12923 | PyObject *resultobj = 0; | |
12924 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12925 | void *argp1 = 0 ; | |
12926 | int res1 = 0 ; | |
12927 | PyObject *swig_obj[1] ; | |
12928 | ||
12929 | if (!args) SWIG_fail; | |
12930 | swig_obj[0] = args; | |
12931 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12932 | if (!SWIG_IsOK(res1)) { | |
12933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12934 | } | |
12935 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12936 | { | |
12937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12938 | delete arg1; | |
d14a1e28 | 12939 | |
0085ce49 RD |
12940 | wxPyEndAllowThreads(__tstate); |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
12943 | resultobj = SWIG_Py_Void(); | |
12944 | return resultobj; | |
12945 | fail: | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj = 0; | |
12952 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12953 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
12954 | wxRect *arg3 = (wxRect *) NULL ; | |
12955 | bool result; | |
12956 | void *argp1 = 0 ; | |
12957 | int res1 = 0 ; | |
12958 | void *argp2 = 0 ; | |
12959 | int res2 = 0 ; | |
12960 | void *argp3 = 0 ; | |
12961 | int res3 = 0 ; | |
12962 | PyObject * obj0 = 0 ; | |
12963 | PyObject * obj1 = 0 ; | |
12964 | PyObject * obj2 = 0 ; | |
12965 | char * kwnames[] = { | |
12966 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
12967 | }; | |
12968 | ||
12969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12971 | if (!SWIG_IsOK(res1)) { | |
12972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12973 | } | |
12974 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12975 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
12976 | if (!SWIG_IsOK(res2)) { | |
12977 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
12978 | } | |
12979 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
12980 | if (obj2) { | |
12981 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
12982 | if (!SWIG_IsOK(res3)) { | |
12983 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
d14a1e28 | 12984 | } |
0085ce49 RD |
12985 | arg3 = reinterpret_cast< wxRect * >(argp3); |
12986 | } | |
12987 | { | |
12988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12989 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | { | |
12994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12995 | } | |
12996 | return resultobj; | |
12997 | fail: | |
12998 | return NULL; | |
12999 | } | |
13000 | ||
13001 | ||
13002 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13003 | PyObject *resultobj = 0; | |
13004 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13005 | wxFrame *arg2 = (wxFrame *) 0 ; | |
13006 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13007 | bool result; | |
13008 | void *argp1 = 0 ; | |
13009 | int res1 = 0 ; | |
13010 | void *argp2 = 0 ; | |
13011 | int res2 = 0 ; | |
13012 | void *argp3 = 0 ; | |
13013 | int res3 = 0 ; | |
13014 | PyObject * obj0 = 0 ; | |
13015 | PyObject * obj1 = 0 ; | |
13016 | PyObject * obj2 = 0 ; | |
13017 | char * kwnames[] = { | |
13018 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
13019 | }; | |
13020 | ||
13021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13023 | if (!SWIG_IsOK(res1)) { | |
13024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13025 | } | |
13026 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13027 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
13028 | if (!SWIG_IsOK(res2)) { | |
13029 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
13030 | } | |
13031 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
13032 | if (obj2) { | |
13033 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13034 | if (!SWIG_IsOK(res3)) { | |
13035 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13036 | } |
0085ce49 RD |
13037 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13038 | } | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
13042 | wxPyEndAllowThreads(__tstate); | |
13043 | if (PyErr_Occurred()) SWIG_fail; | |
13044 | } | |
13045 | { | |
13046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13047 | } | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13055 | PyObject *resultobj = 0; | |
13056 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
13057 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13058 | wxWindow *arg3 = (wxWindow *) NULL ; | |
13059 | bool result; | |
13060 | void *argp1 = 0 ; | |
13061 | int res1 = 0 ; | |
13062 | void *argp2 = 0 ; | |
13063 | int res2 = 0 ; | |
13064 | void *argp3 = 0 ; | |
13065 | int res3 = 0 ; | |
13066 | PyObject * obj0 = 0 ; | |
13067 | PyObject * obj1 = 0 ; | |
13068 | PyObject * obj2 = 0 ; | |
13069 | char * kwnames[] = { | |
13070 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
13071 | }; | |
13072 | ||
13073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
13075 | if (!SWIG_IsOK(res1)) { | |
13076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
13077 | } | |
13078 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
13079 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13080 | if (!SWIG_IsOK(res2)) { | |
13081 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13082 | } | |
13083 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13084 | if (obj2) { | |
13085 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13086 | if (!SWIG_IsOK(res3)) { | |
13087 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13088 | } |
0085ce49 RD |
13089 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
13090 | } | |
13091 | { | |
13092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13093 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
13094 | wxPyEndAllowThreads(__tstate); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
13097 | { | |
13098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13099 | } | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
5cbf236d RD |
13103 | } |
13104 | ||
13105 | ||
0085ce49 RD |
13106 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13107 | PyObject *obj; | |
13108 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13109 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
13110 | return SWIG_Py_Void(); | |
5cbf236d RD |
13111 | } |
13112 | ||
0085ce49 RD |
13113 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13114 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13115 | } |
13116 | ||
0085ce49 RD |
13117 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13118 | PyObject *resultobj = 0; | |
13119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13120 | int arg2 = (int) wxBORDER_NONE ; | |
13121 | wxPopupWindow *result = 0 ; | |
13122 | void *argp1 = 0 ; | |
13123 | int res1 = 0 ; | |
13124 | int val2 ; | |
13125 | int ecode2 = 0 ; | |
13126 | PyObject * obj0 = 0 ; | |
13127 | PyObject * obj1 = 0 ; | |
13128 | char * kwnames[] = { | |
13129 | (char *) "parent",(char *) "flags", NULL | |
13130 | }; | |
13131 | ||
13132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13134 | if (!SWIG_IsOK(res1)) { | |
13135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13136 | } | |
13137 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13138 | if (obj1) { | |
13139 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13140 | if (!SWIG_IsOK(ecode2)) { | |
13141 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
13142 | } | |
13143 | arg2 = static_cast< int >(val2); | |
13144 | } | |
13145 | { | |
13146 | if (!wxPyCheckForApp()) SWIG_fail; | |
13147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13148 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
13149 | wxPyEndAllowThreads(__tstate); | |
13150 | if (PyErr_Occurred()) SWIG_fail; | |
13151 | } | |
13152 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
13153 | return resultobj; | |
13154 | fail: | |
13155 | return NULL; | |
d14a1e28 RD |
13156 | } |
13157 | ||
13158 | ||
0085ce49 RD |
13159 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13160 | PyObject *resultobj = 0; | |
13161 | wxPopupWindow *result = 0 ; | |
13162 | ||
13163 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
13164 | { | |
13165 | if (!wxPyCheckForApp()) SWIG_fail; | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (wxPopupWindow *)new wxPopupWindow(); | |
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
13172 | return resultobj; | |
13173 | fail: | |
13174 | return NULL; | |
13175 | } | |
13176 | ||
13177 | ||
13178 | SWIGINTERN PyObject *_wrap_PopupWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13179 | PyObject *resultobj = 0; | |
13180 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13181 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13182 | int arg3 = (int) wxBORDER_NONE ; | |
13183 | bool result; | |
13184 | void *argp1 = 0 ; | |
13185 | int res1 = 0 ; | |
13186 | void *argp2 = 0 ; | |
13187 | int res2 = 0 ; | |
13188 | int val3 ; | |
13189 | int ecode3 = 0 ; | |
13190 | PyObject * obj0 = 0 ; | |
13191 | PyObject * obj1 = 0 ; | |
13192 | PyObject * obj2 = 0 ; | |
13193 | char * kwnames[] = { | |
13194 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
13195 | }; | |
13196 | ||
13197 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13199 | if (!SWIG_IsOK(res1)) { | |
13200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Create" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13201 | } | |
13202 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13203 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13204 | if (!SWIG_IsOK(res2)) { | |
13205 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13206 | } | |
13207 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13208 | if (obj2) { | |
13209 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13210 | if (!SWIG_IsOK(ecode3)) { | |
13211 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PopupWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13212 | } | |
13213 | arg3 = static_cast< int >(val3); | |
13214 | } | |
13215 | { | |
13216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13217 | result = (bool)(arg1)->Create(arg2,arg3); | |
13218 | wxPyEndAllowThreads(__tstate); | |
13219 | if (PyErr_Occurred()) SWIG_fail; | |
13220 | } | |
13221 | { | |
13222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13223 | } | |
13224 | return resultobj; | |
13225 | fail: | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
13230 | SWIGINTERN PyObject *_wrap_PopupWindow_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13231 | PyObject *resultobj = 0; | |
13232 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13233 | wxPoint *arg2 = 0 ; | |
13234 | wxSize *arg3 = 0 ; | |
13235 | void *argp1 = 0 ; | |
13236 | int res1 = 0 ; | |
13237 | wxPoint temp2 ; | |
13238 | wxSize temp3 ; | |
13239 | PyObject * obj0 = 0 ; | |
13240 | PyObject * obj1 = 0 ; | |
13241 | PyObject * obj2 = 0 ; | |
13242 | char * kwnames[] = { | |
13243 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
13244 | }; | |
13245 | ||
13246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13248 | if (!SWIG_IsOK(res1)) { | |
13249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Position" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13250 | } | |
13251 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13252 | { | |
13253 | arg2 = &temp2; | |
13254 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13255 | } | |
13256 | { | |
13257 | arg3 = &temp3; | |
13258 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13259 | } | |
13260 | { | |
13261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13262 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | resultobj = SWIG_Py_Void(); | |
13267 | return resultobj; | |
13268 | fail: | |
13269 | return NULL; | |
d14a1e28 RD |
13270 | } |
13271 | ||
13272 | ||
0085ce49 RD |
13273 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13274 | PyObject *obj; | |
13275 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13276 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13277 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13278 | } |
13279 | ||
0085ce49 RD |
13280 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13281 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13282 | } |
13283 | ||
0085ce49 RD |
13284 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13285 | PyObject *resultobj = 0; | |
13286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13287 | int arg2 = (int) wxBORDER_NONE ; | |
13288 | wxPyPopupTransientWindow *result = 0 ; | |
13289 | void *argp1 = 0 ; | |
13290 | int res1 = 0 ; | |
13291 | int val2 ; | |
13292 | int ecode2 = 0 ; | |
13293 | PyObject * obj0 = 0 ; | |
13294 | PyObject * obj1 = 0 ; | |
13295 | char * kwnames[] = { | |
13296 | (char *) "parent",(char *) "style", NULL | |
13297 | }; | |
13298 | ||
13299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13301 | if (!SWIG_IsOK(res1)) { | |
13302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13303 | } | |
13304 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13305 | if (obj1) { | |
13306 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13307 | if (!SWIG_IsOK(ecode2)) { | |
13308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13309 | } | |
13310 | arg2 = static_cast< int >(val2); | |
13311 | } | |
13312 | { | |
13313 | if (!wxPyCheckForApp()) SWIG_fail; | |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13315 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13320 | return resultobj; | |
13321 | fail: | |
13322 | return NULL; | |
d14a1e28 RD |
13323 | } |
13324 | ||
13325 | ||
0085ce49 RD |
13326 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13327 | PyObject *resultobj = 0; | |
13328 | wxPyPopupTransientWindow *result = 0 ; | |
13329 | ||
13330 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13331 | { | |
13332 | if (!wxPyCheckForApp()) SWIG_fail; | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13335 | wxPyEndAllowThreads(__tstate); | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | } | |
13338 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | return NULL; | |
13342 | } | |
13343 | ||
13344 | ||
13345 | SWIGINTERN PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13346 | PyObject *resultobj = 0; | |
13347 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13348 | PyObject *arg2 = (PyObject *) 0 ; | |
13349 | PyObject *arg3 = (PyObject *) 0 ; | |
13350 | void *argp1 = 0 ; | |
13351 | int res1 = 0 ; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | PyObject * obj1 = 0 ; | |
13354 | PyObject * obj2 = 0 ; | |
13355 | char * kwnames[] = { | |
13356 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13357 | }; | |
13358 | ||
13359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13361 | if (!SWIG_IsOK(res1)) { | |
13362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13363 | } | |
13364 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13365 | arg2 = obj1; | |
13366 | arg3 = obj2; | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
13373 | resultobj = SWIG_Py_Void(); | |
13374 | return resultobj; | |
13375 | fail: | |
13376 | return NULL; | |
13377 | } | |
13378 | ||
13379 | ||
13380 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Popup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13381 | PyObject *resultobj = 0; | |
13382 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13383 | wxWindow *arg2 = (wxWindow *) NULL ; | |
13384 | void *argp1 = 0 ; | |
13385 | int res1 = 0 ; | |
13386 | void *argp2 = 0 ; | |
13387 | int res2 = 0 ; | |
13388 | PyObject * obj0 = 0 ; | |
13389 | PyObject * obj1 = 0 ; | |
13390 | char * kwnames[] = { | |
13391 | (char *) "self",(char *) "focus", NULL | |
13392 | }; | |
13393 | ||
13394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) SWIG_fail; | |
13395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13396 | if (!SWIG_IsOK(res1)) { | |
13397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Popup" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13398 | } | |
13399 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13400 | if (obj1) { | |
13401 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13402 | if (!SWIG_IsOK(res2)) { | |
13403 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupTransientWindow_Popup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
22bfe96c | 13404 | } |
0085ce49 RD |
13405 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
13406 | } | |
13407 | { | |
13408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13409 | (arg1)->Popup(arg2); | |
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | resultobj = SWIG_Py_Void(); | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
22bfe96c RD |
13417 | } |
13418 | ||
13419 | ||
0085ce49 RD |
13420 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13421 | PyObject *resultobj = 0; | |
13422 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13423 | void *argp1 = 0 ; | |
13424 | int res1 = 0 ; | |
13425 | PyObject *swig_obj[1] ; | |
13426 | ||
13427 | if (!args) SWIG_fail; | |
13428 | swig_obj[0] = args; | |
13429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13430 | if (!SWIG_IsOK(res1)) { | |
13431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Dismiss" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13432 | } | |
13433 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13434 | { | |
13435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13436 | (arg1)->Dismiss(); | |
13437 | wxPyEndAllowThreads(__tstate); | |
13438 | if (PyErr_Occurred()) SWIG_fail; | |
13439 | } | |
13440 | resultobj = SWIG_Py_Void(); | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13448 | PyObject *obj; | |
13449 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13450 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13451 | return SWIG_Py_Void(); | |
13452 | } | |
13453 | ||
13454 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13455 | return SWIG_Python_InitShadowInstance(args); | |
13456 | } | |
13457 | ||
13458 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13459 | PyObject *resultobj = 0; | |
13460 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13461 | wxString *arg2 = 0 ; | |
13462 | int arg3 = (int) 100 ; | |
13463 | wxRect *arg4 = (wxRect *) NULL ; | |
13464 | wxTipWindow *result = 0 ; | |
13465 | void *argp1 = 0 ; | |
13466 | int res1 = 0 ; | |
13467 | bool temp2 = false ; | |
13468 | int val3 ; | |
13469 | int ecode3 = 0 ; | |
13470 | void *argp4 = 0 ; | |
13471 | int res4 = 0 ; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | PyObject * obj2 = 0 ; | |
13475 | PyObject * obj3 = 0 ; | |
13476 | char * kwnames[] = { | |
13477 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13478 | }; | |
13479 | ||
13480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13482 | if (!SWIG_IsOK(res1)) { | |
13483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13484 | } | |
13485 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13486 | { | |
13487 | arg2 = wxString_in_helper(obj1); | |
13488 | if (arg2 == NULL) SWIG_fail; | |
13489 | temp2 = true; | |
13490 | } | |
13491 | if (obj2) { | |
13492 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13493 | if (!SWIG_IsOK(ecode3)) { | |
13494 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13495 | } | |
13496 | arg3 = static_cast< int >(val3); | |
13497 | } | |
13498 | if (obj3) { | |
13499 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13500 | if (!SWIG_IsOK(res4)) { | |
13501 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
d14a1e28 | 13502 | } |
0085ce49 RD |
13503 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13504 | } | |
13505 | { | |
13506 | if (!wxPyCheckForApp()) SWIG_fail; | |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13513 | { | |
13514 | if (temp2) | |
13515 | delete arg2; | |
13516 | } | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | { | |
13520 | if (temp2) | |
13521 | delete arg2; | |
13522 | } | |
13523 | return NULL; | |
d14a1e28 RD |
13524 | } |
13525 | ||
13526 | ||
0085ce49 RD |
13527 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13528 | PyObject *resultobj = 0; | |
13529 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13530 | wxRect *arg2 = 0 ; | |
13531 | void *argp1 = 0 ; | |
13532 | int res1 = 0 ; | |
13533 | wxRect temp2 ; | |
13534 | PyObject * obj0 = 0 ; | |
13535 | PyObject * obj1 = 0 ; | |
13536 | char * kwnames[] = { | |
13537 | (char *) "self",(char *) "rectBound", NULL | |
13538 | }; | |
13539 | ||
13540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13542 | if (!SWIG_IsOK(res1)) { | |
13543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13544 | } | |
13545 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13546 | { | |
13547 | arg2 = &temp2; | |
13548 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13549 | } | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13553 | wxPyEndAllowThreads(__tstate); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | } | |
13556 | resultobj = SWIG_Py_Void(); | |
13557 | return resultobj; | |
13558 | fail: | |
13559 | return NULL; | |
d14a1e28 RD |
13560 | } |
13561 | ||
13562 | ||
0085ce49 RD |
13563 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13564 | PyObject *resultobj = 0; | |
13565 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13566 | void *argp1 = 0 ; | |
13567 | int res1 = 0 ; | |
13568 | PyObject *swig_obj[1] ; | |
13569 | ||
13570 | if (!args) SWIG_fail; | |
13571 | swig_obj[0] = args; | |
13572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13573 | if (!SWIG_IsOK(res1)) { | |
13574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13575 | } | |
13576 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13577 | { | |
13578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13579 | (arg1)->Close(); | |
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | resultobj = SWIG_Py_Void(); | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13591 | PyObject *obj; | |
13592 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13593 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13594 | return SWIG_Py_Void(); | |
13595 | } | |
13596 | ||
13597 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13598 | return SWIG_Python_InitShadowInstance(args); | |
13599 | } | |
13600 | ||
13601 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13602 | PyObject *resultobj = 0; | |
13603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13604 | int arg2 = (int) wxID_ANY ; | |
13605 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13606 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13607 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13608 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13609 | long arg5 = (long) 0 ; | |
13610 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13611 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13612 | wxPyVScrolledWindow *result = 0 ; | |
13613 | void *argp1 = 0 ; | |
13614 | int res1 = 0 ; | |
13615 | int val2 ; | |
13616 | int ecode2 = 0 ; | |
13617 | wxPoint temp3 ; | |
13618 | wxSize temp4 ; | |
13619 | long val5 ; | |
13620 | int ecode5 = 0 ; | |
13621 | bool temp6 = false ; | |
13622 | PyObject * obj0 = 0 ; | |
13623 | PyObject * obj1 = 0 ; | |
13624 | PyObject * obj2 = 0 ; | |
13625 | PyObject * obj3 = 0 ; | |
13626 | PyObject * obj4 = 0 ; | |
13627 | PyObject * obj5 = 0 ; | |
13628 | char * kwnames[] = { | |
13629 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13630 | }; | |
13631 | ||
13632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13634 | if (!SWIG_IsOK(res1)) { | |
13635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13636 | } | |
13637 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13638 | if (obj1) { | |
13639 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13640 | if (!SWIG_IsOK(ecode2)) { | |
13641 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13642 | } | |
13643 | arg2 = static_cast< int >(val2); | |
13644 | } | |
13645 | if (obj2) { | |
093d3ff1 | 13646 | { |
0085ce49 RD |
13647 | arg3 = &temp3; |
13648 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 13649 | } |
0085ce49 RD |
13650 | } |
13651 | if (obj3) { | |
d14a1e28 | 13652 | { |
0085ce49 RD |
13653 | arg4 = &temp4; |
13654 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13655 | } |
0085ce49 RD |
13656 | } |
13657 | if (obj4) { | |
13658 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13659 | if (!SWIG_IsOK(ecode5)) { | |
13660 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13661 | } | |
13662 | arg5 = static_cast< long >(val5); | |
13663 | } | |
13664 | if (obj5) { | |
d14a1e28 | 13665 | { |
0085ce49 RD |
13666 | arg6 = wxString_in_helper(obj5); |
13667 | if (arg6 == NULL) SWIG_fail; | |
13668 | temp6 = true; | |
d14a1e28 | 13669 | } |
0085ce49 RD |
13670 | } |
13671 | { | |
13672 | if (!wxPyCheckForApp()) SWIG_fail; | |
13673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13674 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
13678 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13679 | { | |
13680 | if (temp6) | |
13681 | delete arg6; | |
13682 | } | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | { | |
13686 | if (temp6) | |
13687 | delete arg6; | |
13688 | } | |
13689 | return NULL; | |
d14a1e28 RD |
13690 | } |
13691 | ||
13692 | ||
0085ce49 RD |
13693 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13694 | PyObject *resultobj = 0; | |
13695 | wxPyVScrolledWindow *result = 0 ; | |
13696 | ||
13697 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13698 | { | |
13699 | if (!wxPyCheckForApp()) SWIG_fail; | |
13700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13701 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13702 | wxPyEndAllowThreads(__tstate); | |
13703 | if (PyErr_Occurred()) SWIG_fail; | |
13704 | } | |
13705 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13706 | return resultobj; | |
13707 | fail: | |
13708 | return NULL; | |
13709 | } | |
13710 | ||
13711 | ||
13712 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13713 | PyObject *resultobj = 0; | |
13714 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13715 | PyObject *arg2 = (PyObject *) 0 ; | |
13716 | PyObject *arg3 = (PyObject *) 0 ; | |
13717 | void *argp1 = 0 ; | |
13718 | int res1 = 0 ; | |
13719 | PyObject * obj0 = 0 ; | |
13720 | PyObject * obj1 = 0 ; | |
13721 | PyObject * obj2 = 0 ; | |
13722 | char * kwnames[] = { | |
13723 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13724 | }; | |
13725 | ||
13726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13728 | if (!SWIG_IsOK(res1)) { | |
13729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13730 | } | |
13731 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13732 | arg2 = obj1; | |
13733 | arg3 = obj2; | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13737 | wxPyEndAllowThreads(__tstate); | |
13738 | if (PyErr_Occurred()) SWIG_fail; | |
13739 | } | |
13740 | resultobj = SWIG_Py_Void(); | |
13741 | return resultobj; | |
13742 | fail: | |
13743 | return NULL; | |
13744 | } | |
13745 | ||
13746 | ||
13747 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13748 | PyObject *resultobj = 0; | |
13749 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13750 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13751 | int arg3 = (int) wxID_ANY ; | |
13752 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13753 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13754 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13755 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13756 | long arg6 = (long) 0 ; | |
13757 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13758 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13759 | bool result; | |
13760 | void *argp1 = 0 ; | |
13761 | int res1 = 0 ; | |
13762 | void *argp2 = 0 ; | |
13763 | int res2 = 0 ; | |
13764 | int val3 ; | |
13765 | int ecode3 = 0 ; | |
13766 | wxPoint temp4 ; | |
13767 | wxSize temp5 ; | |
13768 | long val6 ; | |
13769 | int ecode6 = 0 ; | |
13770 | bool temp7 = false ; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | PyObject * obj1 = 0 ; | |
13773 | PyObject * obj2 = 0 ; | |
13774 | PyObject * obj3 = 0 ; | |
13775 | PyObject * obj4 = 0 ; | |
13776 | PyObject * obj5 = 0 ; | |
13777 | PyObject * obj6 = 0 ; | |
13778 | char * kwnames[] = { | |
13779 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13780 | }; | |
13781 | ||
13782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13784 | if (!SWIG_IsOK(res1)) { | |
13785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13786 | } | |
13787 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13788 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13789 | if (!SWIG_IsOK(res2)) { | |
13790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13791 | } | |
13792 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13793 | if (obj2) { | |
13794 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13795 | if (!SWIG_IsOK(ecode3)) { | |
13796 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13797 | } | |
13798 | arg3 = static_cast< int >(val3); | |
13799 | } | |
13800 | if (obj3) { | |
d14a1e28 | 13801 | { |
0085ce49 RD |
13802 | arg4 = &temp4; |
13803 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 13804 | } |
0085ce49 RD |
13805 | } |
13806 | if (obj4) { | |
093d3ff1 | 13807 | { |
0085ce49 RD |
13808 | arg5 = &temp5; |
13809 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 13810 | } |
0085ce49 RD |
13811 | } |
13812 | if (obj5) { | |
13813 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13814 | if (!SWIG_IsOK(ecode6)) { | |
13815 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13816 | } | |
13817 | arg6 = static_cast< long >(val6); | |
13818 | } | |
13819 | if (obj6) { | |
13820 | { | |
13821 | arg7 = wxString_in_helper(obj6); | |
13822 | if (arg7 == NULL) SWIG_fail; | |
13823 | temp7 = true; | |
13824 | } | |
13825 | } | |
13826 | { | |
13827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13828 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13829 | wxPyEndAllowThreads(__tstate); | |
13830 | if (PyErr_Occurred()) SWIG_fail; | |
13831 | } | |
13832 | { | |
13833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13834 | } | |
13835 | { | |
13836 | if (temp7) | |
13837 | delete arg7; | |
13838 | } | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | { | |
13842 | if (temp7) | |
13843 | delete arg7; | |
13844 | } | |
13845 | return NULL; | |
13846 | } | |
13847 | ||
13848 | ||
13849 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13850 | PyObject *resultobj = 0; | |
13851 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13852 | size_t arg2 ; | |
13853 | void *argp1 = 0 ; | |
13854 | int res1 = 0 ; | |
13855 | size_t val2 ; | |
13856 | int ecode2 = 0 ; | |
13857 | PyObject * obj0 = 0 ; | |
13858 | PyObject * obj1 = 0 ; | |
13859 | char * kwnames[] = { | |
13860 | (char *) "self",(char *) "count", NULL | |
13861 | }; | |
13862 | ||
13863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13865 | if (!SWIG_IsOK(res1)) { | |
13866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13867 | } | |
13868 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13869 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13870 | if (!SWIG_IsOK(ecode2)) { | |
13871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13872 | } | |
13873 | arg2 = static_cast< size_t >(val2); | |
13874 | { | |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13876 | (arg1)->SetLineCount(arg2); | |
13877 | wxPyEndAllowThreads(__tstate); | |
13878 | if (PyErr_Occurred()) SWIG_fail; | |
13879 | } | |
13880 | resultobj = SWIG_Py_Void(); | |
13881 | return resultobj; | |
13882 | fail: | |
13883 | return NULL; | |
13884 | } | |
13885 | ||
13886 | ||
13887 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13888 | PyObject *resultobj = 0; | |
13889 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13890 | size_t arg2 ; | |
13891 | bool result; | |
13892 | void *argp1 = 0 ; | |
13893 | int res1 = 0 ; | |
13894 | size_t val2 ; | |
13895 | int ecode2 = 0 ; | |
13896 | PyObject * obj0 = 0 ; | |
13897 | PyObject * obj1 = 0 ; | |
13898 | char * kwnames[] = { | |
13899 | (char *) "self",(char *) "line", NULL | |
13900 | }; | |
13901 | ||
13902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13904 | if (!SWIG_IsOK(res1)) { | |
13905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13906 | } | |
13907 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13908 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13909 | if (!SWIG_IsOK(ecode2)) { | |
13910 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13911 | } | |
13912 | arg2 = static_cast< size_t >(val2); | |
13913 | { | |
13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13915 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13916 | wxPyEndAllowThreads(__tstate); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
13919 | { | |
13920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13921 | } | |
13922 | return resultobj; | |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj = 0; | |
13930 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13931 | size_t arg2 ; | |
13932 | void *argp1 = 0 ; | |
13933 | int res1 = 0 ; | |
13934 | size_t val2 ; | |
13935 | int ecode2 = 0 ; | |
13936 | PyObject * obj0 = 0 ; | |
13937 | PyObject * obj1 = 0 ; | |
13938 | char * kwnames[] = { | |
13939 | (char *) "self",(char *) "line", NULL | |
13940 | }; | |
13941 | ||
13942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13944 | if (!SWIG_IsOK(res1)) { | |
13945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13946 | } | |
13947 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13948 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13949 | if (!SWIG_IsOK(ecode2)) { | |
13950 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13951 | } | |
13952 | arg2 = static_cast< size_t >(val2); | |
13953 | { | |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | (arg1)->RefreshLine(arg2); | |
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | resultobj = SWIG_Py_Void(); | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13967 | PyObject *resultobj = 0; | |
13968 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13969 | size_t arg2 ; | |
13970 | size_t arg3 ; | |
13971 | void *argp1 = 0 ; | |
13972 | int res1 = 0 ; | |
13973 | size_t val2 ; | |
13974 | int ecode2 = 0 ; | |
13975 | size_t val3 ; | |
13976 | int ecode3 = 0 ; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | PyObject * obj1 = 0 ; | |
13979 | PyObject * obj2 = 0 ; | |
13980 | char * kwnames[] = { | |
2131d850 | 13981 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
13982 | }; |
13983 | ||
13984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13986 | if (!SWIG_IsOK(res1)) { | |
13987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13988 | } | |
13989 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13990 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13991 | if (!SWIG_IsOK(ecode2)) { | |
13992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
13993 | } | |
13994 | arg2 = static_cast< size_t >(val2); | |
13995 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
13996 | if (!SWIG_IsOK(ecode3)) { | |
13997 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
13998 | } | |
13999 | arg3 = static_cast< size_t >(val3); | |
14000 | { | |
14001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14002 | (arg1)->RefreshLines(arg2,arg3); | |
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_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj = 0; | |
14015 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14016 | int arg2 ; | |
14017 | int arg3 ; | |
14018 | int result; | |
14019 | void *argp1 = 0 ; | |
14020 | int res1 = 0 ; | |
14021 | int val2 ; | |
14022 | int ecode2 = 0 ; | |
14023 | int val3 ; | |
14024 | int ecode3 = 0 ; | |
14025 | PyObject * obj0 = 0 ; | |
14026 | PyObject * obj1 = 0 ; | |
14027 | PyObject * obj2 = 0 ; | |
14028 | char * kwnames[] = { | |
14029 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14030 | }; | |
14031 | ||
14032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14034 | if (!SWIG_IsOK(res1)) { | |
14035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14036 | } | |
14037 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14038 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14039 | if (!SWIG_IsOK(ecode2)) { | |
14040 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
14041 | } | |
14042 | arg2 = static_cast< int >(val2); | |
14043 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14044 | if (!SWIG_IsOK(ecode3)) { | |
14045 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
14046 | } | |
14047 | arg3 = static_cast< int >(val3); | |
14048 | { | |
14049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14050 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
14051 | wxPyEndAllowThreads(__tstate); | |
14052 | if (PyErr_Occurred()) SWIG_fail; | |
14053 | } | |
14054 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14055 | return resultobj; | |
14056 | fail: | |
14057 | return NULL; | |
14058 | } | |
14059 | ||
14060 | ||
14061 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14062 | PyObject *resultobj = 0; | |
14063 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14064 | wxPoint *arg2 = 0 ; | |
14065 | int result; | |
14066 | void *argp1 = 0 ; | |
14067 | int res1 = 0 ; | |
14068 | wxPoint temp2 ; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | PyObject * obj1 = 0 ; | |
14071 | char * kwnames[] = { | |
14072 | (char *) "self",(char *) "pt", NULL | |
14073 | }; | |
14074 | ||
14075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
14076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14077 | if (!SWIG_IsOK(res1)) { | |
14078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14079 | } | |
14080 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14081 | { | |
14082 | arg2 = &temp2; | |
14083 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14084 | } | |
14085 | { | |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
14088 | wxPyEndAllowThreads(__tstate); | |
14089 | if (PyErr_Occurred()) SWIG_fail; | |
14090 | } | |
14091 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14092 | return resultobj; | |
14093 | fail: | |
14094 | return NULL; | |
d14a1e28 RD |
14095 | } |
14096 | ||
14097 | ||
0085ce49 RD |
14098 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14099 | PyObject *resultobj = 0; | |
14100 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14101 | void *argp1 = 0 ; | |
14102 | int res1 = 0 ; | |
14103 | PyObject *swig_obj[1] ; | |
14104 | ||
14105 | if (!args) SWIG_fail; | |
14106 | swig_obj[0] = args; | |
14107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14108 | if (!SWIG_IsOK(res1)) { | |
14109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14110 | } | |
14111 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14112 | { | |
14113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14114 | (arg1)->RefreshAll(); | |
14115 | wxPyEndAllowThreads(__tstate); | |
14116 | if (PyErr_Occurred()) SWIG_fail; | |
14117 | } | |
14118 | resultobj = SWIG_Py_Void(); | |
14119 | return resultobj; | |
14120 | fail: | |
14121 | return NULL; | |
b2dc1044 RD |
14122 | } |
14123 | ||
14124 | ||
0085ce49 RD |
14125 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14126 | PyObject *resultobj = 0; | |
14127 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14128 | size_t result; | |
14129 | void *argp1 = 0 ; | |
14130 | int res1 = 0 ; | |
14131 | PyObject *swig_obj[1] ; | |
14132 | ||
14133 | if (!args) SWIG_fail; | |
14134 | swig_obj[0] = args; | |
14135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14136 | if (!SWIG_IsOK(res1)) { | |
14137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14138 | } | |
14139 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14140 | { | |
14141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14142 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
14143 | wxPyEndAllowThreads(__tstate); | |
14144 | if (PyErr_Occurred()) SWIG_fail; | |
14145 | } | |
14146 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
b2dc1044 RD |
14150 | } |
14151 | ||
14152 | ||
0085ce49 RD |
14153 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14154 | PyObject *resultobj = 0; | |
14155 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14156 | size_t result; | |
14157 | void *argp1 = 0 ; | |
14158 | int res1 = 0 ; | |
14159 | PyObject *swig_obj[1] ; | |
14160 | ||
14161 | if (!args) SWIG_fail; | |
14162 | swig_obj[0] = args; | |
14163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14164 | if (!SWIG_IsOK(res1)) { | |
14165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14166 | } | |
14167 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
14171 | wxPyEndAllowThreads(__tstate); | |
14172 | if (PyErr_Occurred()) SWIG_fail; | |
14173 | } | |
14174 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14175 | return resultobj; | |
14176 | fail: | |
14177 | return NULL; | |
b2dc1044 RD |
14178 | } |
14179 | ||
14180 | ||
0085ce49 RD |
14181 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14182 | PyObject *resultobj = 0; | |
14183 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14184 | size_t result; | |
14185 | void *argp1 = 0 ; | |
14186 | int res1 = 0 ; | |
14187 | PyObject *swig_obj[1] ; | |
14188 | ||
14189 | if (!args) SWIG_fail; | |
14190 | swig_obj[0] = args; | |
14191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14192 | if (!SWIG_IsOK(res1)) { | |
14193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14194 | } | |
14195 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14196 | { | |
14197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14198 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
14199 | wxPyEndAllowThreads(__tstate); | |
14200 | if (PyErr_Occurred()) SWIG_fail; | |
14201 | } | |
14202 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14203 | return resultobj; | |
14204 | fail: | |
14205 | return NULL; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14210 | PyObject *resultobj = 0; | |
14211 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14212 | size_t arg2 ; | |
14213 | bool result; | |
14214 | void *argp1 = 0 ; | |
14215 | int res1 = 0 ; | |
14216 | size_t val2 ; | |
14217 | int ecode2 = 0 ; | |
14218 | PyObject * obj0 = 0 ; | |
14219 | PyObject * obj1 = 0 ; | |
14220 | char * kwnames[] = { | |
14221 | (char *) "self",(char *) "line", NULL | |
14222 | }; | |
14223 | ||
14224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
14225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14226 | if (!SWIG_IsOK(res1)) { | |
14227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14228 | } | |
14229 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14230 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14231 | if (!SWIG_IsOK(ecode2)) { | |
14232 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
14233 | } | |
14234 | arg2 = static_cast< size_t >(val2); | |
14235 | { | |
14236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14237 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
14238 | wxPyEndAllowThreads(__tstate); | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
14240 | } | |
14241 | { | |
14242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14243 | } | |
14244 | return resultobj; | |
14245 | fail: | |
14246 | return NULL; | |
d14a1e28 RD |
14247 | } |
14248 | ||
14249 | ||
0085ce49 RD |
14250 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14251 | PyObject *resultobj = 0; | |
14252 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14253 | size_t result; | |
14254 | void *argp1 = 0 ; | |
14255 | int res1 = 0 ; | |
14256 | PyObject *swig_obj[1] ; | |
14257 | ||
14258 | if (!args) SWIG_fail; | |
14259 | swig_obj[0] = args; | |
14260 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14261 | if (!SWIG_IsOK(res1)) { | |
14262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14263 | } | |
14264 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14265 | { | |
14266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14267 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
14268 | wxPyEndAllowThreads(__tstate); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | } | |
14271 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14272 | return resultobj; | |
14273 | fail: | |
14274 | return NULL; | |
d14a1e28 RD |
14275 | } |
14276 | ||
14277 | ||
0085ce49 RD |
14278 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14279 | PyObject *resultobj = 0; | |
14280 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14281 | size_t result; | |
14282 | void *argp1 = 0 ; | |
14283 | int res1 = 0 ; | |
14284 | PyObject *swig_obj[1] ; | |
14285 | ||
14286 | if (!args) SWIG_fail; | |
14287 | swig_obj[0] = args; | |
14288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14289 | if (!SWIG_IsOK(res1)) { | |
14290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14291 | } | |
14292 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14293 | { | |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14296 | wxPyEndAllowThreads(__tstate); | |
14297 | if (PyErr_Occurred()) SWIG_fail; | |
14298 | } | |
14299 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14300 | return resultobj; | |
14301 | fail: | |
14302 | return NULL; | |
14303 | } | |
14304 | ||
14305 | ||
14306 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14307 | PyObject *resultobj = 0; | |
14308 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14309 | size_t arg2 ; | |
14310 | bool arg3 = (bool) false ; | |
14311 | size_t result; | |
14312 | void *argp1 = 0 ; | |
14313 | int res1 = 0 ; | |
14314 | size_t val2 ; | |
14315 | int ecode2 = 0 ; | |
14316 | bool val3 ; | |
14317 | int ecode3 = 0 ; | |
14318 | PyObject * obj0 = 0 ; | |
14319 | PyObject * obj1 = 0 ; | |
14320 | PyObject * obj2 = 0 ; | |
14321 | char * kwnames[] = { | |
14322 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14323 | }; | |
14324 | ||
14325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14327 | if (!SWIG_IsOK(res1)) { | |
14328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14329 | } | |
14330 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14331 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14332 | if (!SWIG_IsOK(ecode2)) { | |
14333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14334 | } | |
14335 | arg2 = static_cast< size_t >(val2); | |
14336 | if (obj2) { | |
14337 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14338 | if (!SWIG_IsOK(ecode3)) { | |
14339 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14340 | } | |
14341 | arg3 = static_cast< bool >(val3); | |
14342 | } | |
14343 | { | |
14344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14345 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
14349 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14350 | return resultobj; | |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
14356 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14357 | PyObject *resultobj = 0; | |
14358 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14359 | size_t arg2 ; | |
14360 | size_t arg3 ; | |
14361 | int result; | |
14362 | void *argp1 = 0 ; | |
14363 | int res1 = 0 ; | |
14364 | size_t val2 ; | |
14365 | int ecode2 = 0 ; | |
14366 | size_t val3 ; | |
14367 | int ecode3 = 0 ; | |
14368 | PyObject * obj0 = 0 ; | |
14369 | PyObject * obj1 = 0 ; | |
14370 | PyObject * obj2 = 0 ; | |
14371 | char * kwnames[] = { | |
14372 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14373 | }; | |
14374 | ||
14375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14377 | if (!SWIG_IsOK(res1)) { | |
14378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14379 | } | |
14380 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14381 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14382 | if (!SWIG_IsOK(ecode2)) { | |
14383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14384 | } | |
14385 | arg2 = static_cast< size_t >(val2); | |
14386 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14387 | if (!SWIG_IsOK(ecode3)) { | |
14388 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14389 | } | |
14390 | arg3 = static_cast< size_t >(val3); | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14394 | wxPyEndAllowThreads(__tstate); | |
14395 | if (PyErr_Occurred()) SWIG_fail; | |
14396 | } | |
14397 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14398 | return resultobj; | |
14399 | fail: | |
14400 | return NULL; | |
d14a1e28 RD |
14401 | } |
14402 | ||
14403 | ||
0085ce49 RD |
14404 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14405 | PyObject *obj; | |
14406 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14407 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14408 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14409 | } |
14410 | ||
0085ce49 RD |
14411 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14412 | return SWIG_Python_InitShadowInstance(args); | |
14413 | } | |
d14a1e28 | 14414 | |
0085ce49 RD |
14415 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14416 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14417 | return 1; | |
d14a1e28 RD |
14418 | } |
14419 | ||
14420 | ||
0085ce49 RD |
14421 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14422 | PyObject *pyobj = 0; | |
14423 | ||
14424 | { | |
14425 | #if wxUSE_UNICODE | |
14426 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14427 | #else | |
14428 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
14429 | #endif | |
14430 | } | |
14431 | return pyobj; | |
14432 | } | |
14433 | ||
14434 | ||
14435 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14436 | PyObject *resultobj = 0; | |
14437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14438 | int arg2 = (int) wxID_ANY ; | |
14439 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14440 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14441 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14442 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14443 | long arg5 = (long) 0 ; | |
14444 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14445 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14446 | wxPyVListBox *result = 0 ; | |
14447 | void *argp1 = 0 ; | |
14448 | int res1 = 0 ; | |
14449 | int val2 ; | |
14450 | int ecode2 = 0 ; | |
14451 | wxPoint temp3 ; | |
14452 | wxSize temp4 ; | |
14453 | long val5 ; | |
14454 | int ecode5 = 0 ; | |
14455 | bool temp6 = false ; | |
14456 | PyObject * obj0 = 0 ; | |
14457 | PyObject * obj1 = 0 ; | |
14458 | PyObject * obj2 = 0 ; | |
14459 | PyObject * obj3 = 0 ; | |
14460 | PyObject * obj4 = 0 ; | |
14461 | PyObject * obj5 = 0 ; | |
14462 | char * kwnames[] = { | |
14463 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14464 | }; | |
14465 | ||
14466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14468 | if (!SWIG_IsOK(res1)) { | |
14469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14470 | } | |
14471 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14472 | if (obj1) { | |
14473 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14474 | if (!SWIG_IsOK(ecode2)) { | |
14475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14476 | } | |
14477 | arg2 = static_cast< int >(val2); | |
14478 | } | |
14479 | if (obj2) { | |
093d3ff1 | 14480 | { |
0085ce49 RD |
14481 | arg3 = &temp3; |
14482 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 14483 | } |
0085ce49 RD |
14484 | } |
14485 | if (obj3) { | |
093d3ff1 | 14486 | { |
0085ce49 RD |
14487 | arg4 = &temp4; |
14488 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14489 | } |
0085ce49 RD |
14490 | } |
14491 | if (obj4) { | |
14492 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14493 | if (!SWIG_IsOK(ecode5)) { | |
14494 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14495 | } | |
14496 | arg5 = static_cast< long >(val5); | |
14497 | } | |
14498 | if (obj5) { | |
d14a1e28 | 14499 | { |
0085ce49 RD |
14500 | arg6 = wxString_in_helper(obj5); |
14501 | if (arg6 == NULL) SWIG_fail; | |
14502 | temp6 = true; | |
14503 | } | |
14504 | } | |
14505 | { | |
14506 | if (!wxPyCheckForApp()) SWIG_fail; | |
14507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14508 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14509 | wxPyEndAllowThreads(__tstate); | |
14510 | if (PyErr_Occurred()) SWIG_fail; | |
14511 | } | |
14512 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14513 | { | |
14514 | if (temp6) | |
14515 | delete arg6; | |
14516 | } | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | { | |
14520 | if (temp6) | |
14521 | delete arg6; | |
14522 | } | |
14523 | return NULL; | |
d14a1e28 RD |
14524 | } |
14525 | ||
14526 | ||
0085ce49 RD |
14527 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14528 | PyObject *resultobj = 0; | |
14529 | wxPyVListBox *result = 0 ; | |
14530 | ||
14531 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14532 | { | |
14533 | if (!wxPyCheckForApp()) SWIG_fail; | |
14534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14535 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj = 0; | |
14548 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14549 | PyObject *arg2 = (PyObject *) 0 ; | |
14550 | PyObject *arg3 = (PyObject *) 0 ; | |
14551 | void *argp1 = 0 ; | |
14552 | int res1 = 0 ; | |
14553 | PyObject * obj0 = 0 ; | |
14554 | PyObject * obj1 = 0 ; | |
14555 | PyObject * obj2 = 0 ; | |
14556 | char * kwnames[] = { | |
14557 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14558 | }; | |
14559 | ||
14560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14562 | if (!SWIG_IsOK(res1)) { | |
14563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14564 | } | |
14565 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14566 | arg2 = obj1; | |
14567 | arg3 = obj2; | |
14568 | { | |
14569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14570 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14571 | wxPyEndAllowThreads(__tstate); | |
14572 | if (PyErr_Occurred()) SWIG_fail; | |
14573 | } | |
14574 | resultobj = SWIG_Py_Void(); | |
14575 | return resultobj; | |
14576 | fail: | |
14577 | return NULL; | |
14578 | } | |
14579 | ||
14580 | ||
14581 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14582 | PyObject *resultobj = 0; | |
14583 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14584 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14585 | int arg3 = (int) wxID_ANY ; | |
14586 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14587 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14588 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14589 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14590 | long arg6 = (long) 0 ; | |
14591 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14592 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14593 | bool result; | |
14594 | void *argp1 = 0 ; | |
14595 | int res1 = 0 ; | |
14596 | void *argp2 = 0 ; | |
14597 | int res2 = 0 ; | |
14598 | int val3 ; | |
14599 | int ecode3 = 0 ; | |
14600 | wxPoint temp4 ; | |
14601 | wxSize temp5 ; | |
14602 | long val6 ; | |
14603 | int ecode6 = 0 ; | |
14604 | bool temp7 = false ; | |
14605 | PyObject * obj0 = 0 ; | |
14606 | PyObject * obj1 = 0 ; | |
14607 | PyObject * obj2 = 0 ; | |
14608 | PyObject * obj3 = 0 ; | |
14609 | PyObject * obj4 = 0 ; | |
14610 | PyObject * obj5 = 0 ; | |
14611 | PyObject * obj6 = 0 ; | |
14612 | char * kwnames[] = { | |
14613 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14614 | }; | |
14615 | ||
14616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14618 | if (!SWIG_IsOK(res1)) { | |
14619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14620 | } | |
14621 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14623 | if (!SWIG_IsOK(res2)) { | |
14624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14625 | } | |
14626 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14627 | if (obj2) { | |
14628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14629 | if (!SWIG_IsOK(ecode3)) { | |
14630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14631 | } | |
14632 | arg3 = static_cast< int >(val3); | |
14633 | } | |
14634 | if (obj3) { | |
093d3ff1 | 14635 | { |
0085ce49 RD |
14636 | arg4 = &temp4; |
14637 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 14638 | } |
0085ce49 RD |
14639 | } |
14640 | if (obj4) { | |
d14a1e28 | 14641 | { |
0085ce49 RD |
14642 | arg5 = &temp5; |
14643 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 14644 | } |
0085ce49 RD |
14645 | } |
14646 | if (obj5) { | |
14647 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14648 | if (!SWIG_IsOK(ecode6)) { | |
14649 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14650 | } | |
14651 | arg6 = static_cast< long >(val6); | |
14652 | } | |
14653 | if (obj6) { | |
4f89f6a3 | 14654 | { |
0085ce49 RD |
14655 | arg7 = wxString_in_helper(obj6); |
14656 | if (arg7 == NULL) SWIG_fail; | |
14657 | temp7 = true; | |
4f89f6a3 | 14658 | } |
0085ce49 RD |
14659 | } |
14660 | { | |
14661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14662 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | { | |
14667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14668 | } | |
14669 | { | |
14670 | if (temp7) | |
14671 | delete arg7; | |
14672 | } | |
14673 | return resultobj; | |
14674 | fail: | |
14675 | { | |
14676 | if (temp7) | |
14677 | delete arg7; | |
14678 | } | |
14679 | return NULL; | |
d14a1e28 RD |
14680 | } |
14681 | ||
14682 | ||
0085ce49 RD |
14683 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14684 | PyObject *resultobj = 0; | |
14685 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14686 | size_t result; | |
14687 | void *argp1 = 0 ; | |
14688 | int res1 = 0 ; | |
14689 | PyObject *swig_obj[1] ; | |
14690 | ||
14691 | if (!args) SWIG_fail; | |
14692 | swig_obj[0] = args; | |
14693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14694 | if (!SWIG_IsOK(res1)) { | |
14695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14696 | } | |
14697 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14698 | { | |
14699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14700 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14701 | wxPyEndAllowThreads(__tstate); | |
14702 | if (PyErr_Occurred()) SWIG_fail; | |
14703 | } | |
14704 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | return NULL; | |
d14a1e28 RD |
14708 | } |
14709 | ||
14710 | ||
0085ce49 RD |
14711 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14712 | PyObject *resultobj = 0; | |
14713 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14714 | bool result; | |
14715 | void *argp1 = 0 ; | |
14716 | int res1 = 0 ; | |
14717 | PyObject *swig_obj[1] ; | |
14718 | ||
14719 | if (!args) SWIG_fail; | |
14720 | swig_obj[0] = args; | |
14721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14722 | if (!SWIG_IsOK(res1)) { | |
14723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14724 | } | |
14725 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14726 | { | |
14727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14728 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14729 | wxPyEndAllowThreads(__tstate); | |
14730 | if (PyErr_Occurred()) SWIG_fail; | |
14731 | } | |
14732 | { | |
14733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14734 | } | |
14735 | return resultobj; | |
14736 | fail: | |
14737 | return NULL; | |
d14a1e28 RD |
14738 | } |
14739 | ||
14740 | ||
0085ce49 RD |
14741 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14742 | PyObject *resultobj = 0; | |
14743 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14744 | int result; | |
14745 | void *argp1 = 0 ; | |
14746 | int res1 = 0 ; | |
14747 | PyObject *swig_obj[1] ; | |
14748 | ||
14749 | if (!args) SWIG_fail; | |
14750 | swig_obj[0] = args; | |
14751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14752 | if (!SWIG_IsOK(res1)) { | |
14753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14754 | } | |
14755 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14756 | { | |
14757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14758 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14759 | wxPyEndAllowThreads(__tstate); | |
14760 | if (PyErr_Occurred()) SWIG_fail; | |
14761 | } | |
14762 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14763 | return resultobj; | |
14764 | fail: | |
14765 | return NULL; | |
14766 | } | |
14767 | ||
14768 | ||
14769 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14770 | PyObject *resultobj = 0; | |
14771 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14772 | size_t arg2 ; | |
14773 | bool result; | |
14774 | void *argp1 = 0 ; | |
14775 | int res1 = 0 ; | |
14776 | size_t val2 ; | |
14777 | int ecode2 = 0 ; | |
14778 | PyObject * obj0 = 0 ; | |
14779 | PyObject * obj1 = 0 ; | |
14780 | char * kwnames[] = { | |
14781 | (char *) "self",(char *) "item", NULL | |
14782 | }; | |
14783 | ||
14784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14786 | if (!SWIG_IsOK(res1)) { | |
14787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14788 | } | |
14789 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14790 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14791 | if (!SWIG_IsOK(ecode2)) { | |
14792 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14793 | } | |
14794 | arg2 = static_cast< size_t >(val2); | |
14795 | { | |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14797 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
14801 | { | |
14802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14803 | } | |
14804 | return resultobj; | |
14805 | fail: | |
14806 | return NULL; | |
14807 | } | |
14808 | ||
14809 | ||
14810 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14811 | PyObject *resultobj = 0; | |
14812 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14813 | size_t arg2 ; | |
14814 | bool result; | |
14815 | void *argp1 = 0 ; | |
14816 | int res1 = 0 ; | |
14817 | size_t val2 ; | |
14818 | int ecode2 = 0 ; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | PyObject * obj1 = 0 ; | |
14821 | char * kwnames[] = { | |
14822 | (char *) "self",(char *) "item", NULL | |
14823 | }; | |
14824 | ||
14825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14827 | if (!SWIG_IsOK(res1)) { | |
14828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14829 | } | |
14830 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14831 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14832 | if (!SWIG_IsOK(ecode2)) { | |
14833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14834 | } | |
14835 | arg2 = static_cast< size_t >(val2); | |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14839 | wxPyEndAllowThreads(__tstate); | |
14840 | if (PyErr_Occurred()) SWIG_fail; | |
14841 | } | |
14842 | { | |
14843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14844 | } | |
14845 | return resultobj; | |
14846 | fail: | |
14847 | return NULL; | |
d14a1e28 RD |
14848 | } |
14849 | ||
14850 | ||
0085ce49 RD |
14851 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14852 | PyObject *resultobj = 0; | |
14853 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14854 | size_t result; | |
14855 | void *argp1 = 0 ; | |
14856 | int res1 = 0 ; | |
14857 | PyObject *swig_obj[1] ; | |
14858 | ||
14859 | if (!args) SWIG_fail; | |
14860 | swig_obj[0] = args; | |
14861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14862 | if (!SWIG_IsOK(res1)) { | |
14863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14864 | } | |
14865 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14866 | { | |
14867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14868 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14869 | wxPyEndAllowThreads(__tstate); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14873 | return resultobj; | |
14874 | fail: | |
14875 | return NULL; | |
d14a1e28 RD |
14876 | } |
14877 | ||
14878 | ||
0085ce49 RD |
14879 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14880 | PyObject *resultobj = 0; | |
14881 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14882 | PyObject *result = 0 ; | |
14883 | void *argp1 = 0 ; | |
14884 | int res1 = 0 ; | |
14885 | PyObject *swig_obj[1] ; | |
14886 | ||
14887 | if (!args) SWIG_fail; | |
14888 | swig_obj[0] = args; | |
14889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14890 | if (!SWIG_IsOK(res1)) { | |
14891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14892 | } | |
14893 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14897 | wxPyEndAllowThreads(__tstate); | |
14898 | if (PyErr_Occurred()) SWIG_fail; | |
14899 | } | |
14900 | resultobj = result; | |
14901 | return resultobj; | |
14902 | fail: | |
14903 | return NULL; | |
14904 | } | |
14905 | ||
14906 | ||
14907 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14908 | PyObject *resultobj = 0; | |
14909 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14910 | unsigned long arg2 ; | |
14911 | PyObject *result = 0 ; | |
14912 | void *argp1 = 0 ; | |
14913 | int res1 = 0 ; | |
14914 | unsigned long val2 ; | |
14915 | int ecode2 = 0 ; | |
14916 | PyObject * obj0 = 0 ; | |
14917 | PyObject * obj1 = 0 ; | |
14918 | char * kwnames[] = { | |
14919 | (char *) "self",(char *) "cookie", NULL | |
14920 | }; | |
14921 | ||
14922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14924 | if (!SWIG_IsOK(res1)) { | |
14925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14926 | } | |
14927 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14928 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14929 | if (!SWIG_IsOK(ecode2)) { | |
14930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14931 | } | |
14932 | arg2 = static_cast< unsigned long >(val2); | |
14933 | { | |
14934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14935 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14936 | wxPyEndAllowThreads(__tstate); | |
14937 | if (PyErr_Occurred()) SWIG_fail; | |
14938 | } | |
14939 | resultobj = result; | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
d14a1e28 RD |
14943 | } |
14944 | ||
14945 | ||
0085ce49 RD |
14946 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14947 | PyObject *resultobj = 0; | |
14948 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14949 | wxPoint result; | |
14950 | void *argp1 = 0 ; | |
14951 | int res1 = 0 ; | |
14952 | PyObject *swig_obj[1] ; | |
14953 | ||
14954 | if (!args) SWIG_fail; | |
14955 | swig_obj[0] = args; | |
14956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14957 | if (!SWIG_IsOK(res1)) { | |
14958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14959 | } | |
14960 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14961 | { | |
14962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14963 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14964 | wxPyEndAllowThreads(__tstate); | |
14965 | if (PyErr_Occurred()) SWIG_fail; | |
14966 | } | |
14967 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | return NULL; | |
d14a1e28 RD |
14971 | } |
14972 | ||
14973 | ||
0085ce49 RD |
14974 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14975 | PyObject *resultobj = 0; | |
14976 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14977 | wxColour *result = 0 ; | |
14978 | void *argp1 = 0 ; | |
14979 | int res1 = 0 ; | |
14980 | PyObject *swig_obj[1] ; | |
14981 | ||
14982 | if (!args) SWIG_fail; | |
14983 | swig_obj[0] = args; | |
14984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14985 | if (!SWIG_IsOK(res1)) { | |
14986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14987 | } | |
14988 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14991 | { |
0085ce49 RD |
14992 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
14993 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 14994 | } |
0085ce49 RD |
14995 | wxPyEndAllowThreads(__tstate); |
14996 | if (PyErr_Occurred()) SWIG_fail; | |
14997 | } | |
14998 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj = 0; | |
15007 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15008 | size_t arg2 ; | |
15009 | void *argp1 = 0 ; | |
15010 | int res1 = 0 ; | |
15011 | size_t val2 ; | |
15012 | int ecode2 = 0 ; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | PyObject * obj1 = 0 ; | |
15015 | char * kwnames[] = { | |
15016 | (char *) "self",(char *) "count", NULL | |
15017 | }; | |
15018 | ||
15019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15021 | if (!SWIG_IsOK(res1)) { | |
15022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15023 | } | |
15024 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15025 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15026 | if (!SWIG_IsOK(ecode2)) { | |
15027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15028 | } | |
15029 | arg2 = static_cast< size_t >(val2); | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | (arg1)->SetItemCount(arg2); | |
15033 | wxPyEndAllowThreads(__tstate); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | resultobj = SWIG_Py_Void(); | |
15037 | return resultobj; | |
15038 | fail: | |
15039 | return NULL; | |
d14a1e28 RD |
15040 | } |
15041 | ||
15042 | ||
0085ce49 RD |
15043 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15044 | PyObject *resultobj = 0; | |
15045 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15046 | void *argp1 = 0 ; | |
15047 | int res1 = 0 ; | |
15048 | PyObject *swig_obj[1] ; | |
15049 | ||
15050 | if (!args) SWIG_fail; | |
15051 | swig_obj[0] = args; | |
15052 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15053 | if (!SWIG_IsOK(res1)) { | |
15054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15055 | } | |
15056 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15057 | { | |
15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15059 | (arg1)->Clear(); | |
15060 | wxPyEndAllowThreads(__tstate); | |
15061 | if (PyErr_Occurred()) SWIG_fail; | |
15062 | } | |
15063 | resultobj = SWIG_Py_Void(); | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
15070 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15071 | PyObject *resultobj = 0; | |
15072 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15073 | int arg2 ; | |
15074 | void *argp1 = 0 ; | |
15075 | int res1 = 0 ; | |
15076 | int val2 ; | |
15077 | int ecode2 = 0 ; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | PyObject * obj1 = 0 ; | |
15080 | char * kwnames[] = { | |
15081 | (char *) "self",(char *) "selection", NULL | |
15082 | }; | |
15083 | ||
15084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
15085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15086 | if (!SWIG_IsOK(res1)) { | |
15087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15088 | } | |
15089 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15090 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15091 | if (!SWIG_IsOK(ecode2)) { | |
15092 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
15093 | } | |
15094 | arg2 = static_cast< int >(val2); | |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | (arg1)->SetSelection(arg2); | |
15098 | wxPyEndAllowThreads(__tstate); | |
15099 | if (PyErr_Occurred()) SWIG_fail; | |
15100 | } | |
15101 | resultobj = SWIG_Py_Void(); | |
15102 | return resultobj; | |
15103 | fail: | |
15104 | return NULL; | |
15105 | } | |
15106 | ||
15107 | ||
15108 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15109 | PyObject *resultobj = 0; | |
15110 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15111 | size_t arg2 ; | |
15112 | bool arg3 = (bool) true ; | |
15113 | bool result; | |
15114 | void *argp1 = 0 ; | |
15115 | int res1 = 0 ; | |
15116 | size_t val2 ; | |
15117 | int ecode2 = 0 ; | |
15118 | bool val3 ; | |
15119 | int ecode3 = 0 ; | |
15120 | PyObject * obj0 = 0 ; | |
15121 | PyObject * obj1 = 0 ; | |
15122 | PyObject * obj2 = 0 ; | |
15123 | char * kwnames[] = { | |
15124 | (char *) "self",(char *) "item",(char *) "select", NULL | |
15125 | }; | |
15126 | ||
15127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15129 | if (!SWIG_IsOK(res1)) { | |
15130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15131 | } | |
15132 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15133 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15134 | if (!SWIG_IsOK(ecode2)) { | |
15135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
15136 | } | |
15137 | arg2 = static_cast< size_t >(val2); | |
15138 | if (obj2) { | |
15139 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15140 | if (!SWIG_IsOK(ecode3)) { | |
15141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
15142 | } | |
15143 | arg3 = static_cast< bool >(val3); | |
15144 | } | |
15145 | { | |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15147 | result = (bool)(arg1)->Select(arg2,arg3); | |
15148 | wxPyEndAllowThreads(__tstate); | |
15149 | if (PyErr_Occurred()) SWIG_fail; | |
15150 | } | |
15151 | { | |
15152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15153 | } | |
15154 | return resultobj; | |
15155 | fail: | |
15156 | return NULL; | |
15157 | } | |
15158 | ||
15159 | ||
15160 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15161 | PyObject *resultobj = 0; | |
15162 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15163 | size_t arg2 ; | |
15164 | size_t arg3 ; | |
15165 | bool result; | |
15166 | void *argp1 = 0 ; | |
15167 | int res1 = 0 ; | |
15168 | size_t val2 ; | |
15169 | int ecode2 = 0 ; | |
15170 | size_t val3 ; | |
15171 | int ecode3 = 0 ; | |
15172 | PyObject * obj0 = 0 ; | |
15173 | PyObject * obj1 = 0 ; | |
15174 | PyObject * obj2 = 0 ; | |
15175 | char * kwnames[] = { | |
2131d850 | 15176 | (char *) "self",(char *) "from",(char *) "to", NULL |
0085ce49 RD |
15177 | }; |
15178 | ||
15179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15181 | if (!SWIG_IsOK(res1)) { | |
15182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15183 | } | |
15184 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15185 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15186 | if (!SWIG_IsOK(ecode2)) { | |
15187 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
15188 | } | |
15189 | arg2 = static_cast< size_t >(val2); | |
15190 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
15191 | if (!SWIG_IsOK(ecode3)) { | |
15192 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
15193 | } | |
15194 | arg3 = static_cast< size_t >(val3); | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
15198 | wxPyEndAllowThreads(__tstate); | |
15199 | if (PyErr_Occurred()) SWIG_fail; | |
15200 | } | |
15201 | { | |
15202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15203 | } | |
15204 | return resultobj; | |
15205 | fail: | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15211 | PyObject *resultobj = 0; | |
15212 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15213 | size_t arg2 ; | |
15214 | void *argp1 = 0 ; | |
15215 | int res1 = 0 ; | |
15216 | size_t val2 ; | |
15217 | int ecode2 = 0 ; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | PyObject * obj1 = 0 ; | |
15220 | char * kwnames[] = { | |
15221 | (char *) "self",(char *) "item", NULL | |
15222 | }; | |
15223 | ||
15224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15226 | if (!SWIG_IsOK(res1)) { | |
15227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15228 | } | |
15229 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15230 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15231 | if (!SWIG_IsOK(ecode2)) { | |
15232 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
15233 | } | |
15234 | arg2 = static_cast< size_t >(val2); | |
15235 | { | |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15237 | (arg1)->Toggle(arg2); | |
15238 | wxPyEndAllowThreads(__tstate); | |
15239 | if (PyErr_Occurred()) SWIG_fail; | |
15240 | } | |
15241 | resultobj = SWIG_Py_Void(); | |
15242 | return resultobj; | |
15243 | fail: | |
15244 | return NULL; | |
d14a1e28 RD |
15245 | } |
15246 | ||
15247 | ||
0085ce49 RD |
15248 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15249 | PyObject *resultobj = 0; | |
15250 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15251 | bool result; | |
15252 | void *argp1 = 0 ; | |
15253 | int res1 = 0 ; | |
15254 | PyObject *swig_obj[1] ; | |
15255 | ||
15256 | if (!args) SWIG_fail; | |
15257 | swig_obj[0] = args; | |
15258 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15259 | if (!SWIG_IsOK(res1)) { | |
15260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15261 | } | |
15262 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15263 | { | |
15264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15265 | result = (bool)(arg1)->SelectAll(); | |
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15269 | { | |
15270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15271 | } | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
d14a1e28 RD |
15275 | } |
15276 | ||
15277 | ||
0085ce49 RD |
15278 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15279 | PyObject *resultobj = 0; | |
15280 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15281 | bool result; | |
15282 | void *argp1 = 0 ; | |
15283 | int res1 = 0 ; | |
15284 | PyObject *swig_obj[1] ; | |
15285 | ||
15286 | if (!args) SWIG_fail; | |
15287 | swig_obj[0] = args; | |
15288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15289 | if (!SWIG_IsOK(res1)) { | |
15290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15291 | } | |
15292 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15293 | { | |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | result = (bool)(arg1)->DeselectAll(); | |
15296 | wxPyEndAllowThreads(__tstate); | |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
15298 | } | |
15299 | { | |
15300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15301 | } | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | return NULL; | |
15305 | } | |
15306 | ||
15307 | ||
15308 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15309 | PyObject *resultobj = 0; | |
15310 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15311 | wxPoint *arg2 = 0 ; | |
15312 | void *argp1 = 0 ; | |
15313 | int res1 = 0 ; | |
15314 | wxPoint temp2 ; | |
15315 | PyObject * obj0 = 0 ; | |
15316 | PyObject * obj1 = 0 ; | |
15317 | char * kwnames[] = { | |
15318 | (char *) "self",(char *) "pt", NULL | |
15319 | }; | |
15320 | ||
15321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15323 | if (!SWIG_IsOK(res1)) { | |
15324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15325 | } | |
15326 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15327 | { | |
15328 | arg2 = &temp2; | |
15329 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15330 | } | |
15331 | { | |
15332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15333 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15334 | wxPyEndAllowThreads(__tstate); | |
15335 | if (PyErr_Occurred()) SWIG_fail; | |
15336 | } | |
15337 | resultobj = SWIG_Py_Void(); | |
15338 | return resultobj; | |
15339 | fail: | |
15340 | return NULL; | |
15341 | } | |
15342 | ||
15343 | ||
15344 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15345 | PyObject *resultobj = 0; | |
15346 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15347 | int arg2 ; | |
15348 | int arg3 ; | |
15349 | void *argp1 = 0 ; | |
15350 | int res1 = 0 ; | |
15351 | int val2 ; | |
15352 | int ecode2 = 0 ; | |
15353 | int val3 ; | |
15354 | int ecode3 = 0 ; | |
15355 | PyObject * obj0 = 0 ; | |
15356 | PyObject * obj1 = 0 ; | |
15357 | PyObject * obj2 = 0 ; | |
15358 | char * kwnames[] = { | |
15359 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15360 | }; | |
15361 | ||
15362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15364 | if (!SWIG_IsOK(res1)) { | |
15365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15366 | } | |
15367 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15368 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15369 | if (!SWIG_IsOK(ecode2)) { | |
15370 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15371 | } | |
15372 | arg2 = static_cast< int >(val2); | |
15373 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15374 | if (!SWIG_IsOK(ecode3)) { | |
15375 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15376 | } | |
15377 | arg3 = static_cast< int >(val3); | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | (arg1)->SetMargins(arg2,arg3); | |
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_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15392 | PyObject *resultobj = 0; | |
15393 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15394 | wxColour *arg2 = 0 ; | |
15395 | void *argp1 = 0 ; | |
15396 | int res1 = 0 ; | |
15397 | wxColour temp2 ; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | PyObject * obj1 = 0 ; | |
15400 | char * kwnames[] = { | |
15401 | (char *) "self",(char *) "col", NULL | |
15402 | }; | |
15403 | ||
15404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15406 | if (!SWIG_IsOK(res1)) { | |
15407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15408 | } | |
15409 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15410 | { | |
15411 | arg2 = &temp2; | |
15412 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15413 | } | |
15414 | { | |
15415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15416 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | resultobj = SWIG_Py_Void(); | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
75219dcb RD |
15427 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15428 | PyObject *resultobj = 0; | |
15429 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15430 | wxDC *arg2 = 0 ; | |
15431 | wxRect *arg3 = 0 ; | |
15432 | size_t arg4 ; | |
15433 | void *argp1 = 0 ; | |
15434 | int res1 = 0 ; | |
15435 | void *argp2 = 0 ; | |
15436 | int res2 = 0 ; | |
15437 | wxRect temp3 ; | |
15438 | size_t val4 ; | |
15439 | int ecode4 = 0 ; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | PyObject * obj1 = 0 ; | |
15442 | PyObject * obj2 = 0 ; | |
15443 | PyObject * obj3 = 0 ; | |
15444 | char * kwnames[] = { | |
15445 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15446 | }; | |
15447 | ||
15448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15450 | if (!SWIG_IsOK(res1)) { | |
15451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15452 | } | |
15453 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15454 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15455 | if (!SWIG_IsOK(res2)) { | |
15456 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15457 | } | |
15458 | if (!argp2) { | |
15459 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15460 | } | |
15461 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15462 | { | |
15463 | arg3 = &temp3; | |
15464 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15465 | } | |
15466 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15467 | if (!SWIG_IsOK(ecode4)) { | |
15468 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15469 | } | |
15470 | arg4 = static_cast< size_t >(val4); | |
15471 | { | |
15472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15473 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15474 | wxPyEndAllowThreads(__tstate); | |
15475 | if (PyErr_Occurred()) SWIG_fail; | |
15476 | } | |
15477 | resultobj = SWIG_Py_Void(); | |
15478 | return resultobj; | |
15479 | fail: | |
15480 | return NULL; | |
15481 | } | |
15482 | ||
15483 | ||
15484 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15485 | PyObject *resultobj = 0; | |
15486 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15487 | wxDC *arg2 = 0 ; | |
15488 | wxRect *arg3 = 0 ; | |
15489 | size_t arg4 ; | |
15490 | void *argp1 = 0 ; | |
15491 | int res1 = 0 ; | |
15492 | void *argp2 = 0 ; | |
15493 | int res2 = 0 ; | |
15494 | wxRect temp3 ; | |
15495 | size_t val4 ; | |
15496 | int ecode4 = 0 ; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | PyObject * obj1 = 0 ; | |
15499 | PyObject * obj2 = 0 ; | |
15500 | PyObject * obj3 = 0 ; | |
15501 | char * kwnames[] = { | |
15502 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15503 | }; | |
15504 | ||
15505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15507 | if (!SWIG_IsOK(res1)) { | |
15508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15509 | } | |
15510 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15511 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15512 | if (!SWIG_IsOK(res2)) { | |
15513 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15514 | } | |
15515 | if (!argp2) { | |
15516 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15517 | } | |
15518 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15519 | { | |
15520 | arg3 = &temp3; | |
15521 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15522 | } | |
15523 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15524 | if (!SWIG_IsOK(ecode4)) { | |
15525 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15526 | } | |
15527 | arg4 = static_cast< size_t >(val4); | |
15528 | { | |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | resultobj = SWIG_Py_Void(); | |
15535 | return resultobj; | |
15536 | fail: | |
15537 | return NULL; | |
15538 | } | |
15539 | ||
15540 | ||
0085ce49 RD |
15541 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15542 | PyObject *obj; | |
15543 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15544 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15545 | return SWIG_Py_Void(); | |
15546 | } | |
15547 | ||
15548 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15549 | return SWIG_Python_InitShadowInstance(args); | |
15550 | } | |
15551 | ||
15552 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15553 | PyObject *resultobj = 0; | |
15554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15555 | int arg2 = (int) wxID_ANY ; | |
15556 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15557 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15558 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15559 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15560 | long arg5 = (long) 0 ; | |
15561 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15562 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15563 | wxPyHtmlListBox *result = 0 ; | |
15564 | void *argp1 = 0 ; | |
15565 | int res1 = 0 ; | |
15566 | int val2 ; | |
15567 | int ecode2 = 0 ; | |
15568 | wxPoint temp3 ; | |
15569 | wxSize temp4 ; | |
15570 | long val5 ; | |
15571 | int ecode5 = 0 ; | |
15572 | bool temp6 = false ; | |
15573 | PyObject * obj0 = 0 ; | |
15574 | PyObject * obj1 = 0 ; | |
15575 | PyObject * obj2 = 0 ; | |
15576 | PyObject * obj3 = 0 ; | |
15577 | PyObject * obj4 = 0 ; | |
15578 | PyObject * obj5 = 0 ; | |
15579 | char * kwnames[] = { | |
15580 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15581 | }; | |
15582 | ||
15583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15585 | if (!SWIG_IsOK(res1)) { | |
15586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15587 | } | |
15588 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15589 | if (obj1) { | |
15590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15591 | if (!SWIG_IsOK(ecode2)) { | |
15592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15593 | } | |
15594 | arg2 = static_cast< int >(val2); | |
15595 | } | |
15596 | if (obj2) { | |
093d3ff1 | 15597 | { |
0085ce49 RD |
15598 | arg3 = &temp3; |
15599 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 15600 | } |
0085ce49 RD |
15601 | } |
15602 | if (obj3) { | |
d14a1e28 | 15603 | { |
0085ce49 RD |
15604 | arg4 = &temp4; |
15605 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15606 | } |
0085ce49 RD |
15607 | } |
15608 | if (obj4) { | |
15609 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15610 | if (!SWIG_IsOK(ecode5)) { | |
15611 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15612 | } | |
15613 | arg5 = static_cast< long >(val5); | |
15614 | } | |
15615 | if (obj5) { | |
d14a1e28 | 15616 | { |
0085ce49 RD |
15617 | arg6 = wxString_in_helper(obj5); |
15618 | if (arg6 == NULL) SWIG_fail; | |
15619 | temp6 = true; | |
15620 | } | |
15621 | } | |
15622 | { | |
15623 | if (!wxPyCheckForApp()) SWIG_fail; | |
15624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15625 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15626 | wxPyEndAllowThreads(__tstate); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
15628 | } | |
15629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15630 | { | |
15631 | if (temp6) | |
15632 | delete arg6; | |
15633 | } | |
15634 | return resultobj; | |
15635 | fail: | |
15636 | { | |
15637 | if (temp6) | |
15638 | delete arg6; | |
15639 | } | |
15640 | return NULL; | |
d14a1e28 RD |
15641 | } |
15642 | ||
15643 | ||
0085ce49 RD |
15644 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15645 | PyObject *resultobj = 0; | |
15646 | wxPyHtmlListBox *result = 0 ; | |
15647 | ||
15648 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15649 | { | |
15650 | if (!wxPyCheckForApp()) SWIG_fail; | |
15651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15652 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15653 | wxPyEndAllowThreads(__tstate); | |
15654 | if (PyErr_Occurred()) SWIG_fail; | |
15655 | } | |
15656 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
15663 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15664 | PyObject *resultobj = 0; | |
15665 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15666 | PyObject *arg2 = (PyObject *) 0 ; | |
15667 | PyObject *arg3 = (PyObject *) 0 ; | |
15668 | void *argp1 = 0 ; | |
15669 | int res1 = 0 ; | |
15670 | PyObject * obj0 = 0 ; | |
15671 | PyObject * obj1 = 0 ; | |
15672 | PyObject * obj2 = 0 ; | |
15673 | char * kwnames[] = { | |
15674 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15675 | }; | |
15676 | ||
15677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15679 | if (!SWIG_IsOK(res1)) { | |
15680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15681 | } | |
15682 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15683 | arg2 = obj1; | |
15684 | arg3 = obj2; | |
15685 | { | |
15686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15687 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15688 | wxPyEndAllowThreads(__tstate); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | resultobj = SWIG_Py_Void(); | |
15692 | return resultobj; | |
15693 | fail: | |
15694 | return NULL; | |
15695 | } | |
15696 | ||
15697 | ||
15698 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15699 | PyObject *resultobj = 0; | |
15700 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15701 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15702 | int arg3 = (int) wxID_ANY ; | |
15703 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15704 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15705 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15706 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15707 | long arg6 = (long) 0 ; | |
15708 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15709 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15710 | bool result; | |
15711 | void *argp1 = 0 ; | |
15712 | int res1 = 0 ; | |
15713 | void *argp2 = 0 ; | |
15714 | int res2 = 0 ; | |
15715 | int val3 ; | |
15716 | int ecode3 = 0 ; | |
15717 | wxPoint temp4 ; | |
15718 | wxSize temp5 ; | |
15719 | long val6 ; | |
15720 | int ecode6 = 0 ; | |
15721 | bool temp7 = false ; | |
15722 | PyObject * obj0 = 0 ; | |
15723 | PyObject * obj1 = 0 ; | |
15724 | PyObject * obj2 = 0 ; | |
15725 | PyObject * obj3 = 0 ; | |
15726 | PyObject * obj4 = 0 ; | |
15727 | PyObject * obj5 = 0 ; | |
15728 | PyObject * obj6 = 0 ; | |
15729 | char * kwnames[] = { | |
15730 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15731 | }; | |
15732 | ||
15733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15735 | if (!SWIG_IsOK(res1)) { | |
15736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15737 | } | |
15738 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15739 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15740 | if (!SWIG_IsOK(res2)) { | |
15741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15742 | } | |
15743 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15744 | if (obj2) { | |
15745 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15746 | if (!SWIG_IsOK(ecode3)) { | |
15747 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15748 | } | |
15749 | arg3 = static_cast< int >(val3); | |
15750 | } | |
15751 | if (obj3) { | |
093d3ff1 | 15752 | { |
0085ce49 RD |
15753 | arg4 = &temp4; |
15754 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15755 | } |
0085ce49 RD |
15756 | } |
15757 | if (obj4) { | |
d14a1e28 | 15758 | { |
0085ce49 RD |
15759 | arg5 = &temp5; |
15760 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 15761 | } |
0085ce49 RD |
15762 | } |
15763 | if (obj5) { | |
15764 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15765 | if (!SWIG_IsOK(ecode6)) { | |
15766 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15767 | } | |
15768 | arg6 = static_cast< long >(val6); | |
15769 | } | |
15770 | if (obj6) { | |
093d3ff1 | 15771 | { |
0085ce49 RD |
15772 | arg7 = wxString_in_helper(obj6); |
15773 | if (arg7 == NULL) SWIG_fail; | |
15774 | temp7 = true; | |
093d3ff1 | 15775 | } |
0085ce49 RD |
15776 | } |
15777 | { | |
15778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15779 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15780 | wxPyEndAllowThreads(__tstate); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | } | |
15783 | { | |
15784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15785 | } | |
15786 | { | |
15787 | if (temp7) | |
15788 | delete arg7; | |
15789 | } | |
15790 | return resultobj; | |
15791 | fail: | |
15792 | { | |
15793 | if (temp7) | |
15794 | delete arg7; | |
15795 | } | |
15796 | return NULL; | |
15797 | } | |
15798 | ||
15799 | ||
15800 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15801 | PyObject *resultobj = 0; | |
15802 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15803 | size_t arg2 ; | |
15804 | void *argp1 = 0 ; | |
15805 | int res1 = 0 ; | |
15806 | size_t val2 ; | |
15807 | int ecode2 = 0 ; | |
15808 | PyObject * obj0 = 0 ; | |
15809 | PyObject * obj1 = 0 ; | |
15810 | char * kwnames[] = { | |
15811 | (char *) "self",(char *) "count", NULL | |
15812 | }; | |
15813 | ||
15814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15816 | if (!SWIG_IsOK(res1)) { | |
15817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15818 | } | |
15819 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15820 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15821 | if (!SWIG_IsOK(ecode2)) { | |
15822 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15823 | } | |
15824 | arg2 = static_cast< size_t >(val2); | |
15825 | { | |
15826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15827 | (arg1)->SetItemCount(arg2); | |
15828 | wxPyEndAllowThreads(__tstate); | |
15829 | if (PyErr_Occurred()) SWIG_fail; | |
15830 | } | |
15831 | resultobj = SWIG_Py_Void(); | |
15832 | return resultobj; | |
15833 | fail: | |
15834 | return NULL; | |
d14a1e28 RD |
15835 | } |
15836 | ||
15837 | ||
0085ce49 RD |
15838 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15839 | PyObject *resultobj = 0; | |
15840 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15841 | wxFileSystem *result = 0 ; | |
15842 | void *argp1 = 0 ; | |
15843 | int res1 = 0 ; | |
15844 | PyObject *swig_obj[1] ; | |
15845 | ||
15846 | if (!args) SWIG_fail; | |
15847 | swig_obj[0] = args; | |
15848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15849 | if (!SWIG_IsOK(res1)) { | |
15850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15851 | } | |
15852 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15855 | { |
0085ce49 RD |
15856 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15857 | result = (wxFileSystem *) &_result_ref; | |
994141e6 | 15858 | } |
0085ce49 RD |
15859 | wxPyEndAllowThreads(__tstate); |
15860 | if (PyErr_Occurred()) SWIG_fail; | |
15861 | } | |
15862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15863 | return resultobj; | |
15864 | fail: | |
15865 | return NULL; | |
d14a1e28 RD |
15866 | } |
15867 | ||
15868 | ||
e9d6f3a4 RD |
15869 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15870 | PyObject *resultobj = 0; | |
15871 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15872 | size_t arg2 ; | |
15873 | wxHtmlLinkInfo *arg3 = 0 ; | |
15874 | void *argp1 = 0 ; | |
15875 | int res1 = 0 ; | |
15876 | size_t val2 ; | |
15877 | int ecode2 = 0 ; | |
15878 | void *argp3 = 0 ; | |
15879 | int res3 = 0 ; | |
15880 | PyObject * obj0 = 0 ; | |
15881 | PyObject * obj1 = 0 ; | |
15882 | PyObject * obj2 = 0 ; | |
15883 | char * kwnames[] = { | |
15884 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15885 | }; | |
15886 | ||
15887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15889 | if (!SWIG_IsOK(res1)) { | |
15890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15891 | } | |
15892 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15893 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15894 | if (!SWIG_IsOK(ecode2)) { | |
15895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15896 | } | |
15897 | arg2 = static_cast< size_t >(val2); | |
15898 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15899 | if (!SWIG_IsOK(res3)) { | |
15900 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15901 | } | |
15902 | if (!argp3) { | |
15903 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15904 | } | |
15905 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15906 | { | |
15907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15908 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15909 | wxPyEndAllowThreads(__tstate); | |
15910 | if (PyErr_Occurred()) SWIG_fail; | |
15911 | } | |
15912 | resultobj = SWIG_Py_Void(); | |
15913 | return resultobj; | |
15914 | fail: | |
15915 | return NULL; | |
15916 | } | |
15917 | ||
15918 | ||
0085ce49 RD |
15919 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15920 | PyObject *obj; | |
15921 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15922 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15923 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15924 | } |
15925 | ||
0085ce49 RD |
15926 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15927 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15928 | } |
15929 | ||
0085ce49 RD |
15930 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15931 | PyObject *resultobj = 0; | |
15932 | wxPyTaskBarIcon *result = 0 ; | |
15933 | ||
15934 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15935 | { | |
15936 | if (!wxPyCheckForApp()) SWIG_fail; | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15939 | wxPyEndAllowThreads(__tstate); | |
15940 | if (PyErr_Occurred()) SWIG_fail; | |
15941 | } | |
15942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15943 | return resultobj; | |
15944 | fail: | |
15945 | return NULL; | |
d14a1e28 RD |
15946 | } |
15947 | ||
15948 | ||
0085ce49 RD |
15949 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15950 | PyObject *resultobj = 0; | |
15951 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15952 | void *argp1 = 0 ; | |
15953 | int res1 = 0 ; | |
15954 | PyObject *swig_obj[1] ; | |
15955 | ||
15956 | if (!args) SWIG_fail; | |
15957 | swig_obj[0] = args; | |
15958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
15959 | if (!SWIG_IsOK(res1)) { | |
15960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15961 | } | |
15962 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15963 | { | |
15964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15965 | delete arg1; | |
15966 | ||
15967 | wxPyEndAllowThreads(__tstate); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | } | |
15970 | resultobj = SWIG_Py_Void(); | |
15971 | return resultobj; | |
15972 | fail: | |
15973 | return NULL; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15978 | PyObject *resultobj = 0; | |
15979 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15980 | PyObject *arg2 = (PyObject *) 0 ; | |
15981 | PyObject *arg3 = (PyObject *) 0 ; | |
15982 | int arg4 ; | |
15983 | void *argp1 = 0 ; | |
15984 | int res1 = 0 ; | |
15985 | int val4 ; | |
15986 | int ecode4 = 0 ; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | PyObject * obj1 = 0 ; | |
15989 | PyObject * obj2 = 0 ; | |
15990 | PyObject * obj3 = 0 ; | |
15991 | char * kwnames[] = { | |
15992 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15993 | }; | |
15994 | ||
15995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15997 | if (!SWIG_IsOK(res1)) { | |
15998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15999 | } | |
16000 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16001 | arg2 = obj1; | |
16002 | arg3 = obj2; | |
16003 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16004 | if (!SWIG_IsOK(ecode4)) { | |
16005 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
16006 | } | |
16007 | arg4 = static_cast< int >(val4); | |
16008 | { | |
16009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16010 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16011 | wxPyEndAllowThreads(__tstate); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
16013 | } | |
16014 | resultobj = SWIG_Py_Void(); | |
16015 | return resultobj; | |
16016 | fail: | |
16017 | return NULL; | |
d14a1e28 RD |
16018 | } |
16019 | ||
16020 | ||
0085ce49 RD |
16021 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16022 | PyObject *resultobj = 0; | |
16023 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16024 | void *argp1 = 0 ; | |
16025 | int res1 = 0 ; | |
16026 | PyObject *swig_obj[1] ; | |
16027 | ||
16028 | if (!args) SWIG_fail; | |
16029 | swig_obj[0] = args; | |
16030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16031 | if (!SWIG_IsOK(res1)) { | |
16032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16033 | } | |
16034 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16035 | { | |
16036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16037 | wxPyTaskBarIcon_Destroy(arg1); | |
16038 | wxPyEndAllowThreads(__tstate); | |
16039 | if (PyErr_Occurred()) SWIG_fail; | |
16040 | } | |
16041 | resultobj = SWIG_Py_Void(); | |
16042 | return resultobj; | |
16043 | fail: | |
16044 | return NULL; | |
d14a1e28 RD |
16045 | } |
16046 | ||
16047 | ||
0085ce49 RD |
16048 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16049 | PyObject *resultobj = 0; | |
16050 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16051 | bool result; | |
16052 | void *argp1 = 0 ; | |
16053 | int res1 = 0 ; | |
16054 | PyObject *swig_obj[1] ; | |
16055 | ||
16056 | if (!args) SWIG_fail; | |
16057 | swig_obj[0] = args; | |
16058 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16059 | if (!SWIG_IsOK(res1)) { | |
16060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16061 | } | |
16062 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16063 | { | |
16064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16065 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
16066 | wxPyEndAllowThreads(__tstate); | |
16067 | if (PyErr_Occurred()) SWIG_fail; | |
16068 | } | |
16069 | { | |
16070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16071 | } | |
16072 | return resultobj; | |
16073 | fail: | |
16074 | return NULL; | |
d14a1e28 RD |
16075 | } |
16076 | ||
16077 | ||
0085ce49 RD |
16078 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16079 | PyObject *resultobj = 0; | |
16080 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16081 | bool result; | |
16082 | void *argp1 = 0 ; | |
16083 | int res1 = 0 ; | |
16084 | PyObject *swig_obj[1] ; | |
16085 | ||
16086 | if (!args) SWIG_fail; | |
16087 | swig_obj[0] = args; | |
16088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16089 | if (!SWIG_IsOK(res1)) { | |
16090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
16091 | } | |
16092 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | { | |
16100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16101 | } | |
16102 | return resultobj; | |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
16108 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16109 | PyObject *resultobj = 0; | |
16110 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16111 | wxIcon *arg2 = 0 ; | |
16112 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16113 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16114 | bool result; | |
16115 | void *argp1 = 0 ; | |
16116 | int res1 = 0 ; | |
16117 | void *argp2 = 0 ; | |
16118 | int res2 = 0 ; | |
16119 | bool temp3 = false ; | |
16120 | PyObject * obj0 = 0 ; | |
16121 | PyObject * obj1 = 0 ; | |
16122 | PyObject * obj2 = 0 ; | |
16123 | char * kwnames[] = { | |
16124 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
16125 | }; | |
16126 | ||
16127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16129 | if (!SWIG_IsOK(res1)) { | |
16130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16131 | } | |
16132 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16133 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
16134 | if (!SWIG_IsOK(res2)) { | |
16135 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16136 | } | |
16137 | if (!argp2) { | |
16138 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
16139 | } | |
16140 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
16141 | if (obj2) { | |
093d3ff1 | 16142 | { |
0085ce49 RD |
16143 | arg3 = wxString_in_helper(obj2); |
16144 | if (arg3 == NULL) SWIG_fail; | |
16145 | temp3 = true; | |
093d3ff1 | 16146 | } |
0085ce49 RD |
16147 | } |
16148 | { | |
16149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16150 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
16151 | wxPyEndAllowThreads(__tstate); | |
16152 | if (PyErr_Occurred()) SWIG_fail; | |
16153 | } | |
16154 | { | |
16155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16156 | } | |
16157 | { | |
16158 | if (temp3) | |
16159 | delete arg3; | |
16160 | } | |
16161 | return resultobj; | |
16162 | fail: | |
16163 | { | |
16164 | if (temp3) | |
16165 | delete arg3; | |
16166 | } | |
16167 | return NULL; | |
d14a1e28 RD |
16168 | } |
16169 | ||
16170 | ||
0085ce49 RD |
16171 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16172 | PyObject *resultobj = 0; | |
16173 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16174 | bool result; | |
16175 | void *argp1 = 0 ; | |
16176 | int res1 = 0 ; | |
16177 | PyObject *swig_obj[1] ; | |
16178 | ||
16179 | if (!args) SWIG_fail; | |
16180 | swig_obj[0] = args; | |
16181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16182 | if (!SWIG_IsOK(res1)) { | |
16183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16184 | } | |
16185 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16186 | { | |
16187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16188 | result = (bool)(arg1)->RemoveIcon(); | |
16189 | wxPyEndAllowThreads(__tstate); | |
16190 | if (PyErr_Occurred()) SWIG_fail; | |
16191 | } | |
16192 | { | |
16193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16194 | } | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16202 | PyObject *resultobj = 0; | |
16203 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16204 | wxMenu *arg2 = (wxMenu *) 0 ; | |
16205 | bool result; | |
16206 | void *argp1 = 0 ; | |
16207 | int res1 = 0 ; | |
16208 | void *argp2 = 0 ; | |
16209 | int res2 = 0 ; | |
16210 | PyObject * obj0 = 0 ; | |
16211 | PyObject * obj1 = 0 ; | |
16212 | char * kwnames[] = { | |
16213 | (char *) "self",(char *) "menu", NULL | |
16214 | }; | |
16215 | ||
16216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
16217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16218 | if (!SWIG_IsOK(res1)) { | |
16219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16220 | } | |
16221 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16222 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
16223 | if (!SWIG_IsOK(res2)) { | |
16224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
16225 | } | |
16226 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
16227 | { | |
16228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16229 | result = (bool)(arg1)->PopupMenu(arg2); | |
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | { | |
16234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16235 | } | |
16236 | return resultobj; | |
16237 | fail: | |
16238 | return NULL; | |
d14a1e28 RD |
16239 | } |
16240 | ||
16241 | ||
0085ce49 RD |
16242 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16243 | PyObject *obj; | |
16244 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16245 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
16246 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16247 | } |
16248 | ||
0085ce49 RD |
16249 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16250 | return SWIG_Python_InitShadowInstance(args); | |
16251 | } | |
d14a1e28 | 16252 | |
0085ce49 RD |
16253 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16254 | PyObject *resultobj = 0; | |
16255 | wxEventType arg1 ; | |
16256 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
16257 | wxTaskBarIconEvent *result = 0 ; | |
16258 | int val1 ; | |
16259 | int ecode1 = 0 ; | |
16260 | void *argp2 = 0 ; | |
16261 | int res2 = 0 ; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | char * kwnames[] = { | |
16265 | (char *) "evtType",(char *) "tbIcon", NULL | |
16266 | }; | |
16267 | ||
16268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
16269 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16270 | if (!SWIG_IsOK(ecode1)) { | |
16271 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
16272 | } | |
16273 | arg1 = static_cast< wxEventType >(val1); | |
16274 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
16275 | if (!SWIG_IsOK(res2)) { | |
16276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
16277 | } | |
16278 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
16279 | { | |
16280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16281 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
16282 | wxPyEndAllowThreads(__tstate); | |
16283 | if (PyErr_Occurred()) SWIG_fail; | |
16284 | } | |
16285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
16286 | return resultobj; | |
16287 | fail: | |
16288 | return NULL; | |
d14a1e28 RD |
16289 | } |
16290 | ||
16291 | ||
0085ce49 RD |
16292 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16293 | PyObject *obj; | |
16294 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16295 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
16296 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16297 | } |
16298 | ||
0085ce49 RD |
16299 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16300 | return SWIG_Python_InitShadowInstance(args); | |
16301 | } | |
d14a1e28 | 16302 | |
0085ce49 RD |
16303 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
16304 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
16305 | return 1; | |
d14a1e28 RD |
16306 | } |
16307 | ||
16308 | ||
0085ce49 RD |
16309 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
16310 | PyObject *pyobj = 0; | |
16311 | ||
16312 | { | |
16313 | #if wxUSE_UNICODE | |
16314 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16315 | #else | |
16316 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16317 | #endif | |
16318 | } | |
16319 | return pyobj; | |
d14a1e28 RD |
16320 | } |
16321 | ||
16322 | ||
0085ce49 RD |
16323 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
16324 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
16325 | return 1; | |
d14a1e28 RD |
16326 | } |
16327 | ||
16328 | ||
0085ce49 RD |
16329 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
16330 | PyObject *pyobj = 0; | |
16331 | ||
16332 | { | |
16333 | #if wxUSE_UNICODE | |
16334 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16335 | #else | |
16336 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16337 | #endif | |
16338 | } | |
16339 | return pyobj; | |
d14a1e28 RD |
16340 | } |
16341 | ||
16342 | ||
0085ce49 RD |
16343 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16344 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16345 | return 1; | |
d14a1e28 RD |
16346 | } |
16347 | ||
16348 | ||
0085ce49 RD |
16349 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16350 | PyObject *pyobj = 0; | |
16351 | ||
16352 | { | |
16353 | #if wxUSE_UNICODE | |
16354 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16355 | #else | |
16356 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16357 | #endif | |
16358 | } | |
16359 | return pyobj; | |
d14a1e28 RD |
16360 | } |
16361 | ||
16362 | ||
0085ce49 RD |
16363 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16364 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16365 | return 1; | |
d14a1e28 RD |
16366 | } |
16367 | ||
16368 | ||
0085ce49 RD |
16369 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16370 | PyObject *pyobj = 0; | |
16371 | ||
16372 | { | |
16373 | #if wxUSE_UNICODE | |
16374 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16375 | #else | |
16376 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16377 | #endif | |
16378 | } | |
16379 | return pyobj; | |
d14a1e28 RD |
16380 | } |
16381 | ||
16382 | ||
0085ce49 RD |
16383 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16384 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16385 | return 1; | |
d14a1e28 RD |
16386 | } |
16387 | ||
16388 | ||
0085ce49 RD |
16389 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16390 | PyObject *pyobj = 0; | |
16391 | ||
16392 | { | |
16393 | #if wxUSE_UNICODE | |
16394 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16395 | #else | |
16396 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16397 | #endif | |
16398 | } | |
16399 | return pyobj; | |
d14a1e28 RD |
16400 | } |
16401 | ||
16402 | ||
0085ce49 RD |
16403 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16404 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16405 | return 1; | |
d14a1e28 RD |
16406 | } |
16407 | ||
16408 | ||
0085ce49 RD |
16409 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16410 | PyObject *pyobj = 0; | |
16411 | ||
16412 | { | |
16413 | #if wxUSE_UNICODE | |
16414 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16415 | #else | |
16416 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16417 | #endif | |
16418 | } | |
16419 | return pyobj; | |
d14a1e28 RD |
16420 | } |
16421 | ||
16422 | ||
0085ce49 RD |
16423 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16424 | PyObject *resultobj = 0; | |
16425 | wxColourData *result = 0 ; | |
16426 | ||
16427 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16428 | { | |
16429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16430 | result = (wxColourData *)new wxColourData(); | |
16431 | wxPyEndAllowThreads(__tstate); | |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
16433 | } | |
16434 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16435 | return resultobj; | |
16436 | fail: | |
16437 | return NULL; | |
d14a1e28 RD |
16438 | } |
16439 | ||
16440 | ||
0085ce49 RD |
16441 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16442 | PyObject *resultobj = 0; | |
16443 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16444 | void *argp1 = 0 ; | |
16445 | int res1 = 0 ; | |
16446 | PyObject *swig_obj[1] ; | |
16447 | ||
16448 | if (!args) SWIG_fail; | |
16449 | swig_obj[0] = args; | |
16450 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16451 | if (!SWIG_IsOK(res1)) { | |
16452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16453 | } | |
16454 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16455 | { | |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16457 | delete arg1; | |
d14a1e28 | 16458 | |
0085ce49 RD |
16459 | wxPyEndAllowThreads(__tstate); |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | resultobj = SWIG_Py_Void(); | |
16463 | return resultobj; | |
16464 | fail: | |
16465 | return NULL; | |
d14a1e28 RD |
16466 | } |
16467 | ||
16468 | ||
0085ce49 RD |
16469 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16470 | PyObject *resultobj = 0; | |
16471 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16472 | bool result; | |
16473 | void *argp1 = 0 ; | |
16474 | int res1 = 0 ; | |
16475 | PyObject *swig_obj[1] ; | |
16476 | ||
16477 | if (!args) SWIG_fail; | |
16478 | swig_obj[0] = args; | |
16479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16480 | if (!SWIG_IsOK(res1)) { | |
16481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16482 | } | |
16483 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16484 | { | |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | result = (bool)(arg1)->GetChooseFull(); | |
16487 | wxPyEndAllowThreads(__tstate); | |
16488 | if (PyErr_Occurred()) SWIG_fail; | |
16489 | } | |
16490 | { | |
16491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16492 | } | |
16493 | return resultobj; | |
16494 | fail: | |
16495 | return NULL; | |
d14a1e28 RD |
16496 | } |
16497 | ||
16498 | ||
0085ce49 RD |
16499 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16500 | PyObject *resultobj = 0; | |
16501 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16502 | wxColour result; | |
16503 | void *argp1 = 0 ; | |
16504 | int res1 = 0 ; | |
16505 | PyObject *swig_obj[1] ; | |
16506 | ||
16507 | if (!args) SWIG_fail; | |
16508 | swig_obj[0] = args; | |
16509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16510 | if (!SWIG_IsOK(res1)) { | |
16511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16512 | } | |
16513 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16514 | { | |
16515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16516 | result = (arg1)->GetColour(); | |
16517 | wxPyEndAllowThreads(__tstate); | |
16518 | if (PyErr_Occurred()) SWIG_fail; | |
16519 | } | |
16520 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16521 | return resultobj; | |
16522 | fail: | |
16523 | return NULL; | |
16524 | } | |
16525 | ||
16526 | ||
16527 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16528 | PyObject *resultobj = 0; | |
16529 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16530 | int arg2 ; | |
16531 | wxColour result; | |
16532 | void *argp1 = 0 ; | |
16533 | int res1 = 0 ; | |
16534 | int val2 ; | |
16535 | int ecode2 = 0 ; | |
16536 | PyObject * obj0 = 0 ; | |
16537 | PyObject * obj1 = 0 ; | |
16538 | char * kwnames[] = { | |
16539 | (char *) "self",(char *) "i", NULL | |
16540 | }; | |
16541 | ||
16542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16544 | if (!SWIG_IsOK(res1)) { | |
16545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16546 | } | |
16547 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16548 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16549 | if (!SWIG_IsOK(ecode2)) { | |
16550 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16551 | } | |
16552 | arg2 = static_cast< int >(val2); | |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = (arg1)->GetCustomColour(arg2); | |
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16560 | return resultobj; | |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
16566 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16567 | PyObject *resultobj = 0; | |
16568 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16569 | int arg2 ; | |
16570 | void *argp1 = 0 ; | |
16571 | int res1 = 0 ; | |
16572 | int val2 ; | |
16573 | int ecode2 = 0 ; | |
16574 | PyObject * obj0 = 0 ; | |
16575 | PyObject * obj1 = 0 ; | |
16576 | char * kwnames[] = { | |
16577 | (char *) "self",(char *) "flag", NULL | |
16578 | }; | |
16579 | ||
16580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16582 | if (!SWIG_IsOK(res1)) { | |
16583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16584 | } | |
16585 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16586 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16587 | if (!SWIG_IsOK(ecode2)) { | |
16588 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16589 | } | |
16590 | arg2 = static_cast< int >(val2); | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | (arg1)->SetChooseFull(arg2); | |
16594 | wxPyEndAllowThreads(__tstate); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | resultobj = SWIG_Py_Void(); | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | return NULL; | |
16601 | } | |
16602 | ||
16603 | ||
16604 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16605 | PyObject *resultobj = 0; | |
16606 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16607 | wxColour *arg2 = 0 ; | |
16608 | void *argp1 = 0 ; | |
16609 | int res1 = 0 ; | |
16610 | wxColour temp2 ; | |
16611 | PyObject * obj0 = 0 ; | |
16612 | PyObject * obj1 = 0 ; | |
16613 | char * kwnames[] = { | |
16614 | (char *) "self",(char *) "colour", NULL | |
16615 | }; | |
16616 | ||
16617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16619 | if (!SWIG_IsOK(res1)) { | |
16620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16621 | } | |
16622 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16623 | { | |
16624 | arg2 = &temp2; | |
16625 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16626 | } | |
16627 | { | |
16628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16629 | (arg1)->SetColour((wxColour const &)*arg2); | |
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | resultobj = SWIG_Py_Void(); | |
16634 | return resultobj; | |
16635 | fail: | |
16636 | return NULL; | |
16637 | } | |
16638 | ||
16639 | ||
16640 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16641 | PyObject *resultobj = 0; | |
16642 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16643 | int arg2 ; | |
16644 | wxColour *arg3 = 0 ; | |
16645 | void *argp1 = 0 ; | |
16646 | int res1 = 0 ; | |
16647 | int val2 ; | |
16648 | int ecode2 = 0 ; | |
16649 | wxColour temp3 ; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | PyObject * obj1 = 0 ; | |
16652 | PyObject * obj2 = 0 ; | |
16653 | char * kwnames[] = { | |
16654 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16655 | }; | |
16656 | ||
16657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16659 | if (!SWIG_IsOK(res1)) { | |
16660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16661 | } | |
16662 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16663 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16664 | if (!SWIG_IsOK(ecode2)) { | |
16665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16666 | } | |
16667 | arg2 = static_cast< int >(val2); | |
16668 | { | |
16669 | arg3 = &temp3; | |
16670 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16671 | } | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | resultobj = SWIG_Py_Void(); | |
16679 | return resultobj; | |
16680 | fail: | |
16681 | return NULL; | |
d14a1e28 RD |
16682 | } |
16683 | ||
16684 | ||
0085ce49 RD |
16685 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16686 | PyObject *obj; | |
16687 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16688 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16689 | return SWIG_Py_Void(); | |
d14a1e28 RD |
16690 | } |
16691 | ||
0085ce49 RD |
16692 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16693 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
16694 | } |
16695 | ||
0085ce49 RD |
16696 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16697 | PyObject *resultobj = 0; | |
16698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16699 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16700 | wxColourDialog *result = 0 ; | |
16701 | void *argp1 = 0 ; | |
16702 | int res1 = 0 ; | |
16703 | void *argp2 = 0 ; | |
16704 | int res2 = 0 ; | |
16705 | PyObject * obj0 = 0 ; | |
16706 | PyObject * obj1 = 0 ; | |
16707 | char * kwnames[] = { | |
16708 | (char *) "parent",(char *) "data", NULL | |
16709 | }; | |
16710 | ||
16711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16713 | if (!SWIG_IsOK(res1)) { | |
16714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16715 | } | |
16716 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16717 | if (obj1) { | |
16718 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16719 | if (!SWIG_IsOK(res2)) { | |
16720 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
093d3ff1 | 16721 | } |
0085ce49 RD |
16722 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16723 | } | |
16724 | { | |
16725 | if (!wxPyCheckForApp()) SWIG_fail; | |
16726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16727 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16728 | wxPyEndAllowThreads(__tstate); | |
16729 | if (PyErr_Occurred()) SWIG_fail; | |
16730 | } | |
16731 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16732 | return resultobj; | |
16733 | fail: | |
16734 | return NULL; | |
d14a1e28 RD |
16735 | } |
16736 | ||
16737 | ||
0085ce49 RD |
16738 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16739 | PyObject *resultobj = 0; | |
16740 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16741 | wxColourData *result = 0 ; | |
16742 | void *argp1 = 0 ; | |
16743 | int res1 = 0 ; | |
16744 | PyObject *swig_obj[1] ; | |
16745 | ||
16746 | if (!args) SWIG_fail; | |
16747 | swig_obj[0] = args; | |
16748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16749 | if (!SWIG_IsOK(res1)) { | |
16750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16751 | } | |
16752 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16753 | { | |
16754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 16755 | { |
0085ce49 RD |
16756 | wxColourData &_result_ref = (arg1)->GetColourData(); |
16757 | result = (wxColourData *) &_result_ref; | |
d14a1e28 | 16758 | } |
0085ce49 RD |
16759 | wxPyEndAllowThreads(__tstate); |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16763 | return resultobj; | |
16764 | fail: | |
16765 | return NULL; | |
16766 | } | |
16767 | ||
16768 | ||
16769 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16770 | PyObject *obj; | |
16771 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16772 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16773 | return SWIG_Py_Void(); | |
16774 | } | |
16775 | ||
16776 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16777 | return SWIG_Python_InitShadowInstance(args); | |
16778 | } | |
16779 | ||
16780 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj = 0; | |
16782 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16783 | wxColour const &arg2_defvalue = wxNullColour ; | |
16784 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16785 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16786 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16787 | wxColour result; | |
16788 | void *argp1 = 0 ; | |
16789 | int res1 = 0 ; | |
16790 | wxColour temp2 ; | |
16791 | bool temp3 = false ; | |
16792 | PyObject * obj0 = 0 ; | |
16793 | PyObject * obj1 = 0 ; | |
16794 | PyObject * obj2 = 0 ; | |
16795 | char * kwnames[] = { | |
16796 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16797 | }; | |
16798 | ||
16799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16800 | if (obj0) { | |
16801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16802 | if (!SWIG_IsOK(res1)) { | |
16803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
093d3ff1 | 16804 | } |
0085ce49 RD |
16805 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16806 | } | |
16807 | if (obj1) { | |
d14a1e28 | 16808 | { |
0085ce49 RD |
16809 | arg2 = &temp2; |
16810 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16811 | } | |
16812 | } | |
16813 | if (obj2) { | |
d14a1e28 | 16814 | { |
0085ce49 RD |
16815 | arg3 = wxString_in_helper(obj2); |
16816 | if (arg3 == NULL) SWIG_fail; | |
16817 | temp3 = true; | |
d14a1e28 | 16818 | } |
0085ce49 RD |
16819 | } |
16820 | { | |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
16826 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16827 | { | |
16828 | if (temp3) | |
16829 | delete arg3; | |
16830 | } | |
16831 | return resultobj; | |
16832 | fail: | |
16833 | { | |
16834 | if (temp3) | |
16835 | delete arg3; | |
16836 | } | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16842 | PyObject *resultobj = 0; | |
16843 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16844 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16845 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16846 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16847 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
704eda0c | 16848 | long arg4 = (long) wxDD_DEFAULT_STYLE ; |
0085ce49 RD |
16849 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16850 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16851 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16852 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16853 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16854 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16855 | wxDirDialog *result = 0 ; | |
16856 | void *argp1 = 0 ; | |
16857 | int res1 = 0 ; | |
16858 | bool temp2 = false ; | |
16859 | bool temp3 = false ; | |
16860 | long val4 ; | |
16861 | int ecode4 = 0 ; | |
16862 | wxPoint temp5 ; | |
16863 | wxSize temp6 ; | |
16864 | bool temp7 = false ; | |
16865 | PyObject * obj0 = 0 ; | |
16866 | PyObject * obj1 = 0 ; | |
16867 | PyObject * obj2 = 0 ; | |
16868 | PyObject * obj3 = 0 ; | |
16869 | PyObject * obj4 = 0 ; | |
16870 | PyObject * obj5 = 0 ; | |
16871 | PyObject * obj6 = 0 ; | |
16872 | char * kwnames[] = { | |
16873 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16874 | }; | |
16875 | ||
16876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16878 | if (!SWIG_IsOK(res1)) { | |
16879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16880 | } | |
16881 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16882 | if (obj1) { | |
d14a1e28 | 16883 | { |
0085ce49 RD |
16884 | arg2 = wxString_in_helper(obj1); |
16885 | if (arg2 == NULL) SWIG_fail; | |
16886 | temp2 = true; | |
d14a1e28 | 16887 | } |
0085ce49 RD |
16888 | } |
16889 | if (obj2) { | |
4f89f6a3 | 16890 | { |
0085ce49 RD |
16891 | arg3 = wxString_in_helper(obj2); |
16892 | if (arg3 == NULL) SWIG_fail; | |
16893 | temp3 = true; | |
4f89f6a3 | 16894 | } |
0085ce49 RD |
16895 | } |
16896 | if (obj3) { | |
16897 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16898 | if (!SWIG_IsOK(ecode4)) { | |
16899 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16900 | } | |
16901 | arg4 = static_cast< long >(val4); | |
16902 | } | |
16903 | if (obj4) { | |
16904 | { | |
16905 | arg5 = &temp5; | |
16906 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 16907 | } |
0085ce49 RD |
16908 | } |
16909 | if (obj5) { | |
d14a1e28 | 16910 | { |
0085ce49 RD |
16911 | arg6 = &temp6; |
16912 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 16913 | } |
0085ce49 RD |
16914 | } |
16915 | if (obj6) { | |
4f89f6a3 | 16916 | { |
0085ce49 RD |
16917 | arg7 = wxString_in_helper(obj6); |
16918 | if (arg7 == NULL) SWIG_fail; | |
16919 | temp7 = true; | |
4f89f6a3 | 16920 | } |
0085ce49 RD |
16921 | } |
16922 | { | |
16923 | if (!wxPyCheckForApp()) SWIG_fail; | |
16924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16925 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16926 | wxPyEndAllowThreads(__tstate); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16930 | { | |
16931 | if (temp2) | |
16932 | delete arg2; | |
16933 | } | |
16934 | { | |
16935 | if (temp3) | |
16936 | delete arg3; | |
16937 | } | |
16938 | { | |
16939 | if (temp7) | |
16940 | delete arg7; | |
16941 | } | |
16942 | return resultobj; | |
16943 | fail: | |
16944 | { | |
16945 | if (temp2) | |
16946 | delete arg2; | |
16947 | } | |
16948 | { | |
16949 | if (temp3) | |
16950 | delete arg3; | |
16951 | } | |
16952 | { | |
16953 | if (temp7) | |
16954 | delete arg7; | |
16955 | } | |
16956 | return NULL; | |
d14a1e28 RD |
16957 | } |
16958 | ||
16959 | ||
01f6b6d3 | 16960 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16961 | PyObject *resultobj = 0; |
16962 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16963 | wxString result; | |
16964 | void *argp1 = 0 ; | |
16965 | int res1 = 0 ; | |
16966 | PyObject *swig_obj[1] ; | |
16967 | ||
16968 | if (!args) SWIG_fail; | |
16969 | swig_obj[0] = args; | |
16970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16971 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 16972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); |
0085ce49 RD |
16973 | } |
16974 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16975 | { | |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 16977 | result = (arg1)->GetPath(); |
0085ce49 RD |
16978 | wxPyEndAllowThreads(__tstate); |
16979 | if (PyErr_Occurred()) SWIG_fail; | |
16980 | } | |
16981 | { | |
16982 | #if wxUSE_UNICODE | |
16983 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16984 | #else | |
16985 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16986 | #endif | |
16987 | } | |
16988 | return resultobj; | |
16989 | fail: | |
16990 | return NULL; | |
d14a1e28 RD |
16991 | } |
16992 | ||
16993 | ||
01f6b6d3 | 16994 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16995 | PyObject *resultobj = 0; |
16996 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
01f6b6d3 | 16997 | wxString result; |
0085ce49 RD |
16998 | void *argp1 = 0 ; |
16999 | int res1 = 0 ; | |
17000 | PyObject *swig_obj[1] ; | |
17001 | ||
17002 | if (!args) SWIG_fail; | |
17003 | swig_obj[0] = args; | |
17004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17005 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 17006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); |
0085ce49 RD |
17007 | } |
17008 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17009 | { | |
17010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 17011 | result = (arg1)->GetMessage(); |
0085ce49 RD |
17012 | wxPyEndAllowThreads(__tstate); |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
17014 | } | |
01f6b6d3 RD |
17015 | { |
17016 | #if wxUSE_UNICODE | |
17017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17018 | #else | |
17019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17020 | #endif | |
17021 | } | |
0085ce49 RD |
17022 | return resultobj; |
17023 | fail: | |
17024 | return NULL; | |
17025 | } | |
17026 | ||
17027 | ||
17028 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17029 | PyObject *resultobj = 0; | |
17030 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17031 | wxString *arg2 = 0 ; | |
17032 | void *argp1 = 0 ; | |
17033 | int res1 = 0 ; | |
17034 | bool temp2 = false ; | |
17035 | PyObject * obj0 = 0 ; | |
17036 | PyObject * obj1 = 0 ; | |
17037 | char * kwnames[] = { | |
17038 | (char *) "self",(char *) "message", NULL | |
17039 | }; | |
17040 | ||
17041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17043 | if (!SWIG_IsOK(res1)) { | |
17044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17045 | } | |
17046 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17047 | { | |
17048 | arg2 = wxString_in_helper(obj1); | |
17049 | if (arg2 == NULL) SWIG_fail; | |
17050 | temp2 = true; | |
17051 | } | |
17052 | { | |
17053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17054 | (arg1)->SetMessage((wxString const &)*arg2); | |
17055 | wxPyEndAllowThreads(__tstate); | |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
17057 | } | |
17058 | resultobj = SWIG_Py_Void(); | |
17059 | { | |
17060 | if (temp2) | |
17061 | delete arg2; | |
17062 | } | |
17063 | return resultobj; | |
17064 | fail: | |
17065 | { | |
17066 | if (temp2) | |
17067 | delete arg2; | |
17068 | } | |
17069 | return NULL; | |
d14a1e28 RD |
17070 | } |
17071 | ||
17072 | ||
0085ce49 RD |
17073 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17074 | PyObject *resultobj = 0; | |
17075 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
17076 | wxString *arg2 = 0 ; | |
17077 | void *argp1 = 0 ; | |
17078 | int res1 = 0 ; | |
17079 | bool temp2 = false ; | |
17080 | PyObject * obj0 = 0 ; | |
17081 | PyObject * obj1 = 0 ; | |
17082 | char * kwnames[] = { | |
17083 | (char *) "self",(char *) "path", NULL | |
17084 | }; | |
17085 | ||
17086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
17088 | if (!SWIG_IsOK(res1)) { | |
17089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
17090 | } | |
17091 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
17092 | { | |
17093 | arg2 = wxString_in_helper(obj1); | |
17094 | if (arg2 == NULL) SWIG_fail; | |
17095 | temp2 = true; | |
17096 | } | |
17097 | { | |
17098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17099 | (arg1)->SetPath((wxString const &)*arg2); | |
17100 | wxPyEndAllowThreads(__tstate); | |
17101 | if (PyErr_Occurred()) SWIG_fail; | |
17102 | } | |
17103 | resultobj = SWIG_Py_Void(); | |
17104 | { | |
17105 | if (temp2) | |
17106 | delete arg2; | |
17107 | } | |
17108 | return resultobj; | |
17109 | fail: | |
17110 | { | |
17111 | if (temp2) | |
17112 | delete arg2; | |
17113 | } | |
17114 | return NULL; | |
17115 | } | |
17116 | ||
17117 | ||
17118 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17119 | PyObject *obj; | |
17120 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17121 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
17122 | return SWIG_Py_Void(); | |
17123 | } | |
17124 | ||
17125 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17126 | return SWIG_Python_InitShadowInstance(args); | |
17127 | } | |
17128 | ||
17129 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17130 | PyObject *resultobj = 0; | |
17131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17132 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
17133 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17134 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17135 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17136 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17137 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17138 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
17139 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
704eda0c | 17140 | long arg6 = (long) wxFD_DEFAULT_STYLE ; |
0085ce49 RD |
17141 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
17142 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17143 | wxFileDialog *result = 0 ; | |
17144 | void *argp1 = 0 ; | |
17145 | int res1 = 0 ; | |
17146 | bool temp2 = false ; | |
17147 | bool temp3 = false ; | |
17148 | bool temp4 = false ; | |
17149 | bool temp5 = false ; | |
17150 | long val6 ; | |
17151 | int ecode6 = 0 ; | |
17152 | wxPoint temp7 ; | |
17153 | PyObject * obj0 = 0 ; | |
17154 | PyObject * obj1 = 0 ; | |
17155 | PyObject * obj2 = 0 ; | |
17156 | PyObject * obj3 = 0 ; | |
17157 | PyObject * obj4 = 0 ; | |
17158 | PyObject * obj5 = 0 ; | |
17159 | PyObject * obj6 = 0 ; | |
17160 | char * kwnames[] = { | |
17161 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
17162 | }; | |
17163 | ||
17164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17166 | if (!SWIG_IsOK(res1)) { | |
17167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17168 | } | |
17169 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17170 | if (obj1) { | |
d14a1e28 | 17171 | { |
0085ce49 RD |
17172 | arg2 = wxString_in_helper(obj1); |
17173 | if (arg2 == NULL) SWIG_fail; | |
17174 | temp2 = true; | |
d14a1e28 | 17175 | } |
0085ce49 RD |
17176 | } |
17177 | if (obj2) { | |
4f89f6a3 | 17178 | { |
0085ce49 RD |
17179 | arg3 = wxString_in_helper(obj2); |
17180 | if (arg3 == NULL) SWIG_fail; | |
17181 | temp3 = true; | |
4f89f6a3 | 17182 | } |
0085ce49 RD |
17183 | } |
17184 | if (obj3) { | |
d14a1e28 | 17185 | { |
0085ce49 RD |
17186 | arg4 = wxString_in_helper(obj3); |
17187 | if (arg4 == NULL) SWIG_fail; | |
17188 | temp4 = true; | |
d14a1e28 | 17189 | } |
0085ce49 RD |
17190 | } |
17191 | if (obj4) { | |
d14a1e28 | 17192 | { |
0085ce49 RD |
17193 | arg5 = wxString_in_helper(obj4); |
17194 | if (arg5 == NULL) SWIG_fail; | |
17195 | temp5 = true; | |
d14a1e28 | 17196 | } |
0085ce49 RD |
17197 | } |
17198 | if (obj5) { | |
17199 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17200 | if (!SWIG_IsOK(ecode6)) { | |
17201 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
17202 | } | |
17203 | arg6 = static_cast< long >(val6); | |
17204 | } | |
17205 | if (obj6) { | |
d14a1e28 | 17206 | { |
0085ce49 RD |
17207 | arg7 = &temp7; |
17208 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
994141e6 | 17209 | } |
0085ce49 RD |
17210 | } |
17211 | { | |
17212 | if (!wxPyCheckForApp()) SWIG_fail; | |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
17215 | wxPyEndAllowThreads(__tstate); | |
17216 | if (PyErr_Occurred()) SWIG_fail; | |
17217 | } | |
17218 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
17219 | { | |
17220 | if (temp2) | |
17221 | delete arg2; | |
17222 | } | |
17223 | { | |
17224 | if (temp3) | |
17225 | delete arg3; | |
17226 | } | |
17227 | { | |
17228 | if (temp4) | |
17229 | delete arg4; | |
17230 | } | |
17231 | { | |
17232 | if (temp5) | |
17233 | delete arg5; | |
17234 | } | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | { | |
17238 | if (temp2) | |
17239 | delete arg2; | |
17240 | } | |
17241 | { | |
17242 | if (temp3) | |
17243 | delete arg3; | |
17244 | } | |
17245 | { | |
17246 | if (temp4) | |
17247 | delete arg4; | |
17248 | } | |
17249 | { | |
17250 | if (temp5) | |
17251 | delete arg5; | |
17252 | } | |
17253 | return NULL; | |
d14a1e28 RD |
17254 | } |
17255 | ||
17256 | ||
0085ce49 RD |
17257 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17258 | PyObject *resultobj = 0; | |
17259 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17260 | wxString *arg2 = 0 ; | |
17261 | void *argp1 = 0 ; | |
17262 | int res1 = 0 ; | |
17263 | bool temp2 = false ; | |
17264 | PyObject * obj0 = 0 ; | |
17265 | PyObject * obj1 = 0 ; | |
17266 | char * kwnames[] = { | |
17267 | (char *) "self",(char *) "message", NULL | |
17268 | }; | |
17269 | ||
17270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17272 | if (!SWIG_IsOK(res1)) { | |
17273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17274 | } | |
17275 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17276 | { | |
17277 | arg2 = wxString_in_helper(obj1); | |
17278 | if (arg2 == NULL) SWIG_fail; | |
17279 | temp2 = true; | |
17280 | } | |
17281 | { | |
17282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17283 | (arg1)->SetMessage((wxString const &)*arg2); | |
17284 | wxPyEndAllowThreads(__tstate); | |
17285 | if (PyErr_Occurred()) SWIG_fail; | |
17286 | } | |
17287 | resultobj = SWIG_Py_Void(); | |
17288 | { | |
17289 | if (temp2) | |
17290 | delete arg2; | |
17291 | } | |
17292 | return resultobj; | |
17293 | fail: | |
17294 | { | |
17295 | if (temp2) | |
17296 | delete arg2; | |
17297 | } | |
17298 | return NULL; | |
d14a1e28 RD |
17299 | } |
17300 | ||
17301 | ||
0085ce49 RD |
17302 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17303 | PyObject *resultobj = 0; | |
17304 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17305 | wxString *arg2 = 0 ; | |
17306 | void *argp1 = 0 ; | |
17307 | int res1 = 0 ; | |
17308 | bool temp2 = false ; | |
17309 | PyObject * obj0 = 0 ; | |
17310 | PyObject * obj1 = 0 ; | |
17311 | char * kwnames[] = { | |
17312 | (char *) "self",(char *) "path", NULL | |
17313 | }; | |
17314 | ||
17315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17317 | if (!SWIG_IsOK(res1)) { | |
17318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17319 | } | |
17320 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17321 | { | |
17322 | arg2 = wxString_in_helper(obj1); | |
17323 | if (arg2 == NULL) SWIG_fail; | |
17324 | temp2 = true; | |
17325 | } | |
17326 | { | |
17327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17328 | (arg1)->SetPath((wxString const &)*arg2); | |
17329 | wxPyEndAllowThreads(__tstate); | |
17330 | if (PyErr_Occurred()) SWIG_fail; | |
17331 | } | |
17332 | resultobj = SWIG_Py_Void(); | |
17333 | { | |
17334 | if (temp2) | |
17335 | delete arg2; | |
17336 | } | |
17337 | return resultobj; | |
17338 | fail: | |
17339 | { | |
17340 | if (temp2) | |
17341 | delete arg2; | |
17342 | } | |
17343 | return NULL; | |
d14a1e28 RD |
17344 | } |
17345 | ||
17346 | ||
0085ce49 RD |
17347 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17348 | PyObject *resultobj = 0; | |
17349 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17350 | wxString *arg2 = 0 ; | |
17351 | void *argp1 = 0 ; | |
17352 | int res1 = 0 ; | |
17353 | bool temp2 = false ; | |
17354 | PyObject * obj0 = 0 ; | |
17355 | PyObject * obj1 = 0 ; | |
17356 | char * kwnames[] = { | |
17357 | (char *) "self",(char *) "dir", NULL | |
17358 | }; | |
17359 | ||
17360 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17361 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17362 | if (!SWIG_IsOK(res1)) { | |
17363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17364 | } | |
17365 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17366 | { | |
17367 | arg2 = wxString_in_helper(obj1); | |
17368 | if (arg2 == NULL) SWIG_fail; | |
17369 | temp2 = true; | |
17370 | } | |
17371 | { | |
17372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17373 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
17377 | resultobj = SWIG_Py_Void(); | |
17378 | { | |
17379 | if (temp2) | |
17380 | delete arg2; | |
17381 | } | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | { | |
17385 | if (temp2) | |
17386 | delete arg2; | |
17387 | } | |
17388 | return NULL; | |
d14a1e28 RD |
17389 | } |
17390 | ||
17391 | ||
0085ce49 RD |
17392 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17393 | PyObject *resultobj = 0; | |
17394 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17395 | wxString *arg2 = 0 ; | |
17396 | void *argp1 = 0 ; | |
17397 | int res1 = 0 ; | |
17398 | bool temp2 = false ; | |
17399 | PyObject * obj0 = 0 ; | |
17400 | PyObject * obj1 = 0 ; | |
17401 | char * kwnames[] = { | |
17402 | (char *) "self",(char *) "name", NULL | |
17403 | }; | |
17404 | ||
17405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17407 | if (!SWIG_IsOK(res1)) { | |
17408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17409 | } | |
17410 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17411 | { | |
17412 | arg2 = wxString_in_helper(obj1); | |
17413 | if (arg2 == NULL) SWIG_fail; | |
17414 | temp2 = true; | |
17415 | } | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | (arg1)->SetFilename((wxString const &)*arg2); | |
17419 | wxPyEndAllowThreads(__tstate); | |
17420 | if (PyErr_Occurred()) SWIG_fail; | |
17421 | } | |
17422 | resultobj = SWIG_Py_Void(); | |
17423 | { | |
17424 | if (temp2) | |
17425 | delete arg2; | |
17426 | } | |
17427 | return resultobj; | |
17428 | fail: | |
17429 | { | |
17430 | if (temp2) | |
17431 | delete arg2; | |
17432 | } | |
17433 | return NULL; | |
d14a1e28 RD |
17434 | } |
17435 | ||
17436 | ||
0085ce49 RD |
17437 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17438 | PyObject *resultobj = 0; | |
17439 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17440 | wxString *arg2 = 0 ; | |
17441 | void *argp1 = 0 ; | |
17442 | int res1 = 0 ; | |
17443 | bool temp2 = false ; | |
17444 | PyObject * obj0 = 0 ; | |
17445 | PyObject * obj1 = 0 ; | |
17446 | char * kwnames[] = { | |
17447 | (char *) "self",(char *) "wildCard", NULL | |
17448 | }; | |
17449 | ||
17450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17452 | if (!SWIG_IsOK(res1)) { | |
17453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17454 | } | |
17455 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17456 | { | |
17457 | arg2 = wxString_in_helper(obj1); | |
17458 | if (arg2 == NULL) SWIG_fail; | |
17459 | temp2 = true; | |
17460 | } | |
17461 | { | |
17462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17463 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17464 | wxPyEndAllowThreads(__tstate); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
17466 | } | |
17467 | resultobj = SWIG_Py_Void(); | |
17468 | { | |
17469 | if (temp2) | |
17470 | delete arg2; | |
17471 | } | |
17472 | return resultobj; | |
17473 | fail: | |
17474 | { | |
17475 | if (temp2) | |
17476 | delete arg2; | |
17477 | } | |
17478 | return NULL; | |
17479 | } | |
17480 | ||
17481 | ||
0085ce49 RD |
17482 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17483 | PyObject *resultobj = 0; | |
17484 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17485 | int arg2 ; | |
17486 | void *argp1 = 0 ; | |
17487 | int res1 = 0 ; | |
17488 | int val2 ; | |
17489 | int ecode2 = 0 ; | |
17490 | PyObject * obj0 = 0 ; | |
17491 | PyObject * obj1 = 0 ; | |
17492 | char * kwnames[] = { | |
17493 | (char *) "self",(char *) "filterIndex", NULL | |
17494 | }; | |
17495 | ||
17496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17498 | if (!SWIG_IsOK(res1)) { | |
17499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17500 | } | |
17501 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17502 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17503 | if (!SWIG_IsOK(ecode2)) { | |
17504 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17505 | } | |
17506 | arg2 = static_cast< int >(val2); | |
17507 | { | |
17508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17509 | (arg1)->SetFilterIndex(arg2); | |
17510 | wxPyEndAllowThreads(__tstate); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
17513 | resultobj = SWIG_Py_Void(); | |
17514 | return resultobj; | |
17515 | fail: | |
17516 | return NULL; | |
d14a1e28 RD |
17517 | } |
17518 | ||
17519 | ||
0085ce49 RD |
17520 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17521 | PyObject *resultobj = 0; | |
17522 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17523 | wxString result; | |
17524 | void *argp1 = 0 ; | |
17525 | int res1 = 0 ; | |
17526 | PyObject *swig_obj[1] ; | |
17527 | ||
17528 | if (!args) SWIG_fail; | |
17529 | swig_obj[0] = args; | |
17530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17531 | if (!SWIG_IsOK(res1)) { | |
17532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17533 | } | |
17534 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17535 | { | |
17536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17537 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17538 | wxPyEndAllowThreads(__tstate); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | } | |
17541 | { | |
17542 | #if wxUSE_UNICODE | |
17543 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17544 | #else | |
17545 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17546 | #endif | |
17547 | } | |
17548 | return resultobj; | |
17549 | fail: | |
17550 | return NULL; | |
d14a1e28 RD |
17551 | } |
17552 | ||
17553 | ||
0085ce49 RD |
17554 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17555 | PyObject *resultobj = 0; | |
17556 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17557 | wxString result; | |
17558 | void *argp1 = 0 ; | |
17559 | int res1 = 0 ; | |
17560 | PyObject *swig_obj[1] ; | |
17561 | ||
17562 | if (!args) SWIG_fail; | |
17563 | swig_obj[0] = args; | |
17564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17565 | if (!SWIG_IsOK(res1)) { | |
17566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17567 | } | |
17568 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17569 | { | |
17570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17571 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | { | |
17576 | #if wxUSE_UNICODE | |
17577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17578 | #else | |
17579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17580 | #endif | |
17581 | } | |
17582 | return resultobj; | |
17583 | fail: | |
17584 | return NULL; | |
d14a1e28 RD |
17585 | } |
17586 | ||
17587 | ||
0085ce49 RD |
17588 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17589 | PyObject *resultobj = 0; | |
17590 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17591 | wxString result; | |
17592 | void *argp1 = 0 ; | |
17593 | int res1 = 0 ; | |
17594 | PyObject *swig_obj[1] ; | |
17595 | ||
17596 | if (!args) SWIG_fail; | |
17597 | swig_obj[0] = args; | |
17598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17599 | if (!SWIG_IsOK(res1)) { | |
17600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17601 | } | |
17602 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17603 | { | |
17604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17605 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17606 | wxPyEndAllowThreads(__tstate); | |
17607 | if (PyErr_Occurred()) SWIG_fail; | |
17608 | } | |
17609 | { | |
17610 | #if wxUSE_UNICODE | |
17611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17612 | #else | |
17613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17614 | #endif | |
17615 | } | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
d14a1e28 RD |
17619 | } |
17620 | ||
17621 | ||
0085ce49 RD |
17622 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17623 | PyObject *resultobj = 0; | |
17624 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17625 | wxString result; | |
17626 | void *argp1 = 0 ; | |
17627 | int res1 = 0 ; | |
17628 | PyObject *swig_obj[1] ; | |
17629 | ||
17630 | if (!args) SWIG_fail; | |
17631 | swig_obj[0] = args; | |
17632 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17633 | if (!SWIG_IsOK(res1)) { | |
17634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17635 | } | |
17636 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17637 | { | |
17638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17639 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17640 | wxPyEndAllowThreads(__tstate); | |
17641 | if (PyErr_Occurred()) SWIG_fail; | |
17642 | } | |
17643 | { | |
17644 | #if wxUSE_UNICODE | |
17645 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17646 | #else | |
17647 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17648 | #endif | |
17649 | } | |
17650 | return resultobj; | |
17651 | fail: | |
17652 | return NULL; | |
d14a1e28 RD |
17653 | } |
17654 | ||
17655 | ||
0085ce49 RD |
17656 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17657 | PyObject *resultobj = 0; | |
17658 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17659 | wxString result; | |
17660 | void *argp1 = 0 ; | |
17661 | int res1 = 0 ; | |
17662 | PyObject *swig_obj[1] ; | |
17663 | ||
17664 | if (!args) SWIG_fail; | |
17665 | swig_obj[0] = args; | |
17666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17667 | if (!SWIG_IsOK(res1)) { | |
17668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17669 | } | |
17670 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17671 | { | |
17672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17673 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | { | |
17678 | #if wxUSE_UNICODE | |
17679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17680 | #else | |
17681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17682 | #endif | |
17683 | } | |
17684 | return resultobj; | |
17685 | fail: | |
17686 | return NULL; | |
d14a1e28 RD |
17687 | } |
17688 | ||
17689 | ||
0085ce49 RD |
17690 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17691 | PyObject *resultobj = 0; | |
17692 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17693 | int result; | |
17694 | void *argp1 = 0 ; | |
17695 | int res1 = 0 ; | |
17696 | PyObject *swig_obj[1] ; | |
17697 | ||
17698 | if (!args) SWIG_fail; | |
17699 | swig_obj[0] = args; | |
17700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17701 | if (!SWIG_IsOK(res1)) { | |
17702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17703 | } | |
17704 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17708 | wxPyEndAllowThreads(__tstate); | |
17709 | if (PyErr_Occurred()) SWIG_fail; | |
17710 | } | |
17711 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17712 | return resultobj; | |
17713 | fail: | |
17714 | return NULL; | |
d14a1e28 RD |
17715 | } |
17716 | ||
17717 | ||
0085ce49 RD |
17718 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17719 | PyObject *resultobj = 0; | |
17720 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17721 | PyObject *result = 0 ; | |
17722 | void *argp1 = 0 ; | |
17723 | int res1 = 0 ; | |
17724 | PyObject *swig_obj[1] ; | |
17725 | ||
17726 | if (!args) SWIG_fail; | |
17727 | swig_obj[0] = args; | |
17728 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17729 | if (!SWIG_IsOK(res1)) { | |
17730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17731 | } | |
17732 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17733 | { | |
17734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17735 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17736 | wxPyEndAllowThreads(__tstate); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | resultobj = result; | |
17740 | return resultobj; | |
17741 | fail: | |
17742 | return NULL; | |
d14a1e28 RD |
17743 | } |
17744 | ||
17745 | ||
0085ce49 RD |
17746 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17747 | PyObject *resultobj = 0; | |
17748 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17749 | PyObject *result = 0 ; | |
17750 | void *argp1 = 0 ; | |
17751 | int res1 = 0 ; | |
17752 | PyObject *swig_obj[1] ; | |
17753 | ||
17754 | if (!args) SWIG_fail; | |
17755 | swig_obj[0] = args; | |
17756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17757 | if (!SWIG_IsOK(res1)) { | |
17758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17759 | } | |
17760 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17761 | { | |
17762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17763 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17764 | wxPyEndAllowThreads(__tstate); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
17767 | resultobj = result; | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
17774 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17775 | PyObject *obj; | |
17776 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17777 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17778 | return SWIG_Py_Void(); | |
17779 | } | |
17780 | ||
17781 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17782 | return SWIG_Python_InitShadowInstance(args); | |
17783 | } | |
17784 | ||
17785 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17786 | PyObject *resultobj = 0; | |
17787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17788 | wxString *arg2 = 0 ; | |
17789 | wxString *arg3 = 0 ; | |
17790 | int arg4 = (int) 0 ; | |
17791 | wxString *arg5 = (wxString *) NULL ; | |
17792 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17793 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17794 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17795 | wxMultiChoiceDialog *result = 0 ; | |
17796 | void *argp1 = 0 ; | |
17797 | int res1 = 0 ; | |
17798 | bool temp2 = false ; | |
17799 | bool temp3 = false ; | |
17800 | long val6 ; | |
17801 | int ecode6 = 0 ; | |
17802 | wxPoint temp7 ; | |
17803 | PyObject * obj0 = 0 ; | |
17804 | PyObject * obj1 = 0 ; | |
17805 | PyObject * obj2 = 0 ; | |
17806 | PyObject * obj3 = 0 ; | |
17807 | PyObject * obj4 = 0 ; | |
17808 | PyObject * obj5 = 0 ; | |
17809 | char * kwnames[] = { | |
17810 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17811 | }; | |
17812 | ||
17813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17815 | if (!SWIG_IsOK(res1)) { | |
17816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17817 | } | |
17818 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17819 | { | |
17820 | arg2 = wxString_in_helper(obj1); | |
17821 | if (arg2 == NULL) SWIG_fail; | |
17822 | temp2 = true; | |
17823 | } | |
17824 | { | |
17825 | arg3 = wxString_in_helper(obj2); | |
17826 | if (arg3 == NULL) SWIG_fail; | |
17827 | temp3 = true; | |
17828 | } | |
17829 | if (obj3) { | |
d14a1e28 | 17830 | { |
0085ce49 RD |
17831 | arg4 = PyList_Size(obj3); |
17832 | arg5 = wxString_LIST_helper(obj3); | |
17833 | if (arg5 == NULL) SWIG_fail; | |
d14a1e28 | 17834 | } |
0085ce49 RD |
17835 | } |
17836 | if (obj4) { | |
17837 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17838 | if (!SWIG_IsOK(ecode6)) { | |
17839 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17840 | } | |
17841 | arg6 = static_cast< long >(val6); | |
17842 | } | |
17843 | if (obj5) { | |
4f89f6a3 | 17844 | { |
0085ce49 RD |
17845 | arg7 = &temp7; |
17846 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
4f89f6a3 | 17847 | } |
0085ce49 RD |
17848 | } |
17849 | { | |
17850 | if (!wxPyCheckForApp()) SWIG_fail; | |
17851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17852 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17853 | wxPyEndAllowThreads(__tstate); | |
17854 | if (PyErr_Occurred()) SWIG_fail; | |
17855 | } | |
17856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17857 | { | |
17858 | if (temp2) | |
17859 | delete arg2; | |
17860 | } | |
17861 | { | |
17862 | if (temp3) | |
17863 | delete arg3; | |
17864 | } | |
17865 | { | |
17866 | if (arg5) delete [] arg5; | |
17867 | } | |
17868 | return resultobj; | |
17869 | fail: | |
17870 | { | |
17871 | if (temp2) | |
17872 | delete arg2; | |
17873 | } | |
17874 | { | |
17875 | if (temp3) | |
17876 | delete arg3; | |
17877 | } | |
17878 | { | |
17879 | if (arg5) delete [] arg5; | |
17880 | } | |
17881 | return NULL; | |
d14a1e28 RD |
17882 | } |
17883 | ||
17884 | ||
0085ce49 RD |
17885 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17886 | PyObject *resultobj = 0; | |
17887 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17888 | wxArrayInt *arg2 = 0 ; | |
17889 | void *argp1 = 0 ; | |
17890 | int res1 = 0 ; | |
17891 | bool temp2 = false ; | |
17892 | PyObject * obj0 = 0 ; | |
17893 | PyObject * obj1 = 0 ; | |
17894 | char * kwnames[] = { | |
17895 | (char *) "self",(char *) "selections", NULL | |
17896 | }; | |
17897 | ||
17898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17900 | if (!SWIG_IsOK(res1)) { | |
17901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17902 | } | |
17903 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17904 | { | |
17905 | if (! PySequence_Check(obj1)) { | |
17906 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17907 | SWIG_fail; | |
17908 | } | |
17909 | arg2 = new wxArrayInt; | |
17910 | temp2 = true; | |
17911 | int i, len=PySequence_Length(obj1); | |
17912 | for (i=0; i<len; i++) { | |
17913 | PyObject* item = PySequence_GetItem(obj1, i); | |
17914 | PyObject* number = PyNumber_Int(item); | |
17915 | arg2->Add(PyInt_AS_LONG(number)); | |
17916 | Py_DECREF(item); | |
17917 | Py_DECREF(number); | |
093d3ff1 | 17918 | } |
0085ce49 RD |
17919 | } |
17920 | { | |
17921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17922 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17923 | wxPyEndAllowThreads(__tstate); | |
17924 | if (PyErr_Occurred()) SWIG_fail; | |
17925 | } | |
17926 | resultobj = SWIG_Py_Void(); | |
17927 | { | |
17928 | if (temp2) delete arg2; | |
17929 | } | |
17930 | return resultobj; | |
17931 | fail: | |
17932 | { | |
17933 | if (temp2) delete arg2; | |
17934 | } | |
17935 | return NULL; | |
d14a1e28 RD |
17936 | } |
17937 | ||
17938 | ||
0085ce49 RD |
17939 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17940 | PyObject *resultobj = 0; | |
17941 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17942 | PyObject *result = 0 ; | |
17943 | void *argp1 = 0 ; | |
17944 | int res1 = 0 ; | |
17945 | PyObject *swig_obj[1] ; | |
17946 | ||
17947 | if (!args) SWIG_fail; | |
17948 | swig_obj[0] = args; | |
17949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17950 | if (!SWIG_IsOK(res1)) { | |
17951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17952 | } | |
17953 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17954 | { | |
17955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17956 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
17957 | wxPyEndAllowThreads(__tstate); | |
17958 | if (PyErr_Occurred()) SWIG_fail; | |
17959 | } | |
17960 | resultobj = result; | |
17961 | return resultobj; | |
17962 | fail: | |
17963 | return NULL; | |
17964 | } | |
17965 | ||
17966 | ||
17967 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17968 | PyObject *obj; | |
17969 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17970 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
17971 | return SWIG_Py_Void(); | |
17972 | } | |
17973 | ||
17974 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17975 | return SWIG_Python_InitShadowInstance(args); | |
17976 | } | |
17977 | ||
17978 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17979 | PyObject *resultobj = 0; | |
17980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17981 | wxString *arg2 = 0 ; | |
17982 | wxString *arg3 = 0 ; | |
17983 | int arg4 ; | |
17984 | wxString *arg5 = (wxString *) 0 ; | |
17985 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17986 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17987 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17988 | wxSingleChoiceDialog *result = 0 ; | |
17989 | void *argp1 = 0 ; | |
17990 | int res1 = 0 ; | |
17991 | bool temp2 = false ; | |
17992 | bool temp3 = false ; | |
17993 | long val6 ; | |
17994 | int ecode6 = 0 ; | |
17995 | wxPoint temp7 ; | |
17996 | PyObject * obj0 = 0 ; | |
17997 | PyObject * obj1 = 0 ; | |
17998 | PyObject * obj2 = 0 ; | |
17999 | PyObject * obj3 = 0 ; | |
18000 | PyObject * obj4 = 0 ; | |
18001 | PyObject * obj5 = 0 ; | |
18002 | char * kwnames[] = { | |
18003 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
18004 | }; | |
18005 | ||
18006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18008 | if (!SWIG_IsOK(res1)) { | |
18009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18010 | } | |
18011 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18012 | { | |
18013 | arg2 = wxString_in_helper(obj1); | |
18014 | if (arg2 == NULL) SWIG_fail; | |
18015 | temp2 = true; | |
18016 | } | |
18017 | { | |
18018 | arg3 = wxString_in_helper(obj2); | |
18019 | if (arg3 == NULL) SWIG_fail; | |
18020 | temp3 = true; | |
18021 | } | |
18022 | { | |
18023 | arg4 = PyList_Size(obj3); | |
18024 | arg5 = wxString_LIST_helper(obj3); | |
18025 | if (arg5 == NULL) SWIG_fail; | |
18026 | } | |
18027 | if (obj4) { | |
18028 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
18029 | if (!SWIG_IsOK(ecode6)) { | |
18030 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
18031 | } | |
18032 | arg6 = static_cast< long >(val6); | |
18033 | } | |
18034 | if (obj5) { | |
093d3ff1 | 18035 | { |
0085ce49 RD |
18036 | arg7 = &temp7; |
18037 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
093d3ff1 | 18038 | } |
0085ce49 RD |
18039 | } |
18040 | { | |
18041 | if (!wxPyCheckForApp()) SWIG_fail; | |
18042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18043 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
18044 | wxPyEndAllowThreads(__tstate); | |
18045 | if (PyErr_Occurred()) SWIG_fail; | |
18046 | } | |
18047 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
18048 | { | |
18049 | if (temp2) | |
18050 | delete arg2; | |
18051 | } | |
18052 | { | |
18053 | if (temp3) | |
18054 | delete arg3; | |
18055 | } | |
18056 | { | |
18057 | if (arg5) delete [] arg5; | |
18058 | } | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | { | |
18062 | if (temp2) | |
18063 | delete arg2; | |
18064 | } | |
18065 | { | |
18066 | if (temp3) | |
18067 | delete arg3; | |
18068 | } | |
18069 | { | |
18070 | if (arg5) delete [] arg5; | |
18071 | } | |
18072 | return NULL; | |
d14a1e28 RD |
18073 | } |
18074 | ||
18075 | ||
0085ce49 RD |
18076 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18077 | PyObject *resultobj = 0; | |
18078 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18079 | int result; | |
18080 | void *argp1 = 0 ; | |
18081 | int res1 = 0 ; | |
18082 | PyObject *swig_obj[1] ; | |
18083 | ||
18084 | if (!args) SWIG_fail; | |
18085 | swig_obj[0] = args; | |
18086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18087 | if (!SWIG_IsOK(res1)) { | |
18088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18089 | } | |
18090 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18091 | { | |
18092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18093 | result = (int)(arg1)->GetSelection(); | |
18094 | wxPyEndAllowThreads(__tstate); | |
18095 | if (PyErr_Occurred()) SWIG_fail; | |
18096 | } | |
18097 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18098 | return resultobj; | |
18099 | fail: | |
18100 | return NULL; | |
d14a1e28 RD |
18101 | } |
18102 | ||
18103 | ||
0085ce49 RD |
18104 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18105 | PyObject *resultobj = 0; | |
18106 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18107 | wxString result; | |
18108 | void *argp1 = 0 ; | |
18109 | int res1 = 0 ; | |
18110 | PyObject *swig_obj[1] ; | |
18111 | ||
18112 | if (!args) SWIG_fail; | |
18113 | swig_obj[0] = args; | |
18114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18115 | if (!SWIG_IsOK(res1)) { | |
18116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18117 | } | |
18118 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18119 | { | |
18120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18121 | result = (arg1)->GetStringSelection(); | |
18122 | wxPyEndAllowThreads(__tstate); | |
18123 | if (PyErr_Occurred()) SWIG_fail; | |
18124 | } | |
18125 | { | |
18126 | #if wxUSE_UNICODE | |
18127 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18128 | #else | |
18129 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18130 | #endif | |
18131 | } | |
18132 | return resultobj; | |
18133 | fail: | |
18134 | return NULL; | |
18135 | } | |
18136 | ||
18137 | ||
18138 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18139 | PyObject *resultobj = 0; | |
18140 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18141 | int arg2 ; | |
18142 | void *argp1 = 0 ; | |
18143 | int res1 = 0 ; | |
18144 | int val2 ; | |
18145 | int ecode2 = 0 ; | |
18146 | PyObject * obj0 = 0 ; | |
18147 | PyObject * obj1 = 0 ; | |
18148 | char * kwnames[] = { | |
18149 | (char *) "self",(char *) "sel", NULL | |
18150 | }; | |
18151 | ||
18152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
18153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18154 | if (!SWIG_IsOK(res1)) { | |
18155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18156 | } | |
18157 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18158 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18159 | if (!SWIG_IsOK(ecode2)) { | |
18160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18161 | } | |
18162 | arg2 = static_cast< int >(val2); | |
18163 | { | |
18164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18165 | (arg1)->SetSelection(arg2); | |
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | resultobj = SWIG_Py_Void(); | |
18170 | return resultobj; | |
18171 | fail: | |
18172 | return NULL; | |
18173 | } | |
18174 | ||
18175 | ||
18176 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18177 | PyObject *obj; | |
18178 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18179 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
18180 | return SWIG_Py_Void(); | |
18181 | } | |
18182 | ||
18183 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18184 | return SWIG_Python_InitShadowInstance(args); | |
18185 | } | |
18186 | ||
18187 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18188 | PyObject *resultobj = 0; | |
18189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18190 | wxString *arg2 = 0 ; | |
18191 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
18192 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18193 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18194 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18195 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18196 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18197 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18198 | wxTextEntryDialog *result = 0 ; | |
18199 | void *argp1 = 0 ; | |
18200 | int res1 = 0 ; | |
18201 | bool temp2 = false ; | |
18202 | bool temp3 = false ; | |
18203 | bool temp4 = false ; | |
18204 | long val5 ; | |
18205 | int ecode5 = 0 ; | |
18206 | wxPoint temp6 ; | |
18207 | PyObject * obj0 = 0 ; | |
18208 | PyObject * obj1 = 0 ; | |
18209 | PyObject * obj2 = 0 ; | |
18210 | PyObject * obj3 = 0 ; | |
18211 | PyObject * obj4 = 0 ; | |
18212 | PyObject * obj5 = 0 ; | |
18213 | char * kwnames[] = { | |
18214 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
18215 | }; | |
18216 | ||
18217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18219 | if (!SWIG_IsOK(res1)) { | |
18220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18221 | } | |
18222 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18223 | { | |
18224 | arg2 = wxString_in_helper(obj1); | |
18225 | if (arg2 == NULL) SWIG_fail; | |
18226 | temp2 = true; | |
18227 | } | |
18228 | if (obj2) { | |
d14a1e28 | 18229 | { |
0085ce49 RD |
18230 | arg3 = wxString_in_helper(obj2); |
18231 | if (arg3 == NULL) SWIG_fail; | |
18232 | temp3 = true; | |
d14a1e28 | 18233 | } |
0085ce49 RD |
18234 | } |
18235 | if (obj3) { | |
d14a1e28 | 18236 | { |
0085ce49 RD |
18237 | arg4 = wxString_in_helper(obj3); |
18238 | if (arg4 == NULL) SWIG_fail; | |
18239 | temp4 = true; | |
d14a1e28 | 18240 | } |
0085ce49 RD |
18241 | } |
18242 | if (obj4) { | |
18243 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18244 | if (!SWIG_IsOK(ecode5)) { | |
18245 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18246 | } | |
18247 | arg5 = static_cast< long >(val5); | |
18248 | } | |
18249 | if (obj5) { | |
093d3ff1 | 18250 | { |
0085ce49 RD |
18251 | arg6 = &temp6; |
18252 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18253 | } |
0085ce49 RD |
18254 | } |
18255 | { | |
18256 | if (!wxPyCheckForApp()) SWIG_fail; | |
18257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18258 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18263 | { | |
18264 | if (temp2) | |
18265 | delete arg2; | |
18266 | } | |
18267 | { | |
18268 | if (temp3) | |
18269 | delete arg3; | |
18270 | } | |
18271 | { | |
18272 | if (temp4) | |
18273 | delete arg4; | |
18274 | } | |
18275 | return resultobj; | |
18276 | fail: | |
18277 | { | |
18278 | if (temp2) | |
18279 | delete arg2; | |
18280 | } | |
18281 | { | |
18282 | if (temp3) | |
18283 | delete arg3; | |
18284 | } | |
18285 | { | |
18286 | if (temp4) | |
18287 | delete arg4; | |
18288 | } | |
18289 | return NULL; | |
d14a1e28 RD |
18290 | } |
18291 | ||
18292 | ||
0085ce49 RD |
18293 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18294 | PyObject *resultobj = 0; | |
18295 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18296 | wxString result; | |
18297 | void *argp1 = 0 ; | |
18298 | int res1 = 0 ; | |
18299 | PyObject *swig_obj[1] ; | |
18300 | ||
18301 | if (!args) SWIG_fail; | |
18302 | swig_obj[0] = args; | |
18303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18304 | if (!SWIG_IsOK(res1)) { | |
18305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18306 | } | |
18307 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (arg1)->GetValue(); | |
18311 | wxPyEndAllowThreads(__tstate); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
18313 | } | |
18314 | { | |
18315 | #if wxUSE_UNICODE | |
18316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18317 | #else | |
18318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18319 | #endif | |
18320 | } | |
18321 | return resultobj; | |
18322 | fail: | |
18323 | return NULL; | |
18324 | } | |
18325 | ||
18326 | ||
18327 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18328 | PyObject *resultobj = 0; | |
18329 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18330 | wxString *arg2 = 0 ; | |
18331 | void *argp1 = 0 ; | |
18332 | int res1 = 0 ; | |
18333 | bool temp2 = false ; | |
18334 | PyObject * obj0 = 0 ; | |
18335 | PyObject * obj1 = 0 ; | |
18336 | char * kwnames[] = { | |
18337 | (char *) "self",(char *) "value", NULL | |
18338 | }; | |
18339 | ||
18340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18342 | if (!SWIG_IsOK(res1)) { | |
18343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18344 | } | |
18345 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18346 | { | |
18347 | arg2 = wxString_in_helper(obj1); | |
18348 | if (arg2 == NULL) SWIG_fail; | |
18349 | temp2 = true; | |
18350 | } | |
18351 | { | |
18352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18353 | (arg1)->SetValue((wxString const &)*arg2); | |
18354 | wxPyEndAllowThreads(__tstate); | |
18355 | if (PyErr_Occurred()) SWIG_fail; | |
18356 | } | |
18357 | resultobj = SWIG_Py_Void(); | |
18358 | { | |
18359 | if (temp2) | |
18360 | delete arg2; | |
18361 | } | |
18362 | return resultobj; | |
18363 | fail: | |
18364 | { | |
18365 | if (temp2) | |
18366 | delete arg2; | |
18367 | } | |
18368 | return NULL; | |
d14a1e28 RD |
18369 | } |
18370 | ||
18371 | ||
0085ce49 RD |
18372 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18373 | PyObject *obj; | |
18374 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18375 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18376 | return SWIG_Py_Void(); | |
d14a1e28 RD |
18377 | } |
18378 | ||
0085ce49 RD |
18379 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18380 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
18381 | } |
18382 | ||
0085ce49 RD |
18383 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { |
18384 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18385 | return 1; | |
d14a1e28 RD |
18386 | } |
18387 | ||
18388 | ||
0085ce49 RD |
18389 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18390 | PyObject *pyobj = 0; | |
18391 | ||
18392 | { | |
18393 | #if wxUSE_UNICODE | |
18394 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18395 | #else | |
18396 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18397 | #endif | |
18398 | } | |
18399 | return pyobj; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj = 0; | |
18405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18406 | wxString *arg2 = 0 ; | |
18407 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18408 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18409 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18410 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18411 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18412 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18413 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18414 | wxPasswordEntryDialog *result = 0 ; | |
18415 | void *argp1 = 0 ; | |
18416 | int res1 = 0 ; | |
18417 | bool temp2 = false ; | |
18418 | bool temp3 = false ; | |
18419 | bool temp4 = false ; | |
18420 | long val5 ; | |
18421 | int ecode5 = 0 ; | |
18422 | wxPoint temp6 ; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | PyObject * obj1 = 0 ; | |
18425 | PyObject * obj2 = 0 ; | |
18426 | PyObject * obj3 = 0 ; | |
18427 | PyObject * obj4 = 0 ; | |
18428 | PyObject * obj5 = 0 ; | |
18429 | char * kwnames[] = { | |
18430 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18431 | }; | |
18432 | ||
18433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18435 | if (!SWIG_IsOK(res1)) { | |
18436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18437 | } | |
18438 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18439 | { | |
18440 | arg2 = wxString_in_helper(obj1); | |
18441 | if (arg2 == NULL) SWIG_fail; | |
18442 | temp2 = true; | |
18443 | } | |
18444 | if (obj2) { | |
093d3ff1 | 18445 | { |
0085ce49 RD |
18446 | arg3 = wxString_in_helper(obj2); |
18447 | if (arg3 == NULL) SWIG_fail; | |
18448 | temp3 = true; | |
093d3ff1 | 18449 | } |
0085ce49 RD |
18450 | } |
18451 | if (obj3) { | |
d14a1e28 | 18452 | { |
0085ce49 RD |
18453 | arg4 = wxString_in_helper(obj3); |
18454 | if (arg4 == NULL) SWIG_fail; | |
18455 | temp4 = true; | |
d14a1e28 | 18456 | } |
0085ce49 RD |
18457 | } |
18458 | if (obj4) { | |
18459 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18460 | if (!SWIG_IsOK(ecode5)) { | |
18461 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18462 | } | |
18463 | arg5 = static_cast< long >(val5); | |
18464 | } | |
18465 | if (obj5) { | |
4f89f6a3 | 18466 | { |
0085ce49 RD |
18467 | arg6 = &temp6; |
18468 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4f89f6a3 | 18469 | } |
0085ce49 RD |
18470 | } |
18471 | { | |
18472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18473 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18474 | wxPyEndAllowThreads(__tstate); | |
18475 | if (PyErr_Occurred()) SWIG_fail; | |
18476 | } | |
18477 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18478 | { | |
18479 | if (temp2) | |
18480 | delete arg2; | |
18481 | } | |
18482 | { | |
18483 | if (temp3) | |
18484 | delete arg3; | |
18485 | } | |
18486 | { | |
18487 | if (temp4) | |
18488 | delete arg4; | |
18489 | } | |
18490 | return resultobj; | |
18491 | fail: | |
18492 | { | |
18493 | if (temp2) | |
18494 | delete arg2; | |
18495 | } | |
18496 | { | |
18497 | if (temp3) | |
18498 | delete arg3; | |
18499 | } | |
18500 | { | |
18501 | if (temp4) | |
18502 | delete arg4; | |
18503 | } | |
18504 | return NULL; | |
d14a1e28 RD |
18505 | } |
18506 | ||
18507 | ||
0085ce49 RD |
18508 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18509 | PyObject *obj; | |
18510 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18511 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18512 | return SWIG_Py_Void(); | |
70b7a5fe RD |
18513 | } |
18514 | ||
0085ce49 RD |
18515 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18516 | return SWIG_Python_InitShadowInstance(args); | |
18517 | } | |
70b7a5fe | 18518 | |
27e45892 RD |
18519 | SWIGINTERN PyObject *_wrap_new_NumberEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18520 | PyObject *resultobj = 0; | |
18521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18522 | wxString *arg2 = 0 ; | |
18523 | wxString *arg3 = 0 ; | |
18524 | wxString *arg4 = 0 ; | |
18525 | long arg5 ; | |
18526 | long arg6 ; | |
18527 | long arg7 ; | |
18528 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
18529 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
18530 | wxNumberEntryDialog *result = 0 ; | |
18531 | void *argp1 = 0 ; | |
18532 | int res1 = 0 ; | |
18533 | bool temp2 = false ; | |
18534 | bool temp3 = false ; | |
18535 | bool temp4 = false ; | |
18536 | long val5 ; | |
18537 | int ecode5 = 0 ; | |
18538 | long val6 ; | |
18539 | int ecode6 = 0 ; | |
18540 | long val7 ; | |
18541 | int ecode7 = 0 ; | |
18542 | wxPoint temp8 ; | |
18543 | PyObject * obj0 = 0 ; | |
18544 | PyObject * obj1 = 0 ; | |
18545 | PyObject * obj2 = 0 ; | |
18546 | PyObject * obj3 = 0 ; | |
18547 | PyObject * obj4 = 0 ; | |
18548 | PyObject * obj5 = 0 ; | |
18549 | PyObject * obj6 = 0 ; | |
18550 | PyObject * obj7 = 0 ; | |
18551 | char * kwnames[] = { | |
18552 | (char *) "parent",(char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "pos", NULL | |
18553 | }; | |
18554 | ||
18555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO|O:new_NumberEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
18556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18557 | if (!SWIG_IsOK(res1)) { | |
18558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NumberEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18559 | } | |
18560 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18561 | { | |
18562 | arg2 = wxString_in_helper(obj1); | |
18563 | if (arg2 == NULL) SWIG_fail; | |
18564 | temp2 = true; | |
18565 | } | |
18566 | { | |
18567 | arg3 = wxString_in_helper(obj2); | |
18568 | if (arg3 == NULL) SWIG_fail; | |
18569 | temp3 = true; | |
18570 | } | |
18571 | { | |
18572 | arg4 = wxString_in_helper(obj3); | |
18573 | if (arg4 == NULL) SWIG_fail; | |
18574 | temp4 = true; | |
18575 | } | |
18576 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18577 | if (!SWIG_IsOK(ecode5)) { | |
18578 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_NumberEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18579 | } | |
18580 | arg5 = static_cast< long >(val5); | |
18581 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
18582 | if (!SWIG_IsOK(ecode6)) { | |
18583 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_NumberEntryDialog" "', expected argument " "6"" of type '" "long""'"); | |
18584 | } | |
18585 | arg6 = static_cast< long >(val6); | |
18586 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
18587 | if (!SWIG_IsOK(ecode7)) { | |
18588 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_NumberEntryDialog" "', expected argument " "7"" of type '" "long""'"); | |
18589 | } | |
18590 | arg7 = static_cast< long >(val7); | |
18591 | if (obj7) { | |
18592 | { | |
18593 | arg8 = &temp8; | |
18594 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
18595 | } | |
18596 | } | |
18597 | { | |
18598 | if (!wxPyCheckForApp()) SWIG_fail; | |
18599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18600 | result = (wxNumberEntryDialog *)new wxNumberEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
18601 | wxPyEndAllowThreads(__tstate); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
18603 | } | |
18604 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNumberEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18605 | { | |
18606 | if (temp2) | |
18607 | delete arg2; | |
18608 | } | |
18609 | { | |
18610 | if (temp3) | |
18611 | delete arg3; | |
18612 | } | |
18613 | { | |
18614 | if (temp4) | |
18615 | delete arg4; | |
18616 | } | |
18617 | return resultobj; | |
18618 | fail: | |
18619 | { | |
18620 | if (temp2) | |
18621 | delete arg2; | |
18622 | } | |
18623 | { | |
18624 | if (temp3) | |
18625 | delete arg3; | |
18626 | } | |
18627 | { | |
18628 | if (temp4) | |
18629 | delete arg4; | |
18630 | } | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
18635 | SWIGINTERN PyObject *_wrap_NumberEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18636 | PyObject *resultobj = 0; | |
18637 | wxNumberEntryDialog *arg1 = (wxNumberEntryDialog *) 0 ; | |
18638 | long result; | |
18639 | void *argp1 = 0 ; | |
18640 | int res1 = 0 ; | |
18641 | PyObject *swig_obj[1] ; | |
18642 | ||
18643 | if (!args) SWIG_fail; | |
18644 | swig_obj[0] = args; | |
18645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNumberEntryDialog, 0 | 0 ); | |
18646 | if (!SWIG_IsOK(res1)) { | |
18647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NumberEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxNumberEntryDialog *""'"); | |
18648 | } | |
18649 | arg1 = reinterpret_cast< wxNumberEntryDialog * >(argp1); | |
18650 | { | |
18651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18652 | result = (long)(arg1)->GetValue(); | |
18653 | wxPyEndAllowThreads(__tstate); | |
18654 | if (PyErr_Occurred()) SWIG_fail; | |
18655 | } | |
18656 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
18657 | return resultobj; | |
18658 | fail: | |
18659 | return NULL; | |
18660 | } | |
18661 | ||
18662 | ||
18663 | SWIGINTERN PyObject *NumberEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18664 | PyObject *obj; | |
18665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNumberEntryDialog, SWIG_NewClientData(obj)); | |
18667 | return SWIG_Py_Void(); | |
18668 | } | |
18669 | ||
18670 | SWIGINTERN PyObject *NumberEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18671 | return SWIG_Python_InitShadowInstance(args); | |
18672 | } | |
18673 | ||
0085ce49 RD |
18674 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18675 | PyObject *resultobj = 0; | |
18676 | wxFontData *result = 0 ; | |
18677 | ||
18678 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | result = (wxFontData *)new wxFontData(); | |
18682 | wxPyEndAllowThreads(__tstate); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
18685 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18686 | return resultobj; | |
18687 | fail: | |
18688 | return NULL; | |
70b7a5fe RD |
18689 | } |
18690 | ||
18691 | ||
0085ce49 RD |
18692 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18693 | PyObject *resultobj = 0; | |
18694 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18695 | void *argp1 = 0 ; | |
18696 | int res1 = 0 ; | |
18697 | PyObject *swig_obj[1] ; | |
18698 | ||
18699 | if (!args) SWIG_fail; | |
18700 | swig_obj[0] = args; | |
18701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18702 | if (!SWIG_IsOK(res1)) { | |
18703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18704 | } | |
18705 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18706 | { | |
18707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18708 | delete arg1; | |
18709 | ||
18710 | wxPyEndAllowThreads(__tstate); | |
18711 | if (PyErr_Occurred()) SWIG_fail; | |
18712 | } | |
18713 | resultobj = SWIG_Py_Void(); | |
18714 | return resultobj; | |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18721 | PyObject *resultobj = 0; | |
18722 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18723 | bool arg2 ; | |
18724 | void *argp1 = 0 ; | |
18725 | int res1 = 0 ; | |
18726 | bool val2 ; | |
18727 | int ecode2 = 0 ; | |
18728 | PyObject * obj0 = 0 ; | |
18729 | PyObject * obj1 = 0 ; | |
18730 | char * kwnames[] = { | |
18731 | (char *) "self",(char *) "enable", NULL | |
18732 | }; | |
18733 | ||
18734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18736 | if (!SWIG_IsOK(res1)) { | |
18737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18738 | } | |
18739 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18740 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18741 | if (!SWIG_IsOK(ecode2)) { | |
18742 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18743 | } | |
18744 | arg2 = static_cast< bool >(val2); | |
18745 | { | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | (arg1)->EnableEffects(arg2); | |
18748 | wxPyEndAllowThreads(__tstate); | |
18749 | if (PyErr_Occurred()) SWIG_fail; | |
18750 | } | |
18751 | resultobj = SWIG_Py_Void(); | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
b2dc1044 RD |
18755 | } |
18756 | ||
18757 | ||
0085ce49 RD |
18758 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18759 | PyObject *resultobj = 0; | |
18760 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18761 | bool result; | |
18762 | void *argp1 = 0 ; | |
18763 | int res1 = 0 ; | |
18764 | PyObject *swig_obj[1] ; | |
18765 | ||
18766 | if (!args) SWIG_fail; | |
18767 | swig_obj[0] = args; | |
18768 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18769 | if (!SWIG_IsOK(res1)) { | |
18770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18771 | } | |
18772 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18773 | { | |
18774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18775 | result = (bool)(arg1)->GetAllowSymbols(); | |
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18781 | } | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
d14a1e28 RD |
18785 | } |
18786 | ||
18787 | ||
0085ce49 RD |
18788 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18789 | PyObject *resultobj = 0; | |
18790 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18791 | wxColour result; | |
18792 | void *argp1 = 0 ; | |
18793 | int res1 = 0 ; | |
18794 | PyObject *swig_obj[1] ; | |
18795 | ||
18796 | if (!args) SWIG_fail; | |
18797 | swig_obj[0] = args; | |
18798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18799 | if (!SWIG_IsOK(res1)) { | |
18800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18801 | } | |
18802 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18803 | { | |
18804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18805 | result = (arg1)->GetColour(); | |
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18810 | return resultobj; | |
18811 | fail: | |
18812 | return NULL; | |
d14a1e28 RD |
18813 | } |
18814 | ||
18815 | ||
0085ce49 RD |
18816 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18817 | PyObject *resultobj = 0; | |
18818 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18819 | wxFont result; | |
18820 | void *argp1 = 0 ; | |
18821 | int res1 = 0 ; | |
18822 | PyObject *swig_obj[1] ; | |
18823 | ||
18824 | if (!args) SWIG_fail; | |
18825 | swig_obj[0] = args; | |
18826 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18827 | if (!SWIG_IsOK(res1)) { | |
18828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18829 | } | |
18830 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | result = (arg1)->GetChosenFont(); | |
18834 | wxPyEndAllowThreads(__tstate); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18838 | return resultobj; | |
18839 | fail: | |
18840 | return NULL; | |
d14a1e28 RD |
18841 | } |
18842 | ||
18843 | ||
0085ce49 RD |
18844 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18845 | PyObject *resultobj = 0; | |
18846 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18847 | bool result; | |
18848 | void *argp1 = 0 ; | |
18849 | int res1 = 0 ; | |
18850 | PyObject *swig_obj[1] ; | |
18851 | ||
18852 | if (!args) SWIG_fail; | |
18853 | swig_obj[0] = args; | |
18854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18855 | if (!SWIG_IsOK(res1)) { | |
18856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18857 | } | |
18858 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | result = (bool)(arg1)->GetEnableEffects(); | |
18862 | wxPyEndAllowThreads(__tstate); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | { | |
18866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18867 | } | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
d14a1e28 RD |
18871 | } |
18872 | ||
18873 | ||
0085ce49 RD |
18874 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18875 | PyObject *resultobj = 0; | |
18876 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18877 | wxFont result; | |
18878 | void *argp1 = 0 ; | |
18879 | int res1 = 0 ; | |
18880 | PyObject *swig_obj[1] ; | |
18881 | ||
18882 | if (!args) SWIG_fail; | |
18883 | swig_obj[0] = args; | |
18884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18885 | if (!SWIG_IsOK(res1)) { | |
18886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18887 | } | |
18888 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18889 | { | |
18890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18891 | result = (arg1)->GetInitialFont(); | |
18892 | wxPyEndAllowThreads(__tstate); | |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
18894 | } | |
18895 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18896 | return resultobj; | |
18897 | fail: | |
18898 | return NULL; | |
d14a1e28 RD |
18899 | } |
18900 | ||
18901 | ||
0085ce49 RD |
18902 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18903 | PyObject *resultobj = 0; | |
18904 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18905 | bool result; | |
18906 | void *argp1 = 0 ; | |
18907 | int res1 = 0 ; | |
18908 | PyObject *swig_obj[1] ; | |
18909 | ||
18910 | if (!args) SWIG_fail; | |
18911 | swig_obj[0] = args; | |
18912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18913 | if (!SWIG_IsOK(res1)) { | |
18914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18915 | } | |
18916 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18917 | { | |
18918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18919 | result = (bool)(arg1)->GetShowHelp(); | |
18920 | wxPyEndAllowThreads(__tstate); | |
18921 | if (PyErr_Occurred()) SWIG_fail; | |
18922 | } | |
18923 | { | |
18924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18925 | } | |
18926 | return resultobj; | |
18927 | fail: | |
18928 | return NULL; | |
18929 | } | |
18930 | ||
18931 | ||
18932 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18933 | PyObject *resultobj = 0; | |
18934 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18935 | bool arg2 ; | |
18936 | void *argp1 = 0 ; | |
18937 | int res1 = 0 ; | |
18938 | bool val2 ; | |
18939 | int ecode2 = 0 ; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | PyObject * obj1 = 0 ; | |
18942 | char * kwnames[] = { | |
18943 | (char *) "self",(char *) "allowSymbols", NULL | |
18944 | }; | |
18945 | ||
18946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18948 | if (!SWIG_IsOK(res1)) { | |
18949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18950 | } | |
18951 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18952 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18953 | if (!SWIG_IsOK(ecode2)) { | |
18954 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
18955 | } | |
18956 | arg2 = static_cast< bool >(val2); | |
18957 | { | |
18958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18959 | (arg1)->SetAllowSymbols(arg2); | |
18960 | wxPyEndAllowThreads(__tstate); | |
18961 | if (PyErr_Occurred()) SWIG_fail; | |
18962 | } | |
18963 | resultobj = SWIG_Py_Void(); | |
18964 | return resultobj; | |
18965 | fail: | |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj = 0; | |
18972 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18973 | wxFont *arg2 = 0 ; | |
18974 | void *argp1 = 0 ; | |
18975 | int res1 = 0 ; | |
18976 | void *argp2 = 0 ; | |
18977 | int res2 = 0 ; | |
18978 | PyObject * obj0 = 0 ; | |
18979 | PyObject * obj1 = 0 ; | |
18980 | char * kwnames[] = { | |
18981 | (char *) "self",(char *) "font", NULL | |
18982 | }; | |
18983 | ||
18984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18986 | if (!SWIG_IsOK(res1)) { | |
18987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18988 | } | |
18989 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18990 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18991 | if (!SWIG_IsOK(res2)) { | |
18992 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18993 | } | |
18994 | if (!argp2) { | |
18995 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18996 | } | |
18997 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18998 | { | |
18999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19000 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | resultobj = SWIG_Py_Void(); | |
19005 | return resultobj; | |
19006 | fail: | |
19007 | return NULL; | |
19008 | } | |
19009 | ||
19010 | ||
19011 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19012 | PyObject *resultobj = 0; | |
19013 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19014 | wxColour *arg2 = 0 ; | |
19015 | void *argp1 = 0 ; | |
19016 | int res1 = 0 ; | |
19017 | wxColour temp2 ; | |
19018 | PyObject * obj0 = 0 ; | |
19019 | PyObject * obj1 = 0 ; | |
19020 | char * kwnames[] = { | |
19021 | (char *) "self",(char *) "colour", NULL | |
19022 | }; | |
19023 | ||
19024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
19025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19026 | if (!SWIG_IsOK(res1)) { | |
19027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19028 | } | |
19029 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19030 | { | |
19031 | arg2 = &temp2; | |
19032 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19033 | } | |
19034 | { | |
19035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19036 | (arg1)->SetColour((wxColour const &)*arg2); | |
19037 | wxPyEndAllowThreads(__tstate); | |
19038 | if (PyErr_Occurred()) SWIG_fail; | |
19039 | } | |
19040 | resultobj = SWIG_Py_Void(); | |
19041 | return resultobj; | |
19042 | fail: | |
19043 | return NULL; | |
19044 | } | |
19045 | ||
19046 | ||
19047 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19048 | PyObject *resultobj = 0; | |
19049 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19050 | wxFont *arg2 = 0 ; | |
19051 | void *argp1 = 0 ; | |
19052 | int res1 = 0 ; | |
19053 | void *argp2 = 0 ; | |
19054 | int res2 = 0 ; | |
19055 | PyObject * obj0 = 0 ; | |
19056 | PyObject * obj1 = 0 ; | |
19057 | char * kwnames[] = { | |
19058 | (char *) "self",(char *) "font", NULL | |
19059 | }; | |
19060 | ||
19061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
19062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19063 | if (!SWIG_IsOK(res1)) { | |
19064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19065 | } | |
19066 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19067 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19068 | if (!SWIG_IsOK(res2)) { | |
19069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19070 | } | |
19071 | if (!argp2) { | |
19072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19073 | } | |
19074 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
19075 | { | |
19076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19077 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
19081 | resultobj = SWIG_Py_Void(); | |
19082 | return resultobj; | |
19083 | fail: | |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19089 | PyObject *resultobj = 0; | |
19090 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19091 | int arg2 ; | |
19092 | int arg3 ; | |
19093 | void *argp1 = 0 ; | |
19094 | int res1 = 0 ; | |
19095 | int val2 ; | |
19096 | int ecode2 = 0 ; | |
19097 | int val3 ; | |
19098 | int ecode3 = 0 ; | |
19099 | PyObject * obj0 = 0 ; | |
19100 | PyObject * obj1 = 0 ; | |
19101 | PyObject * obj2 = 0 ; | |
19102 | char * kwnames[] = { | |
19103 | (char *) "self",(char *) "min",(char *) "max", NULL | |
19104 | }; | |
19105 | ||
19106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19108 | if (!SWIG_IsOK(res1)) { | |
19109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19110 | } | |
19111 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19112 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19113 | if (!SWIG_IsOK(ecode2)) { | |
19114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
19115 | } | |
19116 | arg2 = static_cast< int >(val2); | |
19117 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19118 | if (!SWIG_IsOK(ecode3)) { | |
19119 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
19120 | } | |
19121 | arg3 = static_cast< int >(val3); | |
19122 | { | |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19124 | (arg1)->SetRange(arg2,arg3); | |
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_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj = 0; | |
19137 | wxFontData *arg1 = (wxFontData *) 0 ; | |
19138 | bool arg2 ; | |
19139 | void *argp1 = 0 ; | |
19140 | int res1 = 0 ; | |
19141 | bool val2 ; | |
19142 | int ecode2 = 0 ; | |
19143 | PyObject * obj0 = 0 ; | |
19144 | PyObject * obj1 = 0 ; | |
19145 | char * kwnames[] = { | |
19146 | (char *) "self",(char *) "showHelp", NULL | |
19147 | }; | |
19148 | ||
19149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
19150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19151 | if (!SWIG_IsOK(res1)) { | |
19152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
19153 | } | |
19154 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
19155 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
19156 | if (!SWIG_IsOK(ecode2)) { | |
19157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
19158 | } | |
19159 | arg2 = static_cast< bool >(val2); | |
19160 | { | |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | (arg1)->SetShowHelp(arg2); | |
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
19166 | resultobj = SWIG_Py_Void(); | |
19167 | return resultobj; | |
19168 | fail: | |
19169 | return NULL; | |
d14a1e28 RD |
19170 | } |
19171 | ||
19172 | ||
0085ce49 RD |
19173 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19174 | PyObject *obj; | |
19175 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19176 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
19177 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19178 | } |
19179 | ||
0085ce49 RD |
19180 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19181 | return SWIG_Python_InitShadowInstance(args); | |
19182 | } | |
d14a1e28 | 19183 | |
0085ce49 RD |
19184 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19185 | PyObject *resultobj = 0; | |
19186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19187 | wxFontData *arg2 = 0 ; | |
19188 | wxFontDialog *result = 0 ; | |
19189 | void *argp1 = 0 ; | |
19190 | int res1 = 0 ; | |
19191 | void *argp2 = 0 ; | |
19192 | int res2 = 0 ; | |
19193 | PyObject * obj0 = 0 ; | |
19194 | PyObject * obj1 = 0 ; | |
19195 | char * kwnames[] = { | |
19196 | (char *) "parent",(char *) "data", NULL | |
19197 | }; | |
19198 | ||
19199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
19200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19201 | if (!SWIG_IsOK(res1)) { | |
19202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19203 | } | |
19204 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19205 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
19206 | if (!SWIG_IsOK(res2)) { | |
19207 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19208 | } | |
19209 | if (!argp2) { | |
19210 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
19211 | } | |
19212 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
19213 | { | |
19214 | if (!wxPyCheckForApp()) SWIG_fail; | |
19215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19216 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
19220 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
19221 | return resultobj; | |
19222 | fail: | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
19227 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19228 | PyObject *resultobj = 0; | |
19229 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
19230 | wxFontData *result = 0 ; | |
19231 | void *argp1 = 0 ; | |
19232 | int res1 = 0 ; | |
19233 | PyObject *swig_obj[1] ; | |
19234 | ||
19235 | if (!args) SWIG_fail; | |
19236 | swig_obj[0] = args; | |
19237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
19238 | if (!SWIG_IsOK(res1)) { | |
19239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
19240 | } | |
19241 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
19242 | { | |
19243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19244 | { |
0085ce49 RD |
19245 | wxFontData &_result_ref = (arg1)->GetFontData(); |
19246 | result = (wxFontData *) &_result_ref; | |
093d3ff1 | 19247 | } |
0085ce49 RD |
19248 | wxPyEndAllowThreads(__tstate); |
19249 | if (PyErr_Occurred()) SWIG_fail; | |
19250 | } | |
19251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19252 | return resultobj; | |
19253 | fail: | |
19254 | return NULL; | |
19255 | } | |
19256 | ||
19257 | ||
19258 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19259 | PyObject *obj; | |
19260 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19261 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
19262 | return SWIG_Py_Void(); | |
19263 | } | |
19264 | ||
19265 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19266 | return SWIG_Python_InitShadowInstance(args); | |
19267 | } | |
19268 | ||
19269 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19270 | PyObject *resultobj = 0; | |
19271 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19272 | wxFont const &arg2_defvalue = wxNullFont ; | |
19273 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
19274 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19275 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19276 | wxFont result; | |
19277 | void *argp1 = 0 ; | |
19278 | int res1 = 0 ; | |
19279 | void *argp2 = 0 ; | |
19280 | int res2 = 0 ; | |
19281 | bool temp3 = false ; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | PyObject * obj1 = 0 ; | |
19284 | PyObject * obj2 = 0 ; | |
19285 | char * kwnames[] = { | |
19286 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
19287 | }; | |
19288 | ||
19289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19290 | if (obj0) { | |
19291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19292 | if (!SWIG_IsOK(res1)) { | |
19293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19294 | } | |
19295 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19296 | } | |
19297 | if (obj1) { | |
19298 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19299 | if (!SWIG_IsOK(res2)) { | |
19300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
19301 | } | |
19302 | if (!argp2) { | |
19303 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d14a1e28 | 19304 | } |
0085ce49 RD |
19305 | arg2 = reinterpret_cast< wxFont * >(argp2); |
19306 | } | |
19307 | if (obj2) { | |
4f89f6a3 | 19308 | { |
0085ce49 RD |
19309 | arg3 = wxString_in_helper(obj2); |
19310 | if (arg3 == NULL) SWIG_fail; | |
19311 | temp3 = true; | |
4f89f6a3 | 19312 | } |
0085ce49 RD |
19313 | } |
19314 | { | |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
19317 | wxPyEndAllowThreads(__tstate); | |
19318 | if (PyErr_Occurred()) SWIG_fail; | |
19319 | } | |
19320 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19321 | { | |
19322 | if (temp3) | |
19323 | delete arg3; | |
19324 | } | |
19325 | return resultobj; | |
19326 | fail: | |
19327 | { | |
19328 | if (temp3) | |
19329 | delete arg3; | |
19330 | } | |
19331 | return NULL; | |
19332 | } | |
19333 | ||
19334 | ||
19335 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19336 | PyObject *resultobj = 0; | |
19337 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19338 | wxString *arg2 = 0 ; | |
19339 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
19340 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19341 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
19342 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
19343 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
19344 | wxMessageDialog *result = 0 ; | |
19345 | void *argp1 = 0 ; | |
19346 | int res1 = 0 ; | |
19347 | bool temp2 = false ; | |
19348 | bool temp3 = false ; | |
19349 | long val4 ; | |
19350 | int ecode4 = 0 ; | |
19351 | wxPoint temp5 ; | |
19352 | PyObject * obj0 = 0 ; | |
19353 | PyObject * obj1 = 0 ; | |
19354 | PyObject * obj2 = 0 ; | |
19355 | PyObject * obj3 = 0 ; | |
19356 | PyObject * obj4 = 0 ; | |
19357 | char * kwnames[] = { | |
19358 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
19359 | }; | |
19360 | ||
19361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19363 | if (!SWIG_IsOK(res1)) { | |
19364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19365 | } | |
19366 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19367 | { | |
19368 | arg2 = wxString_in_helper(obj1); | |
19369 | if (arg2 == NULL) SWIG_fail; | |
19370 | temp2 = true; | |
19371 | } | |
19372 | if (obj2) { | |
093d3ff1 | 19373 | { |
0085ce49 RD |
19374 | arg3 = wxString_in_helper(obj2); |
19375 | if (arg3 == NULL) SWIG_fail; | |
19376 | temp3 = true; | |
093d3ff1 | 19377 | } |
0085ce49 RD |
19378 | } |
19379 | if (obj3) { | |
19380 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
19381 | if (!SWIG_IsOK(ecode4)) { | |
19382 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
19383 | } | |
19384 | arg4 = static_cast< long >(val4); | |
19385 | } | |
19386 | if (obj4) { | |
d14a1e28 | 19387 | { |
0085ce49 RD |
19388 | arg5 = &temp5; |
19389 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19390 | } | |
19391 | } | |
19392 | { | |
19393 | if (!wxPyCheckForApp()) SWIG_fail; | |
19394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19395 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
19396 | wxPyEndAllowThreads(__tstate); | |
19397 | if (PyErr_Occurred()) SWIG_fail; | |
19398 | } | |
19399 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
19400 | { | |
19401 | if (temp2) | |
19402 | delete arg2; | |
19403 | } | |
19404 | { | |
19405 | if (temp3) | |
19406 | delete arg3; | |
19407 | } | |
19408 | return resultobj; | |
19409 | fail: | |
19410 | { | |
19411 | if (temp2) | |
19412 | delete arg2; | |
19413 | } | |
19414 | { | |
19415 | if (temp3) | |
19416 | delete arg3; | |
19417 | } | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
19422 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19423 | PyObject *obj; | |
19424 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19425 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
19426 | return SWIG_Py_Void(); | |
19427 | } | |
19428 | ||
19429 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19430 | return SWIG_Python_InitShadowInstance(args); | |
19431 | } | |
19432 | ||
19433 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19434 | PyObject *resultobj = 0; | |
19435 | wxString *arg1 = 0 ; | |
19436 | wxString *arg2 = 0 ; | |
19437 | int arg3 = (int) 100 ; | |
19438 | wxWindow *arg4 = (wxWindow *) NULL ; | |
19439 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
19440 | wxProgressDialog *result = 0 ; | |
19441 | bool temp1 = false ; | |
19442 | bool temp2 = false ; | |
19443 | int val3 ; | |
19444 | int ecode3 = 0 ; | |
19445 | void *argp4 = 0 ; | |
19446 | int res4 = 0 ; | |
19447 | int val5 ; | |
19448 | int ecode5 = 0 ; | |
19449 | PyObject * obj0 = 0 ; | |
19450 | PyObject * obj1 = 0 ; | |
19451 | PyObject * obj2 = 0 ; | |
19452 | PyObject * obj3 = 0 ; | |
19453 | PyObject * obj4 = 0 ; | |
19454 | char * kwnames[] = { | |
19455 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
19456 | }; | |
19457 | ||
19458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19459 | { | |
19460 | arg1 = wxString_in_helper(obj0); | |
19461 | if (arg1 == NULL) SWIG_fail; | |
19462 | temp1 = true; | |
19463 | } | |
19464 | { | |
19465 | arg2 = wxString_in_helper(obj1); | |
19466 | if (arg2 == NULL) SWIG_fail; | |
19467 | temp2 = true; | |
19468 | } | |
19469 | if (obj2) { | |
19470 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19471 | if (!SWIG_IsOK(ecode3)) { | |
19472 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
19473 | } | |
19474 | arg3 = static_cast< int >(val3); | |
19475 | } | |
19476 | if (obj3) { | |
19477 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19478 | if (!SWIG_IsOK(res4)) { | |
19479 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d14a1e28 | 19480 | } |
0085ce49 RD |
19481 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
19482 | } | |
19483 | if (obj4) { | |
19484 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19485 | if (!SWIG_IsOK(ecode5)) { | |
19486 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
19487 | } | |
19488 | arg5 = static_cast< int >(val5); | |
19489 | } | |
19490 | { | |
19491 | if (!wxPyCheckForApp()) SWIG_fail; | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19494 | wxPyEndAllowThreads(__tstate); | |
19495 | if (PyErr_Occurred()) SWIG_fail; | |
19496 | } | |
19497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19498 | { | |
19499 | if (temp1) | |
19500 | delete arg1; | |
19501 | } | |
19502 | { | |
19503 | if (temp2) | |
19504 | delete arg2; | |
19505 | } | |
19506 | return resultobj; | |
19507 | fail: | |
19508 | { | |
19509 | if (temp1) | |
19510 | delete arg1; | |
19511 | } | |
19512 | { | |
19513 | if (temp2) | |
19514 | delete arg2; | |
19515 | } | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj = 0; | |
19522 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19523 | int arg2 ; | |
19524 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19525 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
01f6b6d3 | 19526 | bool *arg4 = (bool *) 0 ; |
0085ce49 RD |
19527 | bool result; |
19528 | void *argp1 = 0 ; | |
19529 | int res1 = 0 ; | |
19530 | int val2 ; | |
19531 | int ecode2 = 0 ; | |
19532 | bool temp3 = false ; | |
01f6b6d3 RD |
19533 | bool temp4 ; |
19534 | int res4 = SWIG_TMPOBJ ; | |
0085ce49 RD |
19535 | PyObject * obj0 = 0 ; |
19536 | PyObject * obj1 = 0 ; | |
19537 | PyObject * obj2 = 0 ; | |
19538 | char * kwnames[] = { | |
19539 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19540 | }; | |
19541 | ||
01f6b6d3 | 19542 | arg4 = &temp4; |
0085ce49 RD |
19543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
19544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19545 | if (!SWIG_IsOK(res1)) { | |
19546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19547 | } | |
19548 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19549 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19550 | if (!SWIG_IsOK(ecode2)) { | |
19551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19552 | } | |
19553 | arg2 = static_cast< int >(val2); | |
19554 | if (obj2) { | |
4f89f6a3 | 19555 | { |
0085ce49 RD |
19556 | arg3 = wxString_in_helper(obj2); |
19557 | if (arg3 == NULL) SWIG_fail; | |
19558 | temp3 = true; | |
4f89f6a3 | 19559 | } |
0085ce49 RD |
19560 | } |
19561 | { | |
19562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 19563 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3,arg4); |
0085ce49 RD |
19564 | wxPyEndAllowThreads(__tstate); |
19565 | if (PyErr_Occurred()) SWIG_fail; | |
19566 | } | |
19567 | { | |
19568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19569 | } | |
01f6b6d3 RD |
19570 | if (SWIG_IsTmpObj(res4)) { |
19571 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4))); | |
19572 | } else { | |
19573 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19574 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags)); | |
19575 | } | |
0085ce49 RD |
19576 | { |
19577 | if (temp3) | |
19578 | delete arg3; | |
19579 | } | |
19580 | return resultobj; | |
19581 | fail: | |
19582 | { | |
19583 | if (temp3) | |
19584 | delete arg3; | |
19585 | } | |
19586 | return NULL; | |
d14a1e28 RD |
19587 | } |
19588 | ||
19589 | ||
6b449b19 | 19590 | SWIGINTERN PyObject *_wrap_ProgressDialog_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
ae5bc7f3 RD |
19591 | PyObject *resultobj = 0; |
19592 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19593 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
19594 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19595 | bool *arg3 = (bool *) 0 ; | |
19596 | bool result; | |
19597 | void *argp1 = 0 ; | |
19598 | int res1 = 0 ; | |
19599 | bool temp2 = false ; | |
19600 | bool temp3 ; | |
19601 | int res3 = SWIG_TMPOBJ ; | |
19602 | PyObject * obj0 = 0 ; | |
19603 | PyObject * obj1 = 0 ; | |
19604 | char * kwnames[] = { | |
19605 | (char *) "self",(char *) "newmsg", NULL | |
19606 | }; | |
19607 | ||
19608 | arg3 = &temp3; | |
6b449b19 | 19609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ProgressDialog_Pulse",kwnames,&obj0,&obj1)) SWIG_fail; |
ae5bc7f3 RD |
19610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); |
19611 | if (!SWIG_IsOK(res1)) { | |
6b449b19 | 19612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Pulse" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); |
ae5bc7f3 RD |
19613 | } |
19614 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19615 | if (obj1) { | |
19616 | { | |
19617 | arg2 = wxString_in_helper(obj1); | |
19618 | if (arg2 == NULL) SWIG_fail; | |
19619 | temp2 = true; | |
19620 | } | |
19621 | } | |
19622 | { | |
19623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6b449b19 | 19624 | result = (bool)(arg1)->Pulse((wxString const &)*arg2,arg3); |
ae5bc7f3 RD |
19625 | wxPyEndAllowThreads(__tstate); |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | { | |
19629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19630 | } | |
19631 | if (SWIG_IsTmpObj(res3)) { | |
19632 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg3))); | |
19633 | } else { | |
19634 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
19635 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_bool, new_flags)); | |
19636 | } | |
19637 | { | |
19638 | if (temp2) | |
19639 | delete arg2; | |
19640 | } | |
19641 | return resultobj; | |
19642 | fail: | |
19643 | { | |
19644 | if (temp2) | |
19645 | delete arg2; | |
19646 | } | |
19647 | return NULL; | |
19648 | } | |
19649 | ||
19650 | ||
0085ce49 RD |
19651 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19652 | PyObject *resultobj = 0; | |
19653 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19654 | void *argp1 = 0 ; | |
19655 | int res1 = 0 ; | |
19656 | PyObject *swig_obj[1] ; | |
19657 | ||
19658 | if (!args) SWIG_fail; | |
19659 | swig_obj[0] = args; | |
19660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19661 | if (!SWIG_IsOK(res1)) { | |
19662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19663 | } | |
19664 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | (arg1)->Resume(); | |
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
19671 | resultobj = SWIG_Py_Void(); | |
19672 | return resultobj; | |
19673 | fail: | |
19674 | return NULL; | |
d14a1e28 RD |
19675 | } |
19676 | ||
19677 | ||
0085ce49 RD |
19678 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19679 | PyObject *obj; | |
19680 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19681 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19682 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19683 | } |
19684 | ||
0085ce49 RD |
19685 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19686 | return SWIG_Python_InitShadowInstance(args); | |
19687 | } | |
d14a1e28 | 19688 | |
0085ce49 RD |
19689 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19690 | PyObject *resultobj = 0; | |
19691 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19692 | int arg2 = (int) 0 ; | |
19693 | wxFindDialogEvent *result = 0 ; | |
19694 | int val1 ; | |
19695 | int ecode1 = 0 ; | |
19696 | int val2 ; | |
19697 | int ecode2 = 0 ; | |
19698 | PyObject * obj0 = 0 ; | |
19699 | PyObject * obj1 = 0 ; | |
19700 | char * kwnames[] = { | |
19701 | (char *) "commandType",(char *) "id", NULL | |
19702 | }; | |
19703 | ||
19704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19705 | if (obj0) { | |
19706 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19707 | if (!SWIG_IsOK(ecode1)) { | |
19708 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19709 | } | |
19710 | arg1 = static_cast< wxEventType >(val1); | |
19711 | } | |
19712 | if (obj1) { | |
19713 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19714 | if (!SWIG_IsOK(ecode2)) { | |
19715 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19716 | } | |
19717 | arg2 = static_cast< int >(val2); | |
19718 | } | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | return NULL; | |
d14a1e28 RD |
19729 | } |
19730 | ||
19731 | ||
0085ce49 RD |
19732 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19733 | PyObject *resultobj = 0; | |
19734 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19735 | int result; | |
19736 | void *argp1 = 0 ; | |
19737 | int res1 = 0 ; | |
19738 | PyObject *swig_obj[1] ; | |
19739 | ||
19740 | if (!args) SWIG_fail; | |
19741 | swig_obj[0] = args; | |
19742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19743 | if (!SWIG_IsOK(res1)) { | |
19744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19745 | } | |
19746 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19747 | { | |
19748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19749 | result = (int)(arg1)->GetFlags(); | |
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
19753 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19754 | return resultobj; | |
19755 | fail: | |
19756 | return NULL; | |
d14a1e28 RD |
19757 | } |
19758 | ||
19759 | ||
0085ce49 RD |
19760 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19761 | PyObject *resultobj = 0; | |
19762 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19763 | wxString *result = 0 ; | |
19764 | void *argp1 = 0 ; | |
19765 | int res1 = 0 ; | |
19766 | PyObject *swig_obj[1] ; | |
19767 | ||
19768 | if (!args) SWIG_fail; | |
19769 | swig_obj[0] = args; | |
19770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19771 | if (!SWIG_IsOK(res1)) { | |
19772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19773 | } | |
19774 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 19777 | { |
0085ce49 RD |
19778 | wxString const &_result_ref = (arg1)->GetFindString(); |
19779 | result = (wxString *) &_result_ref; | |
d14a1e28 | 19780 | } |
0085ce49 RD |
19781 | wxPyEndAllowThreads(__tstate); |
19782 | if (PyErr_Occurred()) SWIG_fail; | |
19783 | } | |
19784 | { | |
19785 | #if wxUSE_UNICODE | |
19786 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19787 | #else | |
19788 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19789 | #endif | |
19790 | } | |
19791 | return resultobj; | |
19792 | fail: | |
19793 | return NULL; | |
d14a1e28 RD |
19794 | } |
19795 | ||
19796 | ||
0085ce49 RD |
19797 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19798 | PyObject *resultobj = 0; | |
19799 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19800 | wxString *result = 0 ; | |
19801 | void *argp1 = 0 ; | |
19802 | int res1 = 0 ; | |
19803 | PyObject *swig_obj[1] ; | |
19804 | ||
19805 | if (!args) SWIG_fail; | |
19806 | swig_obj[0] = args; | |
19807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19808 | if (!SWIG_IsOK(res1)) { | |
19809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19810 | } | |
19811 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19812 | { | |
19813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19814 | { |
0085ce49 RD |
19815 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19816 | result = (wxString *) &_result_ref; | |
093d3ff1 | 19817 | } |
0085ce49 RD |
19818 | wxPyEndAllowThreads(__tstate); |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
19821 | { | |
19822 | #if wxUSE_UNICODE | |
19823 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19824 | #else | |
19825 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19826 | #endif | |
19827 | } | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
d14a1e28 RD |
19831 | } |
19832 | ||
19833 | ||
0085ce49 RD |
19834 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19835 | PyObject *resultobj = 0; | |
19836 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19837 | wxFindReplaceDialog *result = 0 ; | |
19838 | void *argp1 = 0 ; | |
19839 | int res1 = 0 ; | |
19840 | PyObject *swig_obj[1] ; | |
19841 | ||
19842 | if (!args) SWIG_fail; | |
19843 | swig_obj[0] = args; | |
19844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19845 | if (!SWIG_IsOK(res1)) { | |
19846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19847 | } | |
19848 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19849 | { | |
19850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19851 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
19862 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19863 | PyObject *resultobj = 0; | |
19864 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19865 | int arg2 ; | |
19866 | void *argp1 = 0 ; | |
19867 | int res1 = 0 ; | |
19868 | int val2 ; | |
19869 | int ecode2 = 0 ; | |
19870 | PyObject * obj0 = 0 ; | |
19871 | PyObject * obj1 = 0 ; | |
19872 | char * kwnames[] = { | |
19873 | (char *) "self",(char *) "flags", NULL | |
19874 | }; | |
19875 | ||
19876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19878 | if (!SWIG_IsOK(res1)) { | |
19879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19880 | } | |
19881 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19882 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19883 | if (!SWIG_IsOK(ecode2)) { | |
19884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19885 | } | |
19886 | arg2 = static_cast< int >(val2); | |
19887 | { | |
19888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19889 | (arg1)->SetFlags(arg2); | |
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | resultobj = SWIG_Py_Void(); | |
19894 | return resultobj; | |
19895 | fail: | |
19896 | return NULL; | |
19897 | } | |
19898 | ||
19899 | ||
19900 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19901 | PyObject *resultobj = 0; | |
19902 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19903 | wxString *arg2 = 0 ; | |
19904 | void *argp1 = 0 ; | |
19905 | int res1 = 0 ; | |
19906 | bool temp2 = false ; | |
19907 | PyObject * obj0 = 0 ; | |
19908 | PyObject * obj1 = 0 ; | |
19909 | char * kwnames[] = { | |
19910 | (char *) "self",(char *) "str", NULL | |
19911 | }; | |
19912 | ||
19913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19915 | if (!SWIG_IsOK(res1)) { | |
19916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19917 | } | |
19918 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19919 | { | |
19920 | arg2 = wxString_in_helper(obj1); | |
19921 | if (arg2 == NULL) SWIG_fail; | |
19922 | temp2 = true; | |
19923 | } | |
19924 | { | |
19925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19926 | (arg1)->SetFindString((wxString const &)*arg2); | |
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | resultobj = SWIG_Py_Void(); | |
19931 | { | |
19932 | if (temp2) | |
19933 | delete arg2; | |
19934 | } | |
19935 | return resultobj; | |
19936 | fail: | |
19937 | { | |
19938 | if (temp2) | |
19939 | delete arg2; | |
19940 | } | |
19941 | return NULL; | |
d14a1e28 RD |
19942 | } |
19943 | ||
19944 | ||
0085ce49 RD |
19945 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19946 | PyObject *resultobj = 0; | |
19947 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19948 | wxString *arg2 = 0 ; | |
19949 | void *argp1 = 0 ; | |
19950 | int res1 = 0 ; | |
19951 | bool temp2 = false ; | |
19952 | PyObject * obj0 = 0 ; | |
19953 | PyObject * obj1 = 0 ; | |
19954 | char * kwnames[] = { | |
19955 | (char *) "self",(char *) "str", NULL | |
19956 | }; | |
19957 | ||
19958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19960 | if (!SWIG_IsOK(res1)) { | |
19961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19962 | } | |
19963 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19964 | { | |
19965 | arg2 = wxString_in_helper(obj1); | |
19966 | if (arg2 == NULL) SWIG_fail; | |
19967 | temp2 = true; | |
19968 | } | |
19969 | { | |
19970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19971 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19972 | wxPyEndAllowThreads(__tstate); | |
19973 | if (PyErr_Occurred()) SWIG_fail; | |
19974 | } | |
19975 | resultobj = SWIG_Py_Void(); | |
19976 | { | |
19977 | if (temp2) | |
19978 | delete arg2; | |
19979 | } | |
19980 | return resultobj; | |
19981 | fail: | |
19982 | { | |
19983 | if (temp2) | |
19984 | delete arg2; | |
19985 | } | |
19986 | return NULL; | |
d14a1e28 RD |
19987 | } |
19988 | ||
19989 | ||
0085ce49 RD |
19990 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19991 | PyObject *obj; | |
19992 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19993 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19994 | return SWIG_Py_Void(); | |
d14a1e28 RD |
19995 | } |
19996 | ||
0085ce49 RD |
19997 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19998 | return SWIG_Python_InitShadowInstance(args); | |
19999 | } | |
d14a1e28 | 20000 | |
0085ce49 RD |
20001 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20002 | PyObject *resultobj = 0; | |
20003 | int arg1 = (int) 0 ; | |
20004 | wxFindReplaceData *result = 0 ; | |
20005 | int val1 ; | |
20006 | int ecode1 = 0 ; | |
20007 | PyObject * obj0 = 0 ; | |
20008 | char * kwnames[] = { | |
20009 | (char *) "flags", NULL | |
20010 | }; | |
20011 | ||
20012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
20013 | if (obj0) { | |
20014 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
20015 | if (!SWIG_IsOK(ecode1)) { | |
20016 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
20017 | } | |
20018 | arg1 = static_cast< int >(val1); | |
20019 | } | |
20020 | { | |
20021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20022 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
20026 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
20027 | return resultobj; | |
20028 | fail: | |
20029 | return NULL; | |
d14a1e28 RD |
20030 | } |
20031 | ||
20032 | ||
0085ce49 RD |
20033 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20034 | PyObject *resultobj = 0; | |
20035 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20036 | void *argp1 = 0 ; | |
20037 | int res1 = 0 ; | |
20038 | PyObject *swig_obj[1] ; | |
20039 | ||
20040 | if (!args) SWIG_fail; | |
20041 | swig_obj[0] = args; | |
20042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
20043 | if (!SWIG_IsOK(res1)) { | |
20044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20045 | } | |
20046 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20047 | { | |
20048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20049 | delete arg1; | |
d14a1e28 | 20050 | |
0085ce49 RD |
20051 | wxPyEndAllowThreads(__tstate); |
20052 | if (PyErr_Occurred()) SWIG_fail; | |
20053 | } | |
20054 | resultobj = SWIG_Py_Void(); | |
20055 | return resultobj; | |
20056 | fail: | |
20057 | return NULL; | |
d14a1e28 RD |
20058 | } |
20059 | ||
20060 | ||
0085ce49 RD |
20061 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20062 | PyObject *resultobj = 0; | |
20063 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20064 | wxString *result = 0 ; | |
20065 | void *argp1 = 0 ; | |
20066 | int res1 = 0 ; | |
20067 | PyObject *swig_obj[1] ; | |
20068 | ||
20069 | if (!args) SWIG_fail; | |
20070 | swig_obj[0] = args; | |
20071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20072 | if (!SWIG_IsOK(res1)) { | |
20073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20074 | } | |
20075 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20076 | { | |
20077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 20078 | { |
0085ce49 RD |
20079 | wxString const &_result_ref = (arg1)->GetFindString(); |
20080 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 20081 | } |
0085ce49 RD |
20082 | wxPyEndAllowThreads(__tstate); |
20083 | if (PyErr_Occurred()) SWIG_fail; | |
20084 | } | |
20085 | { | |
20086 | #if wxUSE_UNICODE | |
20087 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20088 | #else | |
20089 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20090 | #endif | |
20091 | } | |
20092 | return resultobj; | |
20093 | fail: | |
20094 | return NULL; | |
d14a1e28 RD |
20095 | } |
20096 | ||
20097 | ||
0085ce49 RD |
20098 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20099 | PyObject *resultobj = 0; | |
20100 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20101 | wxString *result = 0 ; | |
20102 | void *argp1 = 0 ; | |
20103 | int res1 = 0 ; | |
20104 | PyObject *swig_obj[1] ; | |
20105 | ||
20106 | if (!args) SWIG_fail; | |
20107 | swig_obj[0] = args; | |
20108 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20109 | if (!SWIG_IsOK(res1)) { | |
20110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20111 | } | |
20112 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20113 | { | |
20114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 20115 | { |
0085ce49 RD |
20116 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
20117 | result = (wxString *) &_result_ref; | |
4f89f6a3 | 20118 | } |
0085ce49 RD |
20119 | wxPyEndAllowThreads(__tstate); |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
20121 | } | |
20122 | { | |
20123 | #if wxUSE_UNICODE | |
20124 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20125 | #else | |
20126 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20127 | #endif | |
20128 | } | |
20129 | return resultobj; | |
20130 | fail: | |
20131 | return NULL; | |
d14a1e28 RD |
20132 | } |
20133 | ||
20134 | ||
0085ce49 RD |
20135 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20136 | PyObject *resultobj = 0; | |
20137 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20138 | int result; | |
20139 | void *argp1 = 0 ; | |
20140 | int res1 = 0 ; | |
20141 | PyObject *swig_obj[1] ; | |
20142 | ||
20143 | if (!args) SWIG_fail; | |
20144 | swig_obj[0] = args; | |
20145 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20146 | if (!SWIG_IsOK(res1)) { | |
20147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20148 | } | |
20149 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20150 | { | |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | result = (int)(arg1)->GetFlags(); | |
20153 | wxPyEndAllowThreads(__tstate); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20157 | return resultobj; | |
20158 | fail: | |
20159 | return NULL; | |
20160 | } | |
20161 | ||
20162 | ||
20163 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20164 | PyObject *resultobj = 0; | |
20165 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20166 | int arg2 ; | |
20167 | void *argp1 = 0 ; | |
20168 | int res1 = 0 ; | |
20169 | int val2 ; | |
20170 | int ecode2 = 0 ; | |
20171 | PyObject * obj0 = 0 ; | |
20172 | PyObject * obj1 = 0 ; | |
20173 | char * kwnames[] = { | |
20174 | (char *) "self",(char *) "flags", NULL | |
20175 | }; | |
20176 | ||
20177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
20178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20179 | if (!SWIG_IsOK(res1)) { | |
20180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20181 | } | |
20182 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20184 | if (!SWIG_IsOK(ecode2)) { | |
20185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
20186 | } | |
20187 | arg2 = static_cast< int >(val2); | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | (arg1)->SetFlags(arg2); | |
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | resultobj = SWIG_Py_Void(); | |
20195 | return resultobj; | |
20196 | fail: | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
20201 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20202 | PyObject *resultobj = 0; | |
20203 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20204 | wxString *arg2 = 0 ; | |
20205 | void *argp1 = 0 ; | |
20206 | int res1 = 0 ; | |
20207 | bool temp2 = false ; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | PyObject * obj1 = 0 ; | |
20210 | char * kwnames[] = { | |
20211 | (char *) "self",(char *) "str", NULL | |
20212 | }; | |
20213 | ||
20214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20216 | if (!SWIG_IsOK(res1)) { | |
20217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20218 | } | |
20219 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20220 | { | |
20221 | arg2 = wxString_in_helper(obj1); | |
20222 | if (arg2 == NULL) SWIG_fail; | |
20223 | temp2 = true; | |
20224 | } | |
20225 | { | |
20226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20227 | (arg1)->SetFindString((wxString const &)*arg2); | |
20228 | wxPyEndAllowThreads(__tstate); | |
20229 | if (PyErr_Occurred()) SWIG_fail; | |
20230 | } | |
20231 | resultobj = SWIG_Py_Void(); | |
20232 | { | |
20233 | if (temp2) | |
20234 | delete arg2; | |
20235 | } | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | { | |
20239 | if (temp2) | |
20240 | delete arg2; | |
20241 | } | |
20242 | return NULL; | |
d14a1e28 RD |
20243 | } |
20244 | ||
20245 | ||
0085ce49 RD |
20246 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20247 | PyObject *resultobj = 0; | |
20248 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
20249 | wxString *arg2 = 0 ; | |
20250 | void *argp1 = 0 ; | |
20251 | int res1 = 0 ; | |
20252 | bool temp2 = false ; | |
20253 | PyObject * obj0 = 0 ; | |
20254 | PyObject * obj1 = 0 ; | |
20255 | char * kwnames[] = { | |
20256 | (char *) "self",(char *) "str", NULL | |
20257 | }; | |
20258 | ||
20259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
20260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20261 | if (!SWIG_IsOK(res1)) { | |
20262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
20263 | } | |
20264 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
20265 | { | |
20266 | arg2 = wxString_in_helper(obj1); | |
20267 | if (arg2 == NULL) SWIG_fail; | |
20268 | temp2 = true; | |
20269 | } | |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
20273 | wxPyEndAllowThreads(__tstate); | |
20274 | if (PyErr_Occurred()) SWIG_fail; | |
20275 | } | |
20276 | resultobj = SWIG_Py_Void(); | |
20277 | { | |
20278 | if (temp2) | |
20279 | delete arg2; | |
20280 | } | |
20281 | return resultobj; | |
20282 | fail: | |
20283 | { | |
20284 | if (temp2) | |
20285 | delete arg2; | |
20286 | } | |
20287 | return NULL; | |
20288 | } | |
20289 | ||
20290 | ||
20291 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20292 | PyObject *obj; | |
20293 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20294 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
20295 | return SWIG_Py_Void(); | |
20296 | } | |
20297 | ||
20298 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20299 | return SWIG_Python_InitShadowInstance(args); | |
20300 | } | |
20301 | ||
20302 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20303 | PyObject *resultobj = 0; | |
20304 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20305 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20306 | wxString *arg3 = 0 ; | |
20307 | int arg4 = (int) 0 ; | |
20308 | wxFindReplaceDialog *result = 0 ; | |
20309 | void *argp1 = 0 ; | |
20310 | int res1 = 0 ; | |
20311 | void *argp2 = 0 ; | |
20312 | int res2 = 0 ; | |
20313 | bool temp3 = false ; | |
20314 | int val4 ; | |
20315 | int ecode4 = 0 ; | |
20316 | PyObject * obj0 = 0 ; | |
20317 | PyObject * obj1 = 0 ; | |
20318 | PyObject * obj2 = 0 ; | |
20319 | PyObject * obj3 = 0 ; | |
20320 | char * kwnames[] = { | |
20321 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20322 | }; | |
20323 | ||
20324 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20325 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20326 | if (!SWIG_IsOK(res1)) { | |
20327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20328 | } | |
20329 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20330 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20331 | if (!SWIG_IsOK(res2)) { | |
20332 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20333 | } | |
20334 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20335 | { | |
20336 | arg3 = wxString_in_helper(obj2); | |
20337 | if (arg3 == NULL) SWIG_fail; | |
20338 | temp3 = true; | |
20339 | } | |
20340 | if (obj3) { | |
20341 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20342 | if (!SWIG_IsOK(ecode4)) { | |
20343 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
20344 | } | |
20345 | arg4 = static_cast< int >(val4); | |
20346 | } | |
20347 | { | |
20348 | if (!wxPyCheckForApp()) SWIG_fail; | |
20349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20350 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
20351 | wxPyEndAllowThreads(__tstate); | |
20352 | if (PyErr_Occurred()) SWIG_fail; | |
20353 | } | |
20354 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
20355 | { | |
20356 | if (temp3) | |
20357 | delete arg3; | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | { | |
20362 | if (temp3) | |
20363 | delete arg3; | |
20364 | } | |
20365 | return NULL; | |
d14a1e28 RD |
20366 | } |
20367 | ||
20368 | ||
0085ce49 RD |
20369 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20370 | PyObject *resultobj = 0; | |
20371 | wxFindReplaceDialog *result = 0 ; | |
20372 | ||
20373 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
20374 | { | |
20375 | if (!wxPyCheckForApp()) SWIG_fail; | |
20376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20377 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
20381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
20382 | return resultobj; | |
20383 | fail: | |
20384 | return NULL; | |
20385 | } | |
20386 | ||
20387 | ||
20388 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20389 | PyObject *resultobj = 0; | |
20390 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20391 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20392 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
20393 | wxString *arg4 = 0 ; | |
20394 | int arg5 = (int) 0 ; | |
20395 | bool result; | |
20396 | void *argp1 = 0 ; | |
20397 | int res1 = 0 ; | |
20398 | void *argp2 = 0 ; | |
20399 | int res2 = 0 ; | |
20400 | void *argp3 = 0 ; | |
20401 | int res3 = 0 ; | |
20402 | bool temp4 = false ; | |
20403 | int val5 ; | |
20404 | int ecode5 = 0 ; | |
20405 | PyObject * obj0 = 0 ; | |
20406 | PyObject * obj1 = 0 ; | |
20407 | PyObject * obj2 = 0 ; | |
20408 | PyObject * obj3 = 0 ; | |
20409 | PyObject * obj4 = 0 ; | |
20410 | char * kwnames[] = { | |
20411 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20412 | }; | |
20413 | ||
20414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20416 | if (!SWIG_IsOK(res1)) { | |
20417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20418 | } | |
20419 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20420 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20421 | if (!SWIG_IsOK(res2)) { | |
20422 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20423 | } | |
20424 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20425 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20426 | if (!SWIG_IsOK(res3)) { | |
20427 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
20428 | } | |
20429 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
20430 | { | |
20431 | arg4 = wxString_in_helper(obj3); | |
20432 | if (arg4 == NULL) SWIG_fail; | |
20433 | temp4 = true; | |
20434 | } | |
20435 | if (obj4) { | |
20436 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20437 | if (!SWIG_IsOK(ecode5)) { | |
20438 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
20439 | } | |
20440 | arg5 = static_cast< int >(val5); | |
20441 | } | |
20442 | { | |
20443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20444 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
20445 | wxPyEndAllowThreads(__tstate); | |
20446 | if (PyErr_Occurred()) SWIG_fail; | |
20447 | } | |
20448 | { | |
20449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20450 | } | |
20451 | { | |
20452 | if (temp4) | |
20453 | delete arg4; | |
20454 | } | |
20455 | return resultobj; | |
20456 | fail: | |
20457 | { | |
20458 | if (temp4) | |
20459 | delete arg4; | |
20460 | } | |
20461 | return NULL; | |
d14a1e28 RD |
20462 | } |
20463 | ||
20464 | ||
0085ce49 RD |
20465 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20466 | PyObject *resultobj = 0; | |
20467 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20468 | wxFindReplaceData *result = 0 ; | |
20469 | void *argp1 = 0 ; | |
20470 | int res1 = 0 ; | |
20471 | PyObject *swig_obj[1] ; | |
20472 | ||
20473 | if (!args) SWIG_fail; | |
20474 | swig_obj[0] = args; | |
20475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20476 | if (!SWIG_IsOK(res1)) { | |
20477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20478 | } | |
20479 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20480 | { | |
20481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20482 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
20483 | wxPyEndAllowThreads(__tstate); | |
20484 | if (PyErr_Occurred()) SWIG_fail; | |
20485 | } | |
20486 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20487 | return resultobj; | |
20488 | fail: | |
20489 | return NULL; | |
20490 | } | |
20491 | ||
20492 | ||
20493 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20494 | PyObject *resultobj = 0; | |
20495 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20496 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20497 | void *argp1 = 0 ; | |
20498 | int res1 = 0 ; | |
20499 | void *argp2 = 0 ; | |
20500 | int res2 = 0 ; | |
20501 | PyObject * obj0 = 0 ; | |
20502 | PyObject * obj1 = 0 ; | |
20503 | char * kwnames[] = { | |
20504 | (char *) "self",(char *) "data", NULL | |
20505 | }; | |
20506 | ||
20507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
20508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20509 | if (!SWIG_IsOK(res1)) { | |
20510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20511 | } | |
20512 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20513 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20514 | if (!SWIG_IsOK(res2)) { | |
20515 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20516 | } | |
20517 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20518 | { | |
20519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20520 | (arg1)->SetData(arg2); | |
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | resultobj = SWIG_Py_Void(); | |
20525 | return resultobj; | |
20526 | fail: | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
20531 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20532 | PyObject *obj; | |
20533 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20534 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
20535 | return SWIG_Py_Void(); | |
20536 | } | |
20537 | ||
20538 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20539 | return SWIG_Python_InitShadowInstance(args); | |
20540 | } | |
20541 | ||
20542 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20543 | PyObject *resultobj = 0; | |
20544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20545 | int arg2 = (int) (int)-1 ; | |
20546 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20547 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20548 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20549 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20550 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20551 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20552 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20553 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20554 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20555 | wxMDIParentFrame *result = 0 ; | |
20556 | void *argp1 = 0 ; | |
20557 | int res1 = 0 ; | |
20558 | int val2 ; | |
20559 | int ecode2 = 0 ; | |
20560 | bool temp3 = false ; | |
20561 | wxPoint temp4 ; | |
20562 | wxSize temp5 ; | |
20563 | long val6 ; | |
20564 | int ecode6 = 0 ; | |
20565 | bool temp7 = false ; | |
20566 | PyObject * obj0 = 0 ; | |
20567 | PyObject * obj1 = 0 ; | |
20568 | PyObject * obj2 = 0 ; | |
20569 | PyObject * obj3 = 0 ; | |
20570 | PyObject * obj4 = 0 ; | |
20571 | PyObject * obj5 = 0 ; | |
20572 | PyObject * obj6 = 0 ; | |
20573 | char * kwnames[] = { | |
20574 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20575 | }; | |
20576 | ||
20577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20579 | if (!SWIG_IsOK(res1)) { | |
20580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20581 | } | |
20582 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20583 | if (obj1) { | |
20584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20585 | if (!SWIG_IsOK(ecode2)) { | |
20586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20587 | } | |
20588 | arg2 = static_cast< int >(val2); | |
20589 | } | |
20590 | if (obj2) { | |
d14a1e28 | 20591 | { |
0085ce49 RD |
20592 | arg3 = wxString_in_helper(obj2); |
20593 | if (arg3 == NULL) SWIG_fail; | |
20594 | temp3 = true; | |
d14a1e28 | 20595 | } |
0085ce49 RD |
20596 | } |
20597 | if (obj3) { | |
d14a1e28 | 20598 | { |
0085ce49 RD |
20599 | arg4 = &temp4; |
20600 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 20601 | } |
0085ce49 RD |
20602 | } |
20603 | if (obj4) { | |
d14a1e28 | 20604 | { |
0085ce49 RD |
20605 | arg5 = &temp5; |
20606 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20607 | } | |
20608 | } | |
20609 | if (obj5) { | |
20610 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20611 | if (!SWIG_IsOK(ecode6)) { | |
20612 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20613 | } | |
20614 | arg6 = static_cast< long >(val6); | |
20615 | } | |
20616 | if (obj6) { | |
d14a1e28 | 20617 | { |
0085ce49 RD |
20618 | arg7 = wxString_in_helper(obj6); |
20619 | if (arg7 == NULL) SWIG_fail; | |
20620 | temp7 = true; | |
20621 | } | |
20622 | } | |
20623 | { | |
20624 | if (!wxPyCheckForApp()) SWIG_fail; | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20631 | { | |
20632 | if (temp3) | |
20633 | delete arg3; | |
20634 | } | |
20635 | { | |
20636 | if (temp7) | |
20637 | delete arg7; | |
20638 | } | |
20639 | return resultobj; | |
20640 | fail: | |
20641 | { | |
20642 | if (temp3) | |
20643 | delete arg3; | |
20644 | } | |
20645 | { | |
20646 | if (temp7) | |
20647 | delete arg7; | |
20648 | } | |
20649 | return NULL; | |
d14a1e28 RD |
20650 | } |
20651 | ||
20652 | ||
0085ce49 RD |
20653 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20654 | PyObject *resultobj = 0; | |
20655 | wxMDIParentFrame *result = 0 ; | |
20656 | ||
20657 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20658 | { | |
20659 | if (!wxPyCheckForApp()) SWIG_fail; | |
20660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20661 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20662 | wxPyEndAllowThreads(__tstate); | |
20663 | if (PyErr_Occurred()) SWIG_fail; | |
20664 | } | |
20665 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20666 | return resultobj; | |
20667 | fail: | |
20668 | return NULL; | |
20669 | } | |
20670 | ||
20671 | ||
20672 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20673 | PyObject *resultobj = 0; | |
20674 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20675 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20676 | int arg3 = (int) (int)-1 ; | |
20677 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20678 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20679 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20680 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20681 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20682 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20683 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20684 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20685 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20686 | bool result; | |
20687 | void *argp1 = 0 ; | |
20688 | int res1 = 0 ; | |
20689 | void *argp2 = 0 ; | |
20690 | int res2 = 0 ; | |
20691 | int val3 ; | |
20692 | int ecode3 = 0 ; | |
20693 | bool temp4 = false ; | |
20694 | wxPoint temp5 ; | |
20695 | wxSize temp6 ; | |
20696 | long val7 ; | |
20697 | int ecode7 = 0 ; | |
20698 | bool temp8 = false ; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | PyObject * obj1 = 0 ; | |
20701 | PyObject * obj2 = 0 ; | |
20702 | PyObject * obj3 = 0 ; | |
20703 | PyObject * obj4 = 0 ; | |
20704 | PyObject * obj5 = 0 ; | |
20705 | PyObject * obj6 = 0 ; | |
20706 | PyObject * obj7 = 0 ; | |
20707 | char * kwnames[] = { | |
20708 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20709 | }; | |
20710 | ||
20711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20713 | if (!SWIG_IsOK(res1)) { | |
20714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20715 | } | |
20716 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20717 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20718 | if (!SWIG_IsOK(res2)) { | |
20719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20720 | } | |
20721 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20722 | if (obj2) { | |
20723 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20724 | if (!SWIG_IsOK(ecode3)) { | |
20725 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20726 | } | |
20727 | arg3 = static_cast< int >(val3); | |
20728 | } | |
20729 | if (obj3) { | |
d14a1e28 | 20730 | { |
0085ce49 RD |
20731 | arg4 = wxString_in_helper(obj3); |
20732 | if (arg4 == NULL) SWIG_fail; | |
20733 | temp4 = true; | |
d14a1e28 | 20734 | } |
0085ce49 RD |
20735 | } |
20736 | if (obj4) { | |
4f89f6a3 | 20737 | { |
0085ce49 RD |
20738 | arg5 = &temp5; |
20739 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 20740 | } |
0085ce49 RD |
20741 | } |
20742 | if (obj5) { | |
d14a1e28 | 20743 | { |
0085ce49 RD |
20744 | arg6 = &temp6; |
20745 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 20746 | } |
0085ce49 RD |
20747 | } |
20748 | if (obj6) { | |
20749 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20750 | if (!SWIG_IsOK(ecode7)) { | |
20751 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20752 | } | |
20753 | arg7 = static_cast< long >(val7); | |
20754 | } | |
20755 | if (obj7) { | |
d14a1e28 | 20756 | { |
0085ce49 RD |
20757 | arg8 = wxString_in_helper(obj7); |
20758 | if (arg8 == NULL) SWIG_fail; | |
20759 | temp8 = true; | |
d14a1e28 | 20760 | } |
0085ce49 RD |
20761 | } |
20762 | { | |
20763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20764 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | { | |
20769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20770 | } | |
20771 | { | |
20772 | if (temp4) | |
20773 | delete arg4; | |
20774 | } | |
20775 | { | |
20776 | if (temp8) | |
20777 | delete arg8; | |
20778 | } | |
20779 | return resultobj; | |
20780 | fail: | |
20781 | { | |
20782 | if (temp4) | |
20783 | delete arg4; | |
20784 | } | |
20785 | { | |
20786 | if (temp8) | |
20787 | delete arg8; | |
20788 | } | |
20789 | return NULL; | |
d14a1e28 RD |
20790 | } |
20791 | ||
20792 | ||
0085ce49 RD |
20793 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20794 | PyObject *resultobj = 0; | |
20795 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20796 | void *argp1 = 0 ; | |
20797 | int res1 = 0 ; | |
20798 | PyObject *swig_obj[1] ; | |
20799 | ||
20800 | if (!args) SWIG_fail; | |
20801 | swig_obj[0] = args; | |
20802 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20803 | if (!SWIG_IsOK(res1)) { | |
20804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20805 | } | |
20806 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20807 | { | |
20808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20809 | (arg1)->ActivateNext(); | |
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | resultobj = SWIG_Py_Void(); | |
20814 | return resultobj; | |
20815 | fail: | |
20816 | return NULL; | |
d14a1e28 RD |
20817 | } |
20818 | ||
20819 | ||
0085ce49 RD |
20820 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20821 | PyObject *resultobj = 0; | |
20822 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20823 | void *argp1 = 0 ; | |
20824 | int res1 = 0 ; | |
20825 | PyObject *swig_obj[1] ; | |
20826 | ||
20827 | if (!args) SWIG_fail; | |
20828 | swig_obj[0] = args; | |
20829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20830 | if (!SWIG_IsOK(res1)) { | |
20831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20832 | } | |
20833 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20834 | { | |
20835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20836 | (arg1)->ActivatePrevious(); | |
20837 | wxPyEndAllowThreads(__tstate); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | } | |
20840 | resultobj = SWIG_Py_Void(); | |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
d14a1e28 RD |
20844 | } |
20845 | ||
20846 | ||
0085ce49 RD |
20847 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20848 | PyObject *resultobj = 0; | |
20849 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20850 | void *argp1 = 0 ; | |
20851 | int res1 = 0 ; | |
20852 | PyObject *swig_obj[1] ; | |
20853 | ||
20854 | if (!args) SWIG_fail; | |
20855 | swig_obj[0] = args; | |
20856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20857 | if (!SWIG_IsOK(res1)) { | |
20858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20859 | } | |
20860 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20861 | { | |
20862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20863 | (arg1)->ArrangeIcons(); | |
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | resultobj = SWIG_Py_Void(); | |
20868 | return resultobj; | |
20869 | fail: | |
20870 | return NULL; | |
7fdaaabe RD |
20871 | } |
20872 | ||
20873 | ||
0085ce49 RD |
20874 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20875 | PyObject *resultobj = 0; | |
20876 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20877 | void *argp1 = 0 ; | |
20878 | int res1 = 0 ; | |
20879 | PyObject *swig_obj[1] ; | |
20880 | ||
20881 | if (!args) SWIG_fail; | |
20882 | swig_obj[0] = args; | |
20883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20884 | if (!SWIG_IsOK(res1)) { | |
20885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20886 | } | |
20887 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20888 | { | |
20889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20890 | (arg1)->Cascade(); | |
20891 | wxPyEndAllowThreads(__tstate); | |
20892 | if (PyErr_Occurred()) SWIG_fail; | |
20893 | } | |
20894 | resultobj = SWIG_Py_Void(); | |
20895 | return resultobj; | |
20896 | fail: | |
20897 | return NULL; | |
d14a1e28 RD |
20898 | } |
20899 | ||
20900 | ||
0085ce49 RD |
20901 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20902 | PyObject *resultobj = 0; | |
20903 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20904 | wxMDIChildFrame *result = 0 ; | |
20905 | void *argp1 = 0 ; | |
20906 | int res1 = 0 ; | |
20907 | PyObject *swig_obj[1] ; | |
20908 | ||
20909 | if (!args) SWIG_fail; | |
20910 | swig_obj[0] = args; | |
20911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20912 | if (!SWIG_IsOK(res1)) { | |
20913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20914 | } | |
20915 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20916 | { | |
20917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20918 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20919 | wxPyEndAllowThreads(__tstate); | |
20920 | if (PyErr_Occurred()) SWIG_fail; | |
20921 | } | |
20922 | { | |
20923 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20924 | } | |
20925 | return resultobj; | |
20926 | fail: | |
20927 | return NULL; | |
d14a1e28 RD |
20928 | } |
20929 | ||
20930 | ||
0085ce49 RD |
20931 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20932 | PyObject *resultobj = 0; | |
20933 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20934 | wxMDIClientWindow *result = 0 ; | |
20935 | void *argp1 = 0 ; | |
20936 | int res1 = 0 ; | |
20937 | PyObject *swig_obj[1] ; | |
20938 | ||
20939 | if (!args) SWIG_fail; | |
20940 | swig_obj[0] = args; | |
20941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20942 | if (!SWIG_IsOK(res1)) { | |
20943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20944 | } | |
20945 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20946 | { | |
20947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20948 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20949 | wxPyEndAllowThreads(__tstate); | |
20950 | if (PyErr_Occurred()) SWIG_fail; | |
20951 | } | |
20952 | { | |
20953 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20954 | } | |
20955 | return resultobj; | |
20956 | fail: | |
20957 | return NULL; | |
74a57fcd RD |
20958 | } |
20959 | ||
20960 | ||
0085ce49 RD |
20961 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20962 | PyObject *resultobj = 0; | |
20963 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20964 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
20965 | void *argp1 = 0 ; | |
20966 | int res1 = 0 ; | |
20967 | int val2 ; | |
20968 | int ecode2 = 0 ; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | PyObject * obj1 = 0 ; | |
20971 | char * kwnames[] = { | |
20972 | (char *) "self",(char *) "orient", NULL | |
20973 | }; | |
20974 | ||
20975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
20976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20977 | if (!SWIG_IsOK(res1)) { | |
20978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20979 | } | |
20980 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20981 | if (obj1) { | |
20982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20983 | if (!SWIG_IsOK(ecode2)) { | |
20984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
20985 | } | |
20986 | arg2 = static_cast< wxOrientation >(val2); | |
20987 | } | |
20988 | { | |
20989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20990 | (arg1)->Tile(arg2); | |
20991 | wxPyEndAllowThreads(__tstate); | |
20992 | if (PyErr_Occurred()) SWIG_fail; | |
20993 | } | |
20994 | resultobj = SWIG_Py_Void(); | |
20995 | return resultobj; | |
20996 | fail: | |
20997 | return NULL; | |
20998 | } | |
20999 | ||
21000 | ||
21001 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21002 | PyObject *obj; | |
21003 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21004 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
21005 | return SWIG_Py_Void(); | |
21006 | } | |
21007 | ||
21008 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21009 | return SWIG_Python_InitShadowInstance(args); | |
21010 | } | |
21011 | ||
21012 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21013 | PyObject *resultobj = 0; | |
21014 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21015 | int arg2 = (int) (int)-1 ; | |
21016 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
21017 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21018 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21019 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21020 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21021 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21022 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
21023 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
21024 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21025 | wxMDIChildFrame *result = 0 ; | |
21026 | void *argp1 = 0 ; | |
21027 | int res1 = 0 ; | |
21028 | int val2 ; | |
21029 | int ecode2 = 0 ; | |
21030 | bool temp3 = false ; | |
21031 | wxPoint temp4 ; | |
21032 | wxSize temp5 ; | |
21033 | long val6 ; | |
21034 | int ecode6 = 0 ; | |
21035 | bool temp7 = false ; | |
21036 | PyObject * obj0 = 0 ; | |
21037 | PyObject * obj1 = 0 ; | |
21038 | PyObject * obj2 = 0 ; | |
21039 | PyObject * obj3 = 0 ; | |
21040 | PyObject * obj4 = 0 ; | |
21041 | PyObject * obj5 = 0 ; | |
21042 | PyObject * obj6 = 0 ; | |
21043 | char * kwnames[] = { | |
21044 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21045 | }; | |
21046 | ||
21047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
21048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21049 | if (!SWIG_IsOK(res1)) { | |
21050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21051 | } | |
21052 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21053 | if (obj1) { | |
21054 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21055 | if (!SWIG_IsOK(ecode2)) { | |
21056 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
21057 | } | |
21058 | arg2 = static_cast< int >(val2); | |
21059 | } | |
21060 | if (obj2) { | |
d14a1e28 | 21061 | { |
0085ce49 RD |
21062 | arg3 = wxString_in_helper(obj2); |
21063 | if (arg3 == NULL) SWIG_fail; | |
21064 | temp3 = true; | |
d14a1e28 | 21065 | } |
0085ce49 RD |
21066 | } |
21067 | if (obj3) { | |
4f89f6a3 | 21068 | { |
0085ce49 RD |
21069 | arg4 = &temp4; |
21070 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4f89f6a3 | 21071 | } |
0085ce49 RD |
21072 | } |
21073 | if (obj4) { | |
d14a1e28 | 21074 | { |
0085ce49 RD |
21075 | arg5 = &temp5; |
21076 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 21077 | } |
0085ce49 RD |
21078 | } |
21079 | if (obj5) { | |
21080 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
21081 | if (!SWIG_IsOK(ecode6)) { | |
21082 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
21083 | } | |
21084 | arg6 = static_cast< long >(val6); | |
21085 | } | |
21086 | if (obj6) { | |
4f89f6a3 | 21087 | { |
0085ce49 RD |
21088 | arg7 = wxString_in_helper(obj6); |
21089 | if (arg7 == NULL) SWIG_fail; | |
21090 | temp7 = true; | |
4f89f6a3 | 21091 | } |
0085ce49 RD |
21092 | } |
21093 | { | |
21094 | if (!wxPyCheckForApp()) SWIG_fail; | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
21101 | { | |
21102 | if (temp3) | |
21103 | delete arg3; | |
21104 | } | |
21105 | { | |
21106 | if (temp7) | |
21107 | delete arg7; | |
21108 | } | |
21109 | return resultobj; | |
21110 | fail: | |
21111 | { | |
21112 | if (temp3) | |
21113 | delete arg3; | |
21114 | } | |
21115 | { | |
21116 | if (temp7) | |
21117 | delete arg7; | |
21118 | } | |
21119 | return NULL; | |
d14a1e28 RD |
21120 | } |
21121 | ||
21122 | ||
0085ce49 RD |
21123 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21124 | PyObject *resultobj = 0; | |
21125 | wxMDIChildFrame *result = 0 ; | |
21126 | ||
21127 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
21128 | { | |
21129 | if (!wxPyCheckForApp()) SWIG_fail; | |
21130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21131 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
21135 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
21136 | return resultobj; | |
21137 | fail: | |
21138 | return NULL; | |
21139 | } | |
21140 | ||
21141 | ||
21142 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21143 | PyObject *resultobj = 0; | |
21144 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21145 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21146 | int arg3 = (int) (int)-1 ; | |
21147 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
21148 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
21149 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
21150 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
21151 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
21152 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
21153 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
21154 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
21155 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21156 | bool result; | |
21157 | void *argp1 = 0 ; | |
21158 | int res1 = 0 ; | |
21159 | void *argp2 = 0 ; | |
21160 | int res2 = 0 ; | |
21161 | int val3 ; | |
21162 | int ecode3 = 0 ; | |
21163 | bool temp4 = false ; | |
21164 | wxPoint temp5 ; | |
21165 | wxSize temp6 ; | |
21166 | long val7 ; | |
21167 | int ecode7 = 0 ; | |
21168 | bool temp8 = false ; | |
21169 | PyObject * obj0 = 0 ; | |
21170 | PyObject * obj1 = 0 ; | |
21171 | PyObject * obj2 = 0 ; | |
21172 | PyObject * obj3 = 0 ; | |
21173 | PyObject * obj4 = 0 ; | |
21174 | PyObject * obj5 = 0 ; | |
21175 | PyObject * obj6 = 0 ; | |
21176 | PyObject * obj7 = 0 ; | |
21177 | char * kwnames[] = { | |
21178 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21179 | }; | |
21180 | ||
21181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
21182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21183 | if (!SWIG_IsOK(res1)) { | |
21184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21185 | } | |
21186 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21187 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21188 | if (!SWIG_IsOK(res2)) { | |
21189 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21190 | } | |
21191 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21192 | if (obj2) { | |
21193 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21194 | if (!SWIG_IsOK(ecode3)) { | |
21195 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
21196 | } | |
21197 | arg3 = static_cast< int >(val3); | |
21198 | } | |
21199 | if (obj3) { | |
d14a1e28 | 21200 | { |
0085ce49 RD |
21201 | arg4 = wxString_in_helper(obj3); |
21202 | if (arg4 == NULL) SWIG_fail; | |
21203 | temp4 = true; | |
d14a1e28 | 21204 | } |
0085ce49 RD |
21205 | } |
21206 | if (obj4) { | |
4f89f6a3 | 21207 | { |
0085ce49 RD |
21208 | arg5 = &temp5; |
21209 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4f89f6a3 | 21210 | } |
0085ce49 RD |
21211 | } |
21212 | if (obj5) { | |
d14a1e28 | 21213 | { |
0085ce49 RD |
21214 | arg6 = &temp6; |
21215 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d14a1e28 | 21216 | } |
0085ce49 RD |
21217 | } |
21218 | if (obj6) { | |
21219 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
21220 | if (!SWIG_IsOK(ecode7)) { | |
21221 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
21222 | } | |
21223 | arg7 = static_cast< long >(val7); | |
21224 | } | |
21225 | if (obj7) { | |
d14a1e28 | 21226 | { |
0085ce49 RD |
21227 | arg8 = wxString_in_helper(obj7); |
21228 | if (arg8 == NULL) SWIG_fail; | |
21229 | temp8 = true; | |
d14a1e28 | 21230 | } |
0085ce49 RD |
21231 | } |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21235 | wxPyEndAllowThreads(__tstate); | |
21236 | if (PyErr_Occurred()) SWIG_fail; | |
21237 | } | |
21238 | { | |
21239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21240 | } | |
21241 | { | |
21242 | if (temp4) | |
21243 | delete arg4; | |
21244 | } | |
21245 | { | |
21246 | if (temp8) | |
21247 | delete arg8; | |
21248 | } | |
21249 | return resultobj; | |
21250 | fail: | |
21251 | { | |
21252 | if (temp4) | |
21253 | delete arg4; | |
21254 | } | |
21255 | { | |
21256 | if (temp8) | |
21257 | delete arg8; | |
21258 | } | |
21259 | return NULL; | |
d14a1e28 RD |
21260 | } |
21261 | ||
21262 | ||
0085ce49 RD |
21263 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21264 | PyObject *resultobj = 0; | |
21265 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21266 | void *argp1 = 0 ; | |
21267 | int res1 = 0 ; | |
21268 | PyObject *swig_obj[1] ; | |
21269 | ||
21270 | if (!args) SWIG_fail; | |
21271 | swig_obj[0] = args; | |
21272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21273 | if (!SWIG_IsOK(res1)) { | |
21274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21275 | } | |
21276 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | (arg1)->Activate(); | |
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | resultobj = SWIG_Py_Void(); | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
d14a1e28 RD |
21287 | } |
21288 | ||
21289 | ||
0085ce49 RD |
21290 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21291 | PyObject *obj; | |
21292 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21293 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
21294 | return SWIG_Py_Void(); | |
d14a1e28 RD |
21295 | } |
21296 | ||
0085ce49 RD |
21297 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21298 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
21299 | } |
21300 | ||
0085ce49 RD |
21301 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21302 | PyObject *resultobj = 0; | |
21303 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21304 | long arg2 = (long) 0 ; | |
21305 | wxMDIClientWindow *result = 0 ; | |
21306 | void *argp1 = 0 ; | |
21307 | int res1 = 0 ; | |
21308 | long val2 ; | |
21309 | int ecode2 = 0 ; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | PyObject * obj1 = 0 ; | |
21312 | char * kwnames[] = { | |
21313 | (char *) "parent",(char *) "style", NULL | |
21314 | }; | |
21315 | ||
21316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
21317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21318 | if (!SWIG_IsOK(res1)) { | |
21319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21320 | } | |
21321 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21322 | if (obj1) { | |
21323 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
21324 | if (!SWIG_IsOK(ecode2)) { | |
21325 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
21326 | } | |
21327 | arg2 = static_cast< long >(val2); | |
21328 | } | |
21329 | { | |
21330 | if (!wxPyCheckForApp()) SWIG_fail; | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
21333 | wxPyEndAllowThreads(__tstate); | |
21334 | if (PyErr_Occurred()) SWIG_fail; | |
21335 | } | |
21336 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
21337 | return resultobj; | |
21338 | fail: | |
21339 | return NULL; | |
b2dc1044 RD |
21340 | } |
21341 | ||
21342 | ||
0085ce49 RD |
21343 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21344 | PyObject *resultobj = 0; | |
21345 | wxMDIClientWindow *result = 0 ; | |
21346 | ||
21347 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
21348 | { | |
21349 | if (!wxPyCheckForApp()) SWIG_fail; | |
21350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21351 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21363 | PyObject *resultobj = 0; | |
21364 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
21365 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21366 | long arg3 = (long) 0 ; | |
21367 | bool result; | |
21368 | void *argp1 = 0 ; | |
21369 | int res1 = 0 ; | |
21370 | void *argp2 = 0 ; | |
21371 | int res2 = 0 ; | |
21372 | long val3 ; | |
21373 | int ecode3 = 0 ; | |
21374 | PyObject * obj0 = 0 ; | |
21375 | PyObject * obj1 = 0 ; | |
21376 | PyObject * obj2 = 0 ; | |
21377 | char * kwnames[] = { | |
21378 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
21379 | }; | |
21380 | ||
21381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
21383 | if (!SWIG_IsOK(res1)) { | |
21384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
21385 | } | |
21386 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
21387 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21388 | if (!SWIG_IsOK(res2)) { | |
21389 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21390 | } | |
21391 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21392 | if (obj2) { | |
21393 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
21394 | if (!SWIG_IsOK(ecode3)) { | |
21395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
21396 | } | |
21397 | arg3 = static_cast< long >(val3); | |
21398 | } | |
21399 | { | |
21400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21401 | result = (bool)(arg1)->Create(arg2,arg3); | |
21402 | wxPyEndAllowThreads(__tstate); | |
21403 | if (PyErr_Occurred()) SWIG_fail; | |
21404 | } | |
21405 | { | |
21406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21407 | } | |
21408 | return resultobj; | |
21409 | fail: | |
21410 | return NULL; | |
21411 | } | |
21412 | ||
21413 | ||
21414 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21415 | PyObject *obj; | |
21416 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21417 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
21418 | return SWIG_Py_Void(); | |
21419 | } | |
21420 | ||
21421 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21422 | return SWIG_Python_InitShadowInstance(args); | |
21423 | } | |
21424 | ||
21425 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21426 | PyObject *resultobj = 0; | |
21427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21428 | int arg2 = (int) (int)-1 ; | |
21429 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21430 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21431 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21432 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21433 | long arg5 = (long) 0 ; | |
21434 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21435 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21436 | wxPyWindow *result = 0 ; | |
21437 | void *argp1 = 0 ; | |
21438 | int res1 = 0 ; | |
21439 | int val2 ; | |
21440 | int ecode2 = 0 ; | |
21441 | wxPoint temp3 ; | |
21442 | wxSize temp4 ; | |
21443 | long val5 ; | |
21444 | int ecode5 = 0 ; | |
21445 | bool temp6 = false ; | |
21446 | PyObject * obj0 = 0 ; | |
21447 | PyObject * obj1 = 0 ; | |
21448 | PyObject * obj2 = 0 ; | |
21449 | PyObject * obj3 = 0 ; | |
21450 | PyObject * obj4 = 0 ; | |
21451 | PyObject * obj5 = 0 ; | |
21452 | char * kwnames[] = { | |
21453 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21454 | }; | |
21455 | ||
21456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21458 | if (!SWIG_IsOK(res1)) { | |
21459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21460 | } | |
21461 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21462 | if (obj1) { | |
21463 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21464 | if (!SWIG_IsOK(ecode2)) { | |
21465 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
21466 | } | |
21467 | arg2 = static_cast< int >(val2); | |
21468 | } | |
21469 | if (obj2) { | |
b2dc1044 | 21470 | { |
0085ce49 RD |
21471 | arg3 = &temp3; |
21472 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21473 | } | |
21474 | } | |
21475 | if (obj3) { | |
21476 | { | |
21477 | arg4 = &temp4; | |
21478 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21479 | } | |
21480 | } | |
21481 | if (obj4) { | |
21482 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21483 | if (!SWIG_IsOK(ecode5)) { | |
21484 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
21485 | } | |
21486 | arg5 = static_cast< long >(val5); | |
21487 | } | |
21488 | if (obj5) { | |
21489 | { | |
21490 | arg6 = wxString_in_helper(obj5); | |
21491 | if (arg6 == NULL) SWIG_fail; | |
21492 | temp6 = true; | |
b2dc1044 | 21493 | } |
0085ce49 RD |
21494 | } |
21495 | { | |
21496 | if (!wxPyCheckForApp()) SWIG_fail; | |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21499 | wxPyEndAllowThreads(__tstate); | |
21500 | if (PyErr_Occurred()) SWIG_fail; | |
21501 | } | |
21502 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
21503 | { | |
21504 | if (temp6) | |
21505 | delete arg6; | |
21506 | } | |
21507 | return resultobj; | |
21508 | fail: | |
21509 | { | |
21510 | if (temp6) | |
21511 | delete arg6; | |
21512 | } | |
21513 | return NULL; | |
b2dc1044 RD |
21514 | } |
21515 | ||
21516 | ||
0085ce49 RD |
21517 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21518 | PyObject *resultobj = 0; | |
21519 | wxPyWindow *result = 0 ; | |
21520 | ||
21521 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
21522 | { | |
21523 | if (!wxPyCheckForApp()) SWIG_fail; | |
21524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21525 | result = (wxPyWindow *)new wxPyWindow(); | |
21526 | wxPyEndAllowThreads(__tstate); | |
21527 | if (PyErr_Occurred()) SWIG_fail; | |
21528 | } | |
21529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21530 | return resultobj; | |
21531 | fail: | |
21532 | return NULL; | |
21533 | } | |
21534 | ||
21535 | ||
21536 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21537 | PyObject *resultobj = 0; | |
21538 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21539 | PyObject *arg2 = (PyObject *) 0 ; | |
21540 | PyObject *arg3 = (PyObject *) 0 ; | |
21541 | void *argp1 = 0 ; | |
21542 | int res1 = 0 ; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | PyObject * obj1 = 0 ; | |
21545 | PyObject * obj2 = 0 ; | |
21546 | char * kwnames[] = { | |
21547 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21548 | }; | |
21549 | ||
21550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21552 | if (!SWIG_IsOK(res1)) { | |
21553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21554 | } | |
21555 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21556 | arg2 = obj1; | |
21557 | arg3 = obj2; | |
21558 | { | |
21559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21560 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21561 | wxPyEndAllowThreads(__tstate); | |
21562 | if (PyErr_Occurred()) SWIG_fail; | |
21563 | } | |
21564 | resultobj = SWIG_Py_Void(); | |
21565 | return resultobj; | |
21566 | fail: | |
21567 | return NULL; | |
21568 | } | |
21569 | ||
21570 | ||
21571 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21572 | PyObject *resultobj = 0; | |
21573 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21574 | wxSize *arg2 = 0 ; | |
21575 | void *argp1 = 0 ; | |
21576 | int res1 = 0 ; | |
21577 | wxSize temp2 ; | |
21578 | PyObject * obj0 = 0 ; | |
21579 | PyObject * obj1 = 0 ; | |
21580 | char * kwnames[] = { | |
21581 | (char *) "self",(char *) "size", NULL | |
21582 | }; | |
21583 | ||
21584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21586 | if (!SWIG_IsOK(res1)) { | |
21587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21588 | } | |
21589 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21590 | { | |
21591 | arg2 = &temp2; | |
21592 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21593 | } | |
21594 | { | |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21596 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21597 | wxPyEndAllowThreads(__tstate); | |
21598 | if (PyErr_Occurred()) SWIG_fail; | |
21599 | } | |
21600 | resultobj = SWIG_Py_Void(); | |
21601 | return resultobj; | |
21602 | fail: | |
21603 | return NULL; | |
21604 | } | |
21605 | ||
21606 | ||
21607 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21608 | PyObject *resultobj = 0; | |
21609 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21610 | wxDC *arg2 = (wxDC *) 0 ; | |
21611 | bool result; | |
21612 | void *argp1 = 0 ; | |
21613 | int res1 = 0 ; | |
21614 | void *argp2 = 0 ; | |
21615 | int res2 = 0 ; | |
21616 | PyObject * obj0 = 0 ; | |
21617 | PyObject * obj1 = 0 ; | |
21618 | char * kwnames[] = { | |
21619 | (char *) "self",(char *) "dc", NULL | |
21620 | }; | |
21621 | ||
21622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21624 | if (!SWIG_IsOK(res1)) { | |
21625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21626 | } | |
21627 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21628 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21629 | if (!SWIG_IsOK(res2)) { | |
21630 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21631 | } | |
21632 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21633 | { | |
21634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21635 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21636 | wxPyEndAllowThreads(__tstate); | |
21637 | if (PyErr_Occurred()) SWIG_fail; | |
21638 | } | |
21639 | { | |
21640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21641 | } | |
21642 | return resultobj; | |
21643 | fail: | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
21648 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21649 | PyObject *resultobj = 0; | |
21650 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21651 | int arg2 ; | |
21652 | int arg3 ; | |
21653 | int arg4 ; | |
21654 | int arg5 ; | |
21655 | void *argp1 = 0 ; | |
21656 | int res1 = 0 ; | |
21657 | int val2 ; | |
21658 | int ecode2 = 0 ; | |
21659 | int val3 ; | |
21660 | int ecode3 = 0 ; | |
21661 | int val4 ; | |
21662 | int ecode4 = 0 ; | |
21663 | int val5 ; | |
21664 | int ecode5 = 0 ; | |
21665 | PyObject * obj0 = 0 ; | |
21666 | PyObject * obj1 = 0 ; | |
21667 | PyObject * obj2 = 0 ; | |
21668 | PyObject * obj3 = 0 ; | |
21669 | PyObject * obj4 = 0 ; | |
21670 | char * kwnames[] = { | |
21671 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21672 | }; | |
21673 | ||
21674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21676 | if (!SWIG_IsOK(res1)) { | |
21677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21678 | } | |
21679 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21680 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21681 | if (!SWIG_IsOK(ecode2)) { | |
21682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21683 | } | |
21684 | arg2 = static_cast< int >(val2); | |
21685 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21686 | if (!SWIG_IsOK(ecode3)) { | |
21687 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21688 | } | |
21689 | arg3 = static_cast< int >(val3); | |
21690 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21691 | if (!SWIG_IsOK(ecode4)) { | |
21692 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21693 | } | |
21694 | arg4 = static_cast< int >(val4); | |
21695 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21696 | if (!SWIG_IsOK(ecode5)) { | |
21697 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21698 | } | |
21699 | arg5 = static_cast< int >(val5); | |
21700 | { | |
21701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21702 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21703 | wxPyEndAllowThreads(__tstate); | |
21704 | if (PyErr_Occurred()) SWIG_fail; | |
21705 | } | |
21706 | resultobj = SWIG_Py_Void(); | |
21707 | return resultobj; | |
21708 | fail: | |
21709 | return NULL; | |
21710 | } | |
21711 | ||
21712 | ||
21713 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21714 | PyObject *resultobj = 0; | |
21715 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21716 | int arg2 ; | |
21717 | int arg3 ; | |
21718 | int arg4 ; | |
21719 | int arg5 ; | |
21720 | int arg6 = (int) wxSIZE_AUTO ; | |
21721 | void *argp1 = 0 ; | |
21722 | int res1 = 0 ; | |
21723 | int val2 ; | |
21724 | int ecode2 = 0 ; | |
21725 | int val3 ; | |
21726 | int ecode3 = 0 ; | |
21727 | int val4 ; | |
21728 | int ecode4 = 0 ; | |
21729 | int val5 ; | |
21730 | int ecode5 = 0 ; | |
21731 | int val6 ; | |
21732 | int ecode6 = 0 ; | |
21733 | PyObject * obj0 = 0 ; | |
21734 | PyObject * obj1 = 0 ; | |
21735 | PyObject * obj2 = 0 ; | |
21736 | PyObject * obj3 = 0 ; | |
21737 | PyObject * obj4 = 0 ; | |
21738 | PyObject * obj5 = 0 ; | |
21739 | char * kwnames[] = { | |
21740 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21741 | }; | |
21742 | ||
21743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21745 | if (!SWIG_IsOK(res1)) { | |
21746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21747 | } | |
21748 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21749 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21750 | if (!SWIG_IsOK(ecode2)) { | |
21751 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21752 | } | |
21753 | arg2 = static_cast< int >(val2); | |
21754 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21755 | if (!SWIG_IsOK(ecode3)) { | |
21756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21757 | } | |
21758 | arg3 = static_cast< int >(val3); | |
21759 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21760 | if (!SWIG_IsOK(ecode4)) { | |
21761 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21762 | } | |
21763 | arg4 = static_cast< int >(val4); | |
21764 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21765 | if (!SWIG_IsOK(ecode5)) { | |
21766 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21767 | } | |
21768 | arg5 = static_cast< int >(val5); | |
21769 | if (obj5) { | |
21770 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21771 | if (!SWIG_IsOK(ecode6)) { | |
21772 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21773 | } | |
21774 | arg6 = static_cast< int >(val6); | |
21775 | } | |
21776 | { | |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | resultobj = SWIG_Py_Void(); | |
21783 | return resultobj; | |
21784 | fail: | |
21785 | return NULL; | |
21786 | } | |
21787 | ||
21788 | ||
21789 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21790 | PyObject *resultobj = 0; | |
21791 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21792 | int arg2 ; | |
21793 | int arg3 ; | |
21794 | void *argp1 = 0 ; | |
21795 | int res1 = 0 ; | |
21796 | int val2 ; | |
21797 | int ecode2 = 0 ; | |
21798 | int val3 ; | |
21799 | int ecode3 = 0 ; | |
21800 | PyObject * obj0 = 0 ; | |
21801 | PyObject * obj1 = 0 ; | |
21802 | PyObject * obj2 = 0 ; | |
21803 | char * kwnames[] = { | |
21804 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21805 | }; | |
21806 | ||
21807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21809 | if (!SWIG_IsOK(res1)) { | |
21810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21811 | } | |
21812 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21813 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21814 | if (!SWIG_IsOK(ecode2)) { | |
21815 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21816 | } | |
21817 | arg2 = static_cast< int >(val2); | |
21818 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21819 | if (!SWIG_IsOK(ecode3)) { | |
21820 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21821 | } | |
21822 | arg3 = static_cast< int >(val3); | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | (arg1)->DoSetClientSize(arg2,arg3); | |
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | resultobj = SWIG_Py_Void(); | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21837 | PyObject *resultobj = 0; | |
21838 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21839 | int arg2 ; | |
21840 | int arg3 ; | |
21841 | void *argp1 = 0 ; | |
21842 | int res1 = 0 ; | |
21843 | int val2 ; | |
21844 | int ecode2 = 0 ; | |
21845 | int val3 ; | |
21846 | int ecode3 = 0 ; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | PyObject * obj1 = 0 ; | |
21849 | PyObject * obj2 = 0 ; | |
21850 | char * kwnames[] = { | |
21851 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21852 | }; | |
21853 | ||
21854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21856 | if (!SWIG_IsOK(res1)) { | |
21857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21858 | } | |
21859 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21860 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21861 | if (!SWIG_IsOK(ecode2)) { | |
21862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21863 | } | |
21864 | arg2 = static_cast< int >(val2); | |
21865 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21866 | if (!SWIG_IsOK(ecode3)) { | |
21867 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21868 | } | |
21869 | arg3 = static_cast< int >(val3); | |
21870 | { | |
21871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21872 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21873 | wxPyEndAllowThreads(__tstate); | |
21874 | if (PyErr_Occurred()) SWIG_fail; | |
21875 | } | |
21876 | resultobj = SWIG_Py_Void(); | |
21877 | return resultobj; | |
21878 | fail: | |
21879 | return NULL; | |
21880 | } | |
21881 | ||
21882 | ||
21883 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21884 | PyObject *resultobj = 0; | |
21885 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21886 | int *arg2 = (int *) 0 ; | |
21887 | int *arg3 = (int *) 0 ; | |
21888 | void *argp1 = 0 ; | |
21889 | int res1 = 0 ; | |
21890 | int temp2 ; | |
21891 | int res2 = SWIG_TMPOBJ ; | |
21892 | int temp3 ; | |
21893 | int res3 = SWIG_TMPOBJ ; | |
21894 | PyObject *swig_obj[1] ; | |
21895 | ||
21896 | arg2 = &temp2; | |
21897 | arg3 = &temp3; | |
21898 | if (!args) SWIG_fail; | |
21899 | swig_obj[0] = args; | |
21900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21901 | if (!SWIG_IsOK(res1)) { | |
21902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21903 | } | |
21904 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21905 | { | |
21906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21907 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21908 | wxPyEndAllowThreads(__tstate); | |
21909 | if (PyErr_Occurred()) SWIG_fail; | |
21910 | } | |
21911 | resultobj = SWIG_Py_Void(); | |
21912 | if (SWIG_IsTmpObj(res2)) { | |
21913 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21914 | } else { | |
21915 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21916 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21917 | } | |
21918 | if (SWIG_IsTmpObj(res3)) { | |
21919 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21920 | } else { | |
21921 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21922 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21923 | } | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21931 | PyObject *resultobj = 0; | |
21932 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21933 | int *arg2 = (int *) 0 ; | |
21934 | int *arg3 = (int *) 0 ; | |
21935 | void *argp1 = 0 ; | |
21936 | int res1 = 0 ; | |
21937 | int temp2 ; | |
21938 | int res2 = SWIG_TMPOBJ ; | |
21939 | int temp3 ; | |
21940 | int res3 = SWIG_TMPOBJ ; | |
21941 | PyObject *swig_obj[1] ; | |
21942 | ||
21943 | arg2 = &temp2; | |
21944 | arg3 = &temp3; | |
21945 | if (!args) SWIG_fail; | |
21946 | swig_obj[0] = args; | |
21947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21948 | if (!SWIG_IsOK(res1)) { | |
21949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21950 | } | |
21951 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21952 | { | |
21953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21954 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
21955 | wxPyEndAllowThreads(__tstate); | |
21956 | if (PyErr_Occurred()) SWIG_fail; | |
21957 | } | |
21958 | resultobj = SWIG_Py_Void(); | |
21959 | if (SWIG_IsTmpObj(res2)) { | |
21960 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21961 | } else { | |
21962 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21963 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21964 | } | |
21965 | if (SWIG_IsTmpObj(res3)) { | |
21966 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21967 | } else { | |
21968 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21969 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21970 | } | |
21971 | return resultobj; | |
21972 | fail: | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
21977 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21978 | PyObject *resultobj = 0; | |
21979 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21980 | int *arg2 = (int *) 0 ; | |
21981 | int *arg3 = (int *) 0 ; | |
21982 | void *argp1 = 0 ; | |
21983 | int res1 = 0 ; | |
21984 | int temp2 ; | |
21985 | int res2 = SWIG_TMPOBJ ; | |
21986 | int temp3 ; | |
21987 | int res3 = SWIG_TMPOBJ ; | |
21988 | PyObject *swig_obj[1] ; | |
21989 | ||
21990 | arg2 = &temp2; | |
21991 | arg3 = &temp3; | |
21992 | if (!args) SWIG_fail; | |
21993 | swig_obj[0] = args; | |
21994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21995 | if (!SWIG_IsOK(res1)) { | |
21996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21997 | } | |
21998 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
22005 | resultobj = SWIG_Py_Void(); | |
22006 | if (SWIG_IsTmpObj(res2)) { | |
22007 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22008 | } else { | |
22009 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22010 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22011 | } | |
22012 | if (SWIG_IsTmpObj(res3)) { | |
22013 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22014 | } else { | |
22015 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22016 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22017 | } | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
b2dc1044 RD |
22021 | } |
22022 | ||
22023 | ||
0085ce49 RD |
22024 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22025 | PyObject *resultobj = 0; | |
22026 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22027 | wxSize result; | |
22028 | void *argp1 = 0 ; | |
22029 | int res1 = 0 ; | |
22030 | PyObject *swig_obj[1] ; | |
22031 | ||
22032 | if (!args) SWIG_fail; | |
22033 | swig_obj[0] = args; | |
22034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22035 | if (!SWIG_IsOK(res1)) { | |
22036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22037 | } | |
22038 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
b2dc1044 RD |
22049 | } |
22050 | ||
22051 | ||
0085ce49 RD |
22052 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22053 | PyObject *resultobj = 0; | |
22054 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22055 | wxSize result; | |
22056 | void *argp1 = 0 ; | |
22057 | int res1 = 0 ; | |
22058 | PyObject *swig_obj[1] ; | |
22059 | ||
22060 | if (!args) SWIG_fail; | |
22061 | swig_obj[0] = args; | |
22062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22063 | if (!SWIG_IsOK(res1)) { | |
22064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
22065 | } | |
22066 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22067 | { | |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22069 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
22073 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22074 | return resultobj; | |
22075 | fail: | |
22076 | return NULL; | |
b2dc1044 RD |
22077 | } |
22078 | ||
22079 | ||
0085ce49 RD |
22080 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22081 | PyObject *resultobj = 0; | |
22082 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22083 | SwigValueWrapper<wxVisualAttributes > result; | |
22084 | void *argp1 = 0 ; | |
22085 | int res1 = 0 ; | |
22086 | PyObject *swig_obj[1] ; | |
22087 | ||
22088 | if (!args) SWIG_fail; | |
22089 | swig_obj[0] = args; | |
22090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22091 | if (!SWIG_IsOK(res1)) { | |
22092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22093 | } | |
22094 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | result = (arg1)->GetDefaultAttributes(); | |
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22102 | return resultobj; | |
22103 | fail: | |
22104 | return NULL; | |
d14a1e28 RD |
22105 | } |
22106 | ||
22107 | ||
0085ce49 RD |
22108 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22109 | PyObject *resultobj = 0; | |
22110 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
22111 | void *argp1 = 0 ; | |
22112 | int res1 = 0 ; | |
22113 | PyObject *swig_obj[1] ; | |
22114 | ||
22115 | if (!args) SWIG_fail; | |
22116 | swig_obj[0] = args; | |
22117 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
22118 | if (!SWIG_IsOK(res1)) { | |
22119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
22120 | } | |
22121 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
22122 | { | |
22123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22124 | (arg1)->OnInternalIdle(); | |
22125 | wxPyEndAllowThreads(__tstate); | |
22126 | if (PyErr_Occurred()) SWIG_fail; | |
22127 | } | |
22128 | resultobj = SWIG_Py_Void(); | |
22129 | return resultobj; | |
22130 | fail: | |
22131 | return NULL; | |
22132 | } | |
22133 | ||
22134 | ||
22135 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22136 | PyObject *obj; | |
22137 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22138 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
22139 | return SWIG_Py_Void(); | |
22140 | } | |
22141 | ||
22142 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22143 | return SWIG_Python_InitShadowInstance(args); | |
22144 | } | |
22145 | ||
22146 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj = 0; | |
22148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22149 | int arg2 = (int) (int)-1 ; | |
22150 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22151 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22154 | long arg5 = (long) 0 ; | |
22155 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22156 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22157 | wxPyPanel *result = 0 ; | |
22158 | void *argp1 = 0 ; | |
22159 | int res1 = 0 ; | |
22160 | int val2 ; | |
22161 | int ecode2 = 0 ; | |
22162 | wxPoint temp3 ; | |
22163 | wxSize temp4 ; | |
22164 | long val5 ; | |
22165 | int ecode5 = 0 ; | |
22166 | bool temp6 = false ; | |
22167 | PyObject * obj0 = 0 ; | |
22168 | PyObject * obj1 = 0 ; | |
22169 | PyObject * obj2 = 0 ; | |
22170 | PyObject * obj3 = 0 ; | |
22171 | PyObject * obj4 = 0 ; | |
22172 | PyObject * obj5 = 0 ; | |
22173 | char * kwnames[] = { | |
22174 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22175 | }; | |
22176 | ||
22177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22179 | if (!SWIG_IsOK(res1)) { | |
22180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22181 | } | |
22182 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22183 | if (obj1) { | |
22184 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22185 | if (!SWIG_IsOK(ecode2)) { | |
22186 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
22187 | } | |
22188 | arg2 = static_cast< int >(val2); | |
22189 | } | |
22190 | if (obj2) { | |
d14a1e28 | 22191 | { |
0085ce49 RD |
22192 | arg3 = &temp3; |
22193 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 | 22194 | } |
0085ce49 RD |
22195 | } |
22196 | if (obj3) { | |
d14a1e28 | 22197 | { |
0085ce49 RD |
22198 | arg4 = &temp4; |
22199 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 22200 | } |
0085ce49 RD |
22201 | } |
22202 | if (obj4) { | |
22203 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22204 | if (!SWIG_IsOK(ecode5)) { | |
22205 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
22206 | } | |
22207 | arg5 = static_cast< long >(val5); | |
22208 | } | |
22209 | if (obj5) { | |
093d3ff1 | 22210 | { |
0085ce49 RD |
22211 | arg6 = wxString_in_helper(obj5); |
22212 | if (arg6 == NULL) SWIG_fail; | |
22213 | temp6 = true; | |
093d3ff1 | 22214 | } |
0085ce49 RD |
22215 | } |
22216 | { | |
22217 | if (!wxPyCheckForApp()) SWIG_fail; | |
22218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22219 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22220 | wxPyEndAllowThreads(__tstate); | |
22221 | if (PyErr_Occurred()) SWIG_fail; | |
22222 | } | |
22223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
22224 | { | |
22225 | if (temp6) | |
22226 | delete arg6; | |
22227 | } | |
22228 | return resultobj; | |
22229 | fail: | |
22230 | { | |
22231 | if (temp6) | |
22232 | delete arg6; | |
22233 | } | |
22234 | return NULL; | |
d14a1e28 RD |
22235 | } |
22236 | ||
22237 | ||
0085ce49 RD |
22238 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22239 | PyObject *resultobj = 0; | |
22240 | wxPyPanel *result = 0 ; | |
22241 | ||
22242 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
22243 | { | |
22244 | if (!wxPyCheckForApp()) SWIG_fail; | |
22245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22246 | result = (wxPyPanel *)new wxPyPanel(); | |
22247 | wxPyEndAllowThreads(__tstate); | |
22248 | if (PyErr_Occurred()) SWIG_fail; | |
22249 | } | |
22250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
22251 | return resultobj; | |
22252 | fail: | |
22253 | return NULL; | |
22254 | } | |
22255 | ||
22256 | ||
22257 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22258 | PyObject *resultobj = 0; | |
22259 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22260 | PyObject *arg2 = (PyObject *) 0 ; | |
22261 | PyObject *arg3 = (PyObject *) 0 ; | |
22262 | void *argp1 = 0 ; | |
22263 | int res1 = 0 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | PyObject * obj1 = 0 ; | |
22266 | PyObject * obj2 = 0 ; | |
22267 | char * kwnames[] = { | |
22268 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22269 | }; | |
22270 | ||
22271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22273 | if (!SWIG_IsOK(res1)) { | |
22274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22275 | } | |
22276 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22277 | arg2 = obj1; | |
22278 | arg3 = obj2; | |
22279 | { | |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22282 | wxPyEndAllowThreads(__tstate); | |
22283 | if (PyErr_Occurred()) SWIG_fail; | |
22284 | } | |
22285 | resultobj = SWIG_Py_Void(); | |
22286 | return resultobj; | |
22287 | fail: | |
22288 | return NULL; | |
22289 | } | |
22290 | ||
22291 | ||
22292 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22293 | PyObject *resultobj = 0; | |
22294 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22295 | wxSize *arg2 = 0 ; | |
22296 | void *argp1 = 0 ; | |
22297 | int res1 = 0 ; | |
22298 | wxSize temp2 ; | |
22299 | PyObject * obj0 = 0 ; | |
22300 | PyObject * obj1 = 0 ; | |
22301 | char * kwnames[] = { | |
22302 | (char *) "self",(char *) "size", NULL | |
22303 | }; | |
22304 | ||
22305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22307 | if (!SWIG_IsOK(res1)) { | |
22308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22309 | } | |
22310 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22311 | { | |
22312 | arg2 = &temp2; | |
22313 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22314 | } | |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22318 | wxPyEndAllowThreads(__tstate); | |
22319 | if (PyErr_Occurred()) SWIG_fail; | |
22320 | } | |
22321 | resultobj = SWIG_Py_Void(); | |
22322 | return resultobj; | |
22323 | fail: | |
22324 | return NULL; | |
22325 | } | |
22326 | ||
22327 | ||
22328 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22329 | PyObject *resultobj = 0; | |
22330 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22331 | wxDC *arg2 = (wxDC *) 0 ; | |
22332 | bool result; | |
22333 | void *argp1 = 0 ; | |
22334 | int res1 = 0 ; | |
22335 | void *argp2 = 0 ; | |
22336 | int res2 = 0 ; | |
22337 | PyObject * obj0 = 0 ; | |
22338 | PyObject * obj1 = 0 ; | |
22339 | char * kwnames[] = { | |
22340 | (char *) "self",(char *) "dc", NULL | |
22341 | }; | |
22342 | ||
22343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22345 | if (!SWIG_IsOK(res1)) { | |
22346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22347 | } | |
22348 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22349 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22350 | if (!SWIG_IsOK(res2)) { | |
22351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22352 | } | |
22353 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22354 | { | |
22355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22356 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22357 | wxPyEndAllowThreads(__tstate); | |
22358 | if (PyErr_Occurred()) SWIG_fail; | |
22359 | } | |
22360 | { | |
22361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22362 | } | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj = 0; | |
22371 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22372 | int arg2 ; | |
22373 | int arg3 ; | |
22374 | int arg4 ; | |
22375 | int arg5 ; | |
22376 | void *argp1 = 0 ; | |
22377 | int res1 = 0 ; | |
22378 | int val2 ; | |
22379 | int ecode2 = 0 ; | |
22380 | int val3 ; | |
22381 | int ecode3 = 0 ; | |
22382 | int val4 ; | |
22383 | int ecode4 = 0 ; | |
22384 | int val5 ; | |
22385 | int ecode5 = 0 ; | |
22386 | PyObject * obj0 = 0 ; | |
22387 | PyObject * obj1 = 0 ; | |
22388 | PyObject * obj2 = 0 ; | |
22389 | PyObject * obj3 = 0 ; | |
22390 | PyObject * obj4 = 0 ; | |
22391 | char * kwnames[] = { | |
22392 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22393 | }; | |
22394 | ||
22395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22397 | if (!SWIG_IsOK(res1)) { | |
22398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22399 | } | |
22400 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22402 | if (!SWIG_IsOK(ecode2)) { | |
22403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22404 | } | |
22405 | arg2 = static_cast< int >(val2); | |
22406 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22407 | if (!SWIG_IsOK(ecode3)) { | |
22408 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22409 | } | |
22410 | arg3 = static_cast< int >(val3); | |
22411 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22412 | if (!SWIG_IsOK(ecode4)) { | |
22413 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22414 | } | |
22415 | arg4 = static_cast< int >(val4); | |
22416 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22417 | if (!SWIG_IsOK(ecode5)) { | |
22418 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22419 | } | |
22420 | arg5 = static_cast< int >(val5); | |
22421 | { | |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22423 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | resultobj = SWIG_Py_Void(); | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22435 | PyObject *resultobj = 0; | |
22436 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22437 | int arg2 ; | |
22438 | int arg3 ; | |
22439 | int arg4 ; | |
22440 | int arg5 ; | |
22441 | int arg6 = (int) wxSIZE_AUTO ; | |
22442 | void *argp1 = 0 ; | |
22443 | int res1 = 0 ; | |
22444 | int val2 ; | |
22445 | int ecode2 = 0 ; | |
22446 | int val3 ; | |
22447 | int ecode3 = 0 ; | |
22448 | int val4 ; | |
22449 | int ecode4 = 0 ; | |
22450 | int val5 ; | |
22451 | int ecode5 = 0 ; | |
22452 | int val6 ; | |
22453 | int ecode6 = 0 ; | |
22454 | PyObject * obj0 = 0 ; | |
22455 | PyObject * obj1 = 0 ; | |
22456 | PyObject * obj2 = 0 ; | |
22457 | PyObject * obj3 = 0 ; | |
22458 | PyObject * obj4 = 0 ; | |
22459 | PyObject * obj5 = 0 ; | |
22460 | char * kwnames[] = { | |
22461 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22462 | }; | |
22463 | ||
22464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22466 | if (!SWIG_IsOK(res1)) { | |
22467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22468 | } | |
22469 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22470 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22471 | if (!SWIG_IsOK(ecode2)) { | |
22472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22473 | } | |
22474 | arg2 = static_cast< int >(val2); | |
22475 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22476 | if (!SWIG_IsOK(ecode3)) { | |
22477 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22478 | } | |
22479 | arg3 = static_cast< int >(val3); | |
22480 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22481 | if (!SWIG_IsOK(ecode4)) { | |
22482 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22483 | } | |
22484 | arg4 = static_cast< int >(val4); | |
22485 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22486 | if (!SWIG_IsOK(ecode5)) { | |
22487 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22488 | } | |
22489 | arg5 = static_cast< int >(val5); | |
22490 | if (obj5) { | |
22491 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22492 | if (!SWIG_IsOK(ecode6)) { | |
22493 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22494 | } | |
22495 | arg6 = static_cast< int >(val6); | |
22496 | } | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
22503 | resultobj = SWIG_Py_Void(); | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj = 0; | |
22512 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22513 | int arg2 ; | |
22514 | int arg3 ; | |
22515 | void *argp1 = 0 ; | |
22516 | int res1 = 0 ; | |
22517 | int val2 ; | |
22518 | int ecode2 = 0 ; | |
22519 | int val3 ; | |
22520 | int ecode3 = 0 ; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | PyObject * obj1 = 0 ; | |
22523 | PyObject * obj2 = 0 ; | |
22524 | char * kwnames[] = { | |
22525 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22526 | }; | |
22527 | ||
22528 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22530 | if (!SWIG_IsOK(res1)) { | |
22531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22532 | } | |
22533 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22534 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22535 | if (!SWIG_IsOK(ecode2)) { | |
22536 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22537 | } | |
22538 | arg2 = static_cast< int >(val2); | |
22539 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22540 | if (!SWIG_IsOK(ecode3)) { | |
22541 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22542 | } | |
22543 | arg3 = static_cast< int >(val3); | |
22544 | { | |
22545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22546 | (arg1)->DoSetClientSize(arg2,arg3); | |
22547 | wxPyEndAllowThreads(__tstate); | |
22548 | if (PyErr_Occurred()) SWIG_fail; | |
22549 | } | |
22550 | resultobj = SWIG_Py_Void(); | |
22551 | return resultobj; | |
22552 | fail: | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | ||
22557 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22558 | PyObject *resultobj = 0; | |
22559 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22560 | int arg2 ; | |
22561 | int arg3 ; | |
22562 | void *argp1 = 0 ; | |
22563 | int res1 = 0 ; | |
22564 | int val2 ; | |
22565 | int ecode2 = 0 ; | |
22566 | int val3 ; | |
22567 | int ecode3 = 0 ; | |
22568 | PyObject * obj0 = 0 ; | |
22569 | PyObject * obj1 = 0 ; | |
22570 | PyObject * obj2 = 0 ; | |
22571 | char * kwnames[] = { | |
22572 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22573 | }; | |
22574 | ||
22575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22577 | if (!SWIG_IsOK(res1)) { | |
22578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22579 | } | |
22580 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22581 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22582 | if (!SWIG_IsOK(ecode2)) { | |
22583 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22584 | } | |
22585 | arg2 = static_cast< int >(val2); | |
22586 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22587 | if (!SWIG_IsOK(ecode3)) { | |
22588 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22589 | } | |
22590 | arg3 = static_cast< int >(val3); | |
22591 | { | |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22594 | wxPyEndAllowThreads(__tstate); | |
22595 | if (PyErr_Occurred()) SWIG_fail; | |
22596 | } | |
22597 | resultobj = SWIG_Py_Void(); | |
22598 | return resultobj; | |
22599 | fail: | |
22600 | return NULL; | |
22601 | } | |
22602 | ||
22603 | ||
22604 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22605 | PyObject *resultobj = 0; | |
22606 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22607 | int *arg2 = (int *) 0 ; | |
22608 | int *arg3 = (int *) 0 ; | |
22609 | void *argp1 = 0 ; | |
22610 | int res1 = 0 ; | |
22611 | int temp2 ; | |
22612 | int res2 = SWIG_TMPOBJ ; | |
22613 | int temp3 ; | |
22614 | int res3 = SWIG_TMPOBJ ; | |
22615 | PyObject *swig_obj[1] ; | |
22616 | ||
22617 | arg2 = &temp2; | |
22618 | arg3 = &temp3; | |
22619 | if (!args) SWIG_fail; | |
22620 | swig_obj[0] = args; | |
22621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22622 | if (!SWIG_IsOK(res1)) { | |
22623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22624 | } | |
22625 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22626 | { | |
22627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22628 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22629 | wxPyEndAllowThreads(__tstate); | |
22630 | if (PyErr_Occurred()) SWIG_fail; | |
22631 | } | |
22632 | resultobj = SWIG_Py_Void(); | |
22633 | if (SWIG_IsTmpObj(res2)) { | |
22634 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22635 | } else { | |
22636 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22637 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22638 | } | |
22639 | if (SWIG_IsTmpObj(res3)) { | |
22640 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22641 | } else { | |
22642 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22643 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22644 | } | |
22645 | return resultobj; | |
22646 | fail: | |
22647 | return NULL; | |
22648 | } | |
22649 | ||
22650 | ||
22651 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22652 | PyObject *resultobj = 0; | |
22653 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22654 | int *arg2 = (int *) 0 ; | |
22655 | int *arg3 = (int *) 0 ; | |
22656 | void *argp1 = 0 ; | |
22657 | int res1 = 0 ; | |
22658 | int temp2 ; | |
22659 | int res2 = SWIG_TMPOBJ ; | |
22660 | int temp3 ; | |
22661 | int res3 = SWIG_TMPOBJ ; | |
22662 | PyObject *swig_obj[1] ; | |
22663 | ||
22664 | arg2 = &temp2; | |
22665 | arg3 = &temp3; | |
22666 | if (!args) SWIG_fail; | |
22667 | swig_obj[0] = args; | |
22668 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22669 | if (!SWIG_IsOK(res1)) { | |
22670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22671 | } | |
22672 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22673 | { | |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22676 | wxPyEndAllowThreads(__tstate); | |
22677 | if (PyErr_Occurred()) SWIG_fail; | |
22678 | } | |
22679 | resultobj = SWIG_Py_Void(); | |
22680 | if (SWIG_IsTmpObj(res2)) { | |
22681 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22682 | } else { | |
22683 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22684 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22685 | } | |
22686 | if (SWIG_IsTmpObj(res3)) { | |
22687 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22688 | } else { | |
22689 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22690 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22691 | } | |
22692 | return resultobj; | |
22693 | fail: | |
22694 | return NULL; | |
22695 | } | |
22696 | ||
22697 | ||
22698 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22699 | PyObject *resultobj = 0; | |
22700 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22701 | int *arg2 = (int *) 0 ; | |
22702 | int *arg3 = (int *) 0 ; | |
22703 | void *argp1 = 0 ; | |
22704 | int res1 = 0 ; | |
22705 | int temp2 ; | |
22706 | int res2 = SWIG_TMPOBJ ; | |
22707 | int temp3 ; | |
22708 | int res3 = SWIG_TMPOBJ ; | |
22709 | PyObject *swig_obj[1] ; | |
22710 | ||
22711 | arg2 = &temp2; | |
22712 | arg3 = &temp3; | |
22713 | if (!args) SWIG_fail; | |
22714 | swig_obj[0] = args; | |
22715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22716 | if (!SWIG_IsOK(res1)) { | |
22717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22718 | } | |
22719 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22720 | { | |
22721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22722 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
22726 | resultobj = SWIG_Py_Void(); | |
22727 | if (SWIG_IsTmpObj(res2)) { | |
22728 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22729 | } else { | |
22730 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22731 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22732 | } | |
22733 | if (SWIG_IsTmpObj(res3)) { | |
22734 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22735 | } else { | |
22736 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22737 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22738 | } | |
22739 | return resultobj; | |
22740 | fail: | |
22741 | return NULL; | |
d14a1e28 RD |
22742 | } |
22743 | ||
22744 | ||
0085ce49 RD |
22745 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22746 | PyObject *resultobj = 0; | |
22747 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22748 | wxSize result; | |
22749 | void *argp1 = 0 ; | |
22750 | int res1 = 0 ; | |
22751 | PyObject *swig_obj[1] ; | |
22752 | ||
22753 | if (!args) SWIG_fail; | |
22754 | swig_obj[0] = args; | |
22755 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22756 | if (!SWIG_IsOK(res1)) { | |
22757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22758 | } | |
22759 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22760 | { | |
22761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22762 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
22766 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22767 | return resultobj; | |
22768 | fail: | |
22769 | return NULL; | |
d14a1e28 RD |
22770 | } |
22771 | ||
22772 | ||
0085ce49 RD |
22773 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22774 | PyObject *resultobj = 0; | |
22775 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22776 | wxSize result; | |
22777 | void *argp1 = 0 ; | |
22778 | int res1 = 0 ; | |
22779 | PyObject *swig_obj[1] ; | |
22780 | ||
22781 | if (!args) SWIG_fail; | |
22782 | swig_obj[0] = args; | |
22783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22784 | if (!SWIG_IsOK(res1)) { | |
22785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22786 | } | |
22787 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22788 | { | |
22789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22790 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22791 | wxPyEndAllowThreads(__tstate); | |
22792 | if (PyErr_Occurred()) SWIG_fail; | |
22793 | } | |
22794 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22795 | return resultobj; | |
22796 | fail: | |
22797 | return NULL; | |
d14a1e28 RD |
22798 | } |
22799 | ||
22800 | ||
0085ce49 RD |
22801 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22802 | PyObject *resultobj = 0; | |
22803 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22804 | SwigValueWrapper<wxVisualAttributes > result; | |
22805 | void *argp1 = 0 ; | |
22806 | int res1 = 0 ; | |
22807 | PyObject *swig_obj[1] ; | |
22808 | ||
22809 | if (!args) SWIG_fail; | |
22810 | swig_obj[0] = args; | |
22811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22812 | if (!SWIG_IsOK(res1)) { | |
22813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22814 | } | |
22815 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22816 | { | |
22817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22818 | result = (arg1)->GetDefaultAttributes(); | |
22819 | wxPyEndAllowThreads(__tstate); | |
22820 | if (PyErr_Occurred()) SWIG_fail; | |
22821 | } | |
22822 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22823 | return resultobj; | |
22824 | fail: | |
22825 | return NULL; | |
d14a1e28 RD |
22826 | } |
22827 | ||
22828 | ||
0085ce49 RD |
22829 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22830 | PyObject *resultobj = 0; | |
22831 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22832 | void *argp1 = 0 ; | |
22833 | int res1 = 0 ; | |
22834 | PyObject *swig_obj[1] ; | |
22835 | ||
22836 | if (!args) SWIG_fail; | |
22837 | swig_obj[0] = args; | |
22838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22839 | if (!SWIG_IsOK(res1)) { | |
22840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22841 | } | |
22842 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22843 | { | |
22844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22845 | (arg1)->OnInternalIdle(); | |
22846 | wxPyEndAllowThreads(__tstate); | |
22847 | if (PyErr_Occurred()) SWIG_fail; | |
22848 | } | |
22849 | resultobj = SWIG_Py_Void(); | |
22850 | return resultobj; | |
22851 | fail: | |
22852 | return NULL; | |
22853 | } | |
22854 | ||
22855 | ||
22856 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22857 | PyObject *obj; | |
22858 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22859 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22860 | return SWIG_Py_Void(); | |
22861 | } | |
22862 | ||
22863 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22864 | return SWIG_Python_InitShadowInstance(args); | |
22865 | } | |
22866 | ||
22867 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22868 | PyObject *resultobj = 0; | |
22869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22870 | int arg2 = (int) (int)-1 ; | |
22871 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22872 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22873 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22874 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22875 | long arg5 = (long) 0 ; | |
22876 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22877 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22878 | wxPyScrolledWindow *result = 0 ; | |
22879 | void *argp1 = 0 ; | |
22880 | int res1 = 0 ; | |
22881 | int val2 ; | |
22882 | int ecode2 = 0 ; | |
22883 | wxPoint temp3 ; | |
22884 | wxSize temp4 ; | |
22885 | long val5 ; | |
22886 | int ecode5 = 0 ; | |
22887 | bool temp6 = false ; | |
22888 | PyObject * obj0 = 0 ; | |
22889 | PyObject * obj1 = 0 ; | |
22890 | PyObject * obj2 = 0 ; | |
22891 | PyObject * obj3 = 0 ; | |
22892 | PyObject * obj4 = 0 ; | |
22893 | PyObject * obj5 = 0 ; | |
22894 | char * kwnames[] = { | |
22895 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22896 | }; | |
22897 | ||
22898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22900 | if (!SWIG_IsOK(res1)) { | |
22901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22902 | } | |
22903 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22904 | if (obj1) { | |
22905 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22906 | if (!SWIG_IsOK(ecode2)) { | |
22907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22908 | } | |
22909 | arg2 = static_cast< int >(val2); | |
22910 | } | |
22911 | if (obj2) { | |
32fe5131 | 22912 | { |
0085ce49 RD |
22913 | arg3 = &temp3; |
22914 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32fe5131 | 22915 | } |
0085ce49 RD |
22916 | } |
22917 | if (obj3) { | |
32fe5131 | 22918 | { |
0085ce49 RD |
22919 | arg4 = &temp4; |
22920 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32fe5131 | 22921 | } |
0085ce49 RD |
22922 | } |
22923 | if (obj4) { | |
22924 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22925 | if (!SWIG_IsOK(ecode5)) { | |
22926 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
22927 | } | |
22928 | arg5 = static_cast< long >(val5); | |
22929 | } | |
22930 | if (obj5) { | |
32fe5131 | 22931 | { |
0085ce49 RD |
22932 | arg6 = wxString_in_helper(obj5); |
22933 | if (arg6 == NULL) SWIG_fail; | |
22934 | temp6 = true; | |
32fe5131 | 22935 | } |
0085ce49 RD |
22936 | } |
22937 | { | |
22938 | if (!wxPyCheckForApp()) SWIG_fail; | |
22939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22940 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22941 | wxPyEndAllowThreads(__tstate); | |
22942 | if (PyErr_Occurred()) SWIG_fail; | |
22943 | } | |
22944 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
22945 | { | |
22946 | if (temp6) | |
22947 | delete arg6; | |
22948 | } | |
22949 | return resultobj; | |
22950 | fail: | |
22951 | { | |
22952 | if (temp6) | |
22953 | delete arg6; | |
22954 | } | |
22955 | return NULL; | |
32fe5131 RD |
22956 | } |
22957 | ||
22958 | ||
0085ce49 RD |
22959 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22960 | PyObject *resultobj = 0; | |
22961 | wxPyScrolledWindow *result = 0 ; | |
22962 | ||
22963 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
22964 | { | |
22965 | if (!wxPyCheckForApp()) SWIG_fail; | |
22966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22967 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
22971 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
22972 | return resultobj; | |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
22978 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22979 | PyObject *resultobj = 0; | |
22980 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22981 | PyObject *arg2 = (PyObject *) 0 ; | |
22982 | PyObject *arg3 = (PyObject *) 0 ; | |
22983 | void *argp1 = 0 ; | |
22984 | int res1 = 0 ; | |
22985 | PyObject * obj0 = 0 ; | |
22986 | PyObject * obj1 = 0 ; | |
22987 | PyObject * obj2 = 0 ; | |
22988 | char * kwnames[] = { | |
22989 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22990 | }; | |
22991 | ||
22992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22994 | if (!SWIG_IsOK(res1)) { | |
22995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22996 | } | |
22997 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22998 | arg2 = obj1; | |
22999 | arg3 = obj2; | |
23000 | { | |
23001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23002 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23003 | wxPyEndAllowThreads(__tstate); | |
23004 | if (PyErr_Occurred()) SWIG_fail; | |
23005 | } | |
23006 | resultobj = SWIG_Py_Void(); | |
23007 | return resultobj; | |
23008 | fail: | |
23009 | return NULL; | |
23010 | } | |
23011 | ||
23012 | ||
23013 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23014 | PyObject *resultobj = 0; | |
23015 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23016 | wxSize *arg2 = 0 ; | |
23017 | void *argp1 = 0 ; | |
23018 | int res1 = 0 ; | |
23019 | wxSize temp2 ; | |
23020 | PyObject * obj0 = 0 ; | |
23021 | PyObject * obj1 = 0 ; | |
23022 | char * kwnames[] = { | |
23023 | (char *) "self",(char *) "size", NULL | |
23024 | }; | |
23025 | ||
23026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
23027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23028 | if (!SWIG_IsOK(res1)) { | |
23029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23030 | } | |
23031 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23032 | { | |
23033 | arg2 = &temp2; | |
23034 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23035 | } | |
23036 | { | |
23037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23038 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
23039 | wxPyEndAllowThreads(__tstate); | |
23040 | if (PyErr_Occurred()) SWIG_fail; | |
23041 | } | |
23042 | resultobj = SWIG_Py_Void(); | |
23043 | return resultobj; | |
23044 | fail: | |
23045 | return NULL; | |
23046 | } | |
23047 | ||
23048 | ||
23049 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23050 | PyObject *resultobj = 0; | |
23051 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23052 | wxDC *arg2 = (wxDC *) 0 ; | |
23053 | bool result; | |
23054 | void *argp1 = 0 ; | |
23055 | int res1 = 0 ; | |
23056 | void *argp2 = 0 ; | |
23057 | int res2 = 0 ; | |
23058 | PyObject * obj0 = 0 ; | |
23059 | PyObject * obj1 = 0 ; | |
23060 | char * kwnames[] = { | |
23061 | (char *) "self",(char *) "dc", NULL | |
23062 | }; | |
23063 | ||
23064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
23065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23066 | if (!SWIG_IsOK(res1)) { | |
23067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23068 | } | |
23069 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23070 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23071 | if (!SWIG_IsOK(res2)) { | |
23072 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
23073 | } | |
23074 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
23075 | { | |
23076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23077 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
23078 | wxPyEndAllowThreads(__tstate); | |
23079 | if (PyErr_Occurred()) SWIG_fail; | |
23080 | } | |
23081 | { | |
23082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23083 | } | |
23084 | return resultobj; | |
23085 | fail: | |
23086 | return NULL; | |
23087 | } | |
23088 | ||
23089 | ||
23090 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23091 | PyObject *resultobj = 0; | |
23092 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23093 | int arg2 ; | |
23094 | int arg3 ; | |
23095 | int arg4 ; | |
23096 | int arg5 ; | |
23097 | void *argp1 = 0 ; | |
23098 | int res1 = 0 ; | |
23099 | int val2 ; | |
23100 | int ecode2 = 0 ; | |
23101 | int val3 ; | |
23102 | int ecode3 = 0 ; | |
23103 | int val4 ; | |
23104 | int ecode4 = 0 ; | |
23105 | int val5 ; | |
23106 | int ecode5 = 0 ; | |
23107 | PyObject * obj0 = 0 ; | |
23108 | PyObject * obj1 = 0 ; | |
23109 | PyObject * obj2 = 0 ; | |
23110 | PyObject * obj3 = 0 ; | |
23111 | PyObject * obj4 = 0 ; | |
23112 | char * kwnames[] = { | |
23113 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
23114 | }; | |
23115 | ||
23116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23118 | if (!SWIG_IsOK(res1)) { | |
23119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23120 | } | |
23121 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23122 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23123 | if (!SWIG_IsOK(ecode2)) { | |
23124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
23125 | } | |
23126 | arg2 = static_cast< int >(val2); | |
23127 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23128 | if (!SWIG_IsOK(ecode3)) { | |
23129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
23130 | } | |
23131 | arg3 = static_cast< int >(val3); | |
23132 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23133 | if (!SWIG_IsOK(ecode4)) { | |
23134 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
23135 | } | |
23136 | arg4 = static_cast< int >(val4); | |
23137 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23138 | if (!SWIG_IsOK(ecode5)) { | |
23139 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
23140 | } | |
23141 | arg5 = static_cast< int >(val5); | |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
23145 | wxPyEndAllowThreads(__tstate); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
23148 | resultobj = SWIG_Py_Void(); | |
23149 | return resultobj; | |
23150 | fail: | |
23151 | return NULL; | |
23152 | } | |
23153 | ||
23154 | ||
23155 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23156 | PyObject *resultobj = 0; | |
23157 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23158 | int arg2 ; | |
23159 | int arg3 ; | |
23160 | int arg4 ; | |
23161 | int arg5 ; | |
23162 | int arg6 = (int) wxSIZE_AUTO ; | |
23163 | void *argp1 = 0 ; | |
23164 | int res1 = 0 ; | |
23165 | int val2 ; | |
23166 | int ecode2 = 0 ; | |
23167 | int val3 ; | |
23168 | int ecode3 = 0 ; | |
23169 | int val4 ; | |
23170 | int ecode4 = 0 ; | |
23171 | int val5 ; | |
23172 | int ecode5 = 0 ; | |
23173 | int val6 ; | |
23174 | int ecode6 = 0 ; | |
23175 | PyObject * obj0 = 0 ; | |
23176 | PyObject * obj1 = 0 ; | |
23177 | PyObject * obj2 = 0 ; | |
23178 | PyObject * obj3 = 0 ; | |
23179 | PyObject * obj4 = 0 ; | |
23180 | PyObject * obj5 = 0 ; | |
23181 | char * kwnames[] = { | |
23182 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23183 | }; | |
23184 | ||
23185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
23186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23187 | if (!SWIG_IsOK(res1)) { | |
23188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23189 | } | |
23190 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23192 | if (!SWIG_IsOK(ecode2)) { | |
23193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
23194 | } | |
23195 | arg2 = static_cast< int >(val2); | |
23196 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23197 | if (!SWIG_IsOK(ecode3)) { | |
23198 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
23199 | } | |
23200 | arg3 = static_cast< int >(val3); | |
23201 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23202 | if (!SWIG_IsOK(ecode4)) { | |
23203 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
23204 | } | |
23205 | arg4 = static_cast< int >(val4); | |
23206 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
23207 | if (!SWIG_IsOK(ecode5)) { | |
23208 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
23209 | } | |
23210 | arg5 = static_cast< int >(val5); | |
23211 | if (obj5) { | |
23212 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
23213 | if (!SWIG_IsOK(ecode6)) { | |
23214 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
23215 | } | |
23216 | arg6 = static_cast< int >(val6); | |
23217 | } | |
23218 | { | |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23220 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | resultobj = SWIG_Py_Void(); | |
23225 | return resultobj; | |
23226 | fail: | |
23227 | return NULL; | |
23228 | } | |
23229 | ||
23230 | ||
23231 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23232 | PyObject *resultobj = 0; | |
23233 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23234 | int arg2 ; | |
23235 | int arg3 ; | |
23236 | void *argp1 = 0 ; | |
23237 | int res1 = 0 ; | |
23238 | int val2 ; | |
23239 | int ecode2 = 0 ; | |
23240 | int val3 ; | |
23241 | int ecode3 = 0 ; | |
23242 | PyObject * obj0 = 0 ; | |
23243 | PyObject * obj1 = 0 ; | |
23244 | PyObject * obj2 = 0 ; | |
23245 | char * kwnames[] = { | |
23246 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23247 | }; | |
23248 | ||
23249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23251 | if (!SWIG_IsOK(res1)) { | |
23252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23253 | } | |
23254 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23255 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23256 | if (!SWIG_IsOK(ecode2)) { | |
23257 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
23258 | } | |
23259 | arg2 = static_cast< int >(val2); | |
23260 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23261 | if (!SWIG_IsOK(ecode3)) { | |
23262 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
23263 | } | |
23264 | arg3 = static_cast< int >(val3); | |
23265 | { | |
23266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23267 | (arg1)->DoSetClientSize(arg2,arg3); | |
23268 | wxPyEndAllowThreads(__tstate); | |
23269 | if (PyErr_Occurred()) SWIG_fail; | |
23270 | } | |
23271 | resultobj = SWIG_Py_Void(); | |
23272 | return resultobj; | |
23273 | fail: | |
23274 | return NULL; | |
23275 | } | |
23276 | ||
23277 | ||
23278 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23279 | PyObject *resultobj = 0; | |
23280 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23281 | int arg2 ; | |
23282 | int arg3 ; | |
23283 | void *argp1 = 0 ; | |
23284 | int res1 = 0 ; | |
23285 | int val2 ; | |
23286 | int ecode2 = 0 ; | |
23287 | int val3 ; | |
23288 | int ecode3 = 0 ; | |
23289 | PyObject * obj0 = 0 ; | |
23290 | PyObject * obj1 = 0 ; | |
23291 | PyObject * obj2 = 0 ; | |
23292 | char * kwnames[] = { | |
23293 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23294 | }; | |
23295 | ||
23296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23298 | if (!SWIG_IsOK(res1)) { | |
23299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23300 | } | |
23301 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23302 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23303 | if (!SWIG_IsOK(ecode2)) { | |
23304 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
23305 | } | |
23306 | arg2 = static_cast< int >(val2); | |
23307 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23308 | if (!SWIG_IsOK(ecode3)) { | |
23309 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
23310 | } | |
23311 | arg3 = static_cast< int >(val3); | |
23312 | { | |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | resultobj = SWIG_Py_Void(); | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23326 | PyObject *resultobj = 0; | |
23327 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23328 | int *arg2 = (int *) 0 ; | |
23329 | int *arg3 = (int *) 0 ; | |
23330 | void *argp1 = 0 ; | |
23331 | int res1 = 0 ; | |
23332 | int temp2 ; | |
23333 | int res2 = SWIG_TMPOBJ ; | |
23334 | int temp3 ; | |
23335 | int res3 = SWIG_TMPOBJ ; | |
23336 | PyObject *swig_obj[1] ; | |
23337 | ||
23338 | arg2 = &temp2; | |
23339 | arg3 = &temp3; | |
23340 | if (!args) SWIG_fail; | |
23341 | swig_obj[0] = args; | |
23342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23343 | if (!SWIG_IsOK(res1)) { | |
23344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23345 | } | |
23346 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23347 | { | |
23348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23349 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
23350 | wxPyEndAllowThreads(__tstate); | |
23351 | if (PyErr_Occurred()) SWIG_fail; | |
23352 | } | |
23353 | resultobj = SWIG_Py_Void(); | |
23354 | if (SWIG_IsTmpObj(res2)) { | |
23355 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23356 | } else { | |
23357 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23358 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23359 | } | |
23360 | if (SWIG_IsTmpObj(res3)) { | |
23361 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23362 | } else { | |
23363 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23364 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23365 | } | |
23366 | return resultobj; | |
23367 | fail: | |
23368 | return NULL; | |
23369 | } | |
23370 | ||
23371 | ||
23372 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23373 | PyObject *resultobj = 0; | |
23374 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23375 | int *arg2 = (int *) 0 ; | |
23376 | int *arg3 = (int *) 0 ; | |
23377 | void *argp1 = 0 ; | |
23378 | int res1 = 0 ; | |
23379 | int temp2 ; | |
23380 | int res2 = SWIG_TMPOBJ ; | |
23381 | int temp3 ; | |
23382 | int res3 = SWIG_TMPOBJ ; | |
23383 | PyObject *swig_obj[1] ; | |
23384 | ||
23385 | arg2 = &temp2; | |
23386 | arg3 = &temp3; | |
23387 | if (!args) SWIG_fail; | |
23388 | swig_obj[0] = args; | |
23389 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23390 | if (!SWIG_IsOK(res1)) { | |
23391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23392 | } | |
23393 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23394 | { | |
23395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23396 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | resultobj = SWIG_Py_Void(); | |
23401 | if (SWIG_IsTmpObj(res2)) { | |
23402 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23403 | } else { | |
23404 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23405 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23406 | } | |
23407 | if (SWIG_IsTmpObj(res3)) { | |
23408 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23409 | } else { | |
23410 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23411 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23412 | } | |
23413 | return resultobj; | |
23414 | fail: | |
23415 | return NULL; | |
23416 | } | |
23417 | ||
23418 | ||
23419 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23420 | PyObject *resultobj = 0; | |
23421 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23422 | int *arg2 = (int *) 0 ; | |
23423 | int *arg3 = (int *) 0 ; | |
23424 | void *argp1 = 0 ; | |
23425 | int res1 = 0 ; | |
23426 | int temp2 ; | |
23427 | int res2 = SWIG_TMPOBJ ; | |
23428 | int temp3 ; | |
23429 | int res3 = SWIG_TMPOBJ ; | |
23430 | PyObject *swig_obj[1] ; | |
23431 | ||
23432 | arg2 = &temp2; | |
23433 | arg3 = &temp3; | |
23434 | if (!args) SWIG_fail; | |
23435 | swig_obj[0] = args; | |
23436 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23437 | if (!SWIG_IsOK(res1)) { | |
23438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23439 | } | |
23440 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23441 | { | |
23442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23443 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | resultobj = SWIG_Py_Void(); | |
23448 | if (SWIG_IsTmpObj(res2)) { | |
23449 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23450 | } else { | |
23451 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23452 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23453 | } | |
23454 | if (SWIG_IsTmpObj(res3)) { | |
23455 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23456 | } else { | |
23457 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23458 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23459 | } | |
23460 | return resultobj; | |
23461 | fail: | |
23462 | return NULL; | |
d14a1e28 RD |
23463 | } |
23464 | ||
23465 | ||
0085ce49 RD |
23466 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23467 | PyObject *resultobj = 0; | |
23468 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23469 | wxSize result; | |
23470 | void *argp1 = 0 ; | |
23471 | int res1 = 0 ; | |
23472 | PyObject *swig_obj[1] ; | |
23473 | ||
23474 | if (!args) SWIG_fail; | |
23475 | swig_obj[0] = args; | |
23476 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23477 | if (!SWIG_IsOK(res1)) { | |
23478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23479 | } | |
23480 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23481 | { | |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23488 | return resultobj; | |
23489 | fail: | |
23490 | return NULL; | |
d14a1e28 RD |
23491 | } |
23492 | ||
23493 | ||
0085ce49 RD |
23494 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23495 | PyObject *resultobj = 0; | |
23496 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23497 | wxSize result; | |
23498 | void *argp1 = 0 ; | |
23499 | int res1 = 0 ; | |
23500 | PyObject *swig_obj[1] ; | |
23501 | ||
23502 | if (!args) SWIG_fail; | |
23503 | swig_obj[0] = args; | |
23504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23505 | if (!SWIG_IsOK(res1)) { | |
23506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23507 | } | |
23508 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23509 | { | |
23510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23511 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
23512 | wxPyEndAllowThreads(__tstate); | |
23513 | if (PyErr_Occurred()) SWIG_fail; | |
23514 | } | |
23515 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23516 | return resultobj; | |
23517 | fail: | |
23518 | return NULL; | |
d14a1e28 RD |
23519 | } |
23520 | ||
23521 | ||
0085ce49 RD |
23522 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23523 | PyObject *resultobj = 0; | |
23524 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23525 | SwigValueWrapper<wxVisualAttributes > result; | |
23526 | void *argp1 = 0 ; | |
23527 | int res1 = 0 ; | |
23528 | PyObject *swig_obj[1] ; | |
23529 | ||
23530 | if (!args) SWIG_fail; | |
23531 | swig_obj[0] = args; | |
23532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23533 | if (!SWIG_IsOK(res1)) { | |
23534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23535 | } | |
23536 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23537 | { | |
23538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23539 | result = (arg1)->GetDefaultAttributes(); | |
23540 | wxPyEndAllowThreads(__tstate); | |
23541 | if (PyErr_Occurred()) SWIG_fail; | |
23542 | } | |
23543 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23544 | return resultobj; | |
23545 | fail: | |
23546 | return NULL; | |
d14a1e28 RD |
23547 | } |
23548 | ||
23549 | ||
0085ce49 RD |
23550 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23551 | PyObject *resultobj = 0; | |
23552 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23553 | void *argp1 = 0 ; | |
23554 | int res1 = 0 ; | |
23555 | PyObject *swig_obj[1] ; | |
23556 | ||
23557 | if (!args) SWIG_fail; | |
23558 | swig_obj[0] = args; | |
23559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23560 | if (!SWIG_IsOK(res1)) { | |
23561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23562 | } | |
23563 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23564 | { | |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | (arg1)->OnInternalIdle(); | |
23567 | wxPyEndAllowThreads(__tstate); | |
23568 | if (PyErr_Occurred()) SWIG_fail; | |
23569 | } | |
23570 | resultobj = SWIG_Py_Void(); | |
23571 | return resultobj; | |
23572 | fail: | |
23573 | return NULL; | |
d14a1e28 RD |
23574 | } |
23575 | ||
23576 | ||
0085ce49 RD |
23577 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23578 | PyObject *obj; | |
23579 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23580 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23581 | return SWIG_Py_Void(); | |
d14a1e28 RD |
23582 | } |
23583 | ||
0085ce49 RD |
23584 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23585 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
23586 | } |
23587 | ||
0085ce49 RD |
23588 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23589 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23590 | return 1; | |
d14a1e28 RD |
23591 | } |
23592 | ||
23593 | ||
0085ce49 RD |
23594 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23595 | PyObject *pyobj = 0; | |
23596 | ||
23597 | { | |
23598 | #if wxUSE_UNICODE | |
23599 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23600 | #else | |
23601 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23602 | #endif | |
23603 | } | |
23604 | return pyobj; | |
d14a1e28 RD |
23605 | } |
23606 | ||
23607 | ||
0085ce49 RD |
23608 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23609 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23610 | return 1; | |
d14a1e28 RD |
23611 | } |
23612 | ||
23613 | ||
0085ce49 RD |
23614 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { |
23615 | PyObject *pyobj = 0; | |
23616 | ||
23617 | { | |
23618 | #if wxUSE_UNICODE | |
23619 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23620 | #else | |
23621 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23622 | #endif | |
23623 | } | |
23624 | return pyobj; | |
d14a1e28 RD |
23625 | } |
23626 | ||
23627 | ||
0085ce49 RD |
23628 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23629 | PyObject *resultobj = 0; | |
23630 | wxPrintData *result = 0 ; | |
23631 | ||
23632 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | result = (wxPrintData *)new wxPrintData(); | |
23636 | wxPyEndAllowThreads(__tstate); | |
23637 | if (PyErr_Occurred()) SWIG_fail; | |
23638 | } | |
23639 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23640 | return resultobj; | |
23641 | fail: | |
23642 | return NULL; | |
d14a1e28 RD |
23643 | } |
23644 | ||
23645 | ||
0085ce49 RD |
23646 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23647 | PyObject *resultobj = 0; | |
23648 | wxPrintData *arg1 = 0 ; | |
23649 | wxPrintData *result = 0 ; | |
23650 | void *argp1 = 0 ; | |
23651 | int res1 = 0 ; | |
23652 | ||
23653 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23655 | if (!SWIG_IsOK(res1)) { | |
23656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23657 | } | |
23658 | if (!argp1) { | |
23659 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23660 | } | |
23661 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
23668 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23669 | return resultobj; | |
23670 | fail: | |
23671 | return NULL; | |
d14a1e28 RD |
23672 | } |
23673 | ||
23674 | ||
0085ce49 RD |
23675 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23676 | int argc; | |
23677 | PyObject *argv[2]; | |
23678 | ||
23679 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23680 | --argc; | |
23681 | if (argc == 0) { | |
23682 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23683 | } | |
23684 | if (argc == 1) { | |
23685 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23686 | } | |
23687 | ||
23688 | fail: | |
23689 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23690 | return NULL; | |
d14a1e28 RD |
23691 | } |
23692 | ||
23693 | ||
0085ce49 RD |
23694 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23695 | PyObject *resultobj = 0; | |
23696 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23697 | void *argp1 = 0 ; | |
23698 | int res1 = 0 ; | |
23699 | PyObject *swig_obj[1] ; | |
23700 | ||
23701 | if (!args) SWIG_fail; | |
23702 | swig_obj[0] = args; | |
23703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23704 | if (!SWIG_IsOK(res1)) { | |
23705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23706 | } | |
23707 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23708 | { | |
23709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23710 | delete arg1; | |
d14a1e28 | 23711 | |
0085ce49 RD |
23712 | wxPyEndAllowThreads(__tstate); |
23713 | if (PyErr_Occurred()) SWIG_fail; | |
23714 | } | |
23715 | resultobj = SWIG_Py_Void(); | |
23716 | return resultobj; | |
23717 | fail: | |
23718 | return NULL; | |
d14a1e28 RD |
23719 | } |
23720 | ||
23721 | ||
0085ce49 RD |
23722 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23723 | PyObject *resultobj = 0; | |
23724 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23725 | int result; | |
23726 | void *argp1 = 0 ; | |
23727 | int res1 = 0 ; | |
23728 | PyObject *swig_obj[1] ; | |
23729 | ||
23730 | if (!args) SWIG_fail; | |
23731 | swig_obj[0] = args; | |
23732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23733 | if (!SWIG_IsOK(res1)) { | |
23734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23735 | } | |
23736 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23737 | { | |
23738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23739 | result = (int)(arg1)->GetNoCopies(); | |
23740 | wxPyEndAllowThreads(__tstate); | |
23741 | if (PyErr_Occurred()) SWIG_fail; | |
23742 | } | |
23743 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23744 | return resultobj; | |
23745 | fail: | |
23746 | return NULL; | |
d14a1e28 RD |
23747 | } |
23748 | ||
23749 | ||
0085ce49 RD |
23750 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23751 | PyObject *resultobj = 0; | |
23752 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23753 | bool result; | |
23754 | void *argp1 = 0 ; | |
23755 | int res1 = 0 ; | |
23756 | PyObject *swig_obj[1] ; | |
23757 | ||
23758 | if (!args) SWIG_fail; | |
23759 | swig_obj[0] = args; | |
23760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23761 | if (!SWIG_IsOK(res1)) { | |
23762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23763 | } | |
23764 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23765 | { | |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | result = (bool)(arg1)->GetCollate(); | |
23768 | wxPyEndAllowThreads(__tstate); | |
23769 | if (PyErr_Occurred()) SWIG_fail; | |
23770 | } | |
23771 | { | |
23772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23773 | } | |
23774 | return resultobj; | |
23775 | fail: | |
23776 | return NULL; | |
d14a1e28 RD |
23777 | } |
23778 | ||
23779 | ||
0085ce49 RD |
23780 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23781 | PyObject *resultobj = 0; | |
23782 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23783 | int result; | |
23784 | void *argp1 = 0 ; | |
23785 | int res1 = 0 ; | |
23786 | PyObject *swig_obj[1] ; | |
23787 | ||
23788 | if (!args) SWIG_fail; | |
23789 | swig_obj[0] = args; | |
23790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23791 | if (!SWIG_IsOK(res1)) { | |
23792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23793 | } | |
23794 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23795 | { | |
23796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23797 | result = (int)(arg1)->GetOrientation(); | |
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
23801 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
d14a1e28 RD |
23805 | } |
23806 | ||
23807 | ||
b39fe951 | 23808 | SWIGINTERN PyObject *_wrap_PrintData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
23809 | PyObject *resultobj = 0; |
23810 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23811 | bool result; | |
23812 | void *argp1 = 0 ; | |
23813 | int res1 = 0 ; | |
23814 | PyObject *swig_obj[1] ; | |
23815 | ||
23816 | if (!args) SWIG_fail; | |
23817 | swig_obj[0] = args; | |
23818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23819 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 23820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_IsOk" "', expected argument " "1"" of type '" "wxPrintData *""'"); |
0085ce49 RD |
23821 | } |
23822 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23823 | { | |
23824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 23825 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
23826 | wxPyEndAllowThreads(__tstate); |
23827 | if (PyErr_Occurred()) SWIG_fail; | |
23828 | } | |
23829 | { | |
23830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23831 | } | |
23832 | return resultobj; | |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23839 | PyObject *resultobj = 0; | |
23840 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23841 | wxString *result = 0 ; | |
23842 | void *argp1 = 0 ; | |
23843 | int res1 = 0 ; | |
23844 | PyObject *swig_obj[1] ; | |
23845 | ||
23846 | if (!args) SWIG_fail; | |
23847 | swig_obj[0] = args; | |
23848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23849 | if (!SWIG_IsOK(res1)) { | |
23850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23851 | } | |
23852 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23853 | { | |
23854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 23855 | { |
0085ce49 RD |
23856 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23857 | result = (wxString *) &_result_ref; | |
d14a1e28 | 23858 | } |
0085ce49 RD |
23859 | wxPyEndAllowThreads(__tstate); |
23860 | if (PyErr_Occurred()) SWIG_fail; | |
23861 | } | |
23862 | { | |
d14a1e28 | 23863 | #if wxUSE_UNICODE |
0085ce49 | 23864 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 23865 | #else |
0085ce49 | 23866 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 23867 | #endif |
0085ce49 RD |
23868 | } |
23869 | return resultobj; | |
23870 | fail: | |
23871 | return NULL; | |
d14a1e28 RD |
23872 | } |
23873 | ||
23874 | ||
0085ce49 RD |
23875 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23876 | PyObject *resultobj = 0; | |
23877 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23878 | bool result; | |
23879 | void *argp1 = 0 ; | |
23880 | int res1 = 0 ; | |
23881 | PyObject *swig_obj[1] ; | |
23882 | ||
23883 | if (!args) SWIG_fail; | |
23884 | swig_obj[0] = args; | |
23885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23886 | if (!SWIG_IsOK(res1)) { | |
23887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23888 | } | |
23889 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23890 | { | |
23891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23892 | result = (bool)(arg1)->GetColour(); | |
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | { | |
23897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23898 | } | |
23899 | return resultobj; | |
23900 | fail: | |
23901 | return NULL; | |
d14a1e28 RD |
23902 | } |
23903 | ||
23904 | ||
0085ce49 RD |
23905 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23906 | PyObject *resultobj = 0; | |
23907 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23908 | wxDuplexMode result; | |
23909 | void *argp1 = 0 ; | |
23910 | int res1 = 0 ; | |
23911 | PyObject *swig_obj[1] ; | |
23912 | ||
23913 | if (!args) SWIG_fail; | |
23914 | swig_obj[0] = args; | |
23915 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23916 | if (!SWIG_IsOK(res1)) { | |
23917 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23918 | } | |
23919 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
23923 | wxPyEndAllowThreads(__tstate); | |
23924 | if (PyErr_Occurred()) SWIG_fail; | |
23925 | } | |
23926 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23927 | return resultobj; | |
23928 | fail: | |
23929 | return NULL; | |
d14a1e28 RD |
23930 | } |
23931 | ||
23932 | ||
0085ce49 RD |
23933 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23934 | PyObject *resultobj = 0; | |
23935 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23936 | wxPaperSize result; | |
23937 | void *argp1 = 0 ; | |
23938 | int res1 = 0 ; | |
23939 | PyObject *swig_obj[1] ; | |
23940 | ||
23941 | if (!args) SWIG_fail; | |
23942 | swig_obj[0] = args; | |
23943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23944 | if (!SWIG_IsOK(res1)) { | |
23945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23946 | } | |
23947 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23948 | { | |
23949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23950 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
23951 | wxPyEndAllowThreads(__tstate); | |
23952 | if (PyErr_Occurred()) SWIG_fail; | |
23953 | } | |
23954 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23955 | return resultobj; | |
23956 | fail: | |
23957 | return NULL; | |
d14a1e28 RD |
23958 | } |
23959 | ||
23960 | ||
0085ce49 RD |
23961 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23962 | PyObject *resultobj = 0; | |
23963 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23964 | wxSize *result = 0 ; | |
23965 | void *argp1 = 0 ; | |
23966 | int res1 = 0 ; | |
23967 | PyObject *swig_obj[1] ; | |
23968 | ||
23969 | if (!args) SWIG_fail; | |
23970 | swig_obj[0] = args; | |
23971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23972 | if (!SWIG_IsOK(res1)) { | |
23973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23974 | } | |
23975 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 23978 | { |
0085ce49 RD |
23979 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
23980 | result = (wxSize *) &_result_ref; | |
23981 | } | |
23982 | wxPyEndAllowThreads(__tstate); | |
23983 | if (PyErr_Occurred()) SWIG_fail; | |
23984 | } | |
23985 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
23986 | return resultobj; | |
23987 | fail: | |
23988 | return NULL; | |
d14a1e28 RD |
23989 | } |
23990 | ||
23991 | ||
0085ce49 RD |
23992 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23993 | PyObject *resultobj = 0; | |
23994 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23995 | int result; | |
23996 | void *argp1 = 0 ; | |
23997 | int res1 = 0 ; | |
23998 | PyObject *swig_obj[1] ; | |
23999 | ||
24000 | if (!args) SWIG_fail; | |
24001 | swig_obj[0] = args; | |
24002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24003 | if (!SWIG_IsOK(res1)) { | |
24004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24005 | } | |
24006 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24007 | { | |
24008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24009 | result = (int)(arg1)->GetQuality(); | |
24010 | wxPyEndAllowThreads(__tstate); | |
24011 | if (PyErr_Occurred()) SWIG_fail; | |
24012 | } | |
24013 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24014 | return resultobj; | |
24015 | fail: | |
24016 | return NULL; | |
d14a1e28 RD |
24017 | } |
24018 | ||
24019 | ||
0085ce49 RD |
24020 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24021 | PyObject *resultobj = 0; | |
24022 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24023 | wxPrintBin result; | |
24024 | void *argp1 = 0 ; | |
24025 | int res1 = 0 ; | |
24026 | PyObject *swig_obj[1] ; | |
24027 | ||
24028 | if (!args) SWIG_fail; | |
24029 | swig_obj[0] = args; | |
24030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24031 | if (!SWIG_IsOK(res1)) { | |
24032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24033 | } | |
24034 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24035 | { | |
24036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24037 | result = (wxPrintBin)(arg1)->GetBin(); | |
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
d14a1e28 RD |
24045 | } |
24046 | ||
24047 | ||
0085ce49 RD |
24048 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24049 | PyObject *resultobj = 0; | |
24050 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24051 | wxPrintMode result; | |
24052 | void *argp1 = 0 ; | |
24053 | int res1 = 0 ; | |
24054 | PyObject *swig_obj[1] ; | |
24055 | ||
24056 | if (!args) SWIG_fail; | |
24057 | swig_obj[0] = args; | |
24058 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24059 | if (!SWIG_IsOK(res1)) { | |
24060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24061 | } | |
24062 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24063 | { | |
24064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24065 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
24066 | wxPyEndAllowThreads(__tstate); | |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
24069 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
8f514ab4 RD |
24076 | SWIGINTERN PyObject *_wrap_PrintData_GetMedia(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_GetMedia" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24089 | } | |
24090 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | result = (int)((wxPrintData const *)arg1)->GetMedia(); | |
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; | |
24101 | } | |
24102 | ||
24103 | ||
0085ce49 RD |
24104 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24105 | PyObject *resultobj = 0; | |
24106 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24107 | int arg2 ; | |
24108 | void *argp1 = 0 ; | |
24109 | int res1 = 0 ; | |
24110 | int val2 ; | |
24111 | int ecode2 = 0 ; | |
24112 | PyObject * obj0 = 0 ; | |
24113 | PyObject * obj1 = 0 ; | |
24114 | char * kwnames[] = { | |
24115 | (char *) "self",(char *) "v", NULL | |
24116 | }; | |
24117 | ||
24118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
24119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24120 | if (!SWIG_IsOK(res1)) { | |
24121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24122 | } | |
24123 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24124 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24125 | if (!SWIG_IsOK(ecode2)) { | |
24126 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
24127 | } | |
24128 | arg2 = static_cast< int >(val2); | |
24129 | { | |
24130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24131 | (arg1)->SetNoCopies(arg2); | |
24132 | wxPyEndAllowThreads(__tstate); | |
24133 | if (PyErr_Occurred()) SWIG_fail; | |
24134 | } | |
24135 | resultobj = SWIG_Py_Void(); | |
24136 | return resultobj; | |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
24142 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24143 | PyObject *resultobj = 0; | |
24144 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24145 | bool arg2 ; | |
24146 | void *argp1 = 0 ; | |
24147 | int res1 = 0 ; | |
24148 | bool val2 ; | |
24149 | int ecode2 = 0 ; | |
24150 | PyObject * obj0 = 0 ; | |
24151 | PyObject * obj1 = 0 ; | |
24152 | char * kwnames[] = { | |
24153 | (char *) "self",(char *) "flag", NULL | |
24154 | }; | |
24155 | ||
24156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
24157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24158 | if (!SWIG_IsOK(res1)) { | |
24159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24160 | } | |
24161 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24162 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24163 | if (!SWIG_IsOK(ecode2)) { | |
24164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
24165 | } | |
24166 | arg2 = static_cast< bool >(val2); | |
24167 | { | |
24168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24169 | (arg1)->SetCollate(arg2); | |
24170 | wxPyEndAllowThreads(__tstate); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
24172 | } | |
24173 | resultobj = SWIG_Py_Void(); | |
24174 | return resultobj; | |
24175 | fail: | |
24176 | return NULL; | |
24177 | } | |
24178 | ||
24179 | ||
24180 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24181 | PyObject *resultobj = 0; | |
24182 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24183 | int arg2 ; | |
24184 | void *argp1 = 0 ; | |
24185 | int res1 = 0 ; | |
24186 | int val2 ; | |
24187 | int ecode2 = 0 ; | |
24188 | PyObject * obj0 = 0 ; | |
24189 | PyObject * obj1 = 0 ; | |
24190 | char * kwnames[] = { | |
24191 | (char *) "self",(char *) "orient", NULL | |
24192 | }; | |
24193 | ||
24194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24196 | if (!SWIG_IsOK(res1)) { | |
24197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24198 | } | |
24199 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24200 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24201 | if (!SWIG_IsOK(ecode2)) { | |
24202 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
24203 | } | |
24204 | arg2 = static_cast< int >(val2); | |
24205 | { | |
24206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24207 | (arg1)->SetOrientation(arg2); | |
24208 | wxPyEndAllowThreads(__tstate); | |
24209 | if (PyErr_Occurred()) SWIG_fail; | |
24210 | } | |
24211 | resultobj = SWIG_Py_Void(); | |
24212 | return resultobj; | |
24213 | fail: | |
24214 | return NULL; | |
24215 | } | |
24216 | ||
24217 | ||
24218 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24219 | PyObject *resultobj = 0; | |
24220 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24221 | wxString *arg2 = 0 ; | |
24222 | void *argp1 = 0 ; | |
24223 | int res1 = 0 ; | |
24224 | bool temp2 = false ; | |
24225 | PyObject * obj0 = 0 ; | |
24226 | PyObject * obj1 = 0 ; | |
24227 | char * kwnames[] = { | |
24228 | (char *) "self",(char *) "name", NULL | |
24229 | }; | |
24230 | ||
24231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
24232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24233 | if (!SWIG_IsOK(res1)) { | |
24234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24235 | } | |
24236 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24237 | { | |
24238 | arg2 = wxString_in_helper(obj1); | |
24239 | if (arg2 == NULL) SWIG_fail; | |
24240 | temp2 = true; | |
24241 | } | |
24242 | { | |
24243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24244 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
24245 | wxPyEndAllowThreads(__tstate); | |
24246 | if (PyErr_Occurred()) SWIG_fail; | |
24247 | } | |
24248 | resultobj = SWIG_Py_Void(); | |
24249 | { | |
24250 | if (temp2) | |
24251 | delete arg2; | |
24252 | } | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | { | |
24256 | if (temp2) | |
24257 | delete arg2; | |
24258 | } | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj = 0; | |
24265 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24266 | bool arg2 ; | |
24267 | void *argp1 = 0 ; | |
24268 | int res1 = 0 ; | |
24269 | bool val2 ; | |
24270 | int ecode2 = 0 ; | |
24271 | PyObject * obj0 = 0 ; | |
24272 | PyObject * obj1 = 0 ; | |
24273 | char * kwnames[] = { | |
24274 | (char *) "self",(char *) "colour", NULL | |
24275 | }; | |
24276 | ||
24277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24279 | if (!SWIG_IsOK(res1)) { | |
24280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24281 | } | |
24282 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24283 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24284 | if (!SWIG_IsOK(ecode2)) { | |
24285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
24286 | } | |
24287 | arg2 = static_cast< bool >(val2); | |
24288 | { | |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | (arg1)->SetColour(arg2); | |
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
24294 | resultobj = SWIG_Py_Void(); | |
24295 | return resultobj; | |
24296 | fail: | |
24297 | return NULL; | |
24298 | } | |
24299 | ||
24300 | ||
24301 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24302 | PyObject *resultobj = 0; | |
24303 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24304 | wxDuplexMode arg2 ; | |
24305 | void *argp1 = 0 ; | |
24306 | int res1 = 0 ; | |
24307 | int val2 ; | |
24308 | int ecode2 = 0 ; | |
24309 | PyObject * obj0 = 0 ; | |
24310 | PyObject * obj1 = 0 ; | |
24311 | char * kwnames[] = { | |
24312 | (char *) "self",(char *) "duplex", NULL | |
24313 | }; | |
24314 | ||
24315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
24316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24317 | if (!SWIG_IsOK(res1)) { | |
24318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24319 | } | |
24320 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24321 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24322 | if (!SWIG_IsOK(ecode2)) { | |
24323 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
24324 | } | |
24325 | arg2 = static_cast< wxDuplexMode >(val2); | |
24326 | { | |
24327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24328 | (arg1)->SetDuplex(arg2); | |
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | resultobj = SWIG_Py_Void(); | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24340 | PyObject *resultobj = 0; | |
24341 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24342 | wxPaperSize arg2 ; | |
24343 | void *argp1 = 0 ; | |
24344 | int res1 = 0 ; | |
24345 | int val2 ; | |
24346 | int ecode2 = 0 ; | |
24347 | PyObject * obj0 = 0 ; | |
24348 | PyObject * obj1 = 0 ; | |
24349 | char * kwnames[] = { | |
24350 | (char *) "self",(char *) "sizeId", NULL | |
24351 | }; | |
24352 | ||
24353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
24354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24355 | if (!SWIG_IsOK(res1)) { | |
24356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24357 | } | |
24358 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24360 | if (!SWIG_IsOK(ecode2)) { | |
24361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
24362 | } | |
24363 | arg2 = static_cast< wxPaperSize >(val2); | |
24364 | { | |
24365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24366 | (arg1)->SetPaperId(arg2); | |
24367 | wxPyEndAllowThreads(__tstate); | |
24368 | if (PyErr_Occurred()) SWIG_fail; | |
24369 | } | |
24370 | resultobj = SWIG_Py_Void(); | |
24371 | return resultobj; | |
24372 | fail: | |
24373 | return NULL; | |
24374 | } | |
24375 | ||
24376 | ||
24377 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24378 | PyObject *resultobj = 0; | |
24379 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24380 | wxSize *arg2 = 0 ; | |
24381 | void *argp1 = 0 ; | |
24382 | int res1 = 0 ; | |
24383 | wxSize temp2 ; | |
24384 | PyObject * obj0 = 0 ; | |
24385 | PyObject * obj1 = 0 ; | |
24386 | char * kwnames[] = { | |
24387 | (char *) "self",(char *) "sz", NULL | |
24388 | }; | |
24389 | ||
24390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24392 | if (!SWIG_IsOK(res1)) { | |
24393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24394 | } | |
24395 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24396 | { | |
24397 | arg2 = &temp2; | |
24398 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24399 | } | |
24400 | { | |
24401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24402 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
24403 | wxPyEndAllowThreads(__tstate); | |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
24405 | } | |
24406 | resultobj = SWIG_Py_Void(); | |
24407 | return resultobj; | |
24408 | fail: | |
24409 | return NULL; | |
24410 | } | |
24411 | ||
24412 | ||
24413 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24414 | PyObject *resultobj = 0; | |
24415 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24416 | int arg2 ; | |
24417 | void *argp1 = 0 ; | |
24418 | int res1 = 0 ; | |
24419 | int val2 ; | |
24420 | int ecode2 = 0 ; | |
24421 | PyObject * obj0 = 0 ; | |
24422 | PyObject * obj1 = 0 ; | |
24423 | char * kwnames[] = { | |
24424 | (char *) "self",(char *) "quality", NULL | |
24425 | }; | |
24426 | ||
24427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
24428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24429 | if (!SWIG_IsOK(res1)) { | |
24430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24431 | } | |
24432 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24433 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24434 | if (!SWIG_IsOK(ecode2)) { | |
24435 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
24436 | } | |
24437 | arg2 = static_cast< int >(val2); | |
24438 | { | |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | (arg1)->SetQuality(arg2); | |
24441 | wxPyEndAllowThreads(__tstate); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
24444 | resultobj = SWIG_Py_Void(); | |
24445 | return resultobj; | |
24446 | fail: | |
24447 | return NULL; | |
24448 | } | |
24449 | ||
24450 | ||
24451 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24452 | PyObject *resultobj = 0; | |
24453 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24454 | wxPrintBin arg2 ; | |
24455 | void *argp1 = 0 ; | |
24456 | int res1 = 0 ; | |
24457 | int val2 ; | |
24458 | int ecode2 = 0 ; | |
24459 | PyObject * obj0 = 0 ; | |
24460 | PyObject * obj1 = 0 ; | |
24461 | char * kwnames[] = { | |
24462 | (char *) "self",(char *) "bin", NULL | |
24463 | }; | |
24464 | ||
24465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24467 | if (!SWIG_IsOK(res1)) { | |
24468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24469 | } | |
24470 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24471 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24472 | if (!SWIG_IsOK(ecode2)) { | |
24473 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
24474 | } | |
24475 | arg2 = static_cast< wxPrintBin >(val2); | |
24476 | { | |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24478 | (arg1)->SetBin(arg2); | |
24479 | wxPyEndAllowThreads(__tstate); | |
24480 | if (PyErr_Occurred()) SWIG_fail; | |
24481 | } | |
24482 | resultobj = SWIG_Py_Void(); | |
24483 | return resultobj; | |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
24489 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24490 | PyObject *resultobj = 0; | |
24491 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24492 | wxPrintMode arg2 ; | |
24493 | void *argp1 = 0 ; | |
24494 | int res1 = 0 ; | |
24495 | int val2 ; | |
24496 | int ecode2 = 0 ; | |
24497 | PyObject * obj0 = 0 ; | |
24498 | PyObject * obj1 = 0 ; | |
24499 | char * kwnames[] = { | |
24500 | (char *) "self",(char *) "printMode", NULL | |
24501 | }; | |
24502 | ||
24503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
24504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24505 | if (!SWIG_IsOK(res1)) { | |
24506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24507 | } | |
24508 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24509 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24510 | if (!SWIG_IsOK(ecode2)) { | |
24511 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
24512 | } | |
24513 | arg2 = static_cast< wxPrintMode >(val2); | |
24514 | { | |
24515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24516 | (arg1)->SetPrintMode(arg2); | |
24517 | wxPyEndAllowThreads(__tstate); | |
24518 | if (PyErr_Occurred()) SWIG_fail; | |
24519 | } | |
24520 | resultobj = SWIG_Py_Void(); | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
d14a1e28 RD |
24524 | } |
24525 | ||
24526 | ||
8f514ab4 RD |
24527 | SWIGINTERN PyObject *_wrap_PrintData_SetMedia(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24528 | PyObject *resultobj = 0; | |
24529 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24530 | int arg2 ; | |
24531 | void *argp1 = 0 ; | |
24532 | int res1 = 0 ; | |
24533 | int val2 ; | |
24534 | int ecode2 = 0 ; | |
24535 | PyObject * obj0 = 0 ; | |
24536 | PyObject * obj1 = 0 ; | |
24537 | char * kwnames[] = { | |
24538 | (char *) "self",(char *) "media", NULL | |
24539 | }; | |
24540 | ||
24541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetMedia",kwnames,&obj0,&obj1)) SWIG_fail; | |
24542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24543 | if (!SWIG_IsOK(res1)) { | |
24544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetMedia" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24545 | } | |
24546 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24548 | if (!SWIG_IsOK(ecode2)) { | |
24549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetMedia" "', expected argument " "2"" of type '" "int""'"); | |
24550 | } | |
24551 | arg2 = static_cast< int >(val2); | |
24552 | { | |
24553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24554 | (arg1)->SetMedia(arg2); | |
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | resultobj = SWIG_Py_Void(); | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
0085ce49 RD |
24565 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24566 | PyObject *resultobj = 0; | |
24567 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24568 | wxString result; | |
24569 | void *argp1 = 0 ; | |
24570 | int res1 = 0 ; | |
24571 | PyObject *swig_obj[1] ; | |
24572 | ||
24573 | if (!args) SWIG_fail; | |
24574 | swig_obj[0] = args; | |
24575 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24576 | if (!SWIG_IsOK(res1)) { | |
24577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24578 | } | |
24579 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24580 | { | |
24581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24582 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | { | |
d14a1e28 | 24587 | #if wxUSE_UNICODE |
0085ce49 | 24588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 24589 | #else |
0085ce49 | 24590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 24591 | #endif |
0085ce49 RD |
24592 | } |
24593 | return resultobj; | |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
24599 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj = 0; | |
24601 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24602 | wxString *arg2 = 0 ; | |
24603 | void *argp1 = 0 ; | |
24604 | int res1 = 0 ; | |
24605 | bool temp2 = false ; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | PyObject * obj1 = 0 ; | |
24608 | char * kwnames[] = { | |
24609 | (char *) "self",(char *) "filename", NULL | |
24610 | }; | |
24611 | ||
24612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24614 | if (!SWIG_IsOK(res1)) { | |
24615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24616 | } | |
24617 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24618 | { | |
24619 | arg2 = wxString_in_helper(obj1); | |
24620 | if (arg2 == NULL) SWIG_fail; | |
24621 | temp2 = true; | |
24622 | } | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | (arg1)->SetFilename((wxString const &)*arg2); | |
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | resultobj = SWIG_Py_Void(); | |
24630 | { | |
24631 | if (temp2) | |
24632 | delete arg2; | |
24633 | } | |
24634 | return resultobj; | |
24635 | fail: | |
24636 | { | |
24637 | if (temp2) | |
24638 | delete arg2; | |
24639 | } | |
24640 | return NULL; | |
d14a1e28 RD |
24641 | } |
24642 | ||
24643 | ||
0085ce49 RD |
24644 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24645 | PyObject *resultobj = 0; | |
24646 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24647 | PyObject *result = 0 ; | |
24648 | void *argp1 = 0 ; | |
24649 | int res1 = 0 ; | |
24650 | PyObject *swig_obj[1] ; | |
24651 | ||
24652 | if (!args) SWIG_fail; | |
24653 | swig_obj[0] = args; | |
24654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24655 | if (!SWIG_IsOK(res1)) { | |
24656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24657 | } | |
24658 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | resultobj = result; | |
24666 | return resultobj; | |
24667 | fail: | |
24668 | return NULL; | |
24669 | } | |
24670 | ||
24671 | ||
24672 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24673 | PyObject *resultobj = 0; | |
24674 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24675 | PyObject *arg2 = (PyObject *) 0 ; | |
24676 | void *argp1 = 0 ; | |
24677 | int res1 = 0 ; | |
24678 | PyObject * obj0 = 0 ; | |
24679 | PyObject * obj1 = 0 ; | |
24680 | char * kwnames[] = { | |
24681 | (char *) "self",(char *) "data", NULL | |
24682 | }; | |
24683 | ||
24684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24686 | if (!SWIG_IsOK(res1)) { | |
24687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24688 | } | |
24689 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24690 | arg2 = obj1; | |
24691 | { | |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24693 | wxPrintData_SetPrivData(arg1,arg2); | |
24694 | wxPyEndAllowThreads(__tstate); | |
24695 | if (PyErr_Occurred()) SWIG_fail; | |
24696 | } | |
24697 | resultobj = SWIG_Py_Void(); | |
24698 | return resultobj; | |
24699 | fail: | |
24700 | return NULL; | |
d14a1e28 RD |
24701 | } |
24702 | ||
24703 | ||
0085ce49 RD |
24704 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24705 | PyObject *obj; | |
24706 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24707 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24708 | return SWIG_Py_Void(); | |
d14a1e28 RD |
24709 | } |
24710 | ||
0085ce49 RD |
24711 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24712 | return SWIG_Python_InitShadowInstance(args); | |
24713 | } | |
d14a1e28 | 24714 | |
0085ce49 RD |
24715 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24716 | PyObject *resultobj = 0; | |
24717 | wxPageSetupDialogData *result = 0 ; | |
24718 | ||
24719 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24720 | { | |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24723 | wxPyEndAllowThreads(__tstate); | |
24724 | if (PyErr_Occurred()) SWIG_fail; | |
24725 | } | |
24726 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24727 | return resultobj; | |
24728 | fail: | |
24729 | return NULL; | |
d14a1e28 RD |
24730 | } |
24731 | ||
24732 | ||
0085ce49 RD |
24733 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24734 | PyObject *resultobj = 0; | |
24735 | wxPageSetupDialogData *arg1 = 0 ; | |
24736 | wxPageSetupDialogData *result = 0 ; | |
24737 | void *argp1 = 0 ; | |
24738 | int res1 = 0 ; | |
24739 | ||
24740 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24742 | if (!SWIG_IsOK(res1)) { | |
24743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24744 | } | |
24745 | if (!argp1) { | |
24746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24747 | } | |
24748 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24749 | { | |
24750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24751 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24752 | wxPyEndAllowThreads(__tstate); | |
24753 | if (PyErr_Occurred()) SWIG_fail; | |
24754 | } | |
24755 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24756 | return resultobj; | |
24757 | fail: | |
24758 | return NULL; | |
d14a1e28 RD |
24759 | } |
24760 | ||
24761 | ||
0085ce49 RD |
24762 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24763 | PyObject *resultobj = 0; | |
24764 | wxPrintData *arg1 = 0 ; | |
24765 | wxPageSetupDialogData *result = 0 ; | |
24766 | void *argp1 = 0 ; | |
24767 | int res1 = 0 ; | |
24768 | ||
24769 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24771 | if (!SWIG_IsOK(res1)) { | |
24772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24773 | } | |
24774 | if (!argp1) { | |
24775 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24776 | } | |
24777 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24778 | { | |
24779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24780 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24781 | wxPyEndAllowThreads(__tstate); | |
24782 | if (PyErr_Occurred()) SWIG_fail; | |
24783 | } | |
24784 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24785 | return resultobj; | |
24786 | fail: | |
24787 | return NULL; | |
d3b6e4ff RD |
24788 | } |
24789 | ||
24790 | ||
0085ce49 RD |
24791 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24792 | int argc; | |
24793 | PyObject *argv[2]; | |
24794 | ||
24795 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24796 | --argc; | |
24797 | if (argc == 0) { | |
24798 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24799 | } | |
24800 | if (argc == 1) { | |
24801 | int _v = 0; | |
d3b6e4ff | 24802 | { |
0085ce49 RD |
24803 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24804 | _v = SWIG_CheckState(res); | |
d3b6e4ff | 24805 | } |
0085ce49 RD |
24806 | if (!_v) goto check_2; |
24807 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24808 | } | |
24809 | check_2: | |
24810 | ||
24811 | if (argc == 1) { | |
24812 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24813 | } | |
24814 | ||
24815 | fail: | |
24816 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24817 | return NULL; | |
d3b6e4ff RD |
24818 | } |
24819 | ||
24820 | ||
0085ce49 RD |
24821 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24822 | PyObject *resultobj = 0; | |
24823 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24824 | void *argp1 = 0 ; | |
24825 | int res1 = 0 ; | |
24826 | PyObject *swig_obj[1] ; | |
24827 | ||
24828 | if (!args) SWIG_fail; | |
24829 | swig_obj[0] = args; | |
24830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24831 | if (!SWIG_IsOK(res1)) { | |
24832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24833 | } | |
24834 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24835 | { | |
24836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24837 | delete arg1; | |
d14a1e28 | 24838 | |
0085ce49 RD |
24839 | wxPyEndAllowThreads(__tstate); |
24840 | if (PyErr_Occurred()) SWIG_fail; | |
24841 | } | |
24842 | resultobj = SWIG_Py_Void(); | |
24843 | return resultobj; | |
24844 | fail: | |
24845 | return NULL; | |
24846 | } | |
24847 | ||
24848 | ||
24849 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24850 | PyObject *resultobj = 0; | |
24851 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24852 | bool arg2 ; | |
24853 | void *argp1 = 0 ; | |
24854 | int res1 = 0 ; | |
24855 | bool val2 ; | |
24856 | int ecode2 = 0 ; | |
24857 | PyObject * obj0 = 0 ; | |
24858 | PyObject * obj1 = 0 ; | |
24859 | char * kwnames[] = { | |
24860 | (char *) "self",(char *) "flag", NULL | |
24861 | }; | |
24862 | ||
24863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24865 | if (!SWIG_IsOK(res1)) { | |
24866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24867 | } | |
24868 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24869 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24870 | if (!SWIG_IsOK(ecode2)) { | |
24871 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24872 | } | |
24873 | arg2 = static_cast< bool >(val2); | |
24874 | { | |
24875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24876 | (arg1)->EnableHelp(arg2); | |
24877 | wxPyEndAllowThreads(__tstate); | |
24878 | if (PyErr_Occurred()) SWIG_fail; | |
24879 | } | |
24880 | resultobj = SWIG_Py_Void(); | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
24887 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24888 | PyObject *resultobj = 0; | |
24889 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24890 | bool arg2 ; | |
24891 | void *argp1 = 0 ; | |
24892 | int res1 = 0 ; | |
24893 | bool val2 ; | |
24894 | int ecode2 = 0 ; | |
24895 | PyObject * obj0 = 0 ; | |
24896 | PyObject * obj1 = 0 ; | |
24897 | char * kwnames[] = { | |
24898 | (char *) "self",(char *) "flag", NULL | |
24899 | }; | |
24900 | ||
24901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24903 | if (!SWIG_IsOK(res1)) { | |
24904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24905 | } | |
24906 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24907 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24908 | if (!SWIG_IsOK(ecode2)) { | |
24909 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24910 | } | |
24911 | arg2 = static_cast< bool >(val2); | |
24912 | { | |
24913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24914 | (arg1)->EnableMargins(arg2); | |
24915 | wxPyEndAllowThreads(__tstate); | |
24916 | if (PyErr_Occurred()) SWIG_fail; | |
24917 | } | |
24918 | resultobj = SWIG_Py_Void(); | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
24925 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24926 | PyObject *resultobj = 0; | |
24927 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24928 | bool arg2 ; | |
24929 | void *argp1 = 0 ; | |
24930 | int res1 = 0 ; | |
24931 | bool val2 ; | |
24932 | int ecode2 = 0 ; | |
24933 | PyObject * obj0 = 0 ; | |
24934 | PyObject * obj1 = 0 ; | |
24935 | char * kwnames[] = { | |
24936 | (char *) "self",(char *) "flag", NULL | |
24937 | }; | |
24938 | ||
24939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24941 | if (!SWIG_IsOK(res1)) { | |
24942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24943 | } | |
24944 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24945 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24946 | if (!SWIG_IsOK(ecode2)) { | |
24947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24948 | } | |
24949 | arg2 = static_cast< bool >(val2); | |
24950 | { | |
24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24952 | (arg1)->EnableOrientation(arg2); | |
24953 | wxPyEndAllowThreads(__tstate); | |
24954 | if (PyErr_Occurred()) SWIG_fail; | |
24955 | } | |
24956 | resultobj = SWIG_Py_Void(); | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
24963 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24964 | PyObject *resultobj = 0; | |
24965 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24966 | bool arg2 ; | |
24967 | void *argp1 = 0 ; | |
24968 | int res1 = 0 ; | |
24969 | bool val2 ; | |
24970 | int ecode2 = 0 ; | |
24971 | PyObject * obj0 = 0 ; | |
24972 | PyObject * obj1 = 0 ; | |
24973 | char * kwnames[] = { | |
24974 | (char *) "self",(char *) "flag", NULL | |
24975 | }; | |
24976 | ||
24977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24979 | if (!SWIG_IsOK(res1)) { | |
24980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24981 | } | |
24982 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24983 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24984 | if (!SWIG_IsOK(ecode2)) { | |
24985 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
24986 | } | |
24987 | arg2 = static_cast< bool >(val2); | |
24988 | { | |
24989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24990 | (arg1)->EnablePaper(arg2); | |
24991 | wxPyEndAllowThreads(__tstate); | |
24992 | if (PyErr_Occurred()) SWIG_fail; | |
24993 | } | |
24994 | resultobj = SWIG_Py_Void(); | |
24995 | return resultobj; | |
24996 | fail: | |
24997 | return NULL; | |
24998 | } | |
24999 | ||
25000 | ||
25001 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25002 | PyObject *resultobj = 0; | |
25003 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25004 | bool arg2 ; | |
25005 | void *argp1 = 0 ; | |
25006 | int res1 = 0 ; | |
25007 | bool val2 ; | |
25008 | int ecode2 = 0 ; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | PyObject * obj1 = 0 ; | |
25011 | char * kwnames[] = { | |
25012 | (char *) "self",(char *) "flag", NULL | |
25013 | }; | |
25014 | ||
25015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
25016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25017 | if (!SWIG_IsOK(res1)) { | |
25018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25019 | } | |
25020 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25021 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25022 | if (!SWIG_IsOK(ecode2)) { | |
25023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
25024 | } | |
25025 | arg2 = static_cast< bool >(val2); | |
25026 | { | |
25027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25028 | (arg1)->EnablePrinter(arg2); | |
25029 | wxPyEndAllowThreads(__tstate); | |
25030 | if (PyErr_Occurred()) SWIG_fail; | |
25031 | } | |
25032 | resultobj = SWIG_Py_Void(); | |
25033 | return resultobj; | |
25034 | fail: | |
25035 | return NULL; | |
d14a1e28 RD |
25036 | } |
25037 | ||
25038 | ||
0085ce49 RD |
25039 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25040 | PyObject *resultobj = 0; | |
25041 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25042 | bool result; | |
25043 | void *argp1 = 0 ; | |
25044 | int res1 = 0 ; | |
25045 | PyObject *swig_obj[1] ; | |
25046 | ||
25047 | if (!args) SWIG_fail; | |
25048 | swig_obj[0] = args; | |
25049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25050 | if (!SWIG_IsOK(res1)) { | |
25051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25052 | } | |
25053 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
25057 | wxPyEndAllowThreads(__tstate); | |
25058 | if (PyErr_Occurred()) SWIG_fail; | |
25059 | } | |
25060 | { | |
25061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25062 | } | |
25063 | return resultobj; | |
25064 | fail: | |
25065 | return NULL; | |
d14a1e28 RD |
25066 | } |
25067 | ||
25068 | ||
0085ce49 RD |
25069 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25070 | PyObject *resultobj = 0; | |
25071 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25072 | bool result; | |
25073 | void *argp1 = 0 ; | |
25074 | int res1 = 0 ; | |
25075 | PyObject *swig_obj[1] ; | |
25076 | ||
25077 | if (!args) SWIG_fail; | |
25078 | swig_obj[0] = args; | |
25079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25080 | if (!SWIG_IsOK(res1)) { | |
25081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25082 | } | |
25083 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25084 | { | |
25085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25086 | result = (bool)(arg1)->GetEnableMargins(); | |
25087 | wxPyEndAllowThreads(__tstate); | |
25088 | if (PyErr_Occurred()) SWIG_fail; | |
25089 | } | |
25090 | { | |
25091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25092 | } | |
25093 | return resultobj; | |
25094 | fail: | |
25095 | return NULL; | |
d14a1e28 RD |
25096 | } |
25097 | ||
25098 | ||
0085ce49 RD |
25099 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25100 | PyObject *resultobj = 0; | |
25101 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25102 | bool result; | |
25103 | void *argp1 = 0 ; | |
25104 | int res1 = 0 ; | |
25105 | PyObject *swig_obj[1] ; | |
25106 | ||
25107 | if (!args) SWIG_fail; | |
25108 | swig_obj[0] = args; | |
25109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25110 | if (!SWIG_IsOK(res1)) { | |
25111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25112 | } | |
25113 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25114 | { | |
25115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25116 | result = (bool)(arg1)->GetEnableOrientation(); | |
25117 | wxPyEndAllowThreads(__tstate); | |
25118 | if (PyErr_Occurred()) SWIG_fail; | |
25119 | } | |
25120 | { | |
25121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25122 | } | |
25123 | return resultobj; | |
25124 | fail: | |
25125 | return NULL; | |
d14a1e28 RD |
25126 | } |
25127 | ||
25128 | ||
0085ce49 RD |
25129 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25130 | PyObject *resultobj = 0; | |
25131 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25132 | bool result; | |
25133 | void *argp1 = 0 ; | |
25134 | int res1 = 0 ; | |
25135 | PyObject *swig_obj[1] ; | |
25136 | ||
25137 | if (!args) SWIG_fail; | |
25138 | swig_obj[0] = args; | |
25139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25140 | if (!SWIG_IsOK(res1)) { | |
25141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25142 | } | |
25143 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25144 | { | |
25145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25146 | result = (bool)(arg1)->GetEnablePaper(); | |
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | { | |
25151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25152 | } | |
25153 | return resultobj; | |
25154 | fail: | |
25155 | return NULL; | |
d14a1e28 RD |
25156 | } |
25157 | ||
25158 | ||
0085ce49 RD |
25159 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25160 | PyObject *resultobj = 0; | |
25161 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25162 | bool result; | |
25163 | void *argp1 = 0 ; | |
25164 | int res1 = 0 ; | |
25165 | PyObject *swig_obj[1] ; | |
25166 | ||
25167 | if (!args) SWIG_fail; | |
25168 | swig_obj[0] = args; | |
25169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25170 | if (!SWIG_IsOK(res1)) { | |
25171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25172 | } | |
25173 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25174 | { | |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25176 | result = (bool)(arg1)->GetEnablePrinter(); | |
25177 | wxPyEndAllowThreads(__tstate); | |
25178 | if (PyErr_Occurred()) SWIG_fail; | |
25179 | } | |
25180 | { | |
25181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25182 | } | |
25183 | return resultobj; | |
25184 | fail: | |
25185 | return NULL; | |
d14a1e28 RD |
25186 | } |
25187 | ||
25188 | ||
0085ce49 RD |
25189 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25190 | PyObject *resultobj = 0; | |
25191 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25192 | bool result; | |
25193 | void *argp1 = 0 ; | |
25194 | int res1 = 0 ; | |
25195 | PyObject *swig_obj[1] ; | |
25196 | ||
25197 | if (!args) SWIG_fail; | |
25198 | swig_obj[0] = args; | |
25199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25200 | if (!SWIG_IsOK(res1)) { | |
25201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25202 | } | |
25203 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25204 | { | |
25205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25206 | result = (bool)(arg1)->GetEnableHelp(); | |
25207 | wxPyEndAllowThreads(__tstate); | |
25208 | if (PyErr_Occurred()) SWIG_fail; | |
25209 | } | |
25210 | { | |
25211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25212 | } | |
25213 | return resultobj; | |
25214 | fail: | |
25215 | return NULL; | |
d14a1e28 RD |
25216 | } |
25217 | ||
25218 | ||
0085ce49 RD |
25219 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25220 | PyObject *resultobj = 0; | |
25221 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25222 | bool result; | |
25223 | void *argp1 = 0 ; | |
25224 | int res1 = 0 ; | |
25225 | PyObject *swig_obj[1] ; | |
25226 | ||
25227 | if (!args) SWIG_fail; | |
25228 | swig_obj[0] = args; | |
25229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25230 | if (!SWIG_IsOK(res1)) { | |
25231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25232 | } | |
25233 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25234 | { | |
25235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25236 | result = (bool)(arg1)->GetDefaultInfo(); | |
25237 | wxPyEndAllowThreads(__tstate); | |
25238 | if (PyErr_Occurred()) SWIG_fail; | |
25239 | } | |
25240 | { | |
25241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25242 | } | |
25243 | return resultobj; | |
25244 | fail: | |
25245 | return NULL; | |
d14a1e28 RD |
25246 | } |
25247 | ||
25248 | ||
0085ce49 RD |
25249 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25250 | PyObject *resultobj = 0; | |
25251 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25252 | wxPoint result; | |
25253 | void *argp1 = 0 ; | |
25254 | int res1 = 0 ; | |
25255 | PyObject *swig_obj[1] ; | |
25256 | ||
25257 | if (!args) SWIG_fail; | |
25258 | swig_obj[0] = args; | |
25259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25260 | if (!SWIG_IsOK(res1)) { | |
25261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25262 | } | |
25263 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25264 | { | |
25265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25266 | result = (arg1)->GetMarginTopLeft(); | |
25267 | wxPyEndAllowThreads(__tstate); | |
25268 | if (PyErr_Occurred()) SWIG_fail; | |
25269 | } | |
25270 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25271 | return resultobj; | |
25272 | fail: | |
25273 | return NULL; | |
d14a1e28 RD |
25274 | } |
25275 | ||
25276 | ||
0085ce49 RD |
25277 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25278 | PyObject *resultobj = 0; | |
25279 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25280 | wxPoint result; | |
25281 | void *argp1 = 0 ; | |
25282 | int res1 = 0 ; | |
25283 | PyObject *swig_obj[1] ; | |
25284 | ||
25285 | if (!args) SWIG_fail; | |
25286 | swig_obj[0] = args; | |
25287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25288 | if (!SWIG_IsOK(res1)) { | |
25289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25290 | } | |
25291 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25292 | { | |
25293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25294 | result = (arg1)->GetMarginBottomRight(); | |
25295 | wxPyEndAllowThreads(__tstate); | |
25296 | if (PyErr_Occurred()) SWIG_fail; | |
25297 | } | |
25298 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25299 | return resultobj; | |
25300 | fail: | |
25301 | return NULL; | |
d14a1e28 RD |
25302 | } |
25303 | ||
25304 | ||
0085ce49 RD |
25305 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25306 | PyObject *resultobj = 0; | |
25307 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25308 | wxPoint result; | |
25309 | void *argp1 = 0 ; | |
25310 | int res1 = 0 ; | |
25311 | PyObject *swig_obj[1] ; | |
25312 | ||
25313 | if (!args) SWIG_fail; | |
25314 | swig_obj[0] = args; | |
25315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25316 | if (!SWIG_IsOK(res1)) { | |
25317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25318 | } | |
25319 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25320 | { | |
25321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25322 | result = (arg1)->GetMinMarginTopLeft(); | |
25323 | wxPyEndAllowThreads(__tstate); | |
25324 | if (PyErr_Occurred()) SWIG_fail; | |
25325 | } | |
25326 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25327 | return resultobj; | |
25328 | fail: | |
25329 | return NULL; | |
d14a1e28 RD |
25330 | } |
25331 | ||
25332 | ||
0085ce49 RD |
25333 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25334 | PyObject *resultobj = 0; | |
25335 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25336 | wxPoint result; | |
25337 | void *argp1 = 0 ; | |
25338 | int res1 = 0 ; | |
25339 | PyObject *swig_obj[1] ; | |
25340 | ||
25341 | if (!args) SWIG_fail; | |
25342 | swig_obj[0] = args; | |
25343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25344 | if (!SWIG_IsOK(res1)) { | |
25345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25346 | } | |
25347 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25348 | { | |
25349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25350 | result = (arg1)->GetMinMarginBottomRight(); | |
25351 | wxPyEndAllowThreads(__tstate); | |
25352 | if (PyErr_Occurred()) SWIG_fail; | |
25353 | } | |
25354 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25355 | return resultobj; | |
25356 | fail: | |
25357 | return NULL; | |
d14a1e28 RD |
25358 | } |
25359 | ||
25360 | ||
0085ce49 RD |
25361 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25362 | PyObject *resultobj = 0; | |
25363 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25364 | wxPaperSize result; | |
25365 | void *argp1 = 0 ; | |
25366 | int res1 = 0 ; | |
25367 | PyObject *swig_obj[1] ; | |
25368 | ||
25369 | if (!args) SWIG_fail; | |
25370 | swig_obj[0] = args; | |
25371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25372 | if (!SWIG_IsOK(res1)) { | |
25373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25374 | } | |
25375 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25376 | { | |
25377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25378 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
25379 | wxPyEndAllowThreads(__tstate); | |
25380 | if (PyErr_Occurred()) SWIG_fail; | |
25381 | } | |
25382 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25383 | return resultobj; | |
25384 | fail: | |
25385 | return NULL; | |
d14a1e28 RD |
25386 | } |
25387 | ||
25388 | ||
0085ce49 RD |
25389 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25390 | PyObject *resultobj = 0; | |
25391 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25392 | wxSize result; | |
25393 | void *argp1 = 0 ; | |
25394 | int res1 = 0 ; | |
25395 | PyObject *swig_obj[1] ; | |
25396 | ||
25397 | if (!args) SWIG_fail; | |
25398 | swig_obj[0] = args; | |
25399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25400 | if (!SWIG_IsOK(res1)) { | |
25401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25402 | } | |
25403 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25404 | { | |
25405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25406 | result = (arg1)->GetPaperSize(); | |
25407 | wxPyEndAllowThreads(__tstate); | |
25408 | if (PyErr_Occurred()) SWIG_fail; | |
25409 | } | |
25410 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25411 | return resultobj; | |
25412 | fail: | |
25413 | return NULL; | |
d14a1e28 RD |
25414 | } |
25415 | ||
25416 | ||
0085ce49 RD |
25417 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25418 | PyObject *resultobj = 0; | |
25419 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25420 | wxPrintData *result = 0 ; | |
25421 | void *argp1 = 0 ; | |
25422 | int res1 = 0 ; | |
25423 | PyObject *swig_obj[1] ; | |
25424 | ||
25425 | if (!args) SWIG_fail; | |
25426 | swig_obj[0] = args; | |
25427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25428 | if (!SWIG_IsOK(res1)) { | |
25429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25430 | } | |
25431 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25432 | { | |
25433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25434 | { |
0085ce49 RD |
25435 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25436 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 25437 | } |
0085ce49 RD |
25438 | wxPyEndAllowThreads(__tstate); |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
25440 | } | |
25441 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25442 | return resultobj; | |
25443 | fail: | |
25444 | return NULL; | |
d14a1e28 RD |
25445 | } |
25446 | ||
25447 | ||
b39fe951 | 25448 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
25449 | PyObject *resultobj = 0; |
25450 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25451 | bool result; | |
25452 | void *argp1 = 0 ; | |
25453 | int res1 = 0 ; | |
25454 | PyObject *swig_obj[1] ; | |
25455 | ||
25456 | if (!args) SWIG_fail; | |
25457 | swig_obj[0] = args; | |
25458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25459 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_IsOk" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); |
0085ce49 RD |
25461 | } |
25462 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25463 | { | |
25464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25465 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
25466 | wxPyEndAllowThreads(__tstate); |
25467 | if (PyErr_Occurred()) SWIG_fail; | |
25468 | } | |
25469 | { | |
25470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25471 | } | |
25472 | return resultobj; | |
25473 | fail: | |
25474 | return NULL; | |
25475 | } | |
25476 | ||
25477 | ||
25478 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25479 | PyObject *resultobj = 0; | |
25480 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25481 | bool arg2 ; | |
25482 | void *argp1 = 0 ; | |
25483 | int res1 = 0 ; | |
25484 | bool val2 ; | |
25485 | int ecode2 = 0 ; | |
25486 | PyObject * obj0 = 0 ; | |
25487 | PyObject * obj1 = 0 ; | |
25488 | char * kwnames[] = { | |
25489 | (char *) "self",(char *) "flag", NULL | |
25490 | }; | |
25491 | ||
25492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
25493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25494 | if (!SWIG_IsOK(res1)) { | |
25495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25496 | } | |
25497 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25498 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25499 | if (!SWIG_IsOK(ecode2)) { | |
25500 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
25501 | } | |
25502 | arg2 = static_cast< bool >(val2); | |
25503 | { | |
25504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25505 | (arg1)->SetDefaultInfo(arg2); | |
25506 | wxPyEndAllowThreads(__tstate); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | resultobj = SWIG_Py_Void(); | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
25516 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25517 | PyObject *resultobj = 0; | |
25518 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25519 | bool arg2 ; | |
25520 | void *argp1 = 0 ; | |
25521 | int res1 = 0 ; | |
25522 | bool val2 ; | |
25523 | int ecode2 = 0 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | PyObject * obj1 = 0 ; | |
25526 | char * kwnames[] = { | |
25527 | (char *) "self",(char *) "flag", NULL | |
25528 | }; | |
25529 | ||
25530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25532 | if (!SWIG_IsOK(res1)) { | |
25533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25534 | } | |
25535 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25536 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25537 | if (!SWIG_IsOK(ecode2)) { | |
25538 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25539 | } | |
25540 | arg2 = static_cast< bool >(val2); | |
25541 | { | |
25542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25543 | (arg1)->SetDefaultMinMargins(arg2); | |
25544 | wxPyEndAllowThreads(__tstate); | |
25545 | if (PyErr_Occurred()) SWIG_fail; | |
25546 | } | |
25547 | resultobj = SWIG_Py_Void(); | |
25548 | return resultobj; | |
25549 | fail: | |
25550 | return NULL; | |
25551 | } | |
25552 | ||
25553 | ||
25554 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25555 | PyObject *resultobj = 0; | |
25556 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25557 | wxPoint *arg2 = 0 ; | |
25558 | void *argp1 = 0 ; | |
25559 | int res1 = 0 ; | |
25560 | wxPoint temp2 ; | |
25561 | PyObject * obj0 = 0 ; | |
25562 | PyObject * obj1 = 0 ; | |
25563 | char * kwnames[] = { | |
25564 | (char *) "self",(char *) "pt", NULL | |
25565 | }; | |
25566 | ||
25567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25569 | if (!SWIG_IsOK(res1)) { | |
25570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25571 | } | |
25572 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25573 | { | |
25574 | arg2 = &temp2; | |
25575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25576 | } | |
25577 | { | |
25578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25579 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
25580 | wxPyEndAllowThreads(__tstate); | |
25581 | if (PyErr_Occurred()) SWIG_fail; | |
25582 | } | |
25583 | resultobj = SWIG_Py_Void(); | |
25584 | return resultobj; | |
25585 | fail: | |
25586 | return NULL; | |
25587 | } | |
25588 | ||
25589 | ||
25590 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25591 | PyObject *resultobj = 0; | |
25592 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25593 | wxPoint *arg2 = 0 ; | |
25594 | void *argp1 = 0 ; | |
25595 | int res1 = 0 ; | |
25596 | wxPoint temp2 ; | |
25597 | PyObject * obj0 = 0 ; | |
25598 | PyObject * obj1 = 0 ; | |
25599 | char * kwnames[] = { | |
25600 | (char *) "self",(char *) "pt", NULL | |
25601 | }; | |
25602 | ||
25603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25605 | if (!SWIG_IsOK(res1)) { | |
25606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25607 | } | |
25608 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25609 | { | |
25610 | arg2 = &temp2; | |
25611 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25612 | } | |
25613 | { | |
25614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25615 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25616 | wxPyEndAllowThreads(__tstate); | |
25617 | if (PyErr_Occurred()) SWIG_fail; | |
25618 | } | |
25619 | resultobj = SWIG_Py_Void(); | |
25620 | return resultobj; | |
25621 | fail: | |
25622 | return NULL; | |
25623 | } | |
25624 | ||
25625 | ||
25626 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25627 | PyObject *resultobj = 0; | |
25628 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25629 | wxPoint *arg2 = 0 ; | |
25630 | void *argp1 = 0 ; | |
25631 | int res1 = 0 ; | |
25632 | wxPoint temp2 ; | |
25633 | PyObject * obj0 = 0 ; | |
25634 | PyObject * obj1 = 0 ; | |
25635 | char * kwnames[] = { | |
25636 | (char *) "self",(char *) "pt", NULL | |
25637 | }; | |
25638 | ||
25639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25641 | if (!SWIG_IsOK(res1)) { | |
25642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25643 | } | |
25644 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25645 | { | |
25646 | arg2 = &temp2; | |
25647 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25648 | } | |
25649 | { | |
25650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25651 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25652 | wxPyEndAllowThreads(__tstate); | |
25653 | if (PyErr_Occurred()) SWIG_fail; | |
25654 | } | |
25655 | resultobj = SWIG_Py_Void(); | |
25656 | return resultobj; | |
25657 | fail: | |
25658 | return NULL; | |
25659 | } | |
25660 | ||
25661 | ||
25662 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25663 | PyObject *resultobj = 0; | |
25664 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25665 | wxPoint *arg2 = 0 ; | |
25666 | void *argp1 = 0 ; | |
25667 | int res1 = 0 ; | |
25668 | wxPoint temp2 ; | |
25669 | PyObject * obj0 = 0 ; | |
25670 | PyObject * obj1 = 0 ; | |
25671 | char * kwnames[] = { | |
25672 | (char *) "self",(char *) "pt", NULL | |
25673 | }; | |
25674 | ||
25675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25677 | if (!SWIG_IsOK(res1)) { | |
25678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25679 | } | |
25680 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25681 | { | |
25682 | arg2 = &temp2; | |
25683 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25684 | } | |
25685 | { | |
25686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25687 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25688 | wxPyEndAllowThreads(__tstate); | |
25689 | if (PyErr_Occurred()) SWIG_fail; | |
25690 | } | |
25691 | resultobj = SWIG_Py_Void(); | |
25692 | return resultobj; | |
25693 | fail: | |
25694 | return NULL; | |
25695 | } | |
25696 | ||
25697 | ||
25698 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25699 | PyObject *resultobj = 0; | |
25700 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25701 | wxPaperSize arg2 ; | |
25702 | void *argp1 = 0 ; | |
25703 | int res1 = 0 ; | |
25704 | int val2 ; | |
25705 | int ecode2 = 0 ; | |
25706 | PyObject * obj0 = 0 ; | |
25707 | PyObject * obj1 = 0 ; | |
25708 | char * kwnames[] = { | |
25709 | (char *) "self",(char *) "id", NULL | |
25710 | }; | |
25711 | ||
25712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25714 | if (!SWIG_IsOK(res1)) { | |
25715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25716 | } | |
25717 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25718 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25719 | if (!SWIG_IsOK(ecode2)) { | |
25720 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25721 | } | |
25722 | arg2 = static_cast< wxPaperSize >(val2); | |
25723 | { | |
25724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25725 | (arg1)->SetPaperId(arg2); | |
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | resultobj = SWIG_Py_Void(); | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
25736 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25737 | PyObject *resultobj = 0; | |
25738 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25739 | wxSize *arg2 = 0 ; | |
25740 | void *argp1 = 0 ; | |
25741 | int res1 = 0 ; | |
25742 | wxSize temp2 ; | |
25743 | PyObject * obj0 = 0 ; | |
25744 | PyObject * obj1 = 0 ; | |
25745 | char * kwnames[] = { | |
25746 | (char *) "self",(char *) "size", NULL | |
25747 | }; | |
25748 | ||
25749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25751 | if (!SWIG_IsOK(res1)) { | |
25752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25753 | } | |
25754 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25755 | { | |
25756 | arg2 = &temp2; | |
25757 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25758 | } | |
25759 | { | |
25760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25761 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25762 | wxPyEndAllowThreads(__tstate); | |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
25764 | } | |
25765 | resultobj = SWIG_Py_Void(); | |
25766 | return resultobj; | |
25767 | fail: | |
25768 | return NULL; | |
25769 | } | |
25770 | ||
25771 | ||
25772 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25773 | PyObject *resultobj = 0; | |
25774 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25775 | wxPrintData *arg2 = 0 ; | |
25776 | void *argp1 = 0 ; | |
25777 | int res1 = 0 ; | |
25778 | void *argp2 = 0 ; | |
25779 | int res2 = 0 ; | |
25780 | PyObject * obj0 = 0 ; | |
25781 | PyObject * obj1 = 0 ; | |
25782 | char * kwnames[] = { | |
25783 | (char *) "self",(char *) "printData", NULL | |
25784 | }; | |
25785 | ||
25786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25788 | if (!SWIG_IsOK(res1)) { | |
25789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25790 | } | |
25791 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25792 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25793 | if (!SWIG_IsOK(res2)) { | |
25794 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25795 | } | |
25796 | if (!argp2) { | |
25797 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25798 | } | |
25799 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25800 | { | |
25801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25802 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25803 | wxPyEndAllowThreads(__tstate); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
25806 | resultobj = SWIG_Py_Void(); | |
25807 | return resultobj; | |
25808 | fail: | |
25809 | return NULL; | |
d14a1e28 RD |
25810 | } |
25811 | ||
25812 | ||
0085ce49 RD |
25813 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25814 | PyObject *resultobj = 0; | |
25815 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25816 | void *argp1 = 0 ; | |
25817 | int res1 = 0 ; | |
25818 | PyObject *swig_obj[1] ; | |
25819 | ||
25820 | if (!args) SWIG_fail; | |
25821 | swig_obj[0] = args; | |
25822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25823 | if (!SWIG_IsOK(res1)) { | |
25824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25825 | } | |
25826 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25827 | { | |
25828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25829 | (arg1)->CalculateIdFromPaperSize(); | |
25830 | wxPyEndAllowThreads(__tstate); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | resultobj = SWIG_Py_Void(); | |
25834 | return resultobj; | |
25835 | fail: | |
25836 | return NULL; | |
32fe5131 RD |
25837 | } |
25838 | ||
25839 | ||
0085ce49 RD |
25840 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25841 | PyObject *resultobj = 0; | |
25842 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25843 | void *argp1 = 0 ; | |
25844 | int res1 = 0 ; | |
25845 | PyObject *swig_obj[1] ; | |
25846 | ||
25847 | if (!args) SWIG_fail; | |
25848 | swig_obj[0] = args; | |
25849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25850 | if (!SWIG_IsOK(res1)) { | |
25851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25852 | } | |
25853 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25854 | { | |
25855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25856 | (arg1)->CalculatePaperSizeFromId(); | |
25857 | wxPyEndAllowThreads(__tstate); | |
25858 | if (PyErr_Occurred()) SWIG_fail; | |
25859 | } | |
25860 | resultobj = SWIG_Py_Void(); | |
25861 | return resultobj; | |
25862 | fail: | |
25863 | return NULL; | |
d14a1e28 RD |
25864 | } |
25865 | ||
25866 | ||
0085ce49 RD |
25867 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25868 | PyObject *obj; | |
25869 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25870 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25871 | return SWIG_Py_Void(); | |
d14a1e28 RD |
25872 | } |
25873 | ||
0085ce49 RD |
25874 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25875 | return SWIG_Python_InitShadowInstance(args); | |
25876 | } | |
d14a1e28 | 25877 | |
0085ce49 RD |
25878 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25879 | PyObject *resultobj = 0; | |
25880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25881 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25882 | wxPageSetupDialog *result = 0 ; | |
25883 | void *argp1 = 0 ; | |
25884 | int res1 = 0 ; | |
25885 | void *argp2 = 0 ; | |
25886 | int res2 = 0 ; | |
25887 | PyObject * obj0 = 0 ; | |
25888 | PyObject * obj1 = 0 ; | |
25889 | char * kwnames[] = { | |
25890 | (char *) "parent",(char *) "data", NULL | |
25891 | }; | |
25892 | ||
25893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25895 | if (!SWIG_IsOK(res1)) { | |
25896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25897 | } | |
25898 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25899 | if (obj1) { | |
25900 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25901 | if (!SWIG_IsOK(res2)) { | |
25902 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
d14a1e28 | 25903 | } |
0085ce49 RD |
25904 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25905 | } | |
25906 | { | |
25907 | if (!wxPyCheckForApp()) SWIG_fail; | |
25908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25909 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25910 | wxPyEndAllowThreads(__tstate); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | } | |
25913 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | return NULL; | |
d14a1e28 RD |
25917 | } |
25918 | ||
25919 | ||
f05326ba RD |
25920 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25921 | PyObject *resultobj = 0; | |
25922 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25923 | void *argp1 = 0 ; | |
25924 | int res1 = 0 ; | |
25925 | PyObject *swig_obj[1] ; | |
25926 | ||
25927 | if (!args) SWIG_fail; | |
25928 | swig_obj[0] = args; | |
25929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_DISOWN | 0 ); | |
25930 | if (!SWIG_IsOK(res1)) { | |
25931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialog" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25932 | } | |
25933 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25934 | { | |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | delete arg1; | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | resultobj = SWIG_Py_Void(); | |
25942 | return resultobj; | |
25943 | fail: | |
25944 | return NULL; | |
25945 | } | |
25946 | ||
25947 | ||
0085ce49 RD |
25948 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25949 | PyObject *resultobj = 0; | |
25950 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25951 | wxPageSetupDialogData *result = 0 ; | |
25952 | void *argp1 = 0 ; | |
25953 | int res1 = 0 ; | |
25954 | PyObject *swig_obj[1] ; | |
25955 | ||
25956 | if (!args) SWIG_fail; | |
25957 | swig_obj[0] = args; | |
25958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25959 | if (!SWIG_IsOK(res1)) { | |
25960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25961 | } | |
25962 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25963 | { | |
25964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 25965 | { |
0085ce49 RD |
25966 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25967 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 25968 | } |
0085ce49 RD |
25969 | wxPyEndAllowThreads(__tstate); |
25970 | if (PyErr_Occurred()) SWIG_fail; | |
25971 | } | |
25972 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25973 | return resultobj; | |
25974 | fail: | |
25975 | return NULL; | |
25976 | } | |
25977 | ||
25978 | ||
25979 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25980 | PyObject *resultobj = 0; | |
25981 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25982 | wxPageSetupDialogData *result = 0 ; | |
25983 | void *argp1 = 0 ; | |
25984 | int res1 = 0 ; | |
25985 | PyObject *swig_obj[1] ; | |
25986 | ||
25987 | if (!args) SWIG_fail; | |
25988 | swig_obj[0] = args; | |
25989 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25990 | if (!SWIG_IsOK(res1)) { | |
25991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25992 | } | |
25993 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25994 | { | |
25995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 25996 | { |
0085ce49 RD |
25997 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
25998 | result = (wxPageSetupDialogData *) &_result_ref; | |
d14a1e28 | 25999 | } |
0085ce49 RD |
26000 | wxPyEndAllowThreads(__tstate); |
26001 | if (PyErr_Occurred()) SWIG_fail; | |
26002 | } | |
26003 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
26004 | return resultobj; | |
26005 | fail: | |
26006 | return NULL; | |
d14a1e28 RD |
26007 | } |
26008 | ||
26009 | ||
0085ce49 RD |
26010 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26011 | PyObject *resultobj = 0; | |
26012 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
26013 | int result; | |
26014 | void *argp1 = 0 ; | |
26015 | int res1 = 0 ; | |
26016 | PyObject *swig_obj[1] ; | |
26017 | ||
26018 | if (!args) SWIG_fail; | |
26019 | swig_obj[0] = args; | |
26020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
26021 | if (!SWIG_IsOK(res1)) { | |
26022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
26023 | } | |
26024 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
26025 | { | |
26026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26027 | result = (int)(arg1)->ShowModal(); | |
26028 | wxPyEndAllowThreads(__tstate); | |
26029 | if (PyErr_Occurred()) SWIG_fail; | |
26030 | } | |
26031 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26032 | return resultobj; | |
26033 | fail: | |
26034 | return NULL; | |
d14a1e28 RD |
26035 | } |
26036 | ||
26037 | ||
0085ce49 RD |
26038 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26039 | PyObject *obj; | |
26040 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26041 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
26042 | return SWIG_Py_Void(); | |
d14a1e28 RD |
26043 | } |
26044 | ||
0085ce49 RD |
26045 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26046 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
26047 | } |
26048 | ||
0085ce49 RD |
26049 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
26050 | PyObject *resultobj = 0; | |
26051 | wxPrintDialogData *result = 0 ; | |
26052 | ||
26053 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
26054 | { | |
26055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26056 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
26057 | wxPyEndAllowThreads(__tstate); | |
26058 | if (PyErr_Occurred()) SWIG_fail; | |
26059 | } | |
26060 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26061 | return resultobj; | |
26062 | fail: | |
26063 | return NULL; | |
d14a1e28 RD |
26064 | } |
26065 | ||
26066 | ||
0085ce49 RD |
26067 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26068 | PyObject *resultobj = 0; | |
26069 | wxPrintData *arg1 = 0 ; | |
26070 | wxPrintDialogData *result = 0 ; | |
26071 | void *argp1 = 0 ; | |
26072 | int res1 = 0 ; | |
26073 | ||
26074 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26075 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26076 | if (!SWIG_IsOK(res1)) { | |
26077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26078 | } | |
26079 | if (!argp1) { | |
26080 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26081 | } | |
26082 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26083 | { | |
26084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26085 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
26086 | wxPyEndAllowThreads(__tstate); | |
26087 | if (PyErr_Occurred()) SWIG_fail; | |
26088 | } | |
26089 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26090 | return resultobj; | |
26091 | fail: | |
26092 | return NULL; | |
d14a1e28 RD |
26093 | } |
26094 | ||
26095 | ||
0085ce49 RD |
26096 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
26097 | PyObject *resultobj = 0; | |
26098 | wxPrintDialogData *arg1 = 0 ; | |
26099 | wxPrintDialogData *result = 0 ; | |
26100 | void *argp1 = 0 ; | |
26101 | int res1 = 0 ; | |
26102 | ||
26103 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
26104 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
26105 | if (!SWIG_IsOK(res1)) { | |
26106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26107 | } | |
26108 | if (!argp1) { | |
26109 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
26110 | } | |
26111 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26112 | { | |
26113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26114 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
26118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
d14a1e28 RD |
26122 | } |
26123 | ||
26124 | ||
0085ce49 RD |
26125 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
26126 | int argc; | |
26127 | PyObject *argv[2]; | |
26128 | ||
26129 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
26130 | --argc; | |
26131 | if (argc == 0) { | |
26132 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
26133 | } | |
26134 | if (argc == 1) { | |
26135 | int _v = 0; | |
093d3ff1 | 26136 | { |
0085ce49 RD |
26137 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
26138 | _v = SWIG_CheckState(res); | |
093d3ff1 | 26139 | } |
0085ce49 RD |
26140 | if (!_v) goto check_2; |
26141 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
26142 | } | |
26143 | check_2: | |
26144 | ||
26145 | if (argc == 1) { | |
26146 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
26147 | } | |
26148 | ||
26149 | fail: | |
26150 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
26151 | return NULL; | |
d14a1e28 RD |
26152 | } |
26153 | ||
26154 | ||
0085ce49 RD |
26155 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26156 | PyObject *resultobj = 0; | |
26157 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26158 | void *argp1 = 0 ; | |
26159 | int res1 = 0 ; | |
26160 | PyObject *swig_obj[1] ; | |
26161 | ||
26162 | if (!args) SWIG_fail; | |
26163 | swig_obj[0] = args; | |
26164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
26165 | if (!SWIG_IsOK(res1)) { | |
26166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26167 | } | |
26168 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26169 | { | |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | delete arg1; | |
d14a1e28 | 26172 | |
0085ce49 RD |
26173 | wxPyEndAllowThreads(__tstate); |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | resultobj = SWIG_Py_Void(); | |
26177 | return resultobj; | |
26178 | fail: | |
26179 | return NULL; | |
d14a1e28 RD |
26180 | } |
26181 | ||
26182 | ||
0085ce49 RD |
26183 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26184 | PyObject *resultobj = 0; | |
26185 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26186 | int result; | |
26187 | void *argp1 = 0 ; | |
26188 | int res1 = 0 ; | |
26189 | PyObject *swig_obj[1] ; | |
26190 | ||
26191 | if (!args) SWIG_fail; | |
26192 | swig_obj[0] = args; | |
26193 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26194 | if (!SWIG_IsOK(res1)) { | |
26195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26196 | } | |
26197 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
26201 | wxPyEndAllowThreads(__tstate); | |
26202 | if (PyErr_Occurred()) SWIG_fail; | |
26203 | } | |
26204 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26205 | return resultobj; | |
26206 | fail: | |
26207 | return NULL; | |
d14a1e28 RD |
26208 | } |
26209 | ||
26210 | ||
0085ce49 RD |
26211 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26212 | PyObject *resultobj = 0; | |
26213 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26214 | int result; | |
26215 | void *argp1 = 0 ; | |
26216 | int res1 = 0 ; | |
26217 | PyObject *swig_obj[1] ; | |
26218 | ||
26219 | if (!args) SWIG_fail; | |
26220 | swig_obj[0] = args; | |
26221 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26222 | if (!SWIG_IsOK(res1)) { | |
26223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26224 | } | |
26225 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26226 | { | |
26227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26228 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
26229 | wxPyEndAllowThreads(__tstate); | |
26230 | if (PyErr_Occurred()) SWIG_fail; | |
26231 | } | |
26232 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26233 | return resultobj; | |
26234 | fail: | |
26235 | return NULL; | |
d14a1e28 | 26236 | } |
0085ce49 RD |
26237 | |
26238 | ||
26239 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26240 | PyObject *resultobj = 0; | |
26241 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26242 | int result; | |
26243 | void *argp1 = 0 ; | |
26244 | int res1 = 0 ; | |
26245 | PyObject *swig_obj[1] ; | |
26246 | ||
26247 | if (!args) SWIG_fail; | |
26248 | swig_obj[0] = args; | |
26249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26250 | if (!SWIG_IsOK(res1)) { | |
26251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26252 | } | |
26253 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26254 | { | |
26255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26256 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
26257 | wxPyEndAllowThreads(__tstate); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | } | |
26260 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26261 | return resultobj; | |
26262 | fail: | |
26263 | return NULL; | |
d14a1e28 RD |
26264 | } |
26265 | ||
26266 | ||
0085ce49 RD |
26267 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26268 | PyObject *resultobj = 0; | |
26269 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26270 | int result; | |
26271 | void *argp1 = 0 ; | |
26272 | int res1 = 0 ; | |
26273 | PyObject *swig_obj[1] ; | |
26274 | ||
26275 | if (!args) SWIG_fail; | |
26276 | swig_obj[0] = args; | |
26277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26278 | if (!SWIG_IsOK(res1)) { | |
26279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26280 | } | |
26281 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26282 | { | |
26283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26284 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
26285 | wxPyEndAllowThreads(__tstate); | |
26286 | if (PyErr_Occurred()) SWIG_fail; | |
26287 | } | |
26288 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26289 | return resultobj; | |
26290 | fail: | |
26291 | return NULL; | |
d14a1e28 RD |
26292 | } |
26293 | ||
26294 | ||
0085ce49 RD |
26295 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26296 | PyObject *resultobj = 0; | |
26297 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26298 | int result; | |
26299 | void *argp1 = 0 ; | |
26300 | int res1 = 0 ; | |
26301 | PyObject *swig_obj[1] ; | |
26302 | ||
26303 | if (!args) SWIG_fail; | |
26304 | swig_obj[0] = args; | |
26305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26306 | if (!SWIG_IsOK(res1)) { | |
26307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26308 | } | |
26309 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26310 | { | |
26311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26312 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
26313 | wxPyEndAllowThreads(__tstate); | |
26314 | if (PyErr_Occurred()) SWIG_fail; | |
26315 | } | |
26316 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26317 | return resultobj; | |
26318 | fail: | |
26319 | return NULL; | |
d14a1e28 RD |
26320 | } |
26321 | ||
26322 | ||
0085ce49 RD |
26323 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26324 | PyObject *resultobj = 0; | |
26325 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26326 | bool result; | |
26327 | void *argp1 = 0 ; | |
26328 | int res1 = 0 ; | |
26329 | PyObject *swig_obj[1] ; | |
26330 | ||
26331 | if (!args) SWIG_fail; | |
26332 | swig_obj[0] = args; | |
26333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26334 | if (!SWIG_IsOK(res1)) { | |
26335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26336 | } | |
26337 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26338 | { | |
26339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26340 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
26341 | wxPyEndAllowThreads(__tstate); | |
26342 | if (PyErr_Occurred()) SWIG_fail; | |
26343 | } | |
26344 | { | |
26345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26346 | } | |
26347 | return resultobj; | |
26348 | fail: | |
26349 | return NULL; | |
d14a1e28 RD |
26350 | } |
26351 | ||
26352 | ||
0085ce49 RD |
26353 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26354 | PyObject *resultobj = 0; | |
26355 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26356 | bool result; | |
26357 | void *argp1 = 0 ; | |
26358 | int res1 = 0 ; | |
26359 | PyObject *swig_obj[1] ; | |
26360 | ||
26361 | if (!args) SWIG_fail; | |
26362 | swig_obj[0] = args; | |
26363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26364 | if (!SWIG_IsOK(res1)) { | |
26365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26366 | } | |
26367 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | { | |
26375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26376 | } | |
26377 | return resultobj; | |
26378 | fail: | |
26379 | return NULL; | |
d14a1e28 RD |
26380 | } |
26381 | ||
26382 | ||
0085ce49 RD |
26383 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26384 | PyObject *resultobj = 0; | |
26385 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26386 | bool result; | |
26387 | void *argp1 = 0 ; | |
26388 | int res1 = 0 ; | |
26389 | PyObject *swig_obj[1] ; | |
26390 | ||
26391 | if (!args) SWIG_fail; | |
26392 | swig_obj[0] = args; | |
26393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26394 | if (!SWIG_IsOK(res1)) { | |
26395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26396 | } | |
26397 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26398 | { | |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
26404 | { | |
26405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26406 | } | |
26407 | return resultobj; | |
26408 | fail: | |
26409 | return NULL; | |
d14a1e28 RD |
26410 | } |
26411 | ||
26412 | ||
0085ce49 RD |
26413 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26414 | PyObject *resultobj = 0; | |
26415 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26416 | bool result; | |
26417 | void *argp1 = 0 ; | |
26418 | int res1 = 0 ; | |
26419 | PyObject *swig_obj[1] ; | |
26420 | ||
26421 | if (!args) SWIG_fail; | |
26422 | swig_obj[0] = args; | |
26423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26424 | if (!SWIG_IsOK(res1)) { | |
26425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26426 | } | |
26427 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26428 | { | |
26429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26430 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
26431 | wxPyEndAllowThreads(__tstate); | |
26432 | if (PyErr_Occurred()) SWIG_fail; | |
26433 | } | |
26434 | { | |
26435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26436 | } | |
26437 | return resultobj; | |
26438 | fail: | |
26439 | return NULL; | |
26440 | } | |
26441 | ||
26442 | ||
26443 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26444 | PyObject *resultobj = 0; | |
26445 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26446 | int arg2 ; | |
26447 | void *argp1 = 0 ; | |
26448 | int res1 = 0 ; | |
26449 | int val2 ; | |
26450 | int ecode2 = 0 ; | |
26451 | PyObject * obj0 = 0 ; | |
26452 | PyObject * obj1 = 0 ; | |
26453 | char * kwnames[] = { | |
26454 | (char *) "self",(char *) "v", NULL | |
26455 | }; | |
26456 | ||
26457 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26459 | if (!SWIG_IsOK(res1)) { | |
26460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26461 | } | |
26462 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26463 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26464 | if (!SWIG_IsOK(ecode2)) { | |
26465 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
26466 | } | |
26467 | arg2 = static_cast< int >(val2); | |
26468 | { | |
26469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26470 | (arg1)->SetFromPage(arg2); | |
26471 | wxPyEndAllowThreads(__tstate); | |
26472 | if (PyErr_Occurred()) SWIG_fail; | |
26473 | } | |
26474 | resultobj = SWIG_Py_Void(); | |
26475 | return resultobj; | |
26476 | fail: | |
26477 | return NULL; | |
26478 | } | |
26479 | ||
26480 | ||
26481 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26482 | PyObject *resultobj = 0; | |
26483 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26484 | int arg2 ; | |
26485 | void *argp1 = 0 ; | |
26486 | int res1 = 0 ; | |
26487 | int val2 ; | |
26488 | int ecode2 = 0 ; | |
26489 | PyObject * obj0 = 0 ; | |
26490 | PyObject * obj1 = 0 ; | |
26491 | char * kwnames[] = { | |
26492 | (char *) "self",(char *) "v", NULL | |
26493 | }; | |
26494 | ||
26495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26497 | if (!SWIG_IsOK(res1)) { | |
26498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26499 | } | |
26500 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26501 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26502 | if (!SWIG_IsOK(ecode2)) { | |
26503 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
26504 | } | |
26505 | arg2 = static_cast< int >(val2); | |
26506 | { | |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | (arg1)->SetToPage(arg2); | |
26509 | wxPyEndAllowThreads(__tstate); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | } | |
26512 | resultobj = SWIG_Py_Void(); | |
26513 | return resultobj; | |
26514 | fail: | |
26515 | return NULL; | |
26516 | } | |
26517 | ||
26518 | ||
26519 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26520 | PyObject *resultobj = 0; | |
26521 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26522 | int arg2 ; | |
26523 | void *argp1 = 0 ; | |
26524 | int res1 = 0 ; | |
26525 | int val2 ; | |
26526 | int ecode2 = 0 ; | |
26527 | PyObject * obj0 = 0 ; | |
26528 | PyObject * obj1 = 0 ; | |
26529 | char * kwnames[] = { | |
26530 | (char *) "self",(char *) "v", NULL | |
26531 | }; | |
26532 | ||
26533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26535 | if (!SWIG_IsOK(res1)) { | |
26536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26537 | } | |
26538 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26539 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26540 | if (!SWIG_IsOK(ecode2)) { | |
26541 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
26542 | } | |
26543 | arg2 = static_cast< int >(val2); | |
26544 | { | |
26545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26546 | (arg1)->SetMinPage(arg2); | |
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | resultobj = SWIG_Py_Void(); | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
26557 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26558 | PyObject *resultobj = 0; | |
26559 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26560 | int arg2 ; | |
26561 | void *argp1 = 0 ; | |
26562 | int res1 = 0 ; | |
26563 | int val2 ; | |
26564 | int ecode2 = 0 ; | |
26565 | PyObject * obj0 = 0 ; | |
26566 | PyObject * obj1 = 0 ; | |
26567 | char * kwnames[] = { | |
26568 | (char *) "self",(char *) "v", NULL | |
26569 | }; | |
26570 | ||
26571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26573 | if (!SWIG_IsOK(res1)) { | |
26574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26575 | } | |
26576 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26577 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26578 | if (!SWIG_IsOK(ecode2)) { | |
26579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
26580 | } | |
26581 | arg2 = static_cast< int >(val2); | |
26582 | { | |
26583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26584 | (arg1)->SetMaxPage(arg2); | |
26585 | wxPyEndAllowThreads(__tstate); | |
26586 | if (PyErr_Occurred()) SWIG_fail; | |
26587 | } | |
26588 | resultobj = SWIG_Py_Void(); | |
26589 | return resultobj; | |
26590 | fail: | |
26591 | return NULL; | |
26592 | } | |
26593 | ||
26594 | ||
26595 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26596 | PyObject *resultobj = 0; | |
26597 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26598 | int arg2 ; | |
26599 | void *argp1 = 0 ; | |
26600 | int res1 = 0 ; | |
26601 | int val2 ; | |
26602 | int ecode2 = 0 ; | |
26603 | PyObject * obj0 = 0 ; | |
26604 | PyObject * obj1 = 0 ; | |
26605 | char * kwnames[] = { | |
26606 | (char *) "self",(char *) "v", NULL | |
26607 | }; | |
26608 | ||
26609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26611 | if (!SWIG_IsOK(res1)) { | |
26612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26613 | } | |
26614 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26615 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26616 | if (!SWIG_IsOK(ecode2)) { | |
26617 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26618 | } | |
26619 | arg2 = static_cast< int >(val2); | |
26620 | { | |
26621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26622 | (arg1)->SetNoCopies(arg2); | |
26623 | wxPyEndAllowThreads(__tstate); | |
26624 | if (PyErr_Occurred()) SWIG_fail; | |
26625 | } | |
26626 | resultobj = SWIG_Py_Void(); | |
26627 | return resultobj; | |
26628 | fail: | |
26629 | return NULL; | |
26630 | } | |
26631 | ||
26632 | ||
26633 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26634 | PyObject *resultobj = 0; | |
26635 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26636 | bool arg2 ; | |
26637 | void *argp1 = 0 ; | |
26638 | int res1 = 0 ; | |
26639 | bool val2 ; | |
26640 | int ecode2 = 0 ; | |
26641 | PyObject * obj0 = 0 ; | |
26642 | PyObject * obj1 = 0 ; | |
26643 | char * kwnames[] = { | |
26644 | (char *) "self",(char *) "flag", NULL | |
26645 | }; | |
26646 | ||
26647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26649 | if (!SWIG_IsOK(res1)) { | |
26650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26651 | } | |
26652 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26653 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26654 | if (!SWIG_IsOK(ecode2)) { | |
26655 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26656 | } | |
26657 | arg2 = static_cast< bool >(val2); | |
26658 | { | |
26659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26660 | (arg1)->SetAllPages(arg2); | |
26661 | wxPyEndAllowThreads(__tstate); | |
26662 | if (PyErr_Occurred()) SWIG_fail; | |
26663 | } | |
26664 | resultobj = SWIG_Py_Void(); | |
26665 | return resultobj; | |
26666 | fail: | |
26667 | return NULL; | |
26668 | } | |
26669 | ||
26670 | ||
26671 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26672 | PyObject *resultobj = 0; | |
26673 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26674 | bool arg2 ; | |
26675 | void *argp1 = 0 ; | |
26676 | int res1 = 0 ; | |
26677 | bool val2 ; | |
26678 | int ecode2 = 0 ; | |
26679 | PyObject * obj0 = 0 ; | |
26680 | PyObject * obj1 = 0 ; | |
26681 | char * kwnames[] = { | |
26682 | (char *) "self",(char *) "flag", NULL | |
26683 | }; | |
26684 | ||
26685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26687 | if (!SWIG_IsOK(res1)) { | |
26688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26689 | } | |
26690 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26691 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26692 | if (!SWIG_IsOK(ecode2)) { | |
26693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26694 | } | |
26695 | arg2 = static_cast< bool >(val2); | |
26696 | { | |
26697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26698 | (arg1)->SetSelection(arg2); | |
26699 | wxPyEndAllowThreads(__tstate); | |
26700 | if (PyErr_Occurred()) SWIG_fail; | |
26701 | } | |
26702 | resultobj = SWIG_Py_Void(); | |
26703 | return resultobj; | |
26704 | fail: | |
26705 | return NULL; | |
26706 | } | |
26707 | ||
26708 | ||
26709 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26710 | PyObject *resultobj = 0; | |
26711 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26712 | bool arg2 ; | |
26713 | void *argp1 = 0 ; | |
26714 | int res1 = 0 ; | |
26715 | bool val2 ; | |
26716 | int ecode2 = 0 ; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | PyObject * obj1 = 0 ; | |
26719 | char * kwnames[] = { | |
26720 | (char *) "self",(char *) "flag", NULL | |
26721 | }; | |
26722 | ||
26723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26725 | if (!SWIG_IsOK(res1)) { | |
26726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26727 | } | |
26728 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26729 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26730 | if (!SWIG_IsOK(ecode2)) { | |
26731 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26732 | } | |
26733 | arg2 = static_cast< bool >(val2); | |
26734 | { | |
26735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26736 | (arg1)->SetCollate(arg2); | |
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
26740 | resultobj = SWIG_Py_Void(); | |
26741 | return resultobj; | |
26742 | fail: | |
26743 | return NULL; | |
26744 | } | |
26745 | ||
26746 | ||
26747 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26748 | PyObject *resultobj = 0; | |
26749 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26750 | bool arg2 ; | |
26751 | void *argp1 = 0 ; | |
26752 | int res1 = 0 ; | |
26753 | bool val2 ; | |
26754 | int ecode2 = 0 ; | |
26755 | PyObject * obj0 = 0 ; | |
26756 | PyObject * obj1 = 0 ; | |
26757 | char * kwnames[] = { | |
26758 | (char *) "self",(char *) "flag", NULL | |
26759 | }; | |
26760 | ||
26761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26763 | if (!SWIG_IsOK(res1)) { | |
26764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26765 | } | |
26766 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26767 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26768 | if (!SWIG_IsOK(ecode2)) { | |
26769 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26770 | } | |
26771 | arg2 = static_cast< bool >(val2); | |
26772 | { | |
26773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26774 | (arg1)->SetPrintToFile(arg2); | |
26775 | wxPyEndAllowThreads(__tstate); | |
26776 | if (PyErr_Occurred()) SWIG_fail; | |
26777 | } | |
26778 | resultobj = SWIG_Py_Void(); | |
26779 | return resultobj; | |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
26785 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26786 | PyObject *resultobj = 0; | |
26787 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26788 | bool arg2 ; | |
26789 | void *argp1 = 0 ; | |
26790 | int res1 = 0 ; | |
26791 | bool val2 ; | |
26792 | int ecode2 = 0 ; | |
26793 | PyObject * obj0 = 0 ; | |
26794 | PyObject * obj1 = 0 ; | |
26795 | char * kwnames[] = { | |
26796 | (char *) "self",(char *) "flag", NULL | |
26797 | }; | |
26798 | ||
26799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26801 | if (!SWIG_IsOK(res1)) { | |
26802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26803 | } | |
26804 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26805 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26806 | if (!SWIG_IsOK(ecode2)) { | |
26807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26808 | } | |
26809 | arg2 = static_cast< bool >(val2); | |
26810 | { | |
26811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26812 | (arg1)->EnablePrintToFile(arg2); | |
26813 | wxPyEndAllowThreads(__tstate); | |
26814 | if (PyErr_Occurred()) SWIG_fail; | |
26815 | } | |
26816 | resultobj = SWIG_Py_Void(); | |
26817 | return resultobj; | |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
26823 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26824 | PyObject *resultobj = 0; | |
26825 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26826 | bool arg2 ; | |
26827 | void *argp1 = 0 ; | |
26828 | int res1 = 0 ; | |
26829 | bool val2 ; | |
26830 | int ecode2 = 0 ; | |
26831 | PyObject * obj0 = 0 ; | |
26832 | PyObject * obj1 = 0 ; | |
26833 | char * kwnames[] = { | |
26834 | (char *) "self",(char *) "flag", NULL | |
26835 | }; | |
26836 | ||
26837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26839 | if (!SWIG_IsOK(res1)) { | |
26840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26841 | } | |
26842 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26843 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26844 | if (!SWIG_IsOK(ecode2)) { | |
26845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26846 | } | |
26847 | arg2 = static_cast< bool >(val2); | |
26848 | { | |
26849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26850 | (arg1)->EnableSelection(arg2); | |
26851 | wxPyEndAllowThreads(__tstate); | |
26852 | if (PyErr_Occurred()) SWIG_fail; | |
26853 | } | |
26854 | resultobj = SWIG_Py_Void(); | |
26855 | return resultobj; | |
26856 | fail: | |
26857 | return NULL; | |
26858 | } | |
26859 | ||
26860 | ||
26861 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26862 | PyObject *resultobj = 0; | |
26863 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26864 | bool arg2 ; | |
26865 | void *argp1 = 0 ; | |
26866 | int res1 = 0 ; | |
26867 | bool val2 ; | |
26868 | int ecode2 = 0 ; | |
26869 | PyObject * obj0 = 0 ; | |
26870 | PyObject * obj1 = 0 ; | |
26871 | char * kwnames[] = { | |
26872 | (char *) "self",(char *) "flag", NULL | |
26873 | }; | |
26874 | ||
26875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26877 | if (!SWIG_IsOK(res1)) { | |
26878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26879 | } | |
26880 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26881 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26882 | if (!SWIG_IsOK(ecode2)) { | |
26883 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26884 | } | |
26885 | arg2 = static_cast< bool >(val2); | |
26886 | { | |
26887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26888 | (arg1)->EnablePageNumbers(arg2); | |
26889 | wxPyEndAllowThreads(__tstate); | |
26890 | if (PyErr_Occurred()) SWIG_fail; | |
26891 | } | |
26892 | resultobj = SWIG_Py_Void(); | |
26893 | return resultobj; | |
26894 | fail: | |
26895 | return NULL; | |
26896 | } | |
26897 | ||
26898 | ||
26899 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26900 | PyObject *resultobj = 0; | |
26901 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26902 | bool arg2 ; | |
26903 | void *argp1 = 0 ; | |
26904 | int res1 = 0 ; | |
26905 | bool val2 ; | |
26906 | int ecode2 = 0 ; | |
26907 | PyObject * obj0 = 0 ; | |
26908 | PyObject * obj1 = 0 ; | |
26909 | char * kwnames[] = { | |
26910 | (char *) "self",(char *) "flag", NULL | |
26911 | }; | |
26912 | ||
26913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26915 | if (!SWIG_IsOK(res1)) { | |
26916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26917 | } | |
26918 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26919 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26920 | if (!SWIG_IsOK(ecode2)) { | |
26921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26922 | } | |
26923 | arg2 = static_cast< bool >(val2); | |
26924 | { | |
26925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26926 | (arg1)->EnableHelp(arg2); | |
26927 | wxPyEndAllowThreads(__tstate); | |
26928 | if (PyErr_Occurred()) SWIG_fail; | |
26929 | } | |
26930 | resultobj = SWIG_Py_Void(); | |
26931 | return resultobj; | |
26932 | fail: | |
26933 | return NULL; | |
d14a1e28 RD |
26934 | } |
26935 | ||
26936 | ||
0085ce49 RD |
26937 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26938 | PyObject *resultobj = 0; | |
26939 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26940 | bool result; | |
26941 | void *argp1 = 0 ; | |
26942 | int res1 = 0 ; | |
26943 | PyObject *swig_obj[1] ; | |
26944 | ||
26945 | if (!args) SWIG_fail; | |
26946 | swig_obj[0] = args; | |
26947 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26948 | if (!SWIG_IsOK(res1)) { | |
26949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26950 | } | |
26951 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26952 | { | |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26955 | wxPyEndAllowThreads(__tstate); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | { | |
26959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26960 | } | |
26961 | return resultobj; | |
26962 | fail: | |
26963 | return NULL; | |
d14a1e28 RD |
26964 | } |
26965 | ||
26966 | ||
0085ce49 RD |
26967 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26968 | PyObject *resultobj = 0; | |
26969 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26970 | bool result; | |
26971 | void *argp1 = 0 ; | |
26972 | int res1 = 0 ; | |
26973 | PyObject *swig_obj[1] ; | |
26974 | ||
26975 | if (!args) SWIG_fail; | |
26976 | swig_obj[0] = args; | |
26977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26978 | if (!SWIG_IsOK(res1)) { | |
26979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26980 | } | |
26981 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26982 | { | |
26983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26984 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
26985 | wxPyEndAllowThreads(__tstate); | |
26986 | if (PyErr_Occurred()) SWIG_fail; | |
26987 | } | |
26988 | { | |
26989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26990 | } | |
26991 | return resultobj; | |
26992 | fail: | |
26993 | return NULL; | |
d14a1e28 RD |
26994 | } |
26995 | ||
26996 | ||
0085ce49 RD |
26997 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26998 | PyObject *resultobj = 0; | |
26999 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27000 | bool result; | |
27001 | void *argp1 = 0 ; | |
27002 | int res1 = 0 ; | |
27003 | PyObject *swig_obj[1] ; | |
27004 | ||
27005 | if (!args) SWIG_fail; | |
27006 | swig_obj[0] = args; | |
27007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27008 | if (!SWIG_IsOK(res1)) { | |
27009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27010 | } | |
27011 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27012 | { | |
27013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27014 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
27015 | wxPyEndAllowThreads(__tstate); | |
27016 | if (PyErr_Occurred()) SWIG_fail; | |
27017 | } | |
27018 | { | |
27019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27020 | } | |
27021 | return resultobj; | |
27022 | fail: | |
27023 | return NULL; | |
d14a1e28 RD |
27024 | } |
27025 | ||
27026 | ||
0085ce49 RD |
27027 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27028 | PyObject *resultobj = 0; | |
27029 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27030 | bool result; | |
27031 | void *argp1 = 0 ; | |
27032 | int res1 = 0 ; | |
27033 | PyObject *swig_obj[1] ; | |
27034 | ||
27035 | if (!args) SWIG_fail; | |
27036 | swig_obj[0] = args; | |
27037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27038 | if (!SWIG_IsOK(res1)) { | |
27039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
27040 | } | |
27041 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27042 | { | |
27043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27044 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
27045 | wxPyEndAllowThreads(__tstate); | |
27046 | if (PyErr_Occurred()) SWIG_fail; | |
27047 | } | |
27048 | { | |
27049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27050 | } | |
27051 | return resultobj; | |
27052 | fail: | |
27053 | return NULL; | |
d14a1e28 RD |
27054 | } |
27055 | ||
27056 | ||
b39fe951 | 27057 | SWIGINTERN PyObject *_wrap_PrintDialogData_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
27058 | PyObject *resultobj = 0; |
27059 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27060 | bool result; | |
27061 | void *argp1 = 0 ; | |
27062 | int res1 = 0 ; | |
27063 | PyObject *swig_obj[1] ; | |
27064 | ||
27065 | if (!args) SWIG_fail; | |
27066 | swig_obj[0] = args; | |
27067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27068 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 27069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_IsOk" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); |
0085ce49 RD |
27070 | } |
27071 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27072 | { | |
27073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 27074 | result = (bool)((wxPrintDialogData const *)arg1)->IsOk(); |
0085ce49 RD |
27075 | wxPyEndAllowThreads(__tstate); |
27076 | if (PyErr_Occurred()) SWIG_fail; | |
27077 | } | |
27078 | { | |
27079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27080 | } | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | return NULL; | |
d14a1e28 RD |
27084 | } |
27085 | ||
27086 | ||
0085ce49 RD |
27087 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27088 | PyObject *resultobj = 0; | |
27089 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27090 | wxPrintData *result = 0 ; | |
27091 | void *argp1 = 0 ; | |
27092 | int res1 = 0 ; | |
27093 | PyObject *swig_obj[1] ; | |
27094 | ||
27095 | if (!args) SWIG_fail; | |
27096 | swig_obj[0] = args; | |
27097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27098 | if (!SWIG_IsOK(res1)) { | |
27099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27100 | } | |
27101 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27102 | { | |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27104 | { |
0085ce49 RD |
27105 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27106 | result = (wxPrintData *) &_result_ref; | |
d14a1e28 | 27107 | } |
0085ce49 RD |
27108 | wxPyEndAllowThreads(__tstate); |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
27111 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27112 | return resultobj; | |
27113 | fail: | |
27114 | return NULL; | |
27115 | } | |
27116 | ||
27117 | ||
27118 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27119 | PyObject *resultobj = 0; | |
27120 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
27121 | wxPrintData *arg2 = 0 ; | |
27122 | void *argp1 = 0 ; | |
27123 | int res1 = 0 ; | |
27124 | void *argp2 = 0 ; | |
27125 | int res2 = 0 ; | |
27126 | PyObject * obj0 = 0 ; | |
27127 | PyObject * obj1 = 0 ; | |
27128 | char * kwnames[] = { | |
27129 | (char *) "self",(char *) "printData", NULL | |
27130 | }; | |
27131 | ||
27132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
27133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27134 | if (!SWIG_IsOK(res1)) { | |
27135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
27136 | } | |
27137 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
27138 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
27139 | if (!SWIG_IsOK(res2)) { | |
27140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27141 | } | |
27142 | if (!argp2) { | |
27143 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
27144 | } | |
27145 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
27146 | { | |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | resultobj = SWIG_Py_Void(); | |
27153 | return resultobj; | |
27154 | fail: | |
27155 | return NULL; | |
d14a1e28 RD |
27156 | } |
27157 | ||
27158 | ||
0085ce49 RD |
27159 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27160 | PyObject *obj; | |
27161 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27162 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
27163 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27164 | } |
27165 | ||
0085ce49 RD |
27166 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27167 | return SWIG_Python_InitShadowInstance(args); | |
27168 | } | |
d14a1e28 | 27169 | |
0085ce49 RD |
27170 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27171 | PyObject *resultobj = 0; | |
27172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27173 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
27174 | wxPrintDialog *result = 0 ; | |
27175 | void *argp1 = 0 ; | |
27176 | int res1 = 0 ; | |
27177 | void *argp2 = 0 ; | |
27178 | int res2 = 0 ; | |
27179 | PyObject * obj0 = 0 ; | |
27180 | PyObject * obj1 = 0 ; | |
27181 | char * kwnames[] = { | |
27182 | (char *) "parent",(char *) "data", NULL | |
27183 | }; | |
27184 | ||
27185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27187 | if (!SWIG_IsOK(res1)) { | |
27188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27189 | } | |
27190 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27191 | if (obj1) { | |
27192 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27193 | if (!SWIG_IsOK(res2)) { | |
27194 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 27195 | } |
0085ce49 RD |
27196 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
27197 | } | |
27198 | { | |
27199 | if (!wxPyCheckForApp()) SWIG_fail; | |
27200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27201 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
27202 | wxPyEndAllowThreads(__tstate); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | } | |
27205 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
27206 | return resultobj; | |
27207 | fail: | |
27208 | return NULL; | |
d14a1e28 RD |
27209 | } |
27210 | ||
27211 | ||
f05326ba RD |
27212 | SWIGINTERN PyObject *_wrap_delete_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27213 | PyObject *resultobj = 0; | |
27214 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27215 | void *argp1 = 0 ; | |
27216 | int res1 = 0 ; | |
27217 | PyObject *swig_obj[1] ; | |
27218 | ||
27219 | if (!args) SWIG_fail; | |
27220 | swig_obj[0] = args; | |
27221 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_DISOWN | 0 ); | |
27222 | if (!SWIG_IsOK(res1)) { | |
27223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialog" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27224 | } | |
27225 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27226 | { | |
27227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27228 | delete arg1; | |
27229 | ||
27230 | wxPyEndAllowThreads(__tstate); | |
27231 | if (PyErr_Occurred()) SWIG_fail; | |
27232 | } | |
27233 | resultobj = SWIG_Py_Void(); | |
27234 | return resultobj; | |
27235 | fail: | |
27236 | return NULL; | |
27237 | } | |
27238 | ||
27239 | ||
0085ce49 RD |
27240 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27241 | PyObject *resultobj = 0; | |
27242 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27243 | int result; | |
27244 | void *argp1 = 0 ; | |
27245 | int res1 = 0 ; | |
27246 | PyObject *swig_obj[1] ; | |
27247 | ||
27248 | if (!args) SWIG_fail; | |
27249 | swig_obj[0] = args; | |
27250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27251 | if (!SWIG_IsOK(res1)) { | |
27252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27253 | } | |
27254 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27255 | { | |
27256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27257 | result = (int)(arg1)->ShowModal(); | |
27258 | wxPyEndAllowThreads(__tstate); | |
27259 | if (PyErr_Occurred()) SWIG_fail; | |
27260 | } | |
27261 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27262 | return resultobj; | |
27263 | fail: | |
27264 | return NULL; | |
d14a1e28 RD |
27265 | } |
27266 | ||
27267 | ||
0085ce49 RD |
27268 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27269 | PyObject *resultobj = 0; | |
27270 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27271 | wxPrintDialogData *result = 0 ; | |
27272 | void *argp1 = 0 ; | |
27273 | int res1 = 0 ; | |
27274 | PyObject *swig_obj[1] ; | |
27275 | ||
27276 | if (!args) SWIG_fail; | |
27277 | swig_obj[0] = args; | |
27278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27279 | if (!SWIG_IsOK(res1)) { | |
27280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27281 | } | |
27282 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27283 | { | |
27284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27285 | { |
0085ce49 RD |
27286 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
27287 | result = (wxPrintDialogData *) &_result_ref; | |
27288 | } | |
27289 | wxPyEndAllowThreads(__tstate); | |
27290 | if (PyErr_Occurred()) SWIG_fail; | |
27291 | } | |
27292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27293 | return resultobj; | |
27294 | fail: | |
27295 | return NULL; | |
d14a1e28 RD |
27296 | } |
27297 | ||
27298 | ||
0085ce49 RD |
27299 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27300 | PyObject *resultobj = 0; | |
27301 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27302 | wxPrintData *result = 0 ; | |
27303 | void *argp1 = 0 ; | |
27304 | int res1 = 0 ; | |
27305 | PyObject *swig_obj[1] ; | |
27306 | ||
27307 | if (!args) SWIG_fail; | |
27308 | swig_obj[0] = args; | |
27309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27310 | if (!SWIG_IsOK(res1)) { | |
27311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27312 | } | |
27313 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27314 | { | |
27315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27316 | { |
0085ce49 RD |
27317 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
27318 | result = (wxPrintData *) &_result_ref; | |
27319 | } | |
27320 | wxPyEndAllowThreads(__tstate); | |
27321 | if (PyErr_Occurred()) SWIG_fail; | |
27322 | } | |
27323 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
27324 | return resultobj; | |
27325 | fail: | |
27326 | return NULL; | |
d14a1e28 RD |
27327 | } |
27328 | ||
27329 | ||
0085ce49 RD |
27330 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27331 | PyObject *resultobj = 0; | |
27332 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
27333 | wxDC *result = 0 ; | |
27334 | void *argp1 = 0 ; | |
27335 | int res1 = 0 ; | |
27336 | PyObject *swig_obj[1] ; | |
27337 | ||
27338 | if (!args) SWIG_fail; | |
27339 | swig_obj[0] = args; | |
27340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
27341 | if (!SWIG_IsOK(res1)) { | |
27342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
27343 | } | |
27344 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27345 | { | |
27346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27347 | result = (wxDC *)(arg1)->GetPrintDC(); | |
27348 | wxPyEndAllowThreads(__tstate); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | } | |
27351 | { | |
27352 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
27353 | } | |
27354 | return resultobj; | |
27355 | fail: | |
27356 | return NULL; | |
d14a1e28 RD |
27357 | } |
27358 | ||
27359 | ||
0085ce49 RD |
27360 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27361 | PyObject *obj; | |
27362 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27363 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
27364 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27365 | } |
27366 | ||
0085ce49 RD |
27367 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27368 | return SWIG_Python_InitShadowInstance(args); | |
27369 | } | |
d14a1e28 | 27370 | |
0085ce49 RD |
27371 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27372 | PyObject *resultobj = 0; | |
27373 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
27374 | wxPrinter *result = 0 ; | |
27375 | void *argp1 = 0 ; | |
27376 | int res1 = 0 ; | |
27377 | PyObject * obj0 = 0 ; | |
27378 | char * kwnames[] = { | |
27379 | (char *) "data", NULL | |
27380 | }; | |
27381 | ||
27382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
27383 | if (obj0) { | |
27384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27385 | if (!SWIG_IsOK(res1)) { | |
27386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 27387 | } |
0085ce49 RD |
27388 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
27389 | } | |
27390 | { | |
27391 | if (!wxPyCheckForApp()) SWIG_fail; | |
27392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27393 | result = (wxPrinter *)new wxPrinter(arg1); | |
27394 | wxPyEndAllowThreads(__tstate); | |
27395 | if (PyErr_Occurred()) SWIG_fail; | |
27396 | } | |
27397 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
27398 | return resultobj; | |
27399 | fail: | |
27400 | return NULL; | |
d14a1e28 RD |
27401 | } |
27402 | ||
27403 | ||
0085ce49 RD |
27404 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27405 | PyObject *resultobj = 0; | |
27406 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27407 | void *argp1 = 0 ; | |
27408 | int res1 = 0 ; | |
27409 | PyObject *swig_obj[1] ; | |
27410 | ||
27411 | if (!args) SWIG_fail; | |
27412 | swig_obj[0] = args; | |
27413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
27414 | if (!SWIG_IsOK(res1)) { | |
27415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27416 | } | |
27417 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27418 | { | |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27420 | delete arg1; | |
d14a1e28 | 27421 | |
0085ce49 RD |
27422 | wxPyEndAllowThreads(__tstate); |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
27425 | resultobj = SWIG_Py_Void(); | |
27426 | return resultobj; | |
27427 | fail: | |
27428 | return NULL; | |
27429 | } | |
27430 | ||
27431 | ||
27432 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27433 | PyObject *resultobj = 0; | |
27434 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27435 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27436 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27437 | wxWindow *result = 0 ; | |
27438 | void *argp1 = 0 ; | |
27439 | int res1 = 0 ; | |
27440 | void *argp2 = 0 ; | |
27441 | int res2 = 0 ; | |
27442 | void *argp3 = 0 ; | |
27443 | int res3 = 0 ; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | PyObject * obj1 = 0 ; | |
27446 | PyObject * obj2 = 0 ; | |
27447 | char * kwnames[] = { | |
27448 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
27449 | }; | |
27450 | ||
27451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27453 | if (!SWIG_IsOK(res1)) { | |
27454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27455 | } | |
27456 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27457 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27458 | if (!SWIG_IsOK(res2)) { | |
27459 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27460 | } | |
27461 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27462 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27463 | if (!SWIG_IsOK(res3)) { | |
27464 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27465 | } | |
27466 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27467 | { | |
27468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27469 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
27470 | wxPyEndAllowThreads(__tstate); | |
27471 | if (PyErr_Occurred()) SWIG_fail; | |
27472 | } | |
27473 | { | |
27474 | resultobj = wxPyMake_wxObject(result, 0); | |
27475 | } | |
27476 | return resultobj; | |
27477 | fail: | |
27478 | return NULL; | |
27479 | } | |
27480 | ||
27481 | ||
27482 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27483 | PyObject *resultobj = 0; | |
27484 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27485 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27486 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27487 | wxString *arg4 = 0 ; | |
27488 | void *argp1 = 0 ; | |
27489 | int res1 = 0 ; | |
27490 | void *argp2 = 0 ; | |
27491 | int res2 = 0 ; | |
27492 | void *argp3 = 0 ; | |
27493 | int res3 = 0 ; | |
27494 | bool temp4 = false ; | |
27495 | PyObject * obj0 = 0 ; | |
27496 | PyObject * obj1 = 0 ; | |
27497 | PyObject * obj2 = 0 ; | |
27498 | PyObject * obj3 = 0 ; | |
27499 | char * kwnames[] = { | |
27500 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
27501 | }; | |
27502 | ||
27503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27505 | if (!SWIG_IsOK(res1)) { | |
27506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27507 | } | |
27508 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27509 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27510 | if (!SWIG_IsOK(res2)) { | |
27511 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27512 | } | |
27513 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27514 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27515 | if (!SWIG_IsOK(res3)) { | |
27516 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27517 | } | |
27518 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27519 | { | |
27520 | arg4 = wxString_in_helper(obj3); | |
27521 | if (arg4 == NULL) SWIG_fail; | |
27522 | temp4 = true; | |
27523 | } | |
27524 | { | |
27525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27526 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
27527 | wxPyEndAllowThreads(__tstate); | |
27528 | if (PyErr_Occurred()) SWIG_fail; | |
27529 | } | |
27530 | resultobj = SWIG_Py_Void(); | |
27531 | { | |
27532 | if (temp4) | |
27533 | delete arg4; | |
27534 | } | |
27535 | return resultobj; | |
27536 | fail: | |
27537 | { | |
27538 | if (temp4) | |
27539 | delete arg4; | |
27540 | } | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
27545 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27546 | PyObject *resultobj = 0; | |
27547 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27549 | bool result; | |
27550 | void *argp1 = 0 ; | |
27551 | int res1 = 0 ; | |
27552 | void *argp2 = 0 ; | |
27553 | int res2 = 0 ; | |
27554 | PyObject * obj0 = 0 ; | |
27555 | PyObject * obj1 = 0 ; | |
27556 | char * kwnames[] = { | |
27557 | (char *) "self",(char *) "parent", NULL | |
27558 | }; | |
27559 | ||
27560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
27561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27562 | if (!SWIG_IsOK(res1)) { | |
27563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27564 | } | |
27565 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27566 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27567 | if (!SWIG_IsOK(res2)) { | |
27568 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27569 | } | |
27570 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27571 | { | |
27572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27573 | result = (bool)(arg1)->Setup(arg2); | |
27574 | wxPyEndAllowThreads(__tstate); | |
27575 | if (PyErr_Occurred()) SWIG_fail; | |
27576 | } | |
27577 | { | |
27578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27579 | } | |
27580 | return resultobj; | |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
27586 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27587 | PyObject *resultobj = 0; | |
27588 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27589 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27590 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27591 | bool arg4 = (bool) true ; | |
27592 | bool result; | |
27593 | void *argp1 = 0 ; | |
27594 | int res1 = 0 ; | |
27595 | void *argp2 = 0 ; | |
27596 | int res2 = 0 ; | |
27597 | void *argp3 = 0 ; | |
27598 | int res3 = 0 ; | |
27599 | bool val4 ; | |
27600 | int ecode4 = 0 ; | |
27601 | PyObject * obj0 = 0 ; | |
27602 | PyObject * obj1 = 0 ; | |
27603 | PyObject * obj2 = 0 ; | |
27604 | PyObject * obj3 = 0 ; | |
27605 | char * kwnames[] = { | |
27606 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27607 | }; | |
27608 | ||
27609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27611 | if (!SWIG_IsOK(res1)) { | |
27612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27613 | } | |
27614 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27615 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27616 | if (!SWIG_IsOK(res2)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27618 | } | |
27619 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27620 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27621 | if (!SWIG_IsOK(res3)) { | |
27622 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27623 | } | |
27624 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27625 | if (obj3) { | |
27626 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27627 | if (!SWIG_IsOK(ecode4)) { | |
27628 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27629 | } | |
27630 | arg4 = static_cast< bool >(val4); | |
27631 | } | |
27632 | { | |
27633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27634 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27635 | wxPyEndAllowThreads(__tstate); | |
27636 | if (PyErr_Occurred()) SWIG_fail; | |
27637 | } | |
27638 | { | |
27639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27640 | } | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
27647 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27648 | PyObject *resultobj = 0; | |
27649 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27650 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27651 | wxDC *result = 0 ; | |
27652 | void *argp1 = 0 ; | |
27653 | int res1 = 0 ; | |
27654 | void *argp2 = 0 ; | |
27655 | int res2 = 0 ; | |
27656 | PyObject * obj0 = 0 ; | |
27657 | PyObject * obj1 = 0 ; | |
27658 | char * kwnames[] = { | |
27659 | (char *) "self",(char *) "parent", NULL | |
27660 | }; | |
27661 | ||
27662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27664 | if (!SWIG_IsOK(res1)) { | |
27665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27666 | } | |
27667 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27668 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27669 | if (!SWIG_IsOK(res2)) { | |
27670 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27671 | } | |
27672 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27673 | { | |
27674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27675 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27676 | wxPyEndAllowThreads(__tstate); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
27679 | { | |
27680 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27681 | } | |
27682 | return resultobj; | |
27683 | fail: | |
27684 | return NULL; | |
d14a1e28 RD |
27685 | } |
27686 | ||
27687 | ||
0085ce49 RD |
27688 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27689 | PyObject *resultobj = 0; | |
27690 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27691 | wxPrintDialogData *result = 0 ; | |
27692 | void *argp1 = 0 ; | |
27693 | int res1 = 0 ; | |
27694 | PyObject *swig_obj[1] ; | |
27695 | ||
27696 | if (!args) SWIG_fail; | |
27697 | swig_obj[0] = args; | |
27698 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27699 | if (!SWIG_IsOK(res1)) { | |
27700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27701 | } | |
27702 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27703 | { | |
27704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 27705 | { |
0085ce49 RD |
27706 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27707 | result = (wxPrintDialogData *) &_result_ref; | |
27708 | } | |
27709 | wxPyEndAllowThreads(__tstate); | |
27710 | if (PyErr_Occurred()) SWIG_fail; | |
27711 | } | |
27712 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27713 | return resultobj; | |
27714 | fail: | |
27715 | return NULL; | |
d14a1e28 RD |
27716 | } |
27717 | ||
27718 | ||
0085ce49 RD |
27719 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27720 | PyObject *resultobj = 0; | |
27721 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27722 | bool result; | |
27723 | void *argp1 = 0 ; | |
27724 | int res1 = 0 ; | |
27725 | PyObject *swig_obj[1] ; | |
27726 | ||
27727 | if (!args) SWIG_fail; | |
27728 | swig_obj[0] = args; | |
27729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27730 | if (!SWIG_IsOK(res1)) { | |
27731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27732 | } | |
27733 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27734 | { | |
27735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27736 | result = (bool)(arg1)->GetAbort(); | |
27737 | wxPyEndAllowThreads(__tstate); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | { | |
27741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27742 | } | |
27743 | return resultobj; | |
27744 | fail: | |
27745 | return NULL; | |
d14a1e28 RD |
27746 | } |
27747 | ||
27748 | ||
0085ce49 RD |
27749 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27750 | PyObject *resultobj = 0; | |
27751 | wxPrinterError result; | |
27752 | ||
27753 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27754 | { | |
27755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27756 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27757 | wxPyEndAllowThreads(__tstate); | |
27758 | if (PyErr_Occurred()) SWIG_fail; | |
27759 | } | |
27760 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
d14a1e28 RD |
27764 | } |
27765 | ||
27766 | ||
0085ce49 RD |
27767 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27768 | PyObject *obj; | |
27769 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27770 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27771 | return SWIG_Py_Void(); | |
d14a1e28 RD |
27772 | } |
27773 | ||
0085ce49 RD |
27774 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27775 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
27776 | } |
27777 | ||
0085ce49 RD |
27778 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27779 | PyObject *resultobj = 0; | |
27780 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27781 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27782 | wxPyPrintout *result = 0 ; | |
27783 | bool temp1 = false ; | |
27784 | PyObject * obj0 = 0 ; | |
27785 | char * kwnames[] = { | |
27786 | (char *) "title", NULL | |
27787 | }; | |
27788 | ||
27789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27790 | if (obj0) { | |
d14a1e28 | 27791 | { |
0085ce49 RD |
27792 | arg1 = wxString_in_helper(obj0); |
27793 | if (arg1 == NULL) SWIG_fail; | |
27794 | temp1 = true; | |
27795 | } | |
27796 | } | |
27797 | { | |
27798 | if (!wxPyCheckForApp()) SWIG_fail; | |
27799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27800 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27801 | wxPyEndAllowThreads(__tstate); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | } | |
27804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27805 | { | |
27806 | if (temp1) | |
27807 | delete arg1; | |
27808 | } | |
27809 | return resultobj; | |
27810 | fail: | |
27811 | { | |
27812 | if (temp1) | |
27813 | delete arg1; | |
27814 | } | |
27815 | return NULL; | |
d14a1e28 RD |
27816 | } |
27817 | ||
27818 | ||
0085ce49 RD |
27819 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27820 | PyObject *resultobj = 0; | |
27821 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27822 | void *argp1 = 0 ; | |
27823 | int res1 = 0 ; | |
27824 | PyObject *swig_obj[1] ; | |
27825 | ||
27826 | if (!args) SWIG_fail; | |
27827 | swig_obj[0] = args; | |
27828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27829 | if (!SWIG_IsOK(res1)) { | |
27830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27831 | } | |
27832 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27833 | { | |
27834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27835 | delete arg1; | |
d14a1e28 | 27836 | |
0085ce49 RD |
27837 | wxPyEndAllowThreads(__tstate); |
27838 | if (PyErr_Occurred()) SWIG_fail; | |
27839 | } | |
27840 | resultobj = SWIG_Py_Void(); | |
27841 | return resultobj; | |
27842 | fail: | |
27843 | return NULL; | |
27844 | } | |
27845 | ||
27846 | ||
27847 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27848 | PyObject *resultobj = 0; | |
27849 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27850 | PyObject *arg2 = (PyObject *) 0 ; | |
27851 | PyObject *arg3 = (PyObject *) 0 ; | |
27852 | void *argp1 = 0 ; | |
27853 | int res1 = 0 ; | |
27854 | PyObject * obj0 = 0 ; | |
27855 | PyObject * obj1 = 0 ; | |
27856 | PyObject * obj2 = 0 ; | |
27857 | char * kwnames[] = { | |
27858 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27859 | }; | |
27860 | ||
27861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27863 | if (!SWIG_IsOK(res1)) { | |
27864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27865 | } | |
27866 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27867 | arg2 = obj1; | |
27868 | arg3 = obj2; | |
27869 | { | |
27870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27871 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27872 | wxPyEndAllowThreads(__tstate); | |
27873 | if (PyErr_Occurred()) SWIG_fail; | |
27874 | } | |
27875 | resultobj = SWIG_Py_Void(); | |
27876 | return resultobj; | |
27877 | fail: | |
27878 | return NULL; | |
d14a1e28 RD |
27879 | } |
27880 | ||
27881 | ||
0085ce49 RD |
27882 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27883 | PyObject *resultobj = 0; | |
27884 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27885 | wxString result; | |
27886 | void *argp1 = 0 ; | |
27887 | int res1 = 0 ; | |
27888 | PyObject *swig_obj[1] ; | |
27889 | ||
27890 | if (!args) SWIG_fail; | |
27891 | swig_obj[0] = args; | |
27892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27893 | if (!SWIG_IsOK(res1)) { | |
27894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27895 | } | |
27896 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27897 | { | |
27898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27899 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
27903 | { | |
27904 | #if wxUSE_UNICODE | |
27905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27906 | #else | |
27907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27908 | #endif | |
27909 | } | |
27910 | return resultobj; | |
27911 | fail: | |
27912 | return NULL; | |
d14a1e28 RD |
27913 | } |
27914 | ||
27915 | ||
0085ce49 RD |
27916 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27917 | PyObject *resultobj = 0; | |
27918 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27919 | wxDC *result = 0 ; | |
27920 | void *argp1 = 0 ; | |
27921 | int res1 = 0 ; | |
27922 | PyObject *swig_obj[1] ; | |
27923 | ||
27924 | if (!args) SWIG_fail; | |
27925 | swig_obj[0] = args; | |
27926 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27927 | if (!SWIG_IsOK(res1)) { | |
27928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27929 | } | |
27930 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27931 | { | |
27932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27933 | result = (wxDC *)(arg1)->GetDC(); | |
27934 | wxPyEndAllowThreads(__tstate); | |
27935 | if (PyErr_Occurred()) SWIG_fail; | |
27936 | } | |
27937 | { | |
27938 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27939 | } | |
27940 | return resultobj; | |
27941 | fail: | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
27946 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27947 | PyObject *resultobj = 0; | |
27948 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27949 | wxDC *arg2 = (wxDC *) 0 ; | |
27950 | void *argp1 = 0 ; | |
27951 | int res1 = 0 ; | |
27952 | void *argp2 = 0 ; | |
27953 | int res2 = 0 ; | |
27954 | PyObject * obj0 = 0 ; | |
27955 | PyObject * obj1 = 0 ; | |
27956 | char * kwnames[] = { | |
27957 | (char *) "self",(char *) "dc", NULL | |
27958 | }; | |
27959 | ||
27960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27962 | if (!SWIG_IsOK(res1)) { | |
27963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27964 | } | |
27965 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27966 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27967 | if (!SWIG_IsOK(res2)) { | |
27968 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27969 | } | |
27970 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27971 | { | |
27972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27973 | (arg1)->SetDC(arg2); | |
27974 | wxPyEndAllowThreads(__tstate); | |
27975 | if (PyErr_Occurred()) SWIG_fail; | |
27976 | } | |
27977 | resultobj = SWIG_Py_Void(); | |
27978 | return resultobj; | |
27979 | fail: | |
27980 | return NULL; | |
27981 | } | |
27982 | ||
27983 | ||
70d7cb34 RD |
27984 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27985 | PyObject *resultobj = 0; | |
27986 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27987 | wxSize *arg2 = 0 ; | |
27988 | void *argp1 = 0 ; | |
27989 | int res1 = 0 ; | |
27990 | wxSize temp2 ; | |
27991 | PyObject * obj0 = 0 ; | |
27992 | PyObject * obj1 = 0 ; | |
27993 | char * kwnames[] = { | |
27994 | (char *) "self",(char *) "imageSize", NULL | |
27995 | }; | |
27996 | ||
27997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_FitThisSizeToPaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
27998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27999 | if (!SWIG_IsOK(res1)) { | |
28000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPaper" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28001 | } | |
28002 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28003 | { | |
28004 | arg2 = &temp2; | |
28005 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28006 | } | |
28007 | { | |
28008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28009 | (arg1)->FitThisSizeToPaper((wxSize const &)*arg2); | |
28010 | wxPyEndAllowThreads(__tstate); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | } | |
28013 | resultobj = SWIG_Py_Void(); | |
28014 | return resultobj; | |
28015 | fail: | |
28016 | return NULL; | |
28017 | } | |
28018 | ||
28019 | ||
28020 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28021 | PyObject *resultobj = 0; | |
28022 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28023 | wxSize *arg2 = 0 ; | |
28024 | void *argp1 = 0 ; | |
28025 | int res1 = 0 ; | |
28026 | wxSize temp2 ; | |
28027 | PyObject * obj0 = 0 ; | |
28028 | PyObject * obj1 = 0 ; | |
28029 | char * kwnames[] = { | |
28030 | (char *) "self",(char *) "imageSize", NULL | |
28031 | }; | |
28032 | ||
28033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_FitThisSizeToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28035 | if (!SWIG_IsOK(res1)) { | |
28036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28037 | } | |
28038 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28039 | { | |
28040 | arg2 = &temp2; | |
28041 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28042 | } | |
28043 | { | |
28044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28045 | (arg1)->FitThisSizeToPage((wxSize const &)*arg2); | |
28046 | wxPyEndAllowThreads(__tstate); | |
28047 | if (PyErr_Occurred()) SWIG_fail; | |
28048 | } | |
28049 | resultobj = SWIG_Py_Void(); | |
28050 | return resultobj; | |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
28056 | SWIGINTERN PyObject *_wrap_Printout_FitThisSizeToPageMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28057 | PyObject *resultobj = 0; | |
28058 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28059 | wxSize *arg2 = 0 ; | |
28060 | wxPageSetupDialogData *arg3 = 0 ; | |
28061 | void *argp1 = 0 ; | |
28062 | int res1 = 0 ; | |
28063 | wxSize temp2 ; | |
28064 | void *argp3 = 0 ; | |
28065 | int res3 = 0 ; | |
28066 | PyObject * obj0 = 0 ; | |
28067 | PyObject * obj1 = 0 ; | |
28068 | PyObject * obj2 = 0 ; | |
28069 | char * kwnames[] = { | |
28070 | (char *) "self",(char *) "imageSize",(char *) "pageSetupData", NULL | |
28071 | }; | |
28072 | ||
28073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_FitThisSizeToPageMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28075 | if (!SWIG_IsOK(res1)) { | |
28076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28077 | } | |
28078 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28079 | { | |
28080 | arg2 = &temp2; | |
28081 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
28082 | } | |
28083 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28084 | if (!SWIG_IsOK(res3)) { | |
28085 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "3"" of type '" "wxPageSetupDialogData const &""'"); | |
28086 | } | |
28087 | if (!argp3) { | |
28088 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_FitThisSizeToPageMargins" "', expected argument " "3"" of type '" "wxPageSetupDialogData const &""'"); | |
28089 | } | |
28090 | arg3 = reinterpret_cast< wxPageSetupDialogData * >(argp3); | |
28091 | { | |
28092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28093 | (arg1)->FitThisSizeToPageMargins((wxSize const &)*arg2,(wxPageSetupDialogData const &)*arg3); | |
28094 | wxPyEndAllowThreads(__tstate); | |
28095 | if (PyErr_Occurred()) SWIG_fail; | |
28096 | } | |
28097 | resultobj = SWIG_Py_Void(); | |
28098 | return resultobj; | |
28099 | fail: | |
28100 | return NULL; | |
28101 | } | |
28102 | ||
28103 | ||
28104 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28105 | PyObject *resultobj = 0; | |
28106 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28107 | void *argp1 = 0 ; | |
28108 | int res1 = 0 ; | |
28109 | PyObject *swig_obj[1] ; | |
28110 | ||
28111 | if (!args) SWIG_fail; | |
28112 | swig_obj[0] = args; | |
28113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28114 | if (!SWIG_IsOK(res1)) { | |
28115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPaper" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28116 | } | |
28117 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28118 | { | |
28119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28120 | (arg1)->MapScreenSizeToPaper(); | |
28121 | wxPyEndAllowThreads(__tstate); | |
28122 | if (PyErr_Occurred()) SWIG_fail; | |
28123 | } | |
28124 | resultobj = SWIG_Py_Void(); | |
28125 | return resultobj; | |
28126 | fail: | |
28127 | return NULL; | |
28128 | } | |
28129 | ||
28130 | ||
28131 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28132 | PyObject *resultobj = 0; | |
28133 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28134 | void *argp1 = 0 ; | |
28135 | int res1 = 0 ; | |
28136 | PyObject *swig_obj[1] ; | |
28137 | ||
28138 | if (!args) SWIG_fail; | |
28139 | swig_obj[0] = args; | |
28140 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28141 | if (!SWIG_IsOK(res1)) { | |
28142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28143 | } | |
28144 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28145 | { | |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | (arg1)->MapScreenSizeToPage(); | |
28148 | wxPyEndAllowThreads(__tstate); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
28151 | resultobj = SWIG_Py_Void(); | |
28152 | return resultobj; | |
28153 | fail: | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
28158 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToPageMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28159 | PyObject *resultobj = 0; | |
28160 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28161 | wxPageSetupDialogData *arg2 = 0 ; | |
28162 | void *argp1 = 0 ; | |
28163 | int res1 = 0 ; | |
28164 | void *argp2 = 0 ; | |
28165 | int res2 = 0 ; | |
28166 | PyObject * obj0 = 0 ; | |
28167 | PyObject * obj1 = 0 ; | |
28168 | char * kwnames[] = { | |
28169 | (char *) "self",(char *) "pageSetupData", NULL | |
28170 | }; | |
28171 | ||
28172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_MapScreenSizeToPageMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
28173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28174 | if (!SWIG_IsOK(res1)) { | |
28175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28176 | } | |
28177 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28178 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28179 | if (!SWIG_IsOK(res2)) { | |
28180 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28181 | } | |
28182 | if (!argp2) { | |
28183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_MapScreenSizeToPageMargins" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28184 | } | |
28185 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); | |
28186 | { | |
28187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28188 | (arg1)->MapScreenSizeToPageMargins((wxPageSetupDialogData const &)*arg2); | |
28189 | wxPyEndAllowThreads(__tstate); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | resultobj = SWIG_Py_Void(); | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | return NULL; | |
28196 | } | |
28197 | ||
28198 | ||
28199 | SWIGINTERN PyObject *_wrap_Printout_MapScreenSizeToDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28200 | PyObject *resultobj = 0; | |
28201 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28202 | void *argp1 = 0 ; | |
28203 | int res1 = 0 ; | |
28204 | PyObject *swig_obj[1] ; | |
28205 | ||
28206 | if (!args) SWIG_fail; | |
28207 | swig_obj[0] = args; | |
28208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28209 | if (!SWIG_IsOK(res1)) { | |
28210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_MapScreenSizeToDevice" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28211 | } | |
28212 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28213 | { | |
28214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28215 | (arg1)->MapScreenSizeToDevice(); | |
28216 | wxPyEndAllowThreads(__tstate); | |
28217 | if (PyErr_Occurred()) SWIG_fail; | |
28218 | } | |
28219 | resultobj = SWIG_Py_Void(); | |
28220 | return resultobj; | |
28221 | fail: | |
28222 | return NULL; | |
28223 | } | |
28224 | ||
28225 | ||
28226 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPaperRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28227 | PyObject *resultobj = 0; | |
28228 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28229 | wxRect result; | |
28230 | void *argp1 = 0 ; | |
28231 | int res1 = 0 ; | |
28232 | PyObject *swig_obj[1] ; | |
28233 | ||
28234 | if (!args) SWIG_fail; | |
28235 | swig_obj[0] = args; | |
28236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28237 | if (!SWIG_IsOK(res1)) { | |
28238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPaperRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28239 | } | |
28240 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28241 | { | |
28242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28243 | result = ((wxPyPrintout const *)arg1)->GetLogicalPaperRect(); | |
28244 | wxPyEndAllowThreads(__tstate); | |
28245 | if (PyErr_Occurred()) SWIG_fail; | |
28246 | } | |
28247 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28248 | return resultobj; | |
28249 | fail: | |
28250 | return NULL; | |
28251 | } | |
28252 | ||
28253 | ||
28254 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28255 | PyObject *resultobj = 0; | |
28256 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28257 | wxRect result; | |
28258 | void *argp1 = 0 ; | |
28259 | int res1 = 0 ; | |
28260 | PyObject *swig_obj[1] ; | |
28261 | ||
28262 | if (!args) SWIG_fail; | |
28263 | swig_obj[0] = args; | |
28264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28265 | if (!SWIG_IsOK(res1)) { | |
28266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPageRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28267 | } | |
28268 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28269 | { | |
28270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28271 | result = ((wxPyPrintout const *)arg1)->GetLogicalPageRect(); | |
28272 | wxPyEndAllowThreads(__tstate); | |
28273 | if (PyErr_Occurred()) SWIG_fail; | |
28274 | } | |
28275 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28276 | return resultobj; | |
28277 | fail: | |
28278 | return NULL; | |
28279 | } | |
28280 | ||
28281 | ||
28282 | SWIGINTERN PyObject *_wrap_Printout_GetLogicalPageMarginsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28283 | PyObject *resultobj = 0; | |
28284 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28285 | wxPageSetupDialogData *arg2 = 0 ; | |
28286 | wxRect result; | |
28287 | void *argp1 = 0 ; | |
28288 | int res1 = 0 ; | |
28289 | void *argp2 = 0 ; | |
28290 | int res2 = 0 ; | |
28291 | PyObject * obj0 = 0 ; | |
28292 | PyObject * obj1 = 0 ; | |
28293 | char * kwnames[] = { | |
28294 | (char *) "self",(char *) "pageSetupData", NULL | |
28295 | }; | |
28296 | ||
28297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_GetLogicalPageMarginsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
28298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28299 | if (!SWIG_IsOK(res1)) { | |
28300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28301 | } | |
28302 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28303 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
28304 | if (!SWIG_IsOK(res2)) { | |
28305 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28306 | } | |
28307 | if (!argp2) { | |
28308 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Printout_GetLogicalPageMarginsRect" "', expected argument " "2"" of type '" "wxPageSetupDialogData const &""'"); | |
28309 | } | |
28310 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); | |
28311 | { | |
28312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28313 | result = ((wxPyPrintout const *)arg1)->GetLogicalPageMarginsRect((wxPageSetupDialogData const &)*arg2); | |
28314 | wxPyEndAllowThreads(__tstate); | |
28315 | if (PyErr_Occurred()) SWIG_fail; | |
28316 | } | |
28317 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28318 | return resultobj; | |
28319 | fail: | |
28320 | return NULL; | |
28321 | } | |
28322 | ||
28323 | ||
28324 | SWIGINTERN PyObject *_wrap_Printout_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28325 | PyObject *resultobj = 0; | |
28326 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28327 | int arg2 ; | |
28328 | int arg3 ; | |
28329 | void *argp1 = 0 ; | |
28330 | int res1 = 0 ; | |
28331 | int val2 ; | |
28332 | int ecode2 = 0 ; | |
28333 | int val3 ; | |
28334 | int ecode3 = 0 ; | |
28335 | PyObject * obj0 = 0 ; | |
28336 | PyObject * obj1 = 0 ; | |
28337 | PyObject * obj2 = 0 ; | |
28338 | char * kwnames[] = { | |
28339 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28340 | }; | |
28341 | ||
28342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28344 | if (!SWIG_IsOK(res1)) { | |
28345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28346 | } | |
28347 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28348 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28349 | if (!SWIG_IsOK(ecode2)) { | |
28350 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
28351 | } | |
28352 | arg2 = static_cast< int >(val2); | |
28353 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28354 | if (!SWIG_IsOK(ecode3)) { | |
28355 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
28356 | } | |
28357 | arg3 = static_cast< int >(val3); | |
28358 | { | |
28359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28360 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
28361 | wxPyEndAllowThreads(__tstate); | |
28362 | if (PyErr_Occurred()) SWIG_fail; | |
28363 | } | |
28364 | resultobj = SWIG_Py_Void(); | |
28365 | return resultobj; | |
28366 | fail: | |
28367 | return NULL; | |
28368 | } | |
28369 | ||
28370 | ||
28371 | SWIGINTERN PyObject *_wrap_Printout_OffsetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28372 | PyObject *resultobj = 0; | |
28373 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28374 | int arg2 ; | |
28375 | int arg3 ; | |
28376 | void *argp1 = 0 ; | |
28377 | int res1 = 0 ; | |
28378 | int val2 ; | |
28379 | int ecode2 = 0 ; | |
28380 | int val3 ; | |
28381 | int ecode3 = 0 ; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | PyObject * obj1 = 0 ; | |
28384 | PyObject * obj2 = 0 ; | |
28385 | char * kwnames[] = { | |
28386 | (char *) "self",(char *) "xoff",(char *) "yoff", NULL | |
28387 | }; | |
28388 | ||
28389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OffsetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28391 | if (!SWIG_IsOK(res1)) { | |
28392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28393 | } | |
28394 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28395 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28396 | if (!SWIG_IsOK(ecode2)) { | |
28397 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
28398 | } | |
28399 | arg2 = static_cast< int >(val2); | |
28400 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28401 | if (!SWIG_IsOK(ecode3)) { | |
28402 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OffsetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
28403 | } | |
28404 | arg3 = static_cast< int >(val3); | |
28405 | { | |
28406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28407 | (arg1)->OffsetLogicalOrigin(arg2,arg3); | |
28408 | wxPyEndAllowThreads(__tstate); | |
28409 | if (PyErr_Occurred()) SWIG_fail; | |
28410 | } | |
28411 | resultobj = SWIG_Py_Void(); | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
0085ce49 RD |
28418 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28419 | PyObject *resultobj = 0; | |
28420 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28421 | int arg2 ; | |
28422 | int arg3 ; | |
28423 | void *argp1 = 0 ; | |
28424 | int res1 = 0 ; | |
28425 | int val2 ; | |
28426 | int ecode2 = 0 ; | |
28427 | int val3 ; | |
28428 | int ecode3 = 0 ; | |
28429 | PyObject * obj0 = 0 ; | |
28430 | PyObject * obj1 = 0 ; | |
28431 | PyObject * obj2 = 0 ; | |
28432 | char * kwnames[] = { | |
28433 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28434 | }; | |
28435 | ||
28436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28438 | if (!SWIG_IsOK(res1)) { | |
28439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28440 | } | |
28441 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28442 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28443 | if (!SWIG_IsOK(ecode2)) { | |
28444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
28445 | } | |
28446 | arg2 = static_cast< int >(val2); | |
28447 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28448 | if (!SWIG_IsOK(ecode3)) { | |
28449 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
28450 | } | |
28451 | arg3 = static_cast< int >(val3); | |
28452 | { | |
28453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28454 | (arg1)->SetPageSizePixels(arg2,arg3); | |
28455 | wxPyEndAllowThreads(__tstate); | |
28456 | if (PyErr_Occurred()) SWIG_fail; | |
28457 | } | |
28458 | resultobj = SWIG_Py_Void(); | |
28459 | return resultobj; | |
28460 | fail: | |
28461 | return NULL; | |
28462 | } | |
28463 | ||
28464 | ||
28465 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28466 | PyObject *resultobj = 0; | |
28467 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28468 | int *arg2 = (int *) 0 ; | |
28469 | int *arg3 = (int *) 0 ; | |
28470 | void *argp1 = 0 ; | |
28471 | int res1 = 0 ; | |
28472 | int temp2 ; | |
28473 | int res2 = SWIG_TMPOBJ ; | |
28474 | int temp3 ; | |
28475 | int res3 = SWIG_TMPOBJ ; | |
28476 | PyObject *swig_obj[1] ; | |
28477 | ||
28478 | arg2 = &temp2; | |
28479 | arg3 = &temp3; | |
28480 | if (!args) SWIG_fail; | |
28481 | swig_obj[0] = args; | |
28482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28483 | if (!SWIG_IsOK(res1)) { | |
28484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28485 | } | |
28486 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28487 | { | |
28488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28489 | (arg1)->GetPageSizePixels(arg2,arg3); | |
28490 | wxPyEndAllowThreads(__tstate); | |
28491 | if (PyErr_Occurred()) SWIG_fail; | |
28492 | } | |
28493 | resultobj = SWIG_Py_Void(); | |
28494 | if (SWIG_IsTmpObj(res2)) { | |
28495 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28496 | } else { | |
28497 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28498 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28499 | } | |
28500 | if (SWIG_IsTmpObj(res3)) { | |
28501 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28502 | } else { | |
28503 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28504 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28505 | } | |
28506 | return resultobj; | |
28507 | fail: | |
28508 | return NULL; | |
28509 | } | |
28510 | ||
28511 | ||
28512 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28513 | PyObject *resultobj = 0; | |
28514 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28515 | int arg2 ; | |
28516 | int arg3 ; | |
28517 | void *argp1 = 0 ; | |
28518 | int res1 = 0 ; | |
28519 | int val2 ; | |
28520 | int ecode2 = 0 ; | |
28521 | int val3 ; | |
28522 | int ecode3 = 0 ; | |
28523 | PyObject * obj0 = 0 ; | |
28524 | PyObject * obj1 = 0 ; | |
28525 | PyObject * obj2 = 0 ; | |
28526 | char * kwnames[] = { | |
28527 | (char *) "self",(char *) "w",(char *) "h", NULL | |
28528 | }; | |
28529 | ||
28530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28532 | if (!SWIG_IsOK(res1)) { | |
28533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28534 | } | |
28535 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28536 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28537 | if (!SWIG_IsOK(ecode2)) { | |
28538 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
28539 | } | |
28540 | arg2 = static_cast< int >(val2); | |
28541 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28542 | if (!SWIG_IsOK(ecode3)) { | |
28543 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
28544 | } | |
28545 | arg3 = static_cast< int >(val3); | |
28546 | { | |
28547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28548 | (arg1)->SetPageSizeMM(arg2,arg3); | |
28549 | wxPyEndAllowThreads(__tstate); | |
28550 | if (PyErr_Occurred()) SWIG_fail; | |
28551 | } | |
28552 | resultobj = SWIG_Py_Void(); | |
28553 | return resultobj; | |
28554 | fail: | |
28555 | return NULL; | |
28556 | } | |
28557 | ||
28558 | ||
28559 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28560 | PyObject *resultobj = 0; | |
28561 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28562 | int *arg2 = (int *) 0 ; | |
28563 | int *arg3 = (int *) 0 ; | |
28564 | void *argp1 = 0 ; | |
28565 | int res1 = 0 ; | |
28566 | int temp2 ; | |
28567 | int res2 = SWIG_TMPOBJ ; | |
28568 | int temp3 ; | |
28569 | int res3 = SWIG_TMPOBJ ; | |
28570 | PyObject *swig_obj[1] ; | |
28571 | ||
28572 | arg2 = &temp2; | |
28573 | arg3 = &temp3; | |
28574 | if (!args) SWIG_fail; | |
28575 | swig_obj[0] = args; | |
28576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28577 | if (!SWIG_IsOK(res1)) { | |
28578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28579 | } | |
28580 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28581 | { | |
28582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28583 | (arg1)->GetPageSizeMM(arg2,arg3); | |
28584 | wxPyEndAllowThreads(__tstate); | |
28585 | if (PyErr_Occurred()) SWIG_fail; | |
28586 | } | |
28587 | resultobj = SWIG_Py_Void(); | |
28588 | if (SWIG_IsTmpObj(res2)) { | |
28589 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28590 | } else { | |
28591 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28592 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28593 | } | |
28594 | if (SWIG_IsTmpObj(res3)) { | |
28595 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28596 | } else { | |
28597 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28598 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28599 | } | |
28600 | return resultobj; | |
28601 | fail: | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
28606 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28607 | PyObject *resultobj = 0; | |
28608 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28609 | int arg2 ; | |
28610 | int arg3 ; | |
28611 | void *argp1 = 0 ; | |
28612 | int res1 = 0 ; | |
28613 | int val2 ; | |
28614 | int ecode2 = 0 ; | |
28615 | int val3 ; | |
28616 | int ecode3 = 0 ; | |
28617 | PyObject * obj0 = 0 ; | |
28618 | PyObject * obj1 = 0 ; | |
28619 | PyObject * obj2 = 0 ; | |
28620 | char * kwnames[] = { | |
28621 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28622 | }; | |
28623 | ||
28624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28626 | if (!SWIG_IsOK(res1)) { | |
28627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28628 | } | |
28629 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28631 | if (!SWIG_IsOK(ecode2)) { | |
28632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
28633 | } | |
28634 | arg2 = static_cast< int >(val2); | |
28635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28636 | if (!SWIG_IsOK(ecode3)) { | |
28637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
28638 | } | |
28639 | arg3 = static_cast< int >(val3); | |
28640 | { | |
28641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28642 | (arg1)->SetPPIScreen(arg2,arg3); | |
28643 | wxPyEndAllowThreads(__tstate); | |
28644 | if (PyErr_Occurred()) SWIG_fail; | |
28645 | } | |
28646 | resultobj = SWIG_Py_Void(); | |
28647 | return resultobj; | |
28648 | fail: | |
28649 | return NULL; | |
28650 | } | |
28651 | ||
28652 | ||
28653 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28654 | PyObject *resultobj = 0; | |
28655 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28656 | int *arg2 = (int *) 0 ; | |
28657 | int *arg3 = (int *) 0 ; | |
28658 | void *argp1 = 0 ; | |
28659 | int res1 = 0 ; | |
28660 | int temp2 ; | |
28661 | int res2 = SWIG_TMPOBJ ; | |
28662 | int temp3 ; | |
28663 | int res3 = SWIG_TMPOBJ ; | |
28664 | PyObject *swig_obj[1] ; | |
28665 | ||
28666 | arg2 = &temp2; | |
28667 | arg3 = &temp3; | |
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_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28673 | } | |
28674 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28675 | { | |
28676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28677 | (arg1)->GetPPIScreen(arg2,arg3); | |
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 | return resultobj; | |
28695 | fail: | |
28696 | return NULL; | |
28697 | } | |
28698 | ||
28699 | ||
28700 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28701 | PyObject *resultobj = 0; | |
28702 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28703 | int arg2 ; | |
28704 | int arg3 ; | |
28705 | void *argp1 = 0 ; | |
28706 | int res1 = 0 ; | |
28707 | int val2 ; | |
28708 | int ecode2 = 0 ; | |
28709 | int val3 ; | |
28710 | int ecode3 = 0 ; | |
28711 | PyObject * obj0 = 0 ; | |
28712 | PyObject * obj1 = 0 ; | |
28713 | PyObject * obj2 = 0 ; | |
28714 | char * kwnames[] = { | |
28715 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28716 | }; | |
28717 | ||
28718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28720 | if (!SWIG_IsOK(res1)) { | |
28721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28722 | } | |
28723 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28724 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28725 | if (!SWIG_IsOK(ecode2)) { | |
28726 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
28727 | } | |
28728 | arg2 = static_cast< int >(val2); | |
28729 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28730 | if (!SWIG_IsOK(ecode3)) { | |
28731 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
28732 | } | |
28733 | arg3 = static_cast< int >(val3); | |
28734 | { | |
28735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28736 | (arg1)->SetPPIPrinter(arg2,arg3); | |
28737 | wxPyEndAllowThreads(__tstate); | |
28738 | if (PyErr_Occurred()) SWIG_fail; | |
28739 | } | |
28740 | resultobj = SWIG_Py_Void(); | |
28741 | return resultobj; | |
28742 | fail: | |
28743 | return NULL; | |
28744 | } | |
28745 | ||
28746 | ||
28747 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28748 | PyObject *resultobj = 0; | |
28749 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28750 | int *arg2 = (int *) 0 ; | |
28751 | int *arg3 = (int *) 0 ; | |
28752 | void *argp1 = 0 ; | |
28753 | int res1 = 0 ; | |
28754 | int temp2 ; | |
28755 | int res2 = SWIG_TMPOBJ ; | |
28756 | int temp3 ; | |
28757 | int res3 = SWIG_TMPOBJ ; | |
28758 | PyObject *swig_obj[1] ; | |
28759 | ||
28760 | arg2 = &temp2; | |
28761 | arg3 = &temp3; | |
28762 | if (!args) SWIG_fail; | |
28763 | swig_obj[0] = args; | |
28764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28765 | if (!SWIG_IsOK(res1)) { | |
28766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28767 | } | |
28768 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28769 | { | |
28770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28771 | (arg1)->GetPPIPrinter(arg2,arg3); | |
28772 | wxPyEndAllowThreads(__tstate); | |
28773 | if (PyErr_Occurred()) SWIG_fail; | |
28774 | } | |
28775 | resultobj = SWIG_Py_Void(); | |
28776 | if (SWIG_IsTmpObj(res2)) { | |
28777 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28778 | } else { | |
28779 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28780 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28781 | } | |
28782 | if (SWIG_IsTmpObj(res3)) { | |
28783 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28784 | } else { | |
28785 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28786 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28787 | } | |
28788 | return resultobj; | |
28789 | fail: | |
28790 | return NULL; | |
d14a1e28 RD |
28791 | } |
28792 | ||
28793 | ||
70d7cb34 RD |
28794 | SWIGINTERN PyObject *_wrap_Printout_SetPaperRectPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28795 | PyObject *resultobj = 0; | |
28796 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28797 | wxRect *arg2 = 0 ; | |
28798 | void *argp1 = 0 ; | |
28799 | int res1 = 0 ; | |
28800 | wxRect temp2 ; | |
28801 | PyObject * obj0 = 0 ; | |
28802 | PyObject * obj1 = 0 ; | |
28803 | char * kwnames[] = { | |
28804 | (char *) "self",(char *) "paperRectPixels", NULL | |
28805 | }; | |
28806 | ||
28807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetPaperRectPixels",kwnames,&obj0,&obj1)) SWIG_fail; | |
28808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28809 | if (!SWIG_IsOK(res1)) { | |
28810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPaperRectPixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28811 | } | |
28812 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28813 | { | |
28814 | arg2 = &temp2; | |
28815 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
28816 | } | |
28817 | { | |
28818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28819 | (arg1)->SetPaperRectPixels((wxRect const &)*arg2); | |
28820 | wxPyEndAllowThreads(__tstate); | |
28821 | if (PyErr_Occurred()) SWIG_fail; | |
28822 | } | |
28823 | resultobj = SWIG_Py_Void(); | |
28824 | return resultobj; | |
28825 | fail: | |
28826 | return NULL; | |
28827 | } | |
28828 | ||
28829 | ||
28830 | SWIGINTERN PyObject *_wrap_Printout_GetPaperRectPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28831 | PyObject *resultobj = 0; | |
28832 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28833 | wxRect result; | |
28834 | void *argp1 = 0 ; | |
28835 | int res1 = 0 ; | |
28836 | PyObject *swig_obj[1] ; | |
28837 | ||
28838 | if (!args) SWIG_fail; | |
28839 | swig_obj[0] = args; | |
28840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28841 | if (!SWIG_IsOK(res1)) { | |
28842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPaperRectPixels" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
28843 | } | |
28844 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28845 | { | |
28846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28847 | result = ((wxPyPrintout const *)arg1)->GetPaperRectPixels(); | |
28848 | wxPyEndAllowThreads(__tstate); | |
28849 | if (PyErr_Occurred()) SWIG_fail; | |
28850 | } | |
28851 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28852 | return resultobj; | |
28853 | fail: | |
28854 | return NULL; | |
28855 | } | |
28856 | ||
28857 | ||
0085ce49 RD |
28858 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28859 | PyObject *resultobj = 0; | |
28860 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28861 | bool result; | |
28862 | void *argp1 = 0 ; | |
28863 | int res1 = 0 ; | |
28864 | PyObject *swig_obj[1] ; | |
28865 | ||
28866 | if (!args) SWIG_fail; | |
28867 | swig_obj[0] = args; | |
28868 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28869 | if (!SWIG_IsOK(res1)) { | |
28870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28871 | } | |
28872 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28873 | { | |
28874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28875 | result = (bool)(arg1)->IsPreview(); | |
28876 | wxPyEndAllowThreads(__tstate); | |
28877 | if (PyErr_Occurred()) SWIG_fail; | |
28878 | } | |
28879 | { | |
28880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28881 | } | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | return NULL; | |
28885 | } | |
28886 | ||
28887 | ||
28888 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28889 | PyObject *resultobj = 0; | |
28890 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28891 | bool arg2 ; | |
28892 | void *argp1 = 0 ; | |
28893 | int res1 = 0 ; | |
28894 | bool val2 ; | |
28895 | int ecode2 = 0 ; | |
28896 | PyObject * obj0 = 0 ; | |
28897 | PyObject * obj1 = 0 ; | |
28898 | char * kwnames[] = { | |
28899 | (char *) "self",(char *) "p", NULL | |
28900 | }; | |
28901 | ||
28902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
28903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28904 | if (!SWIG_IsOK(res1)) { | |
28905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28906 | } | |
28907 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28908 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28909 | if (!SWIG_IsOK(ecode2)) { | |
28910 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
28911 | } | |
28912 | arg2 = static_cast< bool >(val2); | |
28913 | { | |
28914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28915 | (arg1)->SetIsPreview(arg2); | |
28916 | wxPyEndAllowThreads(__tstate); | |
28917 | if (PyErr_Occurred()) SWIG_fail; | |
28918 | } | |
28919 | resultobj = SWIG_Py_Void(); | |
28920 | return resultobj; | |
28921 | fail: | |
28922 | return NULL; | |
28923 | } | |
28924 | ||
28925 | ||
28926 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28927 | PyObject *resultobj = 0; | |
28928 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28929 | int arg2 ; | |
28930 | int arg3 ; | |
28931 | bool result; | |
28932 | void *argp1 = 0 ; | |
28933 | int res1 = 0 ; | |
28934 | int val2 ; | |
28935 | int ecode2 = 0 ; | |
28936 | int val3 ; | |
28937 | int ecode3 = 0 ; | |
28938 | PyObject * obj0 = 0 ; | |
28939 | PyObject * obj1 = 0 ; | |
28940 | PyObject * obj2 = 0 ; | |
28941 | char * kwnames[] = { | |
28942 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
28943 | }; | |
28944 | ||
28945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28947 | if (!SWIG_IsOK(res1)) { | |
28948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28949 | } | |
28950 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28951 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28952 | if (!SWIG_IsOK(ecode2)) { | |
28953 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
28954 | } | |
28955 | arg2 = static_cast< int >(val2); | |
28956 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28957 | if (!SWIG_IsOK(ecode3)) { | |
28958 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
28959 | } | |
28960 | arg3 = static_cast< int >(val3); | |
28961 | { | |
28962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28963 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
28964 | wxPyEndAllowThreads(__tstate); | |
28965 | if (PyErr_Occurred()) SWIG_fail; | |
28966 | } | |
28967 | { | |
28968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28969 | } | |
28970 | return resultobj; | |
28971 | fail: | |
28972 | return NULL; | |
d14a1e28 RD |
28973 | } |
28974 | ||
28975 | ||
0085ce49 RD |
28976 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28977 | PyObject *resultobj = 0; | |
28978 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28979 | void *argp1 = 0 ; | |
28980 | int res1 = 0 ; | |
28981 | PyObject *swig_obj[1] ; | |
28982 | ||
28983 | if (!args) SWIG_fail; | |
28984 | swig_obj[0] = args; | |
28985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28986 | if (!SWIG_IsOK(res1)) { | |
28987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28988 | } | |
28989 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28990 | { | |
28991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28992 | (arg1)->OnEndDocument(); | |
28993 | wxPyEndAllowThreads(__tstate); | |
28994 | if (PyErr_Occurred()) SWIG_fail; | |
28995 | } | |
28996 | resultobj = SWIG_Py_Void(); | |
28997 | return resultobj; | |
28998 | fail: | |
28999 | return NULL; | |
1cb4a8aa RD |
29000 | } |
29001 | ||
29002 | ||
0085ce49 RD |
29003 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29004 | PyObject *resultobj = 0; | |
29005 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29006 | void *argp1 = 0 ; | |
29007 | int res1 = 0 ; | |
29008 | PyObject *swig_obj[1] ; | |
29009 | ||
29010 | if (!args) SWIG_fail; | |
29011 | swig_obj[0] = args; | |
29012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29013 | if (!SWIG_IsOK(res1)) { | |
29014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29015 | } | |
29016 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29017 | { | |
29018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29019 | (arg1)->OnBeginPrinting(); | |
29020 | wxPyEndAllowThreads(__tstate); | |
29021 | if (PyErr_Occurred()) SWIG_fail; | |
29022 | } | |
29023 | resultobj = SWIG_Py_Void(); | |
29024 | return resultobj; | |
29025 | fail: | |
29026 | return NULL; | |
d14a1e28 RD |
29027 | } |
29028 | ||
29029 | ||
0085ce49 RD |
29030 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29031 | PyObject *resultobj = 0; | |
29032 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29033 | void *argp1 = 0 ; | |
29034 | int res1 = 0 ; | |
29035 | PyObject *swig_obj[1] ; | |
29036 | ||
29037 | if (!args) SWIG_fail; | |
29038 | swig_obj[0] = args; | |
29039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29040 | if (!SWIG_IsOK(res1)) { | |
29041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29042 | } | |
29043 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29044 | { | |
29045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29046 | (arg1)->OnEndPrinting(); | |
29047 | wxPyEndAllowThreads(__tstate); | |
29048 | if (PyErr_Occurred()) SWIG_fail; | |
29049 | } | |
29050 | resultobj = SWIG_Py_Void(); | |
29051 | return resultobj; | |
29052 | fail: | |
29053 | return NULL; | |
db3e571a RD |
29054 | } |
29055 | ||
29056 | ||
0085ce49 RD |
29057 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29058 | PyObject *resultobj = 0; | |
29059 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29060 | void *argp1 = 0 ; | |
29061 | int res1 = 0 ; | |
29062 | PyObject *swig_obj[1] ; | |
29063 | ||
29064 | if (!args) SWIG_fail; | |
29065 | swig_obj[0] = args; | |
29066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29067 | if (!SWIG_IsOK(res1)) { | |
29068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29069 | } | |
29070 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29071 | { | |
29072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29073 | (arg1)->OnPreparePrinting(); | |
29074 | wxPyEndAllowThreads(__tstate); | |
29075 | if (PyErr_Occurred()) SWIG_fail; | |
29076 | } | |
29077 | resultobj = SWIG_Py_Void(); | |
29078 | return resultobj; | |
29079 | fail: | |
29080 | return NULL; | |
29081 | } | |
29082 | ||
29083 | ||
29084 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29085 | PyObject *resultobj = 0; | |
29086 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29087 | int arg2 ; | |
29088 | bool result; | |
29089 | void *argp1 = 0 ; | |
29090 | int res1 = 0 ; | |
29091 | int val2 ; | |
29092 | int ecode2 = 0 ; | |
29093 | PyObject * obj0 = 0 ; | |
29094 | PyObject * obj1 = 0 ; | |
29095 | char * kwnames[] = { | |
29096 | (char *) "self",(char *) "page", NULL | |
29097 | }; | |
29098 | ||
29099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29101 | if (!SWIG_IsOK(res1)) { | |
29102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29103 | } | |
29104 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29105 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29106 | if (!SWIG_IsOK(ecode2)) { | |
29107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
29108 | } | |
29109 | arg2 = static_cast< int >(val2); | |
29110 | { | |
29111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29112 | result = (bool)(arg1)->HasPage(arg2); | |
29113 | wxPyEndAllowThreads(__tstate); | |
29114 | if (PyErr_Occurred()) SWIG_fail; | |
29115 | } | |
29116 | { | |
29117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29118 | } | |
29119 | return resultobj; | |
29120 | fail: | |
29121 | return NULL; | |
29122 | } | |
29123 | ||
29124 | ||
29125 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29126 | PyObject *resultobj = 0; | |
29127 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29128 | int *arg2 = (int *) 0 ; | |
29129 | int *arg3 = (int *) 0 ; | |
29130 | int *arg4 = (int *) 0 ; | |
29131 | int *arg5 = (int *) 0 ; | |
29132 | void *argp1 = 0 ; | |
29133 | int res1 = 0 ; | |
29134 | int temp2 ; | |
29135 | int res2 = SWIG_TMPOBJ ; | |
29136 | int temp3 ; | |
29137 | int res3 = SWIG_TMPOBJ ; | |
29138 | int temp4 ; | |
29139 | int res4 = SWIG_TMPOBJ ; | |
29140 | int temp5 ; | |
29141 | int res5 = SWIG_TMPOBJ ; | |
29142 | PyObject *swig_obj[1] ; | |
29143 | ||
29144 | arg2 = &temp2; | |
29145 | arg3 = &temp3; | |
29146 | arg4 = &temp4; | |
29147 | arg5 = &temp5; | |
29148 | if (!args) SWIG_fail; | |
29149 | swig_obj[0] = args; | |
29150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
29151 | if (!SWIG_IsOK(res1)) { | |
29152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29153 | } | |
29154 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
29155 | { | |
29156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29157 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
29158 | wxPyEndAllowThreads(__tstate); | |
29159 | if (PyErr_Occurred()) SWIG_fail; | |
29160 | } | |
29161 | resultobj = SWIG_Py_Void(); | |
29162 | if (SWIG_IsTmpObj(res2)) { | |
29163 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
29164 | } else { | |
29165 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29166 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
29167 | } | |
29168 | if (SWIG_IsTmpObj(res3)) { | |
29169 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
29170 | } else { | |
29171 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
29173 | } | |
29174 | if (SWIG_IsTmpObj(res4)) { | |
29175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
29176 | } else { | |
29177 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
29179 | } | |
29180 | if (SWIG_IsTmpObj(res5)) { | |
29181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
29182 | } else { | |
29183 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
29185 | } | |
29186 | return resultobj; | |
29187 | fail: | |
29188 | return NULL; | |
29189 | } | |
29190 | ||
29191 | ||
29192 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29193 | PyObject *obj; | |
29194 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29195 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
29196 | return SWIG_Py_Void(); | |
29197 | } | |
29198 | ||
29199 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29200 | return SWIG_Python_InitShadowInstance(args); | |
29201 | } | |
29202 | ||
29203 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29204 | PyObject *resultobj = 0; | |
29205 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29206 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29207 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29208 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29209 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29210 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29211 | long arg5 = (long) 0 ; | |
29212 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
29213 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29214 | wxPreviewCanvas *result = 0 ; | |
29215 | void *argp1 = 0 ; | |
29216 | int res1 = 0 ; | |
29217 | void *argp2 = 0 ; | |
29218 | int res2 = 0 ; | |
29219 | wxPoint temp3 ; | |
29220 | wxSize temp4 ; | |
29221 | long val5 ; | |
29222 | int ecode5 = 0 ; | |
29223 | bool temp6 = false ; | |
29224 | PyObject * obj0 = 0 ; | |
29225 | PyObject * obj1 = 0 ; | |
29226 | PyObject * obj2 = 0 ; | |
29227 | PyObject * obj3 = 0 ; | |
29228 | PyObject * obj4 = 0 ; | |
29229 | PyObject * obj5 = 0 ; | |
29230 | char * kwnames[] = { | |
29231 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29232 | }; | |
29233 | ||
29234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29236 | if (!SWIG_IsOK(res1)) { | |
29237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29238 | } | |
29239 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29240 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29241 | if (!SWIG_IsOK(res2)) { | |
29242 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29243 | } | |
29244 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
29245 | if (obj2) { | |
093d3ff1 | 29246 | { |
0085ce49 RD |
29247 | arg3 = &temp3; |
29248 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 29249 | } |
0085ce49 RD |
29250 | } |
29251 | if (obj3) { | |
093d3ff1 | 29252 | { |
0085ce49 RD |
29253 | arg4 = &temp4; |
29254 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
994141e6 | 29255 | } |
0085ce49 RD |
29256 | } |
29257 | if (obj4) { | |
29258 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
29259 | if (!SWIG_IsOK(ecode5)) { | |
29260 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
29261 | } | |
29262 | arg5 = static_cast< long >(val5); | |
29263 | } | |
29264 | if (obj5) { | |
d14a1e28 | 29265 | { |
0085ce49 RD |
29266 | arg6 = wxString_in_helper(obj5); |
29267 | if (arg6 == NULL) SWIG_fail; | |
29268 | temp6 = true; | |
093d3ff1 | 29269 | } |
0085ce49 RD |
29270 | } |
29271 | { | |
29272 | if (!wxPyCheckForApp()) SWIG_fail; | |
29273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29274 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
29275 | wxPyEndAllowThreads(__tstate); | |
29276 | if (PyErr_Occurred()) SWIG_fail; | |
29277 | } | |
29278 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
29279 | { | |
29280 | if (temp6) | |
29281 | delete arg6; | |
29282 | } | |
29283 | return resultobj; | |
29284 | fail: | |
29285 | { | |
29286 | if (temp6) | |
29287 | delete arg6; | |
29288 | } | |
29289 | return NULL; | |
29290 | } | |
29291 | ||
29292 | ||
29293 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29294 | PyObject *obj; | |
29295 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29296 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
29297 | return SWIG_Py_Void(); | |
29298 | } | |
29299 | ||
29300 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29301 | return SWIG_Python_InitShadowInstance(args); | |
29302 | } | |
29303 | ||
29304 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29305 | PyObject *resultobj = 0; | |
29306 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29307 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29308 | wxString *arg3 = 0 ; | |
29309 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29310 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29311 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29312 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29313 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
29314 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
29315 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29316 | wxPreviewFrame *result = 0 ; | |
29317 | int res1 = 0 ; | |
29318 | void *argp2 = 0 ; | |
29319 | int res2 = 0 ; | |
29320 | bool temp3 = false ; | |
29321 | wxPoint temp4 ; | |
29322 | wxSize temp5 ; | |
29323 | long val6 ; | |
29324 | int ecode6 = 0 ; | |
29325 | bool temp7 = false ; | |
29326 | PyObject * obj0 = 0 ; | |
29327 | PyObject * obj1 = 0 ; | |
29328 | PyObject * obj2 = 0 ; | |
29329 | PyObject * obj3 = 0 ; | |
29330 | PyObject * obj4 = 0 ; | |
29331 | PyObject * obj5 = 0 ; | |
29332 | PyObject * obj6 = 0 ; | |
29333 | char * kwnames[] = { | |
29334 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29335 | }; | |
29336 | ||
29337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29338 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29339 | if (!SWIG_IsOK(res1)) { | |
29340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29341 | } | |
29342 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29343 | if (!SWIG_IsOK(res2)) { | |
29344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29345 | } | |
29346 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29347 | { | |
29348 | arg3 = wxString_in_helper(obj2); | |
29349 | if (arg3 == NULL) SWIG_fail; | |
29350 | temp3 = true; | |
29351 | } | |
29352 | if (obj3) { | |
093d3ff1 | 29353 | { |
0085ce49 RD |
29354 | arg4 = &temp4; |
29355 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 29356 | } |
0085ce49 RD |
29357 | } |
29358 | if (obj4) { | |
d14a1e28 | 29359 | { |
0085ce49 RD |
29360 | arg5 = &temp5; |
29361 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 29362 | } |
0085ce49 RD |
29363 | } |
29364 | if (obj5) { | |
29365 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29366 | if (!SWIG_IsOK(ecode6)) { | |
29367 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
29368 | } | |
29369 | arg6 = static_cast< long >(val6); | |
29370 | } | |
29371 | if (obj6) { | |
093d3ff1 | 29372 | { |
0085ce49 RD |
29373 | arg7 = wxString_in_helper(obj6); |
29374 | if (arg7 == NULL) SWIG_fail; | |
29375 | temp7 = true; | |
093d3ff1 | 29376 | } |
0085ce49 RD |
29377 | } |
29378 | { | |
29379 | if (!wxPyCheckForApp()) SWIG_fail; | |
29380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29381 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29382 | wxPyEndAllowThreads(__tstate); | |
29383 | if (PyErr_Occurred()) SWIG_fail; | |
29384 | } | |
29385 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
29386 | { | |
29387 | if (temp3) | |
29388 | delete arg3; | |
29389 | } | |
29390 | { | |
29391 | if (temp7) | |
29392 | delete arg7; | |
29393 | } | |
29394 | return resultobj; | |
29395 | fail: | |
29396 | { | |
29397 | if (temp3) | |
29398 | delete arg3; | |
29399 | } | |
29400 | { | |
29401 | if (temp7) | |
29402 | delete arg7; | |
29403 | } | |
29404 | return NULL; | |
d14a1e28 RD |
29405 | } |
29406 | ||
29407 | ||
0085ce49 RD |
29408 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29409 | PyObject *resultobj = 0; | |
29410 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29411 | void *argp1 = 0 ; | |
29412 | int res1 = 0 ; | |
29413 | PyObject *swig_obj[1] ; | |
29414 | ||
29415 | if (!args) SWIG_fail; | |
29416 | swig_obj[0] = args; | |
29417 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29418 | if (!SWIG_IsOK(res1)) { | |
29419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29420 | } | |
29421 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29422 | { | |
29423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29424 | (arg1)->Initialize(); | |
29425 | wxPyEndAllowThreads(__tstate); | |
29426 | if (PyErr_Occurred()) SWIG_fail; | |
29427 | } | |
29428 | resultobj = SWIG_Py_Void(); | |
29429 | return resultobj; | |
29430 | fail: | |
29431 | return NULL; | |
d14a1e28 RD |
29432 | } |
29433 | ||
29434 | ||
0085ce49 RD |
29435 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29436 | PyObject *resultobj = 0; | |
29437 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29438 | void *argp1 = 0 ; | |
29439 | int res1 = 0 ; | |
29440 | PyObject *swig_obj[1] ; | |
29441 | ||
29442 | if (!args) SWIG_fail; | |
29443 | swig_obj[0] = args; | |
29444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29445 | if (!SWIG_IsOK(res1)) { | |
29446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29447 | } | |
29448 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29449 | { | |
29450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29451 | (arg1)->CreateControlBar(); | |
29452 | wxPyEndAllowThreads(__tstate); | |
29453 | if (PyErr_Occurred()) SWIG_fail; | |
29454 | } | |
29455 | resultobj = SWIG_Py_Void(); | |
29456 | return resultobj; | |
29457 | fail: | |
29458 | return NULL; | |
d14a1e28 RD |
29459 | } |
29460 | ||
29461 | ||
0085ce49 RD |
29462 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29463 | PyObject *resultobj = 0; | |
29464 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29465 | void *argp1 = 0 ; | |
29466 | int res1 = 0 ; | |
29467 | PyObject *swig_obj[1] ; | |
29468 | ||
29469 | if (!args) SWIG_fail; | |
29470 | swig_obj[0] = args; | |
29471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29472 | if (!SWIG_IsOK(res1)) { | |
29473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
29474 | } | |
29475 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29476 | { | |
29477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29478 | (arg1)->CreateCanvas(); | |
29479 | wxPyEndAllowThreads(__tstate); | |
29480 | if (PyErr_Occurred()) SWIG_fail; | |
29481 | } | |
29482 | resultobj = SWIG_Py_Void(); | |
29483 | return resultobj; | |
29484 | fail: | |
29485 | return NULL; | |
d14a1e28 RD |
29486 | } |
29487 | ||
29488 | ||
0085ce49 RD |
29489 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29490 | PyObject *resultobj = 0; | |
29491 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
29492 | wxPreviewControlBar *result = 0 ; | |
29493 | void *argp1 = 0 ; | |
29494 | int res1 = 0 ; | |
29495 | PyObject *swig_obj[1] ; | |
29496 | ||
29497 | if (!args) SWIG_fail; | |
29498 | swig_obj[0] = args; | |
29499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
29500 | if (!SWIG_IsOK(res1)) { | |
29501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
29502 | } | |
29503 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
29504 | { | |
29505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29506 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
29507 | wxPyEndAllowThreads(__tstate); | |
29508 | if (PyErr_Occurred()) SWIG_fail; | |
29509 | } | |
29510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29511 | return resultobj; | |
29512 | fail: | |
29513 | return NULL; | |
29514 | } | |
29515 | ||
29516 | ||
29517 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29518 | PyObject *obj; | |
29519 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29520 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
29521 | return SWIG_Py_Void(); | |
29522 | } | |
29523 | ||
29524 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29525 | return SWIG_Python_InitShadowInstance(args); | |
29526 | } | |
29527 | ||
29528 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29529 | PyObject *resultobj = 0; | |
29530 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29531 | long arg2 ; | |
29532 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29533 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29534 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29535 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29536 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29537 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
29538 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
29539 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29540 | wxPreviewControlBar *result = 0 ; | |
29541 | void *argp1 = 0 ; | |
29542 | int res1 = 0 ; | |
29543 | long val2 ; | |
29544 | int ecode2 = 0 ; | |
29545 | void *argp3 = 0 ; | |
29546 | int res3 = 0 ; | |
29547 | wxPoint temp4 ; | |
29548 | wxSize temp5 ; | |
29549 | long val6 ; | |
29550 | int ecode6 = 0 ; | |
29551 | bool temp7 = false ; | |
29552 | PyObject * obj0 = 0 ; | |
29553 | PyObject * obj1 = 0 ; | |
29554 | PyObject * obj2 = 0 ; | |
29555 | PyObject * obj3 = 0 ; | |
29556 | PyObject * obj4 = 0 ; | |
29557 | PyObject * obj5 = 0 ; | |
29558 | PyObject * obj6 = 0 ; | |
29559 | char * kwnames[] = { | |
29560 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
29561 | }; | |
29562 | ||
29563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29565 | if (!SWIG_IsOK(res1)) { | |
29566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29567 | } | |
29568 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29569 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
29570 | if (!SWIG_IsOK(ecode2)) { | |
29571 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
29572 | } | |
29573 | arg2 = static_cast< long >(val2); | |
29574 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29575 | if (!SWIG_IsOK(res3)) { | |
29576 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
29577 | } | |
29578 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
29579 | if (obj3) { | |
d14a1e28 | 29580 | { |
0085ce49 RD |
29581 | arg4 = &temp4; |
29582 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 29583 | } |
0085ce49 RD |
29584 | } |
29585 | if (obj4) { | |
d14a1e28 | 29586 | { |
0085ce49 RD |
29587 | arg5 = &temp5; |
29588 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 29589 | } |
0085ce49 RD |
29590 | } |
29591 | if (obj5) { | |
29592 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
29593 | if (!SWIG_IsOK(ecode6)) { | |
29594 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
29595 | } | |
29596 | arg6 = static_cast< long >(val6); | |
29597 | } | |
29598 | if (obj6) { | |
d14a1e28 | 29599 | { |
0085ce49 RD |
29600 | arg7 = wxString_in_helper(obj6); |
29601 | if (arg7 == NULL) SWIG_fail; | |
29602 | temp7 = true; | |
d14a1e28 | 29603 | } |
0085ce49 RD |
29604 | } |
29605 | { | |
29606 | if (!wxPyCheckForApp()) SWIG_fail; | |
29607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29608 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
29609 | wxPyEndAllowThreads(__tstate); | |
29610 | if (PyErr_Occurred()) SWIG_fail; | |
29611 | } | |
29612 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
29613 | { | |
29614 | if (temp7) | |
29615 | delete arg7; | |
29616 | } | |
29617 | return resultobj; | |
29618 | fail: | |
29619 | { | |
29620 | if (temp7) | |
29621 | delete arg7; | |
29622 | } | |
29623 | return NULL; | |
d14a1e28 RD |
29624 | } |
29625 | ||
29626 | ||
0085ce49 RD |
29627 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29628 | PyObject *resultobj = 0; | |
29629 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29630 | int result; | |
29631 | void *argp1 = 0 ; | |
29632 | int res1 = 0 ; | |
29633 | PyObject *swig_obj[1] ; | |
29634 | ||
29635 | if (!args) SWIG_fail; | |
29636 | swig_obj[0] = args; | |
29637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29638 | if (!SWIG_IsOK(res1)) { | |
29639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29640 | } | |
29641 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29642 | { | |
29643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29644 | result = (int)(arg1)->GetZoomControl(); | |
29645 | wxPyEndAllowThreads(__tstate); | |
29646 | if (PyErr_Occurred()) SWIG_fail; | |
29647 | } | |
29648 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29649 | return resultobj; | |
29650 | fail: | |
29651 | return NULL; | |
29652 | } | |
29653 | ||
29654 | ||
29655 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29656 | PyObject *resultobj = 0; | |
29657 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29658 | int arg2 ; | |
29659 | void *argp1 = 0 ; | |
29660 | int res1 = 0 ; | |
29661 | int val2 ; | |
29662 | int ecode2 = 0 ; | |
29663 | PyObject * obj0 = 0 ; | |
29664 | PyObject * obj1 = 0 ; | |
29665 | char * kwnames[] = { | |
29666 | (char *) "self",(char *) "zoom", NULL | |
29667 | }; | |
29668 | ||
29669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
29670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29671 | if (!SWIG_IsOK(res1)) { | |
29672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29673 | } | |
29674 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29675 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29676 | if (!SWIG_IsOK(ecode2)) { | |
29677 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
29678 | } | |
29679 | arg2 = static_cast< int >(val2); | |
29680 | { | |
29681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29682 | (arg1)->SetZoomControl(arg2); | |
29683 | wxPyEndAllowThreads(__tstate); | |
29684 | if (PyErr_Occurred()) SWIG_fail; | |
29685 | } | |
29686 | resultobj = SWIG_Py_Void(); | |
29687 | return resultobj; | |
29688 | fail: | |
29689 | return NULL; | |
d14a1e28 RD |
29690 | } |
29691 | ||
29692 | ||
0085ce49 RD |
29693 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29694 | PyObject *resultobj = 0; | |
29695 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29696 | wxPrintPreview *result = 0 ; | |
29697 | void *argp1 = 0 ; | |
29698 | int res1 = 0 ; | |
29699 | PyObject *swig_obj[1] ; | |
29700 | ||
29701 | if (!args) SWIG_fail; | |
29702 | swig_obj[0] = args; | |
29703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29704 | if (!SWIG_IsOK(res1)) { | |
29705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29706 | } | |
29707 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29708 | { | |
29709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29710 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
29711 | wxPyEndAllowThreads(__tstate); | |
29712 | if (PyErr_Occurred()) SWIG_fail; | |
29713 | } | |
29714 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29715 | return resultobj; | |
29716 | fail: | |
29717 | return NULL; | |
d14a1e28 RD |
29718 | } |
29719 | ||
29720 | ||
0085ce49 RD |
29721 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29722 | PyObject *resultobj = 0; | |
29723 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29724 | void *argp1 = 0 ; | |
29725 | int res1 = 0 ; | |
29726 | PyObject *swig_obj[1] ; | |
29727 | ||
29728 | if (!args) SWIG_fail; | |
29729 | swig_obj[0] = args; | |
29730 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29731 | if (!SWIG_IsOK(res1)) { | |
29732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29733 | } | |
29734 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29735 | { | |
29736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29737 | (arg1)->OnNext(); | |
29738 | wxPyEndAllowThreads(__tstate); | |
29739 | if (PyErr_Occurred()) SWIG_fail; | |
29740 | } | |
29741 | resultobj = SWIG_Py_Void(); | |
29742 | return resultobj; | |
29743 | fail: | |
29744 | return NULL; | |
d14a1e28 RD |
29745 | } |
29746 | ||
29747 | ||
0085ce49 RD |
29748 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29749 | PyObject *resultobj = 0; | |
29750 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29751 | void *argp1 = 0 ; | |
29752 | int res1 = 0 ; | |
29753 | PyObject *swig_obj[1] ; | |
29754 | ||
29755 | if (!args) SWIG_fail; | |
29756 | swig_obj[0] = args; | |
29757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29758 | if (!SWIG_IsOK(res1)) { | |
29759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29760 | } | |
29761 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29762 | { | |
29763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29764 | (arg1)->OnPrevious(); | |
29765 | wxPyEndAllowThreads(__tstate); | |
29766 | if (PyErr_Occurred()) SWIG_fail; | |
29767 | } | |
29768 | resultobj = SWIG_Py_Void(); | |
29769 | return resultobj; | |
29770 | fail: | |
29771 | return NULL; | |
d14a1e28 RD |
29772 | } |
29773 | ||
29774 | ||
0085ce49 RD |
29775 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29776 | PyObject *resultobj = 0; | |
29777 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29778 | void *argp1 = 0 ; | |
29779 | int res1 = 0 ; | |
29780 | PyObject *swig_obj[1] ; | |
29781 | ||
29782 | if (!args) SWIG_fail; | |
29783 | swig_obj[0] = args; | |
29784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29785 | if (!SWIG_IsOK(res1)) { | |
29786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29787 | } | |
29788 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29789 | { | |
29790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29791 | (arg1)->OnFirst(); | |
29792 | wxPyEndAllowThreads(__tstate); | |
29793 | if (PyErr_Occurred()) SWIG_fail; | |
29794 | } | |
29795 | resultobj = SWIG_Py_Void(); | |
29796 | return resultobj; | |
29797 | fail: | |
29798 | return NULL; | |
d14a1e28 RD |
29799 | } |
29800 | ||
29801 | ||
0085ce49 RD |
29802 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29803 | PyObject *resultobj = 0; | |
29804 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29805 | void *argp1 = 0 ; | |
29806 | int res1 = 0 ; | |
29807 | PyObject *swig_obj[1] ; | |
29808 | ||
29809 | if (!args) SWIG_fail; | |
29810 | swig_obj[0] = args; | |
29811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29812 | if (!SWIG_IsOK(res1)) { | |
29813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29814 | } | |
29815 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29816 | { | |
29817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29818 | (arg1)->OnLast(); | |
29819 | wxPyEndAllowThreads(__tstate); | |
29820 | if (PyErr_Occurred()) SWIG_fail; | |
29821 | } | |
29822 | resultobj = SWIG_Py_Void(); | |
29823 | return resultobj; | |
29824 | fail: | |
29825 | return NULL; | |
d14a1e28 RD |
29826 | } |
29827 | ||
29828 | ||
0085ce49 RD |
29829 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29830 | PyObject *resultobj = 0; | |
29831 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
29832 | void *argp1 = 0 ; | |
29833 | int res1 = 0 ; | |
29834 | PyObject *swig_obj[1] ; | |
29835 | ||
29836 | if (!args) SWIG_fail; | |
29837 | swig_obj[0] = args; | |
29838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
29839 | if (!SWIG_IsOK(res1)) { | |
29840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
29841 | } | |
29842 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29843 | { | |
29844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29845 | (arg1)->OnGoto(); | |
29846 | wxPyEndAllowThreads(__tstate); | |
29847 | if (PyErr_Occurred()) SWIG_fail; | |
29848 | } | |
29849 | resultobj = SWIG_Py_Void(); | |
29850 | return resultobj; | |
29851 | fail: | |
29852 | return NULL; | |
d14a1e28 RD |
29853 | } |
29854 | ||
29855 | ||
0085ce49 RD |
29856 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29857 | PyObject *obj; | |
29858 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29859 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
29860 | return SWIG_Py_Void(); | |
d14a1e28 RD |
29861 | } |
29862 | ||
0085ce49 RD |
29863 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29864 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
29865 | } |
29866 | ||
0085ce49 RD |
29867 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29868 | PyObject *resultobj = 0; | |
29869 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29870 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29871 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29872 | wxPrintPreview *result = 0 ; | |
29873 | int res1 = 0 ; | |
29874 | int res2 = 0 ; | |
29875 | void *argp3 = 0 ; | |
29876 | int res3 = 0 ; | |
29877 | ||
29878 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29879 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29880 | if (!SWIG_IsOK(res1)) { | |
29881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29882 | } | |
29883 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29884 | if (!SWIG_IsOK(res2)) { | |
29885 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29886 | } | |
29887 | if (swig_obj[2]) { | |
29888 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29889 | if (!SWIG_IsOK(res3)) { | |
29890 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
1cb4a8aa | 29891 | } |
0085ce49 RD |
29892 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
29893 | } | |
29894 | { | |
29895 | if (!wxPyCheckForApp()) SWIG_fail; | |
29896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29897 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29898 | wxPyEndAllowThreads(__tstate); | |
29899 | if (PyErr_Occurred()) SWIG_fail; | |
29900 | } | |
29901 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29902 | return resultobj; | |
29903 | fail: | |
29904 | return NULL; | |
29905 | } | |
29906 | ||
29907 | ||
29908 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29909 | PyObject *resultobj = 0; | |
29910 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29911 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29912 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29913 | wxPrintPreview *result = 0 ; | |
29914 | int res1 = 0 ; | |
29915 | int res2 = 0 ; | |
29916 | void *argp3 = 0 ; | |
29917 | int res3 = 0 ; | |
29918 | ||
29919 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29920 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29921 | if (!SWIG_IsOK(res1)) { | |
29922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29923 | } | |
29924 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29925 | if (!SWIG_IsOK(res2)) { | |
29926 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29927 | } | |
29928 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29929 | if (!SWIG_IsOK(res3)) { | |
29930 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29931 | } | |
29932 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29933 | { | |
29934 | if (!wxPyCheckForApp()) SWIG_fail; | |
29935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29936 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29937 | wxPyEndAllowThreads(__tstate); | |
29938 | if (PyErr_Occurred()) SWIG_fail; | |
29939 | } | |
29940 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29941 | return resultobj; | |
29942 | fail: | |
29943 | return NULL; | |
1cb4a8aa RD |
29944 | } |
29945 | ||
29946 | ||
0085ce49 RD |
29947 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
29948 | int argc; | |
29949 | PyObject *argv[4]; | |
29950 | ||
29951 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
29952 | --argc; | |
29953 | if ((argc >= 2) && (argc <= 3)) { | |
29954 | int _v = 0; | |
29955 | if (argc > 2) { | |
29956 | { | |
29957 | void *vptr = 0; | |
29958 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29959 | _v = SWIG_CheckState(res); | |
29960 | } | |
29961 | if (!_v) goto check_1; | |
db3e571a | 29962 | } |
0085ce49 RD |
29963 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
29964 | } | |
29965 | check_1: | |
29966 | ||
29967 | if (argc == 3) { | |
29968 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
29969 | } | |
29970 | ||
29971 | fail: | |
29972 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
29973 | return NULL; | |
db3e571a RD |
29974 | } |
29975 | ||
29976 | ||
0085ce49 RD |
29977 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29978 | PyObject *resultobj = 0; | |
29979 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29980 | void *argp1 = 0 ; | |
29981 | int res1 = 0 ; | |
29982 | PyObject *swig_obj[1] ; | |
29983 | ||
29984 | if (!args) SWIG_fail; | |
29985 | swig_obj[0] = args; | |
29986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29987 | if (!SWIG_IsOK(res1)) { | |
29988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29989 | } | |
29990 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29991 | { | |
29992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29993 | delete arg1; | |
29994 | ||
29995 | wxPyEndAllowThreads(__tstate); | |
29996 | if (PyErr_Occurred()) SWIG_fail; | |
29997 | } | |
29998 | resultobj = SWIG_Py_Void(); | |
29999 | return resultobj; | |
30000 | fail: | |
30001 | return NULL; | |
30002 | } | |
30003 | ||
30004 | ||
30005 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30006 | PyObject *resultobj = 0; | |
30007 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30008 | int arg2 ; | |
30009 | bool result; | |
30010 | void *argp1 = 0 ; | |
30011 | int res1 = 0 ; | |
30012 | int val2 ; | |
30013 | int ecode2 = 0 ; | |
30014 | PyObject * obj0 = 0 ; | |
30015 | PyObject * obj1 = 0 ; | |
30016 | char * kwnames[] = { | |
30017 | (char *) "self",(char *) "pageNum", NULL | |
30018 | }; | |
30019 | ||
30020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
30021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30022 | if (!SWIG_IsOK(res1)) { | |
30023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30024 | } | |
30025 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30027 | if (!SWIG_IsOK(ecode2)) { | |
30028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
30029 | } | |
30030 | arg2 = static_cast< int >(val2); | |
30031 | { | |
30032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30033 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
30034 | wxPyEndAllowThreads(__tstate); | |
30035 | if (PyErr_Occurred()) SWIG_fail; | |
30036 | } | |
30037 | { | |
30038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30039 | } | |
30040 | return resultobj; | |
30041 | fail: | |
30042 | return NULL; | |
8d38bd1d RD |
30043 | } |
30044 | ||
30045 | ||
0085ce49 RD |
30046 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30047 | PyObject *resultobj = 0; | |
30048 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30049 | int result; | |
30050 | void *argp1 = 0 ; | |
30051 | int res1 = 0 ; | |
30052 | PyObject *swig_obj[1] ; | |
30053 | ||
30054 | if (!args) SWIG_fail; | |
30055 | swig_obj[0] = args; | |
30056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30057 | if (!SWIG_IsOK(res1)) { | |
30058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30059 | } | |
30060 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30061 | { | |
30062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30063 | result = (int)(arg1)->GetCurrentPage(); | |
30064 | wxPyEndAllowThreads(__tstate); | |
30065 | if (PyErr_Occurred()) SWIG_fail; | |
30066 | } | |
30067 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30068 | return resultobj; | |
30069 | fail: | |
30070 | return NULL; | |
30071 | } | |
30072 | ||
30073 | ||
30074 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30075 | PyObject *resultobj = 0; | |
30076 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30077 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30078 | void *argp1 = 0 ; | |
30079 | int res1 = 0 ; | |
30080 | int res2 = 0 ; | |
30081 | PyObject * obj0 = 0 ; | |
30082 | PyObject * obj1 = 0 ; | |
30083 | char * kwnames[] = { | |
30084 | (char *) "self",(char *) "printout", NULL | |
30085 | }; | |
30086 | ||
30087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
30088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30089 | if (!SWIG_IsOK(res1)) { | |
30090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30091 | } | |
30092 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30093 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30094 | if (!SWIG_IsOK(res2)) { | |
30095 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30096 | } | |
30097 | { | |
30098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30099 | (arg1)->SetPrintout(arg2); | |
30100 | wxPyEndAllowThreads(__tstate); | |
30101 | if (PyErr_Occurred()) SWIG_fail; | |
30102 | } | |
30103 | resultobj = SWIG_Py_Void(); | |
30104 | return resultobj; | |
30105 | fail: | |
30106 | return NULL; | |
d14a1e28 RD |
30107 | } |
30108 | ||
30109 | ||
0085ce49 RD |
30110 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30111 | PyObject *resultobj = 0; | |
30112 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30113 | wxPyPrintout *result = 0 ; | |
30114 | void *argp1 = 0 ; | |
30115 | int res1 = 0 ; | |
30116 | PyObject *swig_obj[1] ; | |
30117 | ||
30118 | if (!args) SWIG_fail; | |
30119 | swig_obj[0] = args; | |
30120 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30121 | if (!SWIG_IsOK(res1)) { | |
30122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30123 | } | |
30124 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30125 | { | |
30126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30127 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
30128 | wxPyEndAllowThreads(__tstate); | |
30129 | if (PyErr_Occurred()) SWIG_fail; | |
30130 | } | |
30131 | { | |
30132 | resultobj = wxPyMake_wxObject(result, 0); | |
30133 | } | |
30134 | return resultobj; | |
30135 | fail: | |
30136 | return NULL; | |
1cb4a8aa RD |
30137 | } |
30138 | ||
30139 | ||
0085ce49 RD |
30140 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30141 | PyObject *resultobj = 0; | |
30142 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30143 | wxPyPrintout *result = 0 ; | |
30144 | void *argp1 = 0 ; | |
30145 | int res1 = 0 ; | |
30146 | PyObject *swig_obj[1] ; | |
30147 | ||
30148 | if (!args) SWIG_fail; | |
30149 | swig_obj[0] = args; | |
30150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30151 | if (!SWIG_IsOK(res1)) { | |
30152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30153 | } | |
30154 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30155 | { | |
30156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30157 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
30158 | wxPyEndAllowThreads(__tstate); | |
30159 | if (PyErr_Occurred()) SWIG_fail; | |
30160 | } | |
30161 | { | |
30162 | resultobj = wxPyMake_wxObject(result, 0); | |
30163 | } | |
30164 | return resultobj; | |
30165 | fail: | |
30166 | return NULL; | |
30167 | } | |
30168 | ||
30169 | ||
30170 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30171 | PyObject *resultobj = 0; | |
30172 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30173 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30174 | void *argp1 = 0 ; | |
30175 | int res1 = 0 ; | |
30176 | void *argp2 = 0 ; | |
30177 | int res2 = 0 ; | |
30178 | PyObject * obj0 = 0 ; | |
30179 | PyObject * obj1 = 0 ; | |
30180 | char * kwnames[] = { | |
30181 | (char *) "self",(char *) "frame", NULL | |
30182 | }; | |
30183 | ||
30184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
30185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30186 | if (!SWIG_IsOK(res1)) { | |
30187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30188 | } | |
30189 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30190 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30191 | if (!SWIG_IsOK(res2)) { | |
30192 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30193 | } | |
30194 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30195 | { | |
30196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30197 | (arg1)->SetFrame(arg2); | |
30198 | wxPyEndAllowThreads(__tstate); | |
30199 | if (PyErr_Occurred()) SWIG_fail; | |
30200 | } | |
30201 | resultobj = SWIG_Py_Void(); | |
30202 | return resultobj; | |
30203 | fail: | |
30204 | return NULL; | |
30205 | } | |
30206 | ||
30207 | ||
30208 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30209 | PyObject *resultobj = 0; | |
30210 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30211 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30212 | void *argp1 = 0 ; | |
30213 | int res1 = 0 ; | |
30214 | void *argp2 = 0 ; | |
30215 | int res2 = 0 ; | |
30216 | PyObject * obj0 = 0 ; | |
30217 | PyObject * obj1 = 0 ; | |
30218 | char * kwnames[] = { | |
30219 | (char *) "self",(char *) "canvas", NULL | |
30220 | }; | |
30221 | ||
30222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30224 | if (!SWIG_IsOK(res1)) { | |
30225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30226 | } | |
30227 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30228 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30229 | if (!SWIG_IsOK(res2)) { | |
30230 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30231 | } | |
30232 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30233 | { | |
30234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30235 | (arg1)->SetCanvas(arg2); | |
30236 | wxPyEndAllowThreads(__tstate); | |
30237 | if (PyErr_Occurred()) SWIG_fail; | |
30238 | } | |
30239 | resultobj = SWIG_Py_Void(); | |
30240 | return resultobj; | |
30241 | fail: | |
30242 | return NULL; | |
d14a1e28 RD |
30243 | } |
30244 | ||
30245 | ||
0085ce49 RD |
30246 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30247 | PyObject *resultobj = 0; | |
30248 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30249 | wxFrame *result = 0 ; | |
30250 | void *argp1 = 0 ; | |
30251 | int res1 = 0 ; | |
30252 | PyObject *swig_obj[1] ; | |
30253 | ||
30254 | if (!args) SWIG_fail; | |
30255 | swig_obj[0] = args; | |
30256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30257 | if (!SWIG_IsOK(res1)) { | |
30258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30259 | } | |
30260 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30261 | { | |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30263 | result = (wxFrame *)(arg1)->GetFrame(); | |
30264 | wxPyEndAllowThreads(__tstate); | |
30265 | if (PyErr_Occurred()) SWIG_fail; | |
30266 | } | |
30267 | { | |
30268 | resultobj = wxPyMake_wxObject(result, 0); | |
30269 | } | |
30270 | return resultobj; | |
30271 | fail: | |
30272 | return NULL; | |
db3e571a RD |
30273 | } |
30274 | ||
30275 | ||
0085ce49 RD |
30276 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30277 | PyObject *resultobj = 0; | |
30278 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30279 | wxPreviewCanvas *result = 0 ; | |
30280 | void *argp1 = 0 ; | |
30281 | int res1 = 0 ; | |
30282 | PyObject *swig_obj[1] ; | |
30283 | ||
30284 | if (!args) SWIG_fail; | |
30285 | swig_obj[0] = args; | |
30286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30287 | if (!SWIG_IsOK(res1)) { | |
30288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30289 | } | |
30290 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30291 | { | |
30292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30293 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
30294 | wxPyEndAllowThreads(__tstate); | |
30295 | if (PyErr_Occurred()) SWIG_fail; | |
30296 | } | |
30297 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30298 | return resultobj; | |
30299 | fail: | |
30300 | return NULL; | |
30301 | } | |
30302 | ||
30303 | ||
30304 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30305 | PyObject *resultobj = 0; | |
30306 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30307 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30308 | wxDC *arg3 = 0 ; | |
30309 | bool result; | |
30310 | void *argp1 = 0 ; | |
30311 | int res1 = 0 ; | |
30312 | void *argp2 = 0 ; | |
30313 | int res2 = 0 ; | |
30314 | void *argp3 = 0 ; | |
30315 | int res3 = 0 ; | |
30316 | PyObject * obj0 = 0 ; | |
30317 | PyObject * obj1 = 0 ; | |
30318 | PyObject * obj2 = 0 ; | |
30319 | char * kwnames[] = { | |
30320 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
30321 | }; | |
30322 | ||
30323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30325 | if (!SWIG_IsOK(res1)) { | |
30326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30327 | } | |
30328 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30329 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30330 | if (!SWIG_IsOK(res2)) { | |
30331 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30332 | } | |
30333 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30334 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30335 | if (!SWIG_IsOK(res3)) { | |
30336 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30337 | } | |
30338 | if (!argp3) { | |
30339 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30340 | } | |
30341 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30342 | { | |
30343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30344 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
30345 | wxPyEndAllowThreads(__tstate); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | } | |
30348 | { | |
30349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30350 | } | |
30351 | return resultobj; | |
30352 | fail: | |
30353 | return NULL; | |
30354 | } | |
30355 | ||
30356 | ||
30357 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30358 | PyObject *resultobj = 0; | |
30359 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30360 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30361 | wxDC *arg3 = 0 ; | |
30362 | bool result; | |
30363 | void *argp1 = 0 ; | |
30364 | int res1 = 0 ; | |
30365 | void *argp2 = 0 ; | |
30366 | int res2 = 0 ; | |
30367 | void *argp3 = 0 ; | |
30368 | int res3 = 0 ; | |
30369 | PyObject * obj0 = 0 ; | |
30370 | PyObject * obj1 = 0 ; | |
30371 | PyObject * obj2 = 0 ; | |
30372 | char * kwnames[] = { | |
30373 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
30374 | }; | |
30375 | ||
30376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30378 | if (!SWIG_IsOK(res1)) { | |
30379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30380 | } | |
30381 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30382 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30383 | if (!SWIG_IsOK(res2)) { | |
30384 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30385 | } | |
30386 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30387 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30388 | if (!SWIG_IsOK(res3)) { | |
30389 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30390 | } | |
30391 | if (!argp3) { | |
30392 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30393 | } | |
30394 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30395 | { | |
30396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30397 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
30398 | wxPyEndAllowThreads(__tstate); | |
30399 | if (PyErr_Occurred()) SWIG_fail; | |
30400 | } | |
30401 | { | |
30402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30403 | } | |
30404 | return resultobj; | |
30405 | fail: | |
30406 | return NULL; | |
30407 | } | |
30408 | ||
30409 | ||
30410 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30411 | PyObject *resultobj = 0; | |
30412 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30413 | int arg2 ; | |
30414 | bool result; | |
30415 | void *argp1 = 0 ; | |
30416 | int res1 = 0 ; | |
30417 | int val2 ; | |
30418 | int ecode2 = 0 ; | |
30419 | PyObject * obj0 = 0 ; | |
30420 | PyObject * obj1 = 0 ; | |
30421 | char * kwnames[] = { | |
30422 | (char *) "self",(char *) "pageNum", NULL | |
30423 | }; | |
30424 | ||
30425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
30426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30427 | if (!SWIG_IsOK(res1)) { | |
30428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30429 | } | |
30430 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30432 | if (!SWIG_IsOK(ecode2)) { | |
30433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
30434 | } | |
30435 | arg2 = static_cast< int >(val2); | |
30436 | { | |
30437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30438 | result = (bool)(arg1)->RenderPage(arg2); | |
30439 | wxPyEndAllowThreads(__tstate); | |
30440 | if (PyErr_Occurred()) SWIG_fail; | |
30441 | } | |
30442 | { | |
30443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30444 | } | |
30445 | return resultobj; | |
30446 | fail: | |
30447 | return NULL; | |
30448 | } | |
30449 | ||
30450 | ||
30451 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30452 | PyObject *resultobj = 0; | |
30453 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30454 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30455 | void *argp1 = 0 ; | |
30456 | int res1 = 0 ; | |
30457 | void *argp2 = 0 ; | |
30458 | int res2 = 0 ; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | PyObject * obj1 = 0 ; | |
30461 | char * kwnames[] = { | |
30462 | (char *) "self",(char *) "canvas", NULL | |
30463 | }; | |
30464 | ||
30465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
30466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30467 | if (!SWIG_IsOK(res1)) { | |
30468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30469 | } | |
30470 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30471 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30472 | if (!SWIG_IsOK(res2)) { | |
30473 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30474 | } | |
30475 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30476 | { | |
30477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30478 | (arg1)->AdjustScrollbars(arg2); | |
30479 | wxPyEndAllowThreads(__tstate); | |
30480 | if (PyErr_Occurred()) SWIG_fail; | |
30481 | } | |
30482 | resultobj = SWIG_Py_Void(); | |
30483 | return resultobj; | |
30484 | fail: | |
30485 | return NULL; | |
976dbff5 RD |
30486 | } |
30487 | ||
30488 | ||
0085ce49 RD |
30489 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30490 | PyObject *resultobj = 0; | |
30491 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30492 | wxPrintDialogData *result = 0 ; | |
30493 | void *argp1 = 0 ; | |
30494 | int res1 = 0 ; | |
30495 | PyObject *swig_obj[1] ; | |
30496 | ||
30497 | if (!args) SWIG_fail; | |
30498 | swig_obj[0] = args; | |
30499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30500 | if (!SWIG_IsOK(res1)) { | |
30501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30502 | } | |
30503 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30504 | { | |
30505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 30506 | { |
0085ce49 RD |
30507 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
30508 | result = (wxPrintDialogData *) &_result_ref; | |
093d3ff1 | 30509 | } |
0085ce49 RD |
30510 | wxPyEndAllowThreads(__tstate); |
30511 | if (PyErr_Occurred()) SWIG_fail; | |
30512 | } | |
30513 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30514 | return resultobj; | |
30515 | fail: | |
30516 | return NULL; | |
30517 | } | |
30518 | ||
30519 | ||
30520 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30521 | PyObject *resultobj = 0; | |
30522 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30523 | int arg2 ; | |
30524 | void *argp1 = 0 ; | |
30525 | int res1 = 0 ; | |
30526 | int val2 ; | |
30527 | int ecode2 = 0 ; | |
30528 | PyObject * obj0 = 0 ; | |
30529 | PyObject * obj1 = 0 ; | |
30530 | char * kwnames[] = { | |
30531 | (char *) "self",(char *) "percent", NULL | |
30532 | }; | |
30533 | ||
30534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
30535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30536 | if (!SWIG_IsOK(res1)) { | |
30537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30538 | } | |
30539 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30540 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30541 | if (!SWIG_IsOK(ecode2)) { | |
30542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
30543 | } | |
30544 | arg2 = static_cast< int >(val2); | |
30545 | { | |
30546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30547 | (arg1)->SetZoom(arg2); | |
30548 | wxPyEndAllowThreads(__tstate); | |
30549 | if (PyErr_Occurred()) SWIG_fail; | |
30550 | } | |
30551 | resultobj = SWIG_Py_Void(); | |
30552 | return resultobj; | |
30553 | fail: | |
30554 | return NULL; | |
d14a1e28 RD |
30555 | } |
30556 | ||
30557 | ||
0085ce49 RD |
30558 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30559 | PyObject *resultobj = 0; | |
30560 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30561 | int result; | |
30562 | void *argp1 = 0 ; | |
30563 | int res1 = 0 ; | |
30564 | PyObject *swig_obj[1] ; | |
30565 | ||
30566 | if (!args) SWIG_fail; | |
30567 | swig_obj[0] = args; | |
30568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30569 | if (!SWIG_IsOK(res1)) { | |
30570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30571 | } | |
30572 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30573 | { | |
30574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30575 | result = (int)(arg1)->GetZoom(); | |
30576 | wxPyEndAllowThreads(__tstate); | |
30577 | if (PyErr_Occurred()) SWIG_fail; | |
30578 | } | |
30579 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30580 | return resultobj; | |
30581 | fail: | |
30582 | return NULL; | |
d14a1e28 RD |
30583 | } |
30584 | ||
30585 | ||
0085ce49 RD |
30586 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30587 | PyObject *resultobj = 0; | |
30588 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30589 | int result; | |
30590 | void *argp1 = 0 ; | |
30591 | int res1 = 0 ; | |
30592 | PyObject *swig_obj[1] ; | |
30593 | ||
30594 | if (!args) SWIG_fail; | |
30595 | swig_obj[0] = args; | |
30596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30597 | if (!SWIG_IsOK(res1)) { | |
30598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30599 | } | |
30600 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30601 | { | |
30602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30603 | result = (int)(arg1)->GetMaxPage(); | |
30604 | wxPyEndAllowThreads(__tstate); | |
30605 | if (PyErr_Occurred()) SWIG_fail; | |
30606 | } | |
30607 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30608 | return resultobj; | |
30609 | fail: | |
30610 | return NULL; | |
d14a1e28 RD |
30611 | } |
30612 | ||
30613 | ||
0085ce49 RD |
30614 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30615 | PyObject *resultobj = 0; | |
30616 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30617 | int result; | |
30618 | void *argp1 = 0 ; | |
30619 | int res1 = 0 ; | |
30620 | PyObject *swig_obj[1] ; | |
30621 | ||
30622 | if (!args) SWIG_fail; | |
30623 | swig_obj[0] = args; | |
30624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30625 | if (!SWIG_IsOK(res1)) { | |
30626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30627 | } | |
30628 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30629 | { | |
30630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30631 | result = (int)(arg1)->GetMinPage(); | |
30632 | wxPyEndAllowThreads(__tstate); | |
30633 | if (PyErr_Occurred()) SWIG_fail; | |
30634 | } | |
30635 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30636 | return resultobj; | |
30637 | fail: | |
30638 | return NULL; | |
d14a1e28 RD |
30639 | } |
30640 | ||
30641 | ||
b39fe951 | 30642 | SWIGINTERN PyObject *_wrap_PrintPreview_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
30643 | PyObject *resultobj = 0; |
30644 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30645 | bool result; | |
30646 | void *argp1 = 0 ; | |
30647 | int res1 = 0 ; | |
30648 | PyObject *swig_obj[1] ; | |
30649 | ||
30650 | if (!args) SWIG_fail; | |
30651 | swig_obj[0] = args; | |
30652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30653 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_IsOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); |
0085ce49 RD |
30655 | } |
30656 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30657 | { | |
30658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 30659 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
30660 | wxPyEndAllowThreads(__tstate); |
30661 | if (PyErr_Occurred()) SWIG_fail; | |
30662 | } | |
30663 | { | |
30664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30665 | } | |
30666 | return resultobj; | |
30667 | fail: | |
30668 | return NULL; | |
30669 | } | |
30670 | ||
30671 | ||
30672 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30673 | PyObject *resultobj = 0; | |
30674 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30675 | bool arg2 ; | |
30676 | void *argp1 = 0 ; | |
30677 | int res1 = 0 ; | |
30678 | bool val2 ; | |
30679 | int ecode2 = 0 ; | |
30680 | PyObject * obj0 = 0 ; | |
30681 | PyObject * obj1 = 0 ; | |
30682 | char * kwnames[] = { | |
30683 | (char *) "self",(char *) "ok", NULL | |
30684 | }; | |
30685 | ||
30686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
30687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30688 | if (!SWIG_IsOK(res1)) { | |
30689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30690 | } | |
30691 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30692 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30693 | if (!SWIG_IsOK(ecode2)) { | |
30694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
30695 | } | |
30696 | arg2 = static_cast< bool >(val2); | |
30697 | { | |
30698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30699 | (arg1)->SetOk(arg2); | |
30700 | wxPyEndAllowThreads(__tstate); | |
30701 | if (PyErr_Occurred()) SWIG_fail; | |
30702 | } | |
30703 | resultobj = SWIG_Py_Void(); | |
30704 | return resultobj; | |
30705 | fail: | |
30706 | return NULL; | |
30707 | } | |
30708 | ||
30709 | ||
30710 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30711 | PyObject *resultobj = 0; | |
30712 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30713 | bool arg2 ; | |
30714 | bool result; | |
30715 | void *argp1 = 0 ; | |
30716 | int res1 = 0 ; | |
30717 | bool val2 ; | |
30718 | int ecode2 = 0 ; | |
30719 | PyObject * obj0 = 0 ; | |
30720 | PyObject * obj1 = 0 ; | |
30721 | char * kwnames[] = { | |
30722 | (char *) "self",(char *) "interactive", NULL | |
30723 | }; | |
30724 | ||
30725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
30726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30727 | if (!SWIG_IsOK(res1)) { | |
30728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30729 | } | |
30730 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30731 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
30732 | if (!SWIG_IsOK(ecode2)) { | |
30733 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
30734 | } | |
30735 | arg2 = static_cast< bool >(val2); | |
30736 | { | |
30737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30738 | result = (bool)(arg1)->Print(arg2); | |
30739 | wxPyEndAllowThreads(__tstate); | |
30740 | if (PyErr_Occurred()) SWIG_fail; | |
30741 | } | |
30742 | { | |
30743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30744 | } | |
30745 | return resultobj; | |
30746 | fail: | |
30747 | return NULL; | |
d14a1e28 RD |
30748 | } |
30749 | ||
30750 | ||
0085ce49 RD |
30751 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30752 | PyObject *resultobj = 0; | |
30753 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30754 | void *argp1 = 0 ; | |
30755 | int res1 = 0 ; | |
30756 | PyObject *swig_obj[1] ; | |
30757 | ||
30758 | if (!args) SWIG_fail; | |
30759 | swig_obj[0] = args; | |
30760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30761 | if (!SWIG_IsOK(res1)) { | |
30762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30763 | } | |
30764 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30765 | { | |
30766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30767 | (arg1)->DetermineScaling(); | |
30768 | wxPyEndAllowThreads(__tstate); | |
30769 | if (PyErr_Occurred()) SWIG_fail; | |
30770 | } | |
30771 | resultobj = SWIG_Py_Void(); | |
30772 | return resultobj; | |
30773 | fail: | |
30774 | return NULL; | |
d14a1e28 RD |
30775 | } |
30776 | ||
30777 | ||
0085ce49 RD |
30778 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30779 | PyObject *obj; | |
30780 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30781 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
30782 | return SWIG_Py_Void(); | |
d14a1e28 RD |
30783 | } |
30784 | ||
0085ce49 RD |
30785 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30786 | return SWIG_Python_InitShadowInstance(args); | |
30787 | } | |
d14a1e28 | 30788 | |
0085ce49 RD |
30789 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
30790 | PyObject *resultobj = 0; | |
30791 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30792 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30793 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
30794 | wxPyPrintPreview *result = 0 ; | |
30795 | int res1 = 0 ; | |
30796 | int res2 = 0 ; | |
30797 | void *argp3 = 0 ; | |
30798 | int res3 = 0 ; | |
30799 | ||
30800 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
30801 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30802 | if (!SWIG_IsOK(res1)) { | |
30803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30804 | } | |
30805 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30806 | if (!SWIG_IsOK(res2)) { | |
30807 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30808 | } | |
30809 | if (swig_obj[2]) { | |
30810 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
30811 | if (!SWIG_IsOK(res3)) { | |
30812 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
d14a1e28 | 30813 | } |
0085ce49 RD |
30814 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
30815 | } | |
30816 | { | |
30817 | if (!wxPyCheckForApp()) SWIG_fail; | |
30818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30819 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30820 | wxPyEndAllowThreads(__tstate); | |
30821 | if (PyErr_Occurred()) SWIG_fail; | |
30822 | } | |
30823 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30824 | return resultobj; | |
30825 | fail: | |
30826 | return NULL; | |
30827 | } | |
30828 | ||
30829 | ||
30830 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30831 | PyObject *resultobj = 0; | |
30832 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
30833 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
30834 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
30835 | wxPyPrintPreview *result = 0 ; | |
30836 | int res1 = 0 ; | |
30837 | int res2 = 0 ; | |
30838 | void *argp3 = 0 ; | |
30839 | int res3 = 0 ; | |
30840 | ||
30841 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
30842 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30843 | if (!SWIG_IsOK(res1)) { | |
30844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30845 | } | |
30846 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30847 | if (!SWIG_IsOK(res2)) { | |
30848 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30849 | } | |
30850 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
30851 | if (!SWIG_IsOK(res3)) { | |
30852 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
30853 | } | |
30854 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
30855 | { | |
30856 | if (!wxPyCheckForApp()) SWIG_fail; | |
30857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30858 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30859 | wxPyEndAllowThreads(__tstate); | |
30860 | if (PyErr_Occurred()) SWIG_fail; | |
30861 | } | |
30862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30863 | return resultobj; | |
30864 | fail: | |
30865 | return NULL; | |
d14a1e28 RD |
30866 | } |
30867 | ||
30868 | ||
0085ce49 RD |
30869 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
30870 | int argc; | |
30871 | PyObject *argv[4]; | |
30872 | ||
30873 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
30874 | --argc; | |
30875 | if ((argc >= 2) && (argc <= 3)) { | |
30876 | int _v = 0; | |
30877 | if (argc > 2) { | |
30878 | { | |
30879 | void *vptr = 0; | |
30880 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
30881 | _v = SWIG_CheckState(res); | |
30882 | } | |
30883 | if (!_v) goto check_1; | |
30884 | } | |
30885 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); | |
30886 | } | |
30887 | check_1: | |
30888 | ||
30889 | if (argc == 3) { | |
30890 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
30891 | } | |
30892 | ||
30893 | fail: | |
30894 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
30895 | return NULL; | |
30896 | } | |
30897 | ||
30898 | ||
30899 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30900 | PyObject *resultobj = 0; | |
30901 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
30902 | PyObject *arg2 = (PyObject *) 0 ; | |
30903 | PyObject *arg3 = (PyObject *) 0 ; | |
30904 | void *argp1 = 0 ; | |
30905 | int res1 = 0 ; | |
30906 | PyObject * obj0 = 0 ; | |
30907 | PyObject * obj1 = 0 ; | |
30908 | PyObject * obj2 = 0 ; | |
30909 | char * kwnames[] = { | |
30910 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30911 | }; | |
30912 | ||
30913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
30915 | if (!SWIG_IsOK(res1)) { | |
30916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
30917 | } | |
30918 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
30919 | arg2 = obj1; | |
30920 | arg3 = obj2; | |
30921 | { | |
30922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30923 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30924 | wxPyEndAllowThreads(__tstate); | |
30925 | if (PyErr_Occurred()) SWIG_fail; | |
30926 | } | |
30927 | resultobj = SWIG_Py_Void(); | |
30928 | return resultobj; | |
30929 | fail: | |
30930 | return NULL; | |
30931 | } | |
30932 | ||
30933 | ||
30934 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30935 | PyObject *obj; | |
30936 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30937 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
30938 | return SWIG_Py_Void(); | |
30939 | } | |
30940 | ||
30941 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30942 | return SWIG_Python_InitShadowInstance(args); | |
30943 | } | |
30944 | ||
30945 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30946 | PyObject *resultobj = 0; | |
30947 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30948 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30949 | wxString *arg3 = 0 ; | |
30950 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30951 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30952 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30953 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30954 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
30955 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
30956 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30957 | wxPyPreviewFrame *result = 0 ; | |
30958 | void *argp1 = 0 ; | |
30959 | int res1 = 0 ; | |
30960 | void *argp2 = 0 ; | |
30961 | int res2 = 0 ; | |
30962 | bool temp3 = false ; | |
30963 | wxPoint temp4 ; | |
30964 | wxSize temp5 ; | |
30965 | long val6 ; | |
30966 | int ecode6 = 0 ; | |
30967 | bool temp7 = false ; | |
30968 | PyObject * obj0 = 0 ; | |
30969 | PyObject * obj1 = 0 ; | |
30970 | PyObject * obj2 = 0 ; | |
30971 | PyObject * obj3 = 0 ; | |
30972 | PyObject * obj4 = 0 ; | |
30973 | PyObject * obj5 = 0 ; | |
30974 | PyObject * obj6 = 0 ; | |
30975 | char * kwnames[] = { | |
30976 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30977 | }; | |
30978 | ||
30979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30981 | if (!SWIG_IsOK(res1)) { | |
30982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30983 | } | |
30984 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30985 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30986 | if (!SWIG_IsOK(res2)) { | |
30987 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30988 | } | |
30989 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30990 | { | |
30991 | arg3 = wxString_in_helper(obj2); | |
30992 | if (arg3 == NULL) SWIG_fail; | |
30993 | temp3 = true; | |
30994 | } | |
30995 | if (obj3) { | |
d14a1e28 | 30996 | { |
0085ce49 RD |
30997 | arg4 = &temp4; |
30998 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d14a1e28 | 30999 | } |
0085ce49 RD |
31000 | } |
31001 | if (obj4) { | |
d14a1e28 | 31002 | { |
0085ce49 RD |
31003 | arg5 = &temp5; |
31004 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d14a1e28 | 31005 | } |
0085ce49 RD |
31006 | } |
31007 | if (obj5) { | |
31008 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31009 | if (!SWIG_IsOK(ecode6)) { | |
31010 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
31011 | } | |
31012 | arg6 = static_cast< long >(val6); | |
31013 | } | |
31014 | if (obj6) { | |
db3e571a | 31015 | { |
0085ce49 RD |
31016 | arg7 = wxString_in_helper(obj6); |
31017 | if (arg7 == NULL) SWIG_fail; | |
31018 | temp7 = true; | |
db3e571a | 31019 | } |
0085ce49 RD |
31020 | } |
31021 | { | |
31022 | if (!wxPyCheckForApp()) SWIG_fail; | |
31023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31024 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
31025 | wxPyEndAllowThreads(__tstate); | |
31026 | if (PyErr_Occurred()) SWIG_fail; | |
31027 | } | |
31028 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
31029 | { | |
31030 | if (temp3) | |
31031 | delete arg3; | |
31032 | } | |
31033 | { | |
31034 | if (temp7) | |
31035 | delete arg7; | |
31036 | } | |
31037 | return resultobj; | |
31038 | fail: | |
31039 | { | |
31040 | if (temp3) | |
31041 | delete arg3; | |
31042 | } | |
31043 | { | |
31044 | if (temp7) | |
31045 | delete arg7; | |
31046 | } | |
31047 | return NULL; | |
31048 | } | |
31049 | ||
31050 | ||
31051 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31052 | PyObject *resultobj = 0; | |
31053 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31054 | PyObject *arg2 = (PyObject *) 0 ; | |
31055 | PyObject *arg3 = (PyObject *) 0 ; | |
31056 | void *argp1 = 0 ; | |
31057 | int res1 = 0 ; | |
31058 | PyObject * obj0 = 0 ; | |
31059 | PyObject * obj1 = 0 ; | |
31060 | PyObject * obj2 = 0 ; | |
31061 | char * kwnames[] = { | |
31062 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31063 | }; | |
31064 | ||
31065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31067 | if (!SWIG_IsOK(res1)) { | |
31068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31069 | } | |
31070 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31071 | arg2 = obj1; | |
31072 | arg3 = obj2; | |
31073 | { | |
31074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31075 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31076 | wxPyEndAllowThreads(__tstate); | |
31077 | if (PyErr_Occurred()) SWIG_fail; | |
31078 | } | |
31079 | resultobj = SWIG_Py_Void(); | |
31080 | return resultobj; | |
31081 | fail: | |
31082 | return NULL; | |
31083 | } | |
31084 | ||
31085 | ||
31086 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31087 | PyObject *resultobj = 0; | |
31088 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31089 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
31090 | void *argp1 = 0 ; | |
31091 | int res1 = 0 ; | |
31092 | void *argp2 = 0 ; | |
31093 | int res2 = 0 ; | |
31094 | PyObject * obj0 = 0 ; | |
31095 | PyObject * obj1 = 0 ; | |
31096 | char * kwnames[] = { | |
31097 | (char *) "self",(char *) "canvas", NULL | |
31098 | }; | |
31099 | ||
31100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
31101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31102 | if (!SWIG_IsOK(res1)) { | |
31103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31104 | } | |
31105 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31106 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
31107 | if (!SWIG_IsOK(res2)) { | |
31108 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
31109 | } | |
31110 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
31111 | { | |
31112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31113 | (arg1)->SetPreviewCanvas(arg2); | |
31114 | wxPyEndAllowThreads(__tstate); | |
31115 | if (PyErr_Occurred()) SWIG_fail; | |
31116 | } | |
31117 | resultobj = SWIG_Py_Void(); | |
31118 | return resultobj; | |
31119 | fail: | |
31120 | return NULL; | |
31121 | } | |
31122 | ||
31123 | ||
31124 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31125 | PyObject *resultobj = 0; | |
31126 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31127 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
31128 | void *argp1 = 0 ; | |
31129 | int res1 = 0 ; | |
31130 | void *argp2 = 0 ; | |
31131 | int res2 = 0 ; | |
31132 | PyObject * obj0 = 0 ; | |
31133 | PyObject * obj1 = 0 ; | |
31134 | char * kwnames[] = { | |
31135 | (char *) "self",(char *) "bar", NULL | |
31136 | }; | |
31137 | ||
31138 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
31139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31140 | if (!SWIG_IsOK(res1)) { | |
31141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31142 | } | |
31143 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31144 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
31145 | if (!SWIG_IsOK(res2)) { | |
31146 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
31147 | } | |
31148 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
31149 | { | |
31150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31151 | (arg1)->SetControlBar(arg2); | |
31152 | wxPyEndAllowThreads(__tstate); | |
31153 | if (PyErr_Occurred()) SWIG_fail; | |
31154 | } | |
31155 | resultobj = SWIG_Py_Void(); | |
31156 | return resultobj; | |
31157 | fail: | |
31158 | return NULL; | |
db3e571a RD |
31159 | } |
31160 | ||
31161 | ||
0085ce49 RD |
31162 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31163 | PyObject *resultobj = 0; | |
31164 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31165 | void *argp1 = 0 ; | |
31166 | int res1 = 0 ; | |
31167 | PyObject *swig_obj[1] ; | |
31168 | ||
31169 | if (!args) SWIG_fail; | |
31170 | swig_obj[0] = args; | |
31171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31172 | if (!SWIG_IsOK(res1)) { | |
31173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31174 | } | |
31175 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31176 | { | |
31177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31178 | (arg1)->Initialize(); | |
31179 | wxPyEndAllowThreads(__tstate); | |
31180 | if (PyErr_Occurred()) SWIG_fail; | |
31181 | } | |
31182 | resultobj = SWIG_Py_Void(); | |
31183 | return resultobj; | |
31184 | fail: | |
31185 | return NULL; | |
976dbff5 RD |
31186 | } |
31187 | ||
31188 | ||
0085ce49 RD |
31189 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31190 | PyObject *resultobj = 0; | |
31191 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31192 | void *argp1 = 0 ; | |
31193 | int res1 = 0 ; | |
31194 | PyObject *swig_obj[1] ; | |
31195 | ||
31196 | if (!args) SWIG_fail; | |
31197 | swig_obj[0] = args; | |
31198 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31199 | if (!SWIG_IsOK(res1)) { | |
31200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31201 | } | |
31202 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31203 | { | |
31204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31205 | (arg1)->CreateCanvas(); | |
31206 | wxPyEndAllowThreads(__tstate); | |
31207 | if (PyErr_Occurred()) SWIG_fail; | |
31208 | } | |
31209 | resultobj = SWIG_Py_Void(); | |
31210 | return resultobj; | |
31211 | fail: | |
31212 | return NULL; | |
1cb4a8aa RD |
31213 | } |
31214 | ||
31215 | ||
0085ce49 RD |
31216 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31217 | PyObject *resultobj = 0; | |
31218 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
31219 | void *argp1 = 0 ; | |
31220 | int res1 = 0 ; | |
31221 | PyObject *swig_obj[1] ; | |
31222 | ||
31223 | if (!args) SWIG_fail; | |
31224 | swig_obj[0] = args; | |
31225 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
31226 | if (!SWIG_IsOK(res1)) { | |
31227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
31228 | } | |
31229 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
31230 | { | |
31231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31232 | (arg1)->CreateControlBar(); | |
31233 | wxPyEndAllowThreads(__tstate); | |
31234 | if (PyErr_Occurred()) SWIG_fail; | |
31235 | } | |
31236 | resultobj = SWIG_Py_Void(); | |
31237 | return resultobj; | |
31238 | fail: | |
31239 | return NULL; | |
31240 | } | |
31241 | ||
31242 | ||
31243 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31244 | PyObject *obj; | |
31245 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31246 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
31247 | return SWIG_Py_Void(); | |
31248 | } | |
31249 | ||
31250 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31251 | return SWIG_Python_InitShadowInstance(args); | |
31252 | } | |
31253 | ||
31254 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31255 | PyObject *resultobj = 0; | |
31256 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
31257 | long arg2 ; | |
31258 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31259 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31260 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31261 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31262 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31263 | long arg6 = (long) 0 ; | |
31264 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
31265 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31266 | wxPyPreviewControlBar *result = 0 ; | |
31267 | void *argp1 = 0 ; | |
31268 | int res1 = 0 ; | |
31269 | long val2 ; | |
31270 | int ecode2 = 0 ; | |
31271 | void *argp3 = 0 ; | |
31272 | int res3 = 0 ; | |
31273 | wxPoint temp4 ; | |
31274 | wxSize temp5 ; | |
31275 | long val6 ; | |
31276 | int ecode6 = 0 ; | |
31277 | bool temp7 = false ; | |
31278 | PyObject * obj0 = 0 ; | |
31279 | PyObject * obj1 = 0 ; | |
31280 | PyObject * obj2 = 0 ; | |
31281 | PyObject * obj3 = 0 ; | |
31282 | PyObject * obj4 = 0 ; | |
31283 | PyObject * obj5 = 0 ; | |
31284 | PyObject * obj6 = 0 ; | |
31285 | char * kwnames[] = { | |
31286 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
31287 | }; | |
31288 | ||
31289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
31291 | if (!SWIG_IsOK(res1)) { | |
31292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
31293 | } | |
31294 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
31295 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
31296 | if (!SWIG_IsOK(ecode2)) { | |
31297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
31298 | } | |
31299 | arg2 = static_cast< long >(val2); | |
31300 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31301 | if (!SWIG_IsOK(res3)) { | |
31302 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
31303 | } | |
31304 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
31305 | if (obj3) { | |
093d3ff1 | 31306 | { |
0085ce49 RD |
31307 | arg4 = &temp4; |
31308 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 31309 | } |
0085ce49 RD |
31310 | } |
31311 | if (obj4) { | |
093d3ff1 | 31312 | { |
0085ce49 RD |
31313 | arg5 = &temp5; |
31314 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 31315 | } |
0085ce49 RD |
31316 | } |
31317 | if (obj5) { | |
31318 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
31319 | if (!SWIG_IsOK(ecode6)) { | |
31320 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
31321 | } | |
31322 | arg6 = static_cast< long >(val6); | |
31323 | } | |
31324 | if (obj6) { | |
093d3ff1 | 31325 | { |
0085ce49 RD |
31326 | arg7 = wxString_in_helper(obj6); |
31327 | if (arg7 == NULL) SWIG_fail; | |
31328 | temp7 = true; | |
093d3ff1 | 31329 | } |
0085ce49 RD |
31330 | } |
31331 | { | |
31332 | if (!wxPyCheckForApp()) SWIG_fail; | |
31333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31334 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
31335 | wxPyEndAllowThreads(__tstate); | |
31336 | if (PyErr_Occurred()) SWIG_fail; | |
31337 | } | |
31338 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
31339 | { | |
31340 | if (temp7) | |
31341 | delete arg7; | |
31342 | } | |
31343 | return resultobj; | |
31344 | fail: | |
31345 | { | |
31346 | if (temp7) | |
31347 | delete arg7; | |
31348 | } | |
31349 | return NULL; | |
31350 | } | |
31351 | ||
31352 | ||
31353 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31354 | PyObject *resultobj = 0; | |
31355 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31356 | PyObject *arg2 = (PyObject *) 0 ; | |
31357 | PyObject *arg3 = (PyObject *) 0 ; | |
31358 | void *argp1 = 0 ; | |
31359 | int res1 = 0 ; | |
31360 | PyObject * obj0 = 0 ; | |
31361 | PyObject * obj1 = 0 ; | |
31362 | PyObject * obj2 = 0 ; | |
31363 | char * kwnames[] = { | |
31364 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31365 | }; | |
31366 | ||
31367 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31369 | if (!SWIG_IsOK(res1)) { | |
31370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31371 | } | |
31372 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31373 | arg2 = obj1; | |
31374 | arg3 = obj2; | |
31375 | { | |
31376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31377 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31378 | wxPyEndAllowThreads(__tstate); | |
31379 | if (PyErr_Occurred()) SWIG_fail; | |
31380 | } | |
31381 | resultobj = SWIG_Py_Void(); | |
31382 | return resultobj; | |
31383 | fail: | |
31384 | return NULL; | |
31385 | } | |
31386 | ||
31387 | ||
31388 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31389 | PyObject *resultobj = 0; | |
31390 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31391 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
31392 | void *argp1 = 0 ; | |
31393 | int res1 = 0 ; | |
31394 | void *argp2 = 0 ; | |
31395 | int res2 = 0 ; | |
31396 | PyObject * obj0 = 0 ; | |
31397 | PyObject * obj1 = 0 ; | |
31398 | char * kwnames[] = { | |
31399 | (char *) "self",(char *) "preview", NULL | |
31400 | }; | |
31401 | ||
31402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
31403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31404 | if (!SWIG_IsOK(res1)) { | |
31405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31406 | } | |
31407 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31408 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
31409 | if (!SWIG_IsOK(res2)) { | |
31410 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
31411 | } | |
31412 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
31413 | { | |
31414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31415 | (arg1)->SetPrintPreview(arg2); | |
31416 | wxPyEndAllowThreads(__tstate); | |
31417 | if (PyErr_Occurred()) SWIG_fail; | |
31418 | } | |
31419 | resultobj = SWIG_Py_Void(); | |
31420 | return resultobj; | |
31421 | fail: | |
31422 | return NULL; | |
1cb4a8aa RD |
31423 | } |
31424 | ||
31425 | ||
0085ce49 RD |
31426 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31427 | PyObject *resultobj = 0; | |
31428 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31429 | void *argp1 = 0 ; | |
31430 | int res1 = 0 ; | |
31431 | PyObject *swig_obj[1] ; | |
31432 | ||
31433 | if (!args) SWIG_fail; | |
31434 | swig_obj[0] = args; | |
31435 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31436 | if (!SWIG_IsOK(res1)) { | |
31437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31438 | } | |
31439 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31440 | { | |
31441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31442 | (arg1)->CreateButtons(); | |
31443 | wxPyEndAllowThreads(__tstate); | |
31444 | if (PyErr_Occurred()) SWIG_fail; | |
31445 | } | |
31446 | resultobj = SWIG_Py_Void(); | |
31447 | return resultobj; | |
31448 | fail: | |
31449 | return NULL; | |
31450 | } | |
31451 | ||
31452 | ||
31453 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31454 | PyObject *resultobj = 0; | |
31455 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
31456 | int arg2 ; | |
31457 | void *argp1 = 0 ; | |
31458 | int res1 = 0 ; | |
31459 | int val2 ; | |
31460 | int ecode2 = 0 ; | |
31461 | PyObject * obj0 = 0 ; | |
31462 | PyObject * obj1 = 0 ; | |
31463 | char * kwnames[] = { | |
31464 | (char *) "self",(char *) "zoom", NULL | |
31465 | }; | |
31466 | ||
31467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
31468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
31469 | if (!SWIG_IsOK(res1)) { | |
31470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
31471 | } | |
31472 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
31473 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31474 | if (!SWIG_IsOK(ecode2)) { | |
31475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
31476 | } | |
31477 | arg2 = static_cast< int >(val2); | |
31478 | { | |
31479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31480 | (arg1)->SetZoomControl(arg2); | |
31481 | wxPyEndAllowThreads(__tstate); | |
31482 | if (PyErr_Occurred()) SWIG_fail; | |
31483 | } | |
31484 | resultobj = SWIG_Py_Void(); | |
31485 | return resultobj; | |
31486 | fail: | |
31487 | return NULL; | |
1cb4a8aa RD |
31488 | } |
31489 | ||
31490 | ||
0085ce49 RD |
31491 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31492 | PyObject *obj; | |
31493 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31494 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
31495 | return SWIG_Py_Void(); | |
1cb4a8aa RD |
31496 | } |
31497 | ||
0085ce49 RD |
31498 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31499 | return SWIG_Python_InitShadowInstance(args); | |
1cb4a8aa RD |
31500 | } |
31501 | ||
d3b6e4ff | 31502 | static PyMethodDef SwigMethods[] = { |
093d3ff1 | 31503 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31504 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
093d3ff1 | 31505 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31506 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
093d3ff1 RD |
31507 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31508 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31509 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31510 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31511 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31512 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31513 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31514 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31515 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31516 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31517 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31518 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
093d3ff1 | 31519 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31520 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
093d3ff1 | 31521 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31522 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
31523 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
093d3ff1 RD |
31524 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
31525 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
0085ce49 | 31526 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
093d3ff1 RD |
31527 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
31528 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31529 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
093d3ff1 RD |
31530 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31531 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31532 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31533 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31534 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31535 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
093d3ff1 | 31536 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31537 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
01f6b6d3 | 31538 | { (char *)"TopLevelWindow_IsAlwaysMaximized", (PyCFunction)_wrap_TopLevelWindow_IsAlwaysMaximized, METH_O, NULL}, |
0085ce49 RD |
31539 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, |
31540 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
093d3ff1 RD |
31541 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
31542 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31543 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31544 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
093d3ff1 | 31545 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31546 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
70d7cb34 | 31547 | { (char *)"TopLevelWindow_EnableCloseButton", (PyCFunction) _wrap_TopLevelWindow_EnableCloseButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31548 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
31549 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31550 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
093d3ff1 | 31551 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31552 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 31553 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
10044bf1 RD |
31554 | { (char *)"TopLevelWindow_GetDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetDefaultItem, METH_O, NULL}, |
31555 | { (char *)"TopLevelWindow_SetDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31556 | { (char *)"TopLevelWindow_SetTmpDefaultItem", (PyCFunction) _wrap_TopLevelWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31557 | { (char *)"TopLevelWindow_GetTmpDefaultItem", (PyCFunction)_wrap_TopLevelWindow_GetTmpDefaultItem, METH_O, NULL}, | |
093d3ff1 RD |
31558 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
31559 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31560 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31561 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31562 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
093d3ff1 | 31563 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31564 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
093d3ff1 RD |
31565 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
31566 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31567 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
093d3ff1 RD |
31568 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31569 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31570 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31571 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31572 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31573 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31574 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
093d3ff1 | 31575 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31576 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
093d3ff1 RD |
31577 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31578 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31579 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31580 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31581 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31582 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31583 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31584 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
093d3ff1 RD |
31585 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31586 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31587 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 31588 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31589 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 31590 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31591 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
093d3ff1 | 31592 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 RD |
31593 | { (char *)"Dialog__CreateButtonSizer", (PyCFunction) _wrap_Dialog__CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
31594 | { (char *)"Dialog_CreateSeparatedButtonSizer", (PyCFunction) _wrap_Dialog_CreateSeparatedButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
e505d15e | 31595 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31596 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
31597 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
093d3ff1 RD |
31598 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
31599 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31600 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31601 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31602 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31603 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
093d3ff1 RD |
31604 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31605 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31606 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31607 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31608 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31609 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
093d3ff1 | 31610 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31611 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31612 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31613 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
31614 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
31615 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
093d3ff1 | 31616 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31617 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31618 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31619 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
093d3ff1 RD |
31620 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31621 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31622 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
093d3ff1 RD |
31623 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
31624 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31625 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31626 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31627 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31628 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31629 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31630 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31631 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
31632 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
093d3ff1 RD |
31633 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31634 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31635 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31636 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31637 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
093d3ff1 | 31638 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31639 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
31640 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
093d3ff1 | 31641 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31642 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
093d3ff1 RD |
31643 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31644 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31645 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31646 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31647 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31648 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
31649 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
093d3ff1 RD |
31650 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
31651 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31652 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
31653 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
093d3ff1 | 31654 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31655 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
093d3ff1 | 31656 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31657 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
093d3ff1 | 31658 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31659 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
093d3ff1 | 31660 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31661 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31662 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31663 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
093d3ff1 RD |
31664 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
31665 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31666 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31667 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31668 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31669 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
31670 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
31671 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
31672 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
093d3ff1 | 31673 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31674 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31675 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31676 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31677 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31678 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31679 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31680 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31681 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31682 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31683 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31684 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
093d3ff1 | 31685 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31686 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
093d3ff1 RD |
31687 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31688 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31689 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
31690 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
093d3ff1 RD |
31691 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
31692 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31693 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
31694 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
093d3ff1 | 31695 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31696 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 31697 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31698 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31699 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31700 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31701 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
093d3ff1 | 31702 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31703 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
093d3ff1 | 31704 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31705 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
093d3ff1 | 31706 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31707 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31708 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31709 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31710 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
093d3ff1 | 31711 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31712 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 31713 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31714 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
093d3ff1 | 31715 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31716 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
093d3ff1 | 31717 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31718 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
093d3ff1 | 31719 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31720 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31721 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31722 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31723 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 31724 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31725 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
093d3ff1 | 31726 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31727 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31728 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31729 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
093d3ff1 | 31730 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31731 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
31732 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
093d3ff1 RD |
31733 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
31734 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31735 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31736 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
31737 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
31738 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
31739 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
093d3ff1 RD |
31740 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31741 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31742 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31743 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31744 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31745 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31746 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31747 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31748 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31749 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31750 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31751 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31752 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31753 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31754 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31755 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction)_wrap_PopupTransientWindow_Dismiss, METH_O, NULL}, |
093d3ff1 | 31756 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31757 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31758 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31759 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31760 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
093d3ff1 | 31761 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31762 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31763 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31764 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31765 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31766 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31767 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31768 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
31769 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
31770 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31771 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31772 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31773 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
31774 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
31775 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
31776 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
70b7a5fe | 31777 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31778 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
31779 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
31780 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31781 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31782 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31783 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31784 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31785 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
31786 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31787 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31788 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
31789 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
31790 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
093d3ff1 RD |
31791 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31792 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31793 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
31794 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
093d3ff1 | 31795 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31796 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
31797 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
093d3ff1 | 31798 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31799 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
093d3ff1 RD |
31800 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31801 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31802 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31803 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31804 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
31805 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
093d3ff1 RD |
31806 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
31807 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31808 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
75219dcb RD |
31809 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
31810 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31811 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31812 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31813 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31814 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
31815 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31816 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31817 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31818 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 31819 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31820 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
0085ce49 RD |
31821 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
31822 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
31823 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
093d3ff1 | 31824 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31825 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
31826 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
31827 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
093d3ff1 | 31828 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31829 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
093d3ff1 RD |
31830 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
31831 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31832 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31833 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
31834 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
31835 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
31836 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
31837 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
31838 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
31839 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
093d3ff1 RD |
31840 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
31841 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31842 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31843 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31844 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31845 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31846 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31847 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
093d3ff1 | 31848 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31849 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 31850 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31851 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31852 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
31853 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
093d3ff1 RD |
31854 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31855 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31856 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31857 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31858 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31859 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31860 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31861 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31862 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31863 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31864 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31865 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
31866 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
31867 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
31868 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
31869 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
0085ce49 RD |
31870 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, |
31871 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
31872 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
093d3ff1 | 31873 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31874 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31875 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31876 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 31877 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
093d3ff1 | 31878 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31879 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31880 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31881 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
31882 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
093d3ff1 RD |
31883 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31884 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31885 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31886 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31887 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
093d3ff1 RD |
31888 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
31889 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31890 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31891 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31892 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31893 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
27e45892 RD |
31894 | { (char *)"new_NumberEntryDialog", (PyCFunction) _wrap_new_NumberEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31895 | { (char *)"NumberEntryDialog_GetValue", (PyCFunction)_wrap_NumberEntryDialog_GetValue, METH_O, NULL}, | |
31896 | { (char *)"NumberEntryDialog_swigregister", NumberEntryDialog_swigregister, METH_VARARGS, NULL}, | |
31897 | { (char *)"NumberEntryDialog_swiginit", NumberEntryDialog_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
31898 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, |
31899 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
093d3ff1 | 31900 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31901 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
31902 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
31903 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
31904 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
31905 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
31906 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
093d3ff1 RD |
31907 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
31908 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31909 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31910 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31911 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31912 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31913 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31914 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31915 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31916 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
093d3ff1 | 31917 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31918 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
32fe5131 | 31919 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31920 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31921 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31922 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31923 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31924 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
6b449b19 | 31925 | { (char *)"ProgressDialog_Pulse", (PyCFunction) _wrap_ProgressDialog_Pulse, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31926 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
093d3ff1 | 31927 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31928 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31929 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31930 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
31931 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
31932 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
31933 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
093d3ff1 RD |
31934 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31935 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31936 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31937 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31938 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31939 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31940 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
31941 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
31942 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
31943 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
093d3ff1 RD |
31944 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31945 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31946 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31947 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31948 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31949 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31950 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
093d3ff1 | 31951 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31952 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
093d3ff1 RD |
31953 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31954 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31955 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31956 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31957 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31958 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31959 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
31960 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
31961 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
31962 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
31963 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
31964 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
093d3ff1 RD |
31965 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
31966 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31967 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31968 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31969 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31970 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31971 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
093d3ff1 | 31972 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31973 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31974 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31975 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31976 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31977 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 31978 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31979 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31980 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31981 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31982 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 31983 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
31984 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31985 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31986 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31987 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31988 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
31989 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
31990 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
31991 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
31992 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
31993 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
31994 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31995 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31996 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31997 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31998 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
093d3ff1 RD |
31999 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32000 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 32001 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
32002 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32003 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32004 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32005 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32006 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
32007 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
32008 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
32009 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
32010 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
32011 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
32012 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 32013 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32014 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32015 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32016 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
32017 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32018 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 32019 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
32020 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32021 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32022 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32023 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32024 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
32025 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
32026 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
32027 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
32028 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
32029 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
32030 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 32031 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32032 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32033 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
0085ce49 RD |
32034 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
32035 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
32036 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
32037 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
b39fe951 | 32038 | { (char *)"PrintData_IsOk", (PyCFunction)_wrap_PrintData_IsOk, METH_O, NULL}, |
0085ce49 RD |
32039 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, |
32040 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
32041 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
32042 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
32043 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
32044 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
32045 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
32046 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
8f514ab4 | 32047 | { (char *)"PrintData_GetMedia", (PyCFunction)_wrap_PrintData_GetMedia, METH_O, NULL}, |
093d3ff1 RD |
32048 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
32049 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32050 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32051 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32052 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32053 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32054 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32055 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32056 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32057 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32058 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 32059 | { (char *)"PrintData_SetMedia", (PyCFunction) _wrap_PrintData_SetMedia, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32060 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
093d3ff1 | 32061 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32062 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
b9d6a5f3 | 32063 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32064 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32065 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32066 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
0085ce49 | 32067 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
093d3ff1 RD |
32068 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
32069 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32070 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32071 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32072 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32073 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
32074 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
32075 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
32076 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
32077 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
32078 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
32079 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
32080 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
32081 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
32082 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
32083 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
32084 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
32085 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
32086 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
b39fe951 | 32087 | { (char *)"PageSetupDialogData_IsOk", (PyCFunction)_wrap_PageSetupDialogData_IsOk, METH_O, NULL}, |
093d3ff1 RD |
32088 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
32089 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32090 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32091 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32092 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32093 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32094 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32095 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32096 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32097 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
32098 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
093d3ff1 | 32099 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32100 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32101 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 32102 | { (char *)"delete_PageSetupDialog", (PyCFunction)_wrap_delete_PageSetupDialog, METH_O, NULL}, |
0085ce49 RD |
32103 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
32104 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
32105 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
093d3ff1 | 32106 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32107 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32108 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
0085ce49 RD |
32109 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
32110 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
32111 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
32112 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
32113 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
32114 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
32115 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
32116 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
32117 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
32118 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
093d3ff1 RD |
32119 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
32120 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32121 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32122 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32123 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32124 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32125 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32126 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32127 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32128 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32129 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32130 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32131 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32132 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
32133 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
32134 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
32135 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
b39fe951 | 32136 | { (char *)"PrintDialogData_IsOk", (PyCFunction)_wrap_PrintDialogData_IsOk, METH_O, NULL}, |
0085ce49 | 32137 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, |
093d3ff1 RD |
32138 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
32139 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32140 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32141 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
f05326ba | 32142 | { (char *)"delete_PrintDialog", (PyCFunction)_wrap_delete_PrintDialog, METH_O, NULL}, |
0085ce49 RD |
32143 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
32144 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
32145 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
32146 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
093d3ff1 | 32147 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32148 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32149 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32150 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
093d3ff1 RD |
32151 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
32152 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32153 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32154 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32155 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32156 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
32157 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
32158 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
093d3ff1 | 32159 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32160 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32161 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32162 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
093d3ff1 | 32163 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32164 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
32165 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
093d3ff1 | 32166 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 RD |
32167 | { (char *)"Printout_FitThisSizeToPaper", (PyCFunction) _wrap_Printout_FitThisSizeToPaper, METH_VARARGS | METH_KEYWORDS, NULL}, |
32168 | { (char *)"Printout_FitThisSizeToPage", (PyCFunction) _wrap_Printout_FitThisSizeToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32169 | { (char *)"Printout_FitThisSizeToPageMargins", (PyCFunction) _wrap_Printout_FitThisSizeToPageMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32170 | { (char *)"Printout_MapScreenSizeToPaper", (PyCFunction)_wrap_Printout_MapScreenSizeToPaper, METH_O, NULL}, | |
32171 | { (char *)"Printout_MapScreenSizeToPage", (PyCFunction)_wrap_Printout_MapScreenSizeToPage, METH_O, NULL}, | |
32172 | { (char *)"Printout_MapScreenSizeToPageMargins", (PyCFunction) _wrap_Printout_MapScreenSizeToPageMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32173 | { (char *)"Printout_MapScreenSizeToDevice", (PyCFunction)_wrap_Printout_MapScreenSizeToDevice, METH_O, NULL}, | |
32174 | { (char *)"Printout_GetLogicalPaperRect", (PyCFunction)_wrap_Printout_GetLogicalPaperRect, METH_O, NULL}, | |
32175 | { (char *)"Printout_GetLogicalPageRect", (PyCFunction)_wrap_Printout_GetLogicalPageRect, METH_O, NULL}, | |
32176 | { (char *)"Printout_GetLogicalPageMarginsRect", (PyCFunction) _wrap_Printout_GetLogicalPageMarginsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32177 | { (char *)"Printout_SetLogicalOrigin", (PyCFunction) _wrap_Printout_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32178 | { (char *)"Printout_OffsetLogicalOrigin", (PyCFunction) _wrap_Printout_OffsetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32179 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32180 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
093d3ff1 | 32181 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32182 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
093d3ff1 | 32183 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32184 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
093d3ff1 | 32185 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32186 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
70d7cb34 RD |
32187 | { (char *)"Printout_SetPaperRectPixels", (PyCFunction) _wrap_Printout_SetPaperRectPixels, METH_VARARGS | METH_KEYWORDS, NULL}, |
32188 | { (char *)"Printout_GetPaperRectPixels", (PyCFunction)_wrap_Printout_GetPaperRectPixels, METH_O, NULL}, | |
0085ce49 | 32189 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, |
093d3ff1 | 32190 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 | 32191 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32192 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
32193 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
32194 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
32195 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
c26d9ab4 | 32196 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32197 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
093d3ff1 | 32198 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32199 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32200 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
32201 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
0085ce49 | 32202 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32203 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32204 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
32205 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
32206 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
32207 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
093d3ff1 | 32208 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32209 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32210 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32211 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
093d3ff1 | 32212 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32213 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
32214 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
32215 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
32216 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
32217 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
32218 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
093d3ff1 | 32219 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32220 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 32221 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
0085ce49 | 32222 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
093d3ff1 | 32223 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 32224 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
093d3ff1 | 32225 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32226 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
32227 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
093d3ff1 RD |
32228 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
32229 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32230 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
32231 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
093d3ff1 RD |
32232 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
32233 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32234 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32235 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32236 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
093d3ff1 | 32237 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
32238 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
32239 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
32240 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
b39fe951 | 32241 | { (char *)"PrintPreview_IsOk", (PyCFunction)_wrap_PrintPreview_IsOk, METH_O, NULL}, |
093d3ff1 RD |
32242 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
32243 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32244 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
093d3ff1 | 32245 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32246 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32247 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
32248 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 32249 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32250 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32251 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
32252 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32253 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32254 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
32255 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
32256 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
32257 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
093d3ff1 | 32258 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32259 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
32260 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
32261 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
32262 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 | 32263 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
c26d9ab4 | 32264 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 32265 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 32266 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c32bde28 | 32267 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
32268 | }; |
32269 | ||
32270 | ||
32271 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32272 | ||
32273 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
32274 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32275 | } | |
32276 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32277 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32278 | } | |
32279 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32280 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32281 | } | |
32282 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32283 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32284 | } | |
32285 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32286 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32287 | } | |
32288 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32289 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32290 | } | |
32291 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32292 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32293 | } | |
32294 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
32295 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32296 | } | |
32297 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32298 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32299 | } | |
32300 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32301 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32302 | } | |
32303 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
32304 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32305 | } | |
d14a1e28 RD |
32306 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { |
32307 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32308 | } | |
34e0a3bb RD |
32309 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
32310 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32311 | } | |
2131d850 RD |
32312 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
32313 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32314 | } | |
d14a1e28 RD |
32315 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { |
32316 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
32317 | } | |
32318 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32319 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32320 | } | |
32321 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32322 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32323 | } | |
32324 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32325 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32326 | } | |
32327 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32328 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32329 | } | |
32330 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32331 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32332 | } | |
32333 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32334 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32335 | } | |
32336 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32337 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32338 | } | |
32339 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32340 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32341 | } | |
53aa7709 RD |
32342 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
32343 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
32344 | } | |
d14a1e28 RD |
32345 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
32346 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32347 | } | |
32348 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32349 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32350 | } | |
34e0a3bb RD |
32351 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
32352 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32353 | } | |
d14a1e28 RD |
32354 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { |
32355 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32356 | } | |
32357 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32358 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32359 | } | |
32360 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32361 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32362 | } | |
32363 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32364 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32365 | } | |
32366 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32367 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32368 | } | |
32369 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32370 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32371 | } | |
32372 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32373 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32374 | } | |
32375 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32376 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32377 | } | |
32378 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
32379 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
32380 | } | |
32381 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
32382 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
32383 | } | |
32384 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32385 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32386 | } | |
32387 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32388 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32389 | } | |
32390 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32391 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32392 | } | |
32393 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32394 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32395 | } | |
32396 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32397 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32398 | } | |
32399 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32400 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32401 | } | |
32402 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32403 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32404 | } | |
32405 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
32406 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
32407 | } | |
32408 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
32409 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32410 | } | |
d3b6e4ff RD |
32411 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
32412 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32413 | } | |
d14a1e28 RD |
32414 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
32415 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32416 | } | |
32417 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
32418 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32419 | } | |
32420 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
32421 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
32422 | } | |
32423 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32424 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32425 | } | |
32426 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32427 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32428 | } | |
32429 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32430 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32431 | } | |
32432 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32433 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32434 | } | |
d3b6e4ff RD |
32435 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
32436 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32437 | } | |
d14a1e28 RD |
32438 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
32439 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32440 | } | |
32441 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
32442 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32443 | } | |
32444 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
32445 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32446 | } | |
32447 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
32448 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32449 | } | |
27e45892 RD |
32450 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
32451 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32452 | } | |
d14a1e28 RD |
32453 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
32454 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32455 | } | |
32456 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
32457 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32458 | } | |
32459 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
32460 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32461 | } | |
32462 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
32463 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
32464 | } | |
32465 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
32466 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
32467 | } | |
32468 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32469 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32470 | } | |
32471 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
32472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32473 | } | |
32474 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
32475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32476 | } | |
32477 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
32478 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
32479 | } | |
32480 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
32481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32482 | } | |
32483 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
32484 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
32485 | } | |
32486 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
32487 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
32488 | } | |
32489 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
32490 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
32491 | } | |
32492 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32493 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32494 | } | |
32495 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
32496 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32497 | } | |
32498 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
32499 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
32500 | } | |
32501 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
32502 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
32503 | } | |
1cb4a8aa RD |
32504 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { |
32505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32506 | } | |
d14a1e28 RD |
32507 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { |
32508 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32509 | } | |
32510 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32511 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32512 | } | |
32513 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
32514 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32515 | } | |
32516 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
32517 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32518 | } | |
32519 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32520 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32521 | } | |
32522 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32523 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32524 | } | |
32525 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
32526 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
32527 | } | |
32528 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
32529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32530 | } | |
32531 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
32532 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32533 | } | |
32534 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
32535 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32536 | } | |
32537 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32538 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32539 | } | |
32540 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
32541 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32542 | } | |
5e483524 RD |
32543 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
32544 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
32545 | } |
32546 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
32547 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32548 | } | |
d14a1e28 RD |
32549 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
32550 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32551 | } | |
32552 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
32553 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32554 | } | |
32555 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
32556 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32557 | } | |
d3b6e4ff RD |
32558 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
32559 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32560 | } | |
d14a1e28 RD |
32561 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
32562 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32563 | } | |
32564 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
32565 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32566 | } | |
32567 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
32568 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
32569 | } | |
32570 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
32571 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
32572 | } | |
32573 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
32574 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
32575 | } | |
32576 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
32577 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32578 | } | |
32579 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
32580 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
32581 | } | |
32582 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
32583 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
32584 | } | |
32585 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
32586 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
32587 | } | |
32588 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32589 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32590 | } | |
32591 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
32592 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
32593 | } | |
32594 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
32595 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32596 | } | |
32597 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
32598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32599 | } | |
d14a1e28 RD |
32600 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
32601 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32602 | } | |
34e0a3bb RD |
32603 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
32604 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32605 | } | |
d14a1e28 RD |
32606 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
32607 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32608 | } | |
32609 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32610 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32611 | } | |
32612 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32613 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32614 | } | |
32615 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32616 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32617 | } | |
32618 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32619 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32620 | } | |
32621 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32622 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32623 | } | |
32624 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32625 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32626 | } | |
32627 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
32628 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
32629 | } | |
32630 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32631 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32632 | } | |
32633 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
32634 | return (void *)((wxObject *) ((wxFontData *) x)); | |
32635 | } | |
32636 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
32637 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
32638 | } | |
32639 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32640 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32641 | } | |
32642 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32643 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32644 | } | |
32645 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32646 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32647 | } | |
32648 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
32649 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
32650 | } | |
5e483524 RD |
32651 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
32652 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d14a1e28 RD |
32653 | } |
32654 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
32655 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32656 | } | |
2131d850 RD |
32657 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
32658 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32659 | } | |
d14a1e28 RD |
32660 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
32661 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32662 | } | |
32663 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32664 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32665 | } | |
32666 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32667 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32668 | } | |
32669 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32670 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32671 | } | |
32672 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32673 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32674 | } | |
32675 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32676 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32677 | } | |
32678 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
32679 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32680 | } | |
32681 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32683 | } | |
32684 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32685 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32686 | } | |
32687 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
32688 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32689 | } | |
32690 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32691 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32692 | } | |
32693 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
32695 | } | |
32696 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32698 | } | |
32699 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32701 | } | |
32702 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
32703 | return (void *)((wxObject *) ((wxColourData *) x)); | |
32704 | } | |
32705 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32706 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32707 | } | |
32708 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32710 | } | |
32711 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
32712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
32713 | } | |
32714 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
32715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32716 | } | |
32717 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
32718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32719 | } | |
32720 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
32721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32722 | } | |
32723 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
32724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32725 | } | |
32726 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
32727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32728 | } | |
d3b6e4ff RD |
32729 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
32730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32731 | } | |
27e45892 RD |
32732 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
32733 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
32734 | } | |
d14a1e28 RD |
32735 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
32736 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32737 | } | |
32738 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
32739 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32740 | } | |
32741 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
32742 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32743 | } | |
32744 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32745 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32746 | } | |
32747 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
32748 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
32749 | } | |
32750 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32751 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32752 | } | |
53aa7709 RD |
32753 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
32754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32755 | } | |
d14a1e28 RD |
32756 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
32757 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32758 | } | |
32759 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32760 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32761 | } | |
32762 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32763 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32764 | } | |
32765 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32766 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32767 | } | |
32768 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32769 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32770 | } | |
32771 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32772 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32773 | } | |
32774 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32775 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32776 | } | |
32777 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32778 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32779 | } | |
d14a1e28 RD |
32780 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
32781 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32782 | } | |
32783 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32784 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32785 | } | |
32786 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32787 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32788 | } | |
32789 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32790 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32791 | } | |
32792 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32793 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32794 | } | |
32795 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32796 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32797 | } | |
32798 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32799 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32800 | } | |
32801 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32802 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32803 | } | |
32804 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32805 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32806 | } | |
943e8dfd RD |
32807 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
32808 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
32809 | } | |
d14a1e28 RD |
32810 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
32811 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32812 | } | |
943e8dfd RD |
32813 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
32814 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32815 | } | |
d14a1e28 RD |
32816 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
32817 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32818 | } | |
32819 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32820 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32821 | } | |
34e0a3bb RD |
32822 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
32823 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32824 | } | |
d14a1e28 RD |
32825 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
32826 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
32827 | } | |
32828 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
32829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32830 | } | |
32831 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
32832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32833 | } | |
e505d15e RD |
32834 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
32835 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32836 | } | |
d14a1e28 RD |
32837 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32838 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32839 | } | |
32840 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
32841 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32842 | } | |
32843 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32844 | return (void *)((wxObject *) ((wxImage *) x)); | |
32845 | } | |
32846 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
32847 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
32848 | } | |
32849 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
32850 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
32851 | } | |
32852 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32853 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32854 | } | |
32855 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
32856 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
32857 | } | |
32858 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
32859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
32860 | } | |
32861 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
32862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32863 | } | |
32864 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32865 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32866 | } | |
32867 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32868 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32869 | } | |
32870 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32871 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32872 | } | |
d14a1e28 RD |
32873 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
32874 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32875 | } | |
32876 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32877 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32878 | } | |
32879 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32880 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32881 | } | |
1e0c8722 RD |
32882 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
32883 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32884 | } | |
d14a1e28 RD |
32885 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
32886 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
32887 | } | |
32888 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
32889 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
32890 | } | |
32891 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
32892 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
32893 | } | |
32894 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
32895 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
32896 | } | |
32897 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
32898 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32899 | } | |
32900 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
32901 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
32902 | } | |
32903 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
32904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32905 | } | |
32906 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
32907 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32908 | } | |
32909 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
32910 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32911 | } | |
32912 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
32913 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
32914 | } | |
1cb4a8aa RD |
32915 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
32916 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32917 | } | |
d14a1e28 RD |
32918 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
32919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
32920 | } | |
32921 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
32922 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
32923 | } | |
32924 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
32925 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32926 | } | |
32927 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
32928 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
32929 | } | |
32930 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
32931 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32932 | } | |
32933 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
32934 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32935 | } | |
32936 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
32937 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32938 | } | |
32939 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
32940 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32941 | } | |
32942 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
8ac8dba0 | 32943 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d14a1e28 RD |
32944 | } |
32945 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
a68b8331 | 32946 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d14a1e28 RD |
32947 | } |
32948 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32949 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32950 | } | |
32951 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32952 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32953 | } | |
32954 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32955 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32956 | } | |
32957 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32958 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32959 | } | |
32960 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32961 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32962 | } | |
32963 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32964 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32965 | } | |
32966 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32967 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32968 | } | |
32969 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32971 | } | |
32972 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32973 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32974 | } | |
32975 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
32976 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32977 | } | |
32978 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
32979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32980 | } | |
32981 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32982 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32983 | } | |
32984 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32985 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32986 | } | |
32987 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32988 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32989 | } | |
32990 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32992 | } | |
32993 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
32994 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
32995 | } | |
32996 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
32997 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
32998 | } | |
32999 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33000 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33001 | } | |
33002 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33003 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33004 | } | |
33005 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
33006 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33007 | } | |
33008 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
33009 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33010 | } | |
33011 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
33012 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33013 | } | |
33014 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
33015 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33016 | } | |
33017 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
33018 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33019 | } | |
33020 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
33021 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33022 | } | |
33023 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
33024 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
33025 | } | |
33026 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
33027 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
33028 | } | |
33029 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
33030 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
33031 | } | |
33032 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
33033 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
33034 | } | |
33035 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
33036 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
33037 | } | |
33038 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
33039 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
33040 | } | |
d14a1e28 RD |
33041 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
33042 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
33043 | } | |
33044 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
33045 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
33046 | } | |
33047 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
33048 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
33049 | } | |
d14a1e28 RD |
33050 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { |
33051 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
33052 | } | |
27e45892 RD |
33053 | static void *_p_wxNumberEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33054 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxNumberEntryDialog *) x)); | |
33055 | } | |
d3b6e4ff RD |
33056 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33057 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33058 | } | |
d14a1e28 RD |
33059 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
33060 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
33061 | } | |
33062 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
33063 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33064 | } | |
33065 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
33066 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33067 | } | |
33068 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
33069 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
33070 | } | |
27e45892 RD |
33071 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
33072 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
33073 | } | |
d3b6e4ff RD |
33074 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
33075 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
33076 | } | |
d14a1e28 RD |
33077 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { |
33078 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
33079 | } | |
33080 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
33081 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33082 | } | |
33083 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
33084 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
33085 | } | |
33086 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
33087 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
33088 | } | |
33089 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
33090 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
33091 | } | |
33092 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33093 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33094 | } | |
33095 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
33096 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
33097 | } | |
33098 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
33099 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
33100 | } | |
33101 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
33102 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
33103 | } | |
27e45892 RD |
33104 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
33105 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
33106 | } | |
d3b6e4ff RD |
33107 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
33108 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33109 | } | |
d14a1e28 RD |
33110 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
33111 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
33112 | } | |
33113 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
33114 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33115 | } | |
33116 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
33117 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33118 | } | |
33119 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
33120 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
33121 | } | |
33122 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
33123 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
33124 | } | |
33125 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
33126 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
33127 | } | |
d14a1e28 RD |
33128 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
33129 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33130 | } | |
33131 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
33132 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
33133 | } | |
33134 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
33135 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
33136 | } | |
33137 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
33138 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
33139 | } | |
33140 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
33141 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
33142 | } | |
33143 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
33144 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
33145 | } | |
33146 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
33147 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
33148 | } | |
33149 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
33150 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
33151 | } | |
33152 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
33153 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
33154 | } | |
33155 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
33156 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
33157 | } | |
d3b6e4ff RD |
33158 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
33159 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
33160 | } | |
1cb4a8aa RD |
33161 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
33162 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33163 | } | |
d14a1e28 RD |
33164 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
33165 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33166 | } | |
33167 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
33168 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
33169 | } | |
33170 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
33171 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
33172 | } | |
33173 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
33174 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
33175 | } | |
33176 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33177 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33178 | } | |
33179 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
33180 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
33181 | } | |
33182 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
33183 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33184 | } | |
33185 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
33186 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33187 | } | |
33188 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
33189 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33190 | } | |
33191 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
33192 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
33193 | } | |
33194 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
33195 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33196 | } | |
33197 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
33198 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
33199 | } | |
33200 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
33201 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
33202 | } | |
33203 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
33204 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
33205 | } | |
33206 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
33207 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
33208 | } | |
33209 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
33210 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
33211 | } | |
d14a1e28 RD |
33212 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
33213 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
33214 | } | |
1cb4a8aa RD |
33215 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { |
33216 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33217 | } | |
d14a1e28 RD |
33218 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { |
33219 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33220 | } | |
33221 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
33222 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
33223 | } | |
33224 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
33225 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
33226 | } | |
33227 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
33228 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
33229 | } | |
33230 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
33231 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
33232 | } | |
d14a1e28 RD |
33233 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
33234 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
33235 | } | |
33236 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
33237 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
33238 | } | |
33239 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
33240 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
33241 | } | |
33242 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
33243 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
33244 | } | |
d3b6e4ff RD |
33245 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
33246 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
33247 | } | |
27e45892 RD |
33248 | static void *_p_wxNumberEntryDialogTo_p_wxDialog(void *x) { |
33249 | return (void *)((wxDialog *) ((wxNumberEntryDialog *) x)); | |
33250 | } | |
d14a1e28 RD |
33251 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
33252 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
33253 | } | |
33254 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
33255 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
33256 | } | |
33257 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
33258 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
33259 | } | |
33260 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
33261 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
33262 | } | |
1cb4a8aa RD |
33263 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { |
33264 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
33265 | } | |
d14a1e28 RD |
33266 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { |
33267 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
33268 | } | |
33269 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
33270 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
33271 | } | |
33272 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
33273 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
33274 | } | |
33275 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
33276 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
33277 | } | |
33278 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
33279 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
33280 | } | |
33281 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
33282 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33283 | } | |
33284 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33285 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33286 | } | |
33287 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33288 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33289 | } | |
33290 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33291 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33292 | } | |
53aa7709 RD |
33293 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
33294 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
33295 | } | |
d14a1e28 RD |
33296 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
33297 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33298 | } | |
2131d850 RD |
33299 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { |
33300 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
33301 | } | |
d14a1e28 RD |
33302 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { |
33303 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
33304 | } | |
33305 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33306 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33307 | } | |
33308 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33309 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33310 | } | |
33311 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
33312 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
33313 | } | |
33314 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33315 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33316 | } | |
33317 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33318 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33319 | } | |
33320 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
33321 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
33322 | } | |
33323 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
33324 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
33325 | } | |
01f6b6d3 | 33326 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33327 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
33328 | 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}; | |
33329 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
33330 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
33331 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
33332 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
33333 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
33334 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
33335 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
33336 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
33337 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
33338 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
33339 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
2131d850 RD |
33340 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; |
33341 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 33342 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
2131d850 RD |
33343 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; |
33344 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
33345 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33346 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
33347 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
33348 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33349 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; |
33350 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
33351 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
33352 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
33353 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
33354 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
33355 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
33356 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
33357 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
33358 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
33359 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
33360 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 33361 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33362 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
33363 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
33364 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
33365 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
33366 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
33367 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
33368 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
33369 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
33370 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
33371 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
33372 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
33373 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
33374 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
33375 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
33376 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
33377 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
33378 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
33379 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
33380 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
33381 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
33382 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
33383 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
33384 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
33385 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
33386 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
33387 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
33388 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
33389 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
33390 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
33391 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
33392 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
33393 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
33394 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 33395 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33396 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
33397 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
33398 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
33399 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
33400 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
33401 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
33402 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
33403 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
33404 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
33405 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
33406 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
33407 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
27e45892 | 33408 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", "wxNumberEntryDialog *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
33409 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
33410 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 33411 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 33412 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33413 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
33414 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
33415 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
33416 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
33417 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
33418 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
33419 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
33420 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
33421 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
33422 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
33423 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
33424 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
33425 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
33426 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
33427 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
33428 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
33429 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
33430 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
33431 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 33432 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; |
2131d850 | 33433 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
33434 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; |
33435 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
33436 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
33437 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
33438 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
33439 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
33440 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
33441 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
33442 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
33443 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
33444 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
33445 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
33446 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
33447 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
33448 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
33449 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
33450 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
33451 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
33452 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
33453 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
33454 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
33455 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
33456 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
33457 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
33458 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
33459 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
33460 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
33461 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
33462 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
33463 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
33464 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
33465 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
33466 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
33467 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
33468 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
33469 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
33470 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
33471 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
33472 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
33473 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
33474 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
33475 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
33476 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
33477 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
33478 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
33479 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
33480 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
33481 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
33482 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
33483 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
33484 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
33485 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
33486 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
33487 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
33488 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
33489 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
33490 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32fe5131 RD |
33491 | |
33492 | static swig_type_info *swig_type_initial[] = { | |
01f6b6d3 | 33493 | &_swigt__p_bool, |
32fe5131 RD |
33494 | &_swigt__p_char, |
33495 | &_swigt__p_form_ops_t, | |
33496 | &_swigt__p_int, | |
33497 | &_swigt__p_unsigned_char, | |
33498 | &_swigt__p_unsigned_int, | |
33499 | &_swigt__p_unsigned_long, | |
33500 | &_swigt__p_wxANIHandler, | |
33501 | &_swigt__p_wxAcceleratorTable, | |
33502 | &_swigt__p_wxActivateEvent, | |
33503 | &_swigt__p_wxArrayInt, | |
33504 | &_swigt__p_wxBMPHandler, | |
33505 | &_swigt__p_wxBitmap, | |
33506 | &_swigt__p_wxBoxSizer, | |
33507 | &_swigt__p_wxCURHandler, | |
33508 | &_swigt__p_wxCalculateLayoutEvent, | |
33509 | &_swigt__p_wxChildFocusEvent, | |
2131d850 | 33510 | &_swigt__p_wxClipboardTextEvent, |
32fe5131 RD |
33511 | &_swigt__p_wxCloseEvent, |
33512 | &_swigt__p_wxColour, | |
33513 | &_swigt__p_wxColourData, | |
33514 | &_swigt__p_wxColourDialog, | |
33515 | &_swigt__p_wxCommandEvent, | |
33516 | &_swigt__p_wxContextMenuEvent, | |
33517 | &_swigt__p_wxControl, | |
33518 | &_swigt__p_wxControlWithItems, | |
33519 | &_swigt__p_wxDC, | |
33520 | &_swigt__p_wxDateEvent, | |
33521 | &_swigt__p_wxDialog, | |
33522 | &_swigt__p_wxDirDialog, | |
33523 | &_swigt__p_wxDisplayChangedEvent, | |
33524 | &_swigt__p_wxDropFilesEvent, | |
33525 | &_swigt__p_wxDuplexMode, | |
33526 | &_swigt__p_wxEraseEvent, | |
33527 | &_swigt__p_wxEvent, | |
33528 | &_swigt__p_wxEvtHandler, | |
33529 | &_swigt__p_wxFSFile, | |
33530 | &_swigt__p_wxFileDialog, | |
33531 | &_swigt__p_wxFileSystem, | |
33532 | &_swigt__p_wxFindDialogEvent, | |
33533 | &_swigt__p_wxFindReplaceData, | |
33534 | &_swigt__p_wxFindReplaceDialog, | |
33535 | &_swigt__p_wxFlexGridSizer, | |
33536 | &_swigt__p_wxFocusEvent, | |
33537 | &_swigt__p_wxFont, | |
33538 | &_swigt__p_wxFontData, | |
33539 | &_swigt__p_wxFontDialog, | |
33540 | &_swigt__p_wxFrame, | |
33541 | &_swigt__p_wxGBSizerItem, | |
33542 | &_swigt__p_wxGIFHandler, | |
33543 | &_swigt__p_wxGridBagSizer, | |
33544 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 33545 | &_swigt__p_wxHtmlLinkInfo, |
32fe5131 RD |
33546 | &_swigt__p_wxICOHandler, |
33547 | &_swigt__p_wxIcon, | |
33548 | &_swigt__p_wxIconBundle, | |
33549 | &_swigt__p_wxIconizeEvent, | |
33550 | &_swigt__p_wxIdleEvent, | |
33551 | &_swigt__p_wxImage, | |
33552 | &_swigt__p_wxImageHandler, | |
33553 | &_swigt__p_wxIndividualLayoutConstraint, | |
33554 | &_swigt__p_wxInitDialogEvent, | |
33555 | &_swigt__p_wxJPEGHandler, | |
33556 | &_swigt__p_wxKeyEvent, | |
33557 | &_swigt__p_wxLayoutAlgorithm, | |
33558 | &_swigt__p_wxLayoutConstraints, | |
33559 | &_swigt__p_wxMDIChildFrame, | |
33560 | &_swigt__p_wxMDIClientWindow, | |
33561 | &_swigt__p_wxMDIParentFrame, | |
33562 | &_swigt__p_wxMaximizeEvent, | |
33563 | &_swigt__p_wxMenu, | |
33564 | &_swigt__p_wxMenuBar, | |
33565 | &_swigt__p_wxMenuEvent, | |
33566 | &_swigt__p_wxMenuItem, | |
33567 | &_swigt__p_wxMessageDialog, | |
33568 | &_swigt__p_wxMiniFrame, | |
33569 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 33570 | &_swigt__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
33571 | &_swigt__p_wxMouseEvent, |
33572 | &_swigt__p_wxMoveEvent, | |
33573 | &_swigt__p_wxMultiChoiceDialog, | |
33574 | &_swigt__p_wxNavigationKeyEvent, | |
33575 | &_swigt__p_wxNcPaintEvent, | |
33576 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 33577 | &_swigt__p_wxNumberEntryDialog, |
32fe5131 RD |
33578 | &_swigt__p_wxObject, |
33579 | &_swigt__p_wxPCXHandler, | |
33580 | &_swigt__p_wxPNGHandler, | |
33581 | &_swigt__p_wxPNMHandler, | |
33582 | &_swigt__p_wxPageSetupDialog, | |
33583 | &_swigt__p_wxPageSetupDialogData, | |
33584 | &_swigt__p_wxPaintEvent, | |
33585 | &_swigt__p_wxPaletteChangedEvent, | |
33586 | &_swigt__p_wxPanel, | |
33587 | &_swigt__p_wxPaperSize, | |
33588 | &_swigt__p_wxPasswordEntryDialog, | |
33589 | &_swigt__p_wxPoint, | |
33590 | &_swigt__p_wxPopupWindow, | |
33591 | &_swigt__p_wxPreviewCanvas, | |
33592 | &_swigt__p_wxPreviewControlBar, | |
33593 | &_swigt__p_wxPreviewFrame, | |
33594 | &_swigt__p_wxPrintData, | |
33595 | &_swigt__p_wxPrintDialog, | |
33596 | &_swigt__p_wxPrintDialogData, | |
33597 | &_swigt__p_wxPrintPreview, | |
33598 | &_swigt__p_wxPrinter, | |
33599 | &_swigt__p_wxProgressDialog, | |
33600 | &_swigt__p_wxPyApp, | |
33601 | &_swigt__p_wxPyCommandEvent, | |
33602 | &_swigt__p_wxPyEvent, | |
33603 | &_swigt__p_wxPyHtmlListBox, | |
33604 | &_swigt__p_wxPyImageHandler, | |
33605 | &_swigt__p_wxPyPanel, | |
33606 | &_swigt__p_wxPyPopupTransientWindow, | |
33607 | &_swigt__p_wxPyPreviewControlBar, | |
33608 | &_swigt__p_wxPyPreviewFrame, | |
33609 | &_swigt__p_wxPyPrintPreview, | |
33610 | &_swigt__p_wxPyPrintout, | |
33611 | &_swigt__p_wxPyScrolledWindow, | |
33612 | &_swigt__p_wxPySizer, | |
33613 | &_swigt__p_wxPyTaskBarIcon, | |
33614 | &_swigt__p_wxPyVListBox, | |
33615 | &_swigt__p_wxPyVScrolledWindow, | |
33616 | &_swigt__p_wxPyValidator, | |
33617 | &_swigt__p_wxPyWindow, | |
33618 | &_swigt__p_wxQueryLayoutInfoEvent, | |
33619 | &_swigt__p_wxQueryNewPaletteEvent, | |
33620 | &_swigt__p_wxRect, | |
33621 | &_swigt__p_wxRegion, | |
33622 | &_swigt__p_wxSashEvent, | |
33623 | &_swigt__p_wxSashLayoutWindow, | |
33624 | &_swigt__p_wxSashWindow, | |
33625 | &_swigt__p_wxScrollEvent, | |
33626 | &_swigt__p_wxScrollWinEvent, | |
33627 | &_swigt__p_wxScrolledWindow, | |
33628 | &_swigt__p_wxSetCursorEvent, | |
33629 | &_swigt__p_wxShowEvent, | |
33630 | &_swigt__p_wxSingleChoiceDialog, | |
33631 | &_swigt__p_wxSize, | |
33632 | &_swigt__p_wxSizeEvent, | |
33633 | &_swigt__p_wxSizer, | |
33634 | &_swigt__p_wxSizerItem, | |
33635 | &_swigt__p_wxSplashScreen, | |
33636 | &_swigt__p_wxSplashScreenWindow, | |
33637 | &_swigt__p_wxSplitterEvent, | |
33638 | &_swigt__p_wxSplitterWindow, | |
33639 | &_swigt__p_wxStaticBoxSizer, | |
33640 | &_swigt__p_wxStatusBar, | |
33641 | &_swigt__p_wxStdDialogButtonSizer, | |
33642 | &_swigt__p_wxString, | |
33643 | &_swigt__p_wxSysColourChangedEvent, | |
33644 | &_swigt__p_wxTIFFHandler, | |
33645 | &_swigt__p_wxTaskBarIcon, | |
33646 | &_swigt__p_wxTaskBarIconEvent, | |
33647 | &_swigt__p_wxTextEntryDialog, | |
33648 | &_swigt__p_wxTipWindow, | |
33649 | &_swigt__p_wxToolBar, | |
33650 | &_swigt__p_wxTopLevelWindow, | |
33651 | &_swigt__p_wxUpdateUIEvent, | |
33652 | &_swigt__p_wxValidator, | |
33653 | &_swigt__p_wxVisualAttributes, | |
33654 | &_swigt__p_wxWindow, | |
33655 | &_swigt__p_wxWindowCreateEvent, | |
33656 | &_swigt__p_wxWindowDestroyEvent, | |
33657 | &_swigt__p_wxXPMHandler, | |
32fe5131 RD |
33658 | }; |
33659 | ||
01f6b6d3 | 33660 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33661 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
33662 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
33663 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
33664 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
33665 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
33666 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
33667 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
33668 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
33669 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33670 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
33671 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
33672 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 RD |
33673 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33674 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 | 33675 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 RD |
33676 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33677 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33678 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
33679 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33680 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33681 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 33682 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33683 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 33684 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33685 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33686 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
33687 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33688 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33689 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33690 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33691 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33692 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33693 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 33694 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33695 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
33696 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33697 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33698 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33699 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33700 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33701 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33702 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33703 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33704 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33705 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33706 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33707 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33708 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33709 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33710 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33711 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33712 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 33713 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33714 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; |
33715 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
33716 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
33717 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
33718 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33719 | 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}}; |
32fe5131 RD |
33720 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33721 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
33722 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33723 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
33724 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33725 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
33726 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
33727 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33728 | 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 | 33729 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33730 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
33731 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
33732 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
33733 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33734 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33735 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33736 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
33737 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33738 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33739 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33740 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33741 | 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 | 33742 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = { {&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33743 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 | 33744 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 33745 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33746 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
33747 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33748 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33749 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33750 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33751 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33752 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33753 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
33754 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33755 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
33756 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33757 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33758 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33759 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33760 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33761 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33762 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33763 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33764 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33765 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 33766 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
33767 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
33768 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
33769 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
33770 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 33771 | 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}}; |
32fe5131 RD |
33772 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; |
33773 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33774 | 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}}; | |
33775 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33776 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33777 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
33778 | 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}}; | |
33779 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
33780 | 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}}; | |
33781 | 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}}; | |
33782 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
33783 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33784 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
33785 | 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}}; | |
33786 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
33787 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33788 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
33789 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
33790 | 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}}; | |
33791 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33792 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
33793 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
33794 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
33795 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33796 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33797 | 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}}; | |
33798 | 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}}; | |
33799 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33800 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33801 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
33802 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
33803 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33804 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33805 | 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}}; | |
33806 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33807 | 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}}; | |
33808 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
33809 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
33810 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
33811 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33812 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33813 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33814 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
33815 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
33816 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
33817 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
33818 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
33819 | 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}}; | |
33820 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
33821 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 33822 | 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}}; |
32fe5131 | 33823 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 33824 | 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}}; |
32fe5131 RD |
33825 | |
33826 | static swig_cast_info *swig_cast_initial[] = { | |
01f6b6d3 | 33827 | _swigc__p_bool, |
32fe5131 RD |
33828 | _swigc__p_char, |
33829 | _swigc__p_form_ops_t, | |
33830 | _swigc__p_int, | |
33831 | _swigc__p_unsigned_char, | |
33832 | _swigc__p_unsigned_int, | |
33833 | _swigc__p_unsigned_long, | |
33834 | _swigc__p_wxANIHandler, | |
33835 | _swigc__p_wxAcceleratorTable, | |
33836 | _swigc__p_wxActivateEvent, | |
33837 | _swigc__p_wxArrayInt, | |
33838 | _swigc__p_wxBMPHandler, | |
33839 | _swigc__p_wxBitmap, | |
33840 | _swigc__p_wxBoxSizer, | |
33841 | _swigc__p_wxCURHandler, | |
33842 | _swigc__p_wxCalculateLayoutEvent, | |
33843 | _swigc__p_wxChildFocusEvent, | |
2131d850 | 33844 | _swigc__p_wxClipboardTextEvent, |
32fe5131 RD |
33845 | _swigc__p_wxCloseEvent, |
33846 | _swigc__p_wxColour, | |
33847 | _swigc__p_wxColourData, | |
33848 | _swigc__p_wxColourDialog, | |
33849 | _swigc__p_wxCommandEvent, | |
33850 | _swigc__p_wxContextMenuEvent, | |
33851 | _swigc__p_wxControl, | |
33852 | _swigc__p_wxControlWithItems, | |
33853 | _swigc__p_wxDC, | |
33854 | _swigc__p_wxDateEvent, | |
33855 | _swigc__p_wxDialog, | |
33856 | _swigc__p_wxDirDialog, | |
33857 | _swigc__p_wxDisplayChangedEvent, | |
33858 | _swigc__p_wxDropFilesEvent, | |
33859 | _swigc__p_wxDuplexMode, | |
33860 | _swigc__p_wxEraseEvent, | |
33861 | _swigc__p_wxEvent, | |
33862 | _swigc__p_wxEvtHandler, | |
33863 | _swigc__p_wxFSFile, | |
33864 | _swigc__p_wxFileDialog, | |
33865 | _swigc__p_wxFileSystem, | |
33866 | _swigc__p_wxFindDialogEvent, | |
33867 | _swigc__p_wxFindReplaceData, | |
33868 | _swigc__p_wxFindReplaceDialog, | |
33869 | _swigc__p_wxFlexGridSizer, | |
33870 | _swigc__p_wxFocusEvent, | |
33871 | _swigc__p_wxFont, | |
33872 | _swigc__p_wxFontData, | |
33873 | _swigc__p_wxFontDialog, | |
33874 | _swigc__p_wxFrame, | |
33875 | _swigc__p_wxGBSizerItem, | |
33876 | _swigc__p_wxGIFHandler, | |
33877 | _swigc__p_wxGridBagSizer, | |
33878 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 33879 | _swigc__p_wxHtmlLinkInfo, |
32fe5131 RD |
33880 | _swigc__p_wxICOHandler, |
33881 | _swigc__p_wxIcon, | |
33882 | _swigc__p_wxIconBundle, | |
33883 | _swigc__p_wxIconizeEvent, | |
33884 | _swigc__p_wxIdleEvent, | |
33885 | _swigc__p_wxImage, | |
33886 | _swigc__p_wxImageHandler, | |
33887 | _swigc__p_wxIndividualLayoutConstraint, | |
33888 | _swigc__p_wxInitDialogEvent, | |
33889 | _swigc__p_wxJPEGHandler, | |
33890 | _swigc__p_wxKeyEvent, | |
33891 | _swigc__p_wxLayoutAlgorithm, | |
33892 | _swigc__p_wxLayoutConstraints, | |
33893 | _swigc__p_wxMDIChildFrame, | |
33894 | _swigc__p_wxMDIClientWindow, | |
33895 | _swigc__p_wxMDIParentFrame, | |
33896 | _swigc__p_wxMaximizeEvent, | |
33897 | _swigc__p_wxMenu, | |
33898 | _swigc__p_wxMenuBar, | |
33899 | _swigc__p_wxMenuEvent, | |
33900 | _swigc__p_wxMenuItem, | |
33901 | _swigc__p_wxMessageDialog, | |
33902 | _swigc__p_wxMiniFrame, | |
33903 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 33904 | _swigc__p_wxMouseCaptureLostEvent, |
32fe5131 RD |
33905 | _swigc__p_wxMouseEvent, |
33906 | _swigc__p_wxMoveEvent, | |
33907 | _swigc__p_wxMultiChoiceDialog, | |
33908 | _swigc__p_wxNavigationKeyEvent, | |
33909 | _swigc__p_wxNcPaintEvent, | |
33910 | _swigc__p_wxNotifyEvent, | |
27e45892 | 33911 | _swigc__p_wxNumberEntryDialog, |
32fe5131 RD |
33912 | _swigc__p_wxObject, |
33913 | _swigc__p_wxPCXHandler, | |
33914 | _swigc__p_wxPNGHandler, | |
33915 | _swigc__p_wxPNMHandler, | |
33916 | _swigc__p_wxPageSetupDialog, | |
33917 | _swigc__p_wxPageSetupDialogData, | |
33918 | _swigc__p_wxPaintEvent, | |
33919 | _swigc__p_wxPaletteChangedEvent, | |
33920 | _swigc__p_wxPanel, | |
33921 | _swigc__p_wxPaperSize, | |
33922 | _swigc__p_wxPasswordEntryDialog, | |
33923 | _swigc__p_wxPoint, | |
33924 | _swigc__p_wxPopupWindow, | |
33925 | _swigc__p_wxPreviewCanvas, | |
33926 | _swigc__p_wxPreviewControlBar, | |
33927 | _swigc__p_wxPreviewFrame, | |
33928 | _swigc__p_wxPrintData, | |
33929 | _swigc__p_wxPrintDialog, | |
33930 | _swigc__p_wxPrintDialogData, | |
33931 | _swigc__p_wxPrintPreview, | |
33932 | _swigc__p_wxPrinter, | |
33933 | _swigc__p_wxProgressDialog, | |
33934 | _swigc__p_wxPyApp, | |
33935 | _swigc__p_wxPyCommandEvent, | |
33936 | _swigc__p_wxPyEvent, | |
33937 | _swigc__p_wxPyHtmlListBox, | |
33938 | _swigc__p_wxPyImageHandler, | |
33939 | _swigc__p_wxPyPanel, | |
33940 | _swigc__p_wxPyPopupTransientWindow, | |
33941 | _swigc__p_wxPyPreviewControlBar, | |
33942 | _swigc__p_wxPyPreviewFrame, | |
33943 | _swigc__p_wxPyPrintPreview, | |
33944 | _swigc__p_wxPyPrintout, | |
33945 | _swigc__p_wxPyScrolledWindow, | |
33946 | _swigc__p_wxPySizer, | |
33947 | _swigc__p_wxPyTaskBarIcon, | |
33948 | _swigc__p_wxPyVListBox, | |
33949 | _swigc__p_wxPyVScrolledWindow, | |
33950 | _swigc__p_wxPyValidator, | |
33951 | _swigc__p_wxPyWindow, | |
33952 | _swigc__p_wxQueryLayoutInfoEvent, | |
33953 | _swigc__p_wxQueryNewPaletteEvent, | |
33954 | _swigc__p_wxRect, | |
33955 | _swigc__p_wxRegion, | |
33956 | _swigc__p_wxSashEvent, | |
33957 | _swigc__p_wxSashLayoutWindow, | |
33958 | _swigc__p_wxSashWindow, | |
33959 | _swigc__p_wxScrollEvent, | |
33960 | _swigc__p_wxScrollWinEvent, | |
33961 | _swigc__p_wxScrolledWindow, | |
33962 | _swigc__p_wxSetCursorEvent, | |
33963 | _swigc__p_wxShowEvent, | |
33964 | _swigc__p_wxSingleChoiceDialog, | |
33965 | _swigc__p_wxSize, | |
0085ce49 RD |
33966 | _swigc__p_wxSizeEvent, |
33967 | _swigc__p_wxSizer, | |
33968 | _swigc__p_wxSizerItem, | |
33969 | _swigc__p_wxSplashScreen, | |
33970 | _swigc__p_wxSplashScreenWindow, | |
33971 | _swigc__p_wxSplitterEvent, | |
33972 | _swigc__p_wxSplitterWindow, | |
33973 | _swigc__p_wxStaticBoxSizer, | |
33974 | _swigc__p_wxStatusBar, | |
33975 | _swigc__p_wxStdDialogButtonSizer, | |
33976 | _swigc__p_wxString, | |
33977 | _swigc__p_wxSysColourChangedEvent, | |
33978 | _swigc__p_wxTIFFHandler, | |
33979 | _swigc__p_wxTaskBarIcon, | |
33980 | _swigc__p_wxTaskBarIconEvent, | |
33981 | _swigc__p_wxTextEntryDialog, | |
33982 | _swigc__p_wxTipWindow, | |
33983 | _swigc__p_wxToolBar, | |
33984 | _swigc__p_wxTopLevelWindow, | |
33985 | _swigc__p_wxUpdateUIEvent, | |
33986 | _swigc__p_wxValidator, | |
33987 | _swigc__p_wxVisualAttributes, | |
33988 | _swigc__p_wxWindow, | |
33989 | _swigc__p_wxWindowCreateEvent, | |
33990 | _swigc__p_wxWindowDestroyEvent, | |
33991 | _swigc__p_wxXPMHandler, | |
33992 | }; | |
33993 | ||
33994 | ||
33995 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33996 | ||
33997 | static swig_const_info swig_const_table[] = { | |
33998 | {0, 0, 0, 0.0, 0, 0}}; | |
33999 | ||
093d3ff1 RD |
34000 | #ifdef __cplusplus |
34001 | } | |
34002 | #endif | |
0085ce49 RD |
34003 | /* ----------------------------------------------------------------------------- |
34004 | * Type initialization: | |
34005 | * This problem is tough by the requirement that no dynamic | |
34006 | * memory is used. Also, since swig_type_info structures store pointers to | |
34007 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
34008 | * to swig_type_info structures, we need some lookup code at initialization. | |
34009 | * The idea is that swig generates all the structures that are needed. | |
34010 | * The runtime then collects these partially filled structures. | |
34011 | * The SWIG_InitializeModule function takes these initial arrays out of | |
34012 | * swig_module, and does all the lookup, filling in the swig_module.types | |
34013 | * array with the correct data and linking the correct swig_cast_info | |
34014 | * structures together. | |
34015 | * | |
34016 | * The generated swig_type_info structures are assigned staticly to an initial | |
34017 | * array. We just loop though that array, and handle each type individually. | |
34018 | * First we lookup if this type has been already loaded, and if so, use the | |
34019 | * loaded structure instead of the generated one. Then we have to fill in the | |
34020 | * cast linked list. The cast data is initially stored in something like a | |
34021 | * two-dimensional array. Each row corresponds to a type (there are the same | |
34022 | * number of rows as there are in the swig_type_initial array). Each entry in | |
34023 | * a column is one of the swig_cast_info structures for that type. | |
34024 | * The cast_initial array is actually an array of arrays, because each row has | |
34025 | * a variable number of columns. So to actually build the cast linked list, | |
34026 | * we find the array of casts associated with the type, and loop through it | |
34027 | * adding the casts to the list. The one last trick we need to do is making | |
34028 | * sure the type pointer in the swig_cast_info struct is correct. | |
34029 | * | |
34030 | * First off, we lookup the cast->type name to see if it is already loaded. | |
34031 | * There are three cases to handle: | |
34032 | * 1) If the cast->type has already been loaded AND the type we are adding | |
34033 | * casting info to has not been loaded (it is in this module), THEN we | |
34034 | * replace the cast->type pointer with the type pointer that has already | |
34035 | * been loaded. | |
34036 | * 2) If BOTH types (the one we are adding casting info to, and the | |
34037 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
34038 | * the previous module so we just ignore it. | |
34039 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
34040 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
34041 | * be correct. | |
34042 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 34043 | |
d14a1e28 | 34044 | #ifdef __cplusplus |
0085ce49 RD |
34045 | extern "C" { |
34046 | #if 0 | |
34047 | } /* c-mode */ | |
34048 | #endif | |
34049 | #endif | |
34050 | ||
34051 | #if 0 | |
34052 | #define SWIGRUNTIME_DEBUG | |
34053 | #endif | |
34054 | ||
34055 | SWIGRUNTIME void | |
34056 | SWIG_InitializeModule(void *clientdata) { | |
34057 | size_t i; | |
34058 | swig_module_info *module_head; | |
34059 | static int init_run = 0; | |
34060 | ||
34061 | clientdata = clientdata; | |
34062 | ||
34063 | if (init_run) return; | |
34064 | init_run = 1; | |
34065 | ||
34066 | /* Initialize the swig_module */ | |
34067 | swig_module.type_initial = swig_type_initial; | |
34068 | swig_module.cast_initial = swig_cast_initial; | |
34069 | ||
34070 | /* Try and load any already created modules */ | |
34071 | module_head = SWIG_GetModule(clientdata); | |
34072 | if (module_head) { | |
34073 | swig_module.next = module_head->next; | |
34074 | module_head->next = &swig_module; | |
34075 | } else { | |
34076 | /* This is the first module loaded */ | |
34077 | swig_module.next = &swig_module; | |
34078 | SWIG_SetModule(clientdata, &swig_module); | |
34079 | } | |
34080 | ||
34081 | /* Now work on filling in swig_module.types */ | |
34082 | #ifdef SWIGRUNTIME_DEBUG | |
34083 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
34084 | #endif | |
34085 | for (i = 0; i < swig_module.size; ++i) { | |
34086 | swig_type_info *type = 0; | |
34087 | swig_type_info *ret; | |
34088 | swig_cast_info *cast; | |
d14a1e28 | 34089 | |
0085ce49 RD |
34090 | #ifdef SWIGRUNTIME_DEBUG |
34091 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34092 | #endif | |
d14a1e28 | 34093 | |
0085ce49 RD |
34094 | /* if there is another module already loaded */ |
34095 | if (swig_module.next != &swig_module) { | |
34096 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 34097 | } |
0085ce49 RD |
34098 | if (type) { |
34099 | /* Overwrite clientdata field */ | |
34100 | #ifdef SWIGRUNTIME_DEBUG | |
34101 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
34102 | #endif | |
34103 | if (swig_module.type_initial[i]->clientdata) { | |
34104 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
34105 | #ifdef SWIGRUNTIME_DEBUG | |
34106 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
34107 | #endif | |
34108 | } | |
34109 | } else { | |
34110 | type = swig_module.type_initial[i]; | |
093d3ff1 | 34111 | } |
0085ce49 RD |
34112 | |
34113 | /* Insert casting types */ | |
34114 | cast = swig_module.cast_initial[i]; | |
34115 | while (cast->type) { | |
34116 | /* Don't need to add information already in the list */ | |
34117 | ret = 0; | |
34118 | #ifdef SWIGRUNTIME_DEBUG | |
34119 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
34120 | #endif | |
34121 | if (swig_module.next != &swig_module) { | |
34122 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
34123 | #ifdef SWIGRUNTIME_DEBUG | |
34124 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
34125 | #endif | |
34126 | } | |
34127 | if (ret) { | |
34128 | if (type == swig_module.type_initial[i]) { | |
34129 | #ifdef SWIGRUNTIME_DEBUG | |
34130 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
34131 | #endif | |
34132 | cast->type = ret; | |
34133 | ret = 0; | |
34134 | } else { | |
34135 | /* Check for casting already in the list */ | |
34136 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
34137 | #ifdef SWIGRUNTIME_DEBUG | |
34138 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
34139 | #endif | |
34140 | if (!ocast) ret = 0; | |
34141 | } | |
34142 | } | |
34143 | ||
34144 | if (!ret) { | |
34145 | #ifdef SWIGRUNTIME_DEBUG | |
34146 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
34147 | #endif | |
34148 | if (type->cast) { | |
34149 | type->cast->prev = cast; | |
34150 | cast->next = type->cast; | |
34151 | } | |
34152 | type->cast = cast; | |
34153 | } | |
34154 | cast++; | |
093d3ff1 | 34155 | } |
0085ce49 RD |
34156 | /* Set entry in modules->types array equal to the type */ |
34157 | swig_module.types[i] = type; | |
34158 | } | |
34159 | swig_module.types[i] = 0; | |
34160 | ||
34161 | #ifdef SWIGRUNTIME_DEBUG | |
34162 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34163 | for (i = 0; i < swig_module.size; ++i) { | |
34164 | int j = 0; | |
34165 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
34166 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
34167 | while (cast->type) { | |
34168 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
34169 | cast++; | |
34170 | ++j; | |
34171 | } | |
34172 | printf("---- Total casts: %d\n",j); | |
34173 | } | |
34174 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
34175 | #endif | |
34176 | } | |
34177 | ||
34178 | /* This function will propagate the clientdata field of type to | |
34179 | * any new swig_type_info structures that have been added into the list | |
34180 | * of equivalent types. It is like calling | |
34181 | * SWIG_TypeClientData(type, clientdata) a second time. | |
34182 | */ | |
34183 | SWIGRUNTIME void | |
34184 | SWIG_PropagateClientData(void) { | |
34185 | size_t i; | |
34186 | swig_cast_info *equiv; | |
34187 | static int init_run = 0; | |
34188 | ||
34189 | if (init_run) return; | |
34190 | init_run = 1; | |
34191 | ||
34192 | for (i = 0; i < swig_module.size; i++) { | |
34193 | if (swig_module.types[i]->clientdata) { | |
34194 | equiv = swig_module.types[i]->cast; | |
34195 | while (equiv) { | |
34196 | if (!equiv->converter) { | |
34197 | if (equiv->type && !equiv->type->clientdata) | |
34198 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
34199 | } | |
34200 | equiv = equiv->next; | |
34201 | } | |
093d3ff1 | 34202 | } |
0085ce49 RD |
34203 | } |
34204 | } | |
34205 | ||
34206 | #ifdef __cplusplus | |
34207 | #if 0 | |
34208 | { | |
34209 | /* c-mode */ | |
34210 | #endif | |
34211 | } | |
34212 | #endif | |
34213 | ||
34214 | ||
34215 | ||
34216 | #ifdef __cplusplus | |
34217 | extern "C" { | |
34218 | #endif | |
34219 | ||
34220 | /* Python-specific SWIG API */ | |
34221 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
34222 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
34223 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
34224 | ||
34225 | /* ----------------------------------------------------------------------------- | |
34226 | * global variable support code. | |
34227 | * ----------------------------------------------------------------------------- */ | |
34228 | ||
34229 | typedef struct swig_globalvar { | |
34230 | char *name; /* Name of global variable */ | |
34231 | PyObject *(*get_attr)(void); /* Return the current value */ | |
34232 | int (*set_attr)(PyObject *); /* Set the value */ | |
34233 | struct swig_globalvar *next; | |
34234 | } swig_globalvar; | |
34235 | ||
34236 | typedef struct swig_varlinkobject { | |
34237 | PyObject_HEAD | |
34238 | swig_globalvar *vars; | |
34239 | } swig_varlinkobject; | |
34240 | ||
34241 | SWIGINTERN PyObject * | |
34242 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
34243 | return PyString_FromString("<Swig global variables>"); | |
34244 | } | |
34245 | ||
34246 | SWIGINTERN PyObject * | |
34247 | swig_varlink_str(swig_varlinkobject *v) { | |
34248 | PyObject *str = PyString_FromString("("); | |
34249 | swig_globalvar *var; | |
34250 | for (var = v->vars; var; var=var->next) { | |
34251 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
34252 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
34253 | } | |
34254 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
34255 | return str; | |
34256 | } | |
34257 | ||
34258 | SWIGINTERN int | |
34259 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
34260 | PyObject *str = swig_varlink_str(v); | |
34261 | fprintf(fp,"Swig global variables "); | |
34262 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
34263 | Py_DECREF(str); | |
34264 | return 0; | |
34265 | } | |
34266 | ||
34267 | SWIGINTERN void | |
34268 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
34269 | swig_globalvar *var = v->vars; | |
34270 | while (var) { | |
34271 | swig_globalvar *n = var->next; | |
34272 | free(var->name); | |
34273 | free(var); | |
34274 | var = n; | |
093d3ff1 | 34275 | } |
0085ce49 RD |
34276 | } |
34277 | ||
34278 | SWIGINTERN PyObject * | |
34279 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
34280 | PyObject *res = NULL; | |
34281 | swig_globalvar *var = v->vars; | |
34282 | while (var) { | |
34283 | if (strcmp(var->name,n) == 0) { | |
34284 | res = (*var->get_attr)(); | |
34285 | break; | |
34286 | } | |
34287 | var = var->next; | |
093d3ff1 | 34288 | } |
0085ce49 RD |
34289 | if (res == NULL && !PyErr_Occurred()) { |
34290 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 34291 | } |
0085ce49 RD |
34292 | return res; |
34293 | } | |
34294 | ||
34295 | SWIGINTERN int | |
34296 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
34297 | int res = 1; | |
34298 | swig_globalvar *var = v->vars; | |
34299 | while (var) { | |
34300 | if (strcmp(var->name,n) == 0) { | |
34301 | res = (*var->set_attr)(p); | |
34302 | break; | |
34303 | } | |
34304 | var = var->next; | |
093d3ff1 | 34305 | } |
0085ce49 RD |
34306 | if (res == 1 && !PyErr_Occurred()) { |
34307 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 34308 | } |
0085ce49 RD |
34309 | return res; |
34310 | } | |
34311 | ||
34312 | SWIGINTERN PyTypeObject* | |
34313 | swig_varlink_type(void) { | |
34314 | static char varlink__doc__[] = "Swig var link object"; | |
34315 | static PyTypeObject varlink_type; | |
34316 | static int type_init = 0; | |
34317 | if (!type_init) { | |
34318 | const PyTypeObject tmp | |
34319 | = { | |
34320 | PyObject_HEAD_INIT(NULL) | |
34321 | 0, /* Number of items in variable part (ob_size) */ | |
34322 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
34323 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
34324 | 0, /* Itemsize (tp_itemsize) */ | |
34325 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
34326 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
34327 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
34328 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
34329 | 0, /* tp_compare */ | |
34330 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
34331 | 0, /* tp_as_number */ | |
34332 | 0, /* tp_as_sequence */ | |
34333 | 0, /* tp_as_mapping */ | |
34334 | 0, /* tp_hash */ | |
34335 | 0, /* tp_call */ | |
34336 | (reprfunc)swig_varlink_str, /* tp_str */ | |
34337 | 0, /* tp_getattro */ | |
34338 | 0, /* tp_setattro */ | |
34339 | 0, /* tp_as_buffer */ | |
34340 | 0, /* tp_flags */ | |
34341 | varlink__doc__, /* tp_doc */ | |
34342 | 0, /* tp_traverse */ | |
34343 | 0, /* tp_clear */ | |
34344 | 0, /* tp_richcompare */ | |
34345 | 0, /* tp_weaklistoffset */ | |
34346 | #if PY_VERSION_HEX >= 0x02020000 | |
34347 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
34348 | #endif | |
34349 | #if PY_VERSION_HEX >= 0x02030000 | |
34350 | 0, /* tp_del */ | |
34351 | #endif | |
34352 | #ifdef COUNT_ALLOCS | |
34353 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
34354 | #endif | |
34355 | }; | |
34356 | varlink_type = tmp; | |
34357 | varlink_type.ob_type = &PyType_Type; | |
34358 | type_init = 1; | |
093d3ff1 | 34359 | } |
0085ce49 RD |
34360 | return &varlink_type; |
34361 | } | |
34362 | ||
34363 | /* Create a variable linking object for use later */ | |
34364 | SWIGINTERN PyObject * | |
34365 | SWIG_Python_newvarlink(void) { | |
34366 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
34367 | if (result) { | |
34368 | result->vars = 0; | |
34369 | } | |
34370 | return ((PyObject*) result); | |
34371 | } | |
34372 | ||
34373 | SWIGINTERN void | |
34374 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
34375 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
34376 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
34377 | if (gv) { | |
34378 | size_t size = strlen(name)+1; | |
34379 | gv->name = (char *)malloc(size); | |
34380 | if (gv->name) { | |
34381 | strncpy(gv->name,name,size); | |
34382 | gv->get_attr = get_attr; | |
34383 | gv->set_attr = set_attr; | |
34384 | gv->next = v->vars; | |
34385 | } | |
093d3ff1 | 34386 | } |
0085ce49 RD |
34387 | v->vars = gv; |
34388 | } | |
34389 | ||
34390 | SWIGINTERN PyObject * | |
34391 | SWIG_globals() { | |
34392 | static PyObject *_SWIG_globals = 0; | |
34393 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
34394 | return _SWIG_globals; | |
34395 | } | |
34396 | ||
34397 | /* ----------------------------------------------------------------------------- | |
34398 | * constants/methods manipulation | |
34399 | * ----------------------------------------------------------------------------- */ | |
34400 | ||
34401 | /* Install Constants */ | |
34402 | SWIGINTERN void | |
34403 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
34404 | PyObject *obj = 0; | |
34405 | size_t i; | |
34406 | for (i = 0; constants[i].type; ++i) { | |
34407 | switch(constants[i].type) { | |
34408 | case SWIG_PY_POINTER: | |
34409 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
34410 | break; | |
34411 | case SWIG_PY_BINARY: | |
34412 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
34413 | break; | |
34414 | default: | |
34415 | obj = 0; | |
34416 | break; | |
34417 | } | |
34418 | if (obj) { | |
34419 | PyDict_SetItemString(d, constants[i].name, obj); | |
34420 | Py_DECREF(obj); | |
34421 | } | |
093d3ff1 | 34422 | } |
0085ce49 RD |
34423 | } |
34424 | ||
34425 | /* -----------------------------------------------------------------------------*/ | |
34426 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
34427 | /* -----------------------------------------------------------------------------*/ | |
34428 | ||
34429 | SWIGINTERN void | |
34430 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
34431 | swig_const_info *const_table, | |
34432 | swig_type_info **types, | |
34433 | swig_type_info **types_initial) { | |
34434 | size_t i; | |
34435 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 34436 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
34437 | if (c && (c = strstr(c, "swig_ptr: "))) { |
34438 | int j; | |
34439 | swig_const_info *ci = 0; | |
453fb36b | 34440 | const char *name = c + 10; |
0085ce49 RD |
34441 | for (j = 0; const_table[j].type; ++j) { |
34442 | if (strncmp(const_table[j].name, name, | |
34443 | strlen(const_table[j].name)) == 0) { | |
34444 | ci = &(const_table[j]); | |
34445 | break; | |
34446 | } | |
34447 | } | |
34448 | if (ci) { | |
34449 | size_t shift = (ci->ptype) - types; | |
34450 | swig_type_info *ty = types_initial[shift]; | |
34451 | size_t ldoc = (c - methods[i].ml_doc); | |
34452 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
34453 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
34454 | if (ndoc) { | |
34455 | char *buff = ndoc; | |
34456 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
34457 | if (ptr) { | |
34458 | strncpy(buff, methods[i].ml_doc, ldoc); | |
34459 | buff += ldoc; | |
34460 | strncpy(buff, "swig_ptr: ", 10); | |
34461 | buff += 10; | |
34462 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
34463 | methods[i].ml_doc = ndoc; | |
34464 | } | |
34465 | } | |
34466 | } | |
34467 | } | |
093d3ff1 | 34468 | } |
0085ce49 RD |
34469 | } |
34470 | ||
34471 | #ifdef __cplusplus | |
34472 | } | |
34473 | #endif | |
34474 | ||
34475 | /* -----------------------------------------------------------------------------* | |
34476 | * Partial Init method | |
34477 | * -----------------------------------------------------------------------------*/ | |
34478 | ||
34479 | #ifdef __cplusplus | |
34480 | extern "C" | |
34481 | #endif | |
34482 | SWIGEXPORT void SWIG_init(void) { | |
34483 | PyObject *m, *d; | |
34484 | ||
34485 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
34486 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
34487 | ||
34488 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
34489 | d = PyModule_GetDict(m); | |
34490 | ||
34491 | SWIG_InitializeModule(0); | |
34492 | SWIG_InstallConstants(d,swig_const_table); | |
34493 | ||
34494 | ||
34495 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
34496 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
34497 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
34498 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
34499 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
34500 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
34501 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
34502 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
34503 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
34504 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
34505 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
34506 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
34507 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
34508 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
34509 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
34510 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
34511 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
34512 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
34513 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
34514 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
34515 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
34516 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
34517 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
34518 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
34519 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
34520 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
34521 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
34522 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
34523 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
fc46b7f3 | 34524 | SWIG_Python_SetConstant(d, "WS_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxWS_EX_CONTEXTHELP))); |
0085ce49 RD |
34525 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); |
34526 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
34527 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
34528 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
fc46b7f3 RD |
34529 | SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP))); |
34530 | SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP))); | |
0085ce49 RD |
34531 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); |
34532 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
34533 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
34534 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
34535 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
34536 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
34537 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
34538 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
34539 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
34540 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
34541 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
34542 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
34543 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
34544 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
34545 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
34546 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
34547 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
34548 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
34549 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
34550 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
34551 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
34552 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
34553 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
34554 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
34555 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
34556 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
34557 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
34558 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
34559 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
34560 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
34561 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
34562 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
34563 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
34564 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
34565 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
34566 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
34567 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
34568 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
34569 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
34570 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
34571 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
34572 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
34573 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
34574 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
34575 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
34576 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
34577 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
34578 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
34579 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
34580 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
34581 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
34582 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
34583 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
34584 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
34585 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
34586 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
34587 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
34588 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
34589 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
34590 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
34591 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
34592 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
34593 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
34594 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
34595 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
34596 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
34597 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
34598 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
34599 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
34600 | ||
34601 | // Map renamed classes back to their common name for OOR | |
34602 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
34603 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
34604 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
34605 | ||
34606 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
34607 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
34608 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
34609 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
34610 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
34611 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
34612 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
34613 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
34614 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
34615 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
34616 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
34617 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
34618 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
704eda0c RD |
34619 | SWIG_Python_SetConstant(d, "DD_NEW_DIR_BUTTON",SWIG_From_int(static_cast< int >(wxDD_NEW_DIR_BUTTON))); |
34620 | SWIG_Python_SetConstant(d, "DD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDD_DEFAULT_STYLE))); | |
34621 | SWIG_Python_SetConstant(d, "DD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDD_CHANGE_DIR))); | |
34622 | SWIG_Python_SetConstant(d, "OPEN",SWIG_From_int(static_cast< int >(wxOPEN))); | |
34623 | SWIG_Python_SetConstant(d, "SAVE",SWIG_From_int(static_cast< int >(wxSAVE))); | |
34624 | SWIG_Python_SetConstant(d, "OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxOVERWRITE_PROMPT))); | |
34625 | SWIG_Python_SetConstant(d, "FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFILE_MUST_EXIST))); | |
34626 | SWIG_Python_SetConstant(d, "MULTIPLE",SWIG_From_int(static_cast< int >(wxMULTIPLE))); | |
34627 | SWIG_Python_SetConstant(d, "CHANGE_DIR",SWIG_From_int(static_cast< int >(wxCHANGE_DIR))); | |
b02396e8 | 34628 | SWIG_Python_SetConstant(d, "HIDE_READONLY",SWIG_From_int(static_cast< int >(wxHIDE_READONLY))); |
704eda0c RD |
34629 | SWIG_Python_SetConstant(d, "FD_OPEN",SWIG_From_int(static_cast< int >(wxFD_OPEN))); |
34630 | SWIG_Python_SetConstant(d, "FD_SAVE",SWIG_From_int(static_cast< int >(wxFD_SAVE))); | |
34631 | SWIG_Python_SetConstant(d, "FD_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFD_OVERWRITE_PROMPT))); | |
34632 | SWIG_Python_SetConstant(d, "FD_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFD_FILE_MUST_EXIST))); | |
34633 | SWIG_Python_SetConstant(d, "FD_MULTIPLE",SWIG_From_int(static_cast< int >(wxFD_MULTIPLE))); | |
34634 | SWIG_Python_SetConstant(d, "FD_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFD_CHANGE_DIR))); | |
10044bf1 | 34635 | SWIG_Python_SetConstant(d, "FD_PREVIEW",SWIG_From_int(static_cast< int >(wxFD_PREVIEW))); |
704eda0c | 34636 | SWIG_Python_SetConstant(d, "FD_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFD_DEFAULT_STYLE))); |
0085ce49 RD |
34637 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); |
34638 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
34639 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
ae5bc7f3 RD |
34640 | SWIG_Python_SetConstant(d, "PD_AUTO_HIDE",SWIG_From_int(static_cast< int >(wxPD_AUTO_HIDE))); |
34641 | SWIG_Python_SetConstant(d, "PD_APP_MODAL",SWIG_From_int(static_cast< int >(wxPD_APP_MODAL))); | |
34642 | SWIG_Python_SetConstant(d, "PD_CAN_ABORT",SWIG_From_int(static_cast< int >(wxPD_CAN_ABORT))); | |
34643 | SWIG_Python_SetConstant(d, "PD_ELAPSED_TIME",SWIG_From_int(static_cast< int >(wxPD_ELAPSED_TIME))); | |
34644 | SWIG_Python_SetConstant(d, "PD_ESTIMATED_TIME",SWIG_From_int(static_cast< int >(wxPD_ESTIMATED_TIME))); | |
34645 | SWIG_Python_SetConstant(d, "PD_REMAINING_TIME",SWIG_From_int(static_cast< int >(wxPD_REMAINING_TIME))); | |
34646 | SWIG_Python_SetConstant(d, "PD_SMOOTH",SWIG_From_int(static_cast< int >(wxPD_SMOOTH))); | |
34647 | SWIG_Python_SetConstant(d, "PD_CAN_SKIP",SWIG_From_int(static_cast< int >(wxPD_CAN_SKIP))); | |
0085ce49 RD |
34648 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); |
34649 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
34650 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
34651 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
34652 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
34653 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
34654 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
34655 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
34656 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
34657 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
34658 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
34659 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
34660 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
34661 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
34662 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
34663 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
34664 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
34665 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
34666 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
34667 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
34668 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
34669 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
34670 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
34671 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
34672 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
34673 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
34674 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
34675 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
34676 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
34677 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
34678 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
34679 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
34680 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
34681 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
34682 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
34683 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
34684 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
34685 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
34686 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
34687 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
34688 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
34689 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
34690 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
34691 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
34692 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
34693 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
34694 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
34695 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
34696 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
34697 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
34698 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
34699 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
34700 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
34701 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
34702 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
34703 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
34704 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
34705 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
34706 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
34707 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
34708 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
34709 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
34710 | ||
34711 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
34712 | ||
d14a1e28 RD |
34713 | } |
34714 |